Add devload, but comment out

This commit is contained in:
Evan Barger
2020-04-01 21:36:31 -04:00
parent 7106d81be4
commit ba4eed33c3
3 changed files with 17 additions and 6 deletions

View File

@@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8">
<title>Game Boy Nintendo Power ROM Builder</title>
<script src="script/vue.js"></script>
<script src="script/vue.min.js"></script>
<script id="devload" src="script/devload.js"></script>
<script src="script/gbnp.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

10
script/devload.js Normal file
View File

@@ -0,0 +1,10 @@
if (document.location.href.includes('file://')) {
const head = document.getElementsByTagName('head')[0];
const devScript = document.createElement('script');
devScript.type = 'text/javascript';
devScript.src = 'script/vue.js';
const thisScript = document.getElementById('devload');
thisScript.parentNode.insertBefore(devScript, thisScript.nextSibling);
console.log('Development Mode')
}

View File

@@ -1,34 +1,34 @@
@font-face {
font-family: "GillSans-HeavyItalic";
src: url("../gbnp/font/GillSansHeavyItalic.woff") format("woff");
src: url("./font/GillSansHeavyItalic.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Early-Gameboy";
src: url("../gbnp/font/EarlyGameboy.woff") format("woff");
src: url("./font/EarlyGameboy.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Gamer";
src: url("../gbnp/font/Gamer.woff") format("woff");
src: url("./font/Gamer.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Pixeltype";
src: url("../gbnp/font/Pixeltype.woff") format("woff");
src: url("./font/Pixeltype.woff") format("woff");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Nokia";
src: url("../gbnp/font/Nokia.woff") format("woff");
src: url("./font/Nokia.woff") format("woff");
font-weight: normal;
font-style: normal;
}