Move script tags inside html tag

Fixes #863

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-11-10 13:51:14 -05:00
parent 738cf0479f
commit 3b635e0245
13 changed files with 36 additions and 40 deletions
+3 -2
View File
@@ -82,8 +82,9 @@
</div>
</div>
</div>
<script src="scripts/pi-hole/js/auditlog.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/auditlog.js"></script>
+4 -4
View File
@@ -62,10 +62,10 @@ $token = $_SESSION['token'];
</div>
</div>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_graph.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
+4 -4
View File
@@ -138,10 +138,10 @@ else
<!-- /.col -->
</div>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_lists.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
+3 -4
View File
@@ -176,11 +176,10 @@ $token = $_SESSION['token'];
</div>
<!-- /.row -->
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_queries.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_queries.js"></script>
+2 -3
View File
@@ -17,9 +17,8 @@
<button class="btn btn-lg btn-primary btn-block" id="debugBtn">Generate debug log</button>
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>
<script src="scripts/pi-hole/js/debug.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/debug.js"></script>
+2 -3
View File
@@ -25,9 +25,8 @@
<button class="btn btn-lg btn-primary btn-block" id="gravityBtn">Update</button>
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>
<script src="scripts/pi-hole/js/gravity.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/gravity.js"></script>
+3 -2
View File
@@ -348,8 +348,9 @@ else
</div>
<!-- /.row -->
<?php } ?>
<script src="scripts/pi-hole/js/index.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/index.js"></script>
+2 -2
View File
@@ -71,8 +71,8 @@ function getFullName() {
<ul class="list-group" id="list-regex"></ul>
<?php } ?>
<script src="scripts/pi-hole/js/list.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/list.js"></script>
+3 -3
View File
@@ -165,9 +165,9 @@ if(strlen($showing) > 0)
</div>
<!-- /.row -->
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/pi-hole/js/queries.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/pi-hole/js/queries.js"></script>
+2 -3
View File
@@ -23,9 +23,8 @@
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>
<script src="scripts/pi-hole/js/queryads.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/queryads.js"></script>
+4 -4
View File
@@ -1369,11 +1369,11 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
</div>
</div>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/jquery.inputmask.js"></script>
<script src="scripts/vendor/jquery.inputmask.extensions.js"></script>
<script src="scripts/vendor/jquery.confirm.min.js"></script>
<script src="scripts/pi-hole/js/settings.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
+2 -3
View File
@@ -16,9 +16,8 @@
<pre id="output" style="width: 100%; height: 100%; max-height:650px; overflow-y:scroll;"></pre>
<div class="checkbox"><label><input type="checkbox" name="active" checked id="chk2"> Automatic scrolling on update</label></div>
<script src="scripts/pi-hole/js/taillog-FTL.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/taillog-FTL.js"></script>
+2 -3
View File
@@ -16,9 +16,8 @@
<pre id="output" style="width: 100%; height: 100%; max-height:650px; overflow-y:scroll;"></pre>
<div class="checkbox"><label><input type="checkbox" name="active" checked id="chk2"> Automatic scrolling on update</label></div>
<script src="scripts/pi-hole/js/taillog.js"></script>
<?php
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/pi-hole/js/taillog.js"></script>