added js for ctr-portal

This commit is contained in:
CaramelKat
2020-04-25 00:38:37 -05:00
committed by jay.poff@outlook.com
parent 57ba52ea04
commit 4c353c9956
3 changed files with 1904 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
<html>
<head>
<title>Miiverse Testing</title>
<script src="/js/olv.js"></script>
</head>
<body>
@@ -12,6 +13,9 @@
cave.snd_playBgm(BGM_CAVE_MAIN);
cave.transition_end();
cave.toolbar_setVisible(visibility = true);
</script>
<script>
</script>
</body>
</html>

1894
src/portal/js/olv.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,9 +4,13 @@ const database = require('../../../database');
var router = express.Router();
var path = require("path");
/* GET discovery server. */
/* GET portal server. */
router.get('/titles/show', function (req, res) {
res.sendFile(path.join(__dirname + '/portal.html'));
res.sendFile(path.join(__dirname + '../../../../portal/index.html'));
});
/* GET olv.js server. */
router.get('/js/olv.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/olv.js'));
});
router.post('/posts', function (req, res) {