fixing auto loading theme bugs and moving db and theme config to index.html
This commit is contained in:
1 parent
c632242ac2
commit
b2a9bb0194
7 files changed
+40
-947
No files matched your search
+18
-2
@@ -30,7 +30,7 @@ $(window).load(function(){
|
||||
</head>
|
||||
|
||||
<!-- The initialization below is duplicative if autoloading a theme. -->
|
||||
<!-- <body onload="initCalc(true)"> -->
|
||||
<body onload="initCalc(true)">
|
||||
|
||||
<div id="loader"></div>
|
||||
<canvas id="canv"></canvas>
|
||||
@@ -58,7 +58,7 @@ $(window).load(function(){
|
||||
<div id="inputArea">
|
||||
<input id="queryDBbtn" class="hideValue" type="button" onclick="queryDatabase()" value="Query">
|
||||
<input id="phraseBox" autofocus type="text" spellcheck="false" autocomplete="off" oninput="updateEnabledCipherTable(); updateWordBreakdown(breakCipher,false,false);" onkeydown="phraseBoxKeypress(event.keyCode)" ondrop="dropHandler(event)" ondragover="dragOverHandler(event)">
|
||||
<input id="enterPhraseBtn" class="hideValue" type="button" onclick="phraseBoxKeypress(13);document.getElementById('phraseBox').focus()" value="✎">
|
||||
<input id="enterPhraseBtn" type="button" onclick="phraseBoxKeypress(13);document.getElementById('phraseBox').focus()" value="✎">
|
||||
<input id="highlightBox" type="text" spellcheck="false" autocomplete="off"><span id="clearFilterButton"></span>
|
||||
</div>
|
||||
|
||||
@@ -96,4 +96,20 @@ $(window).load(function(){
|
||||
<script src="calc/coderain.js"></script>
|
||||
<script src="lib/html2canvas.min.js"></script>
|
||||
|
||||
<!-- AUTO LOAD THEME -->
|
||||
<!-- To change the theme, uncomment the script below -->
|
||||
|
||||
<!-- <script>
|
||||
var theme = loadFile('theme/white-interface.js');
|
||||
importFileAction(theme, true);
|
||||
</script> -->
|
||||
|
||||
<!-- AUTO LOAD DATABASE (DB) -->
|
||||
<!-- To change the word matching database, reference a differnt file in the script below or append lined to db.txt -->
|
||||
|
||||
<script>
|
||||
var database = loadFile('db.txt');
|
||||
importFileAction(database, true);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
Reference in new issue
Block a user