Moved main.min.js to head

This commit is contained in:
Kasper Rynning-Tønnesen
2016-05-07 12:43:20 +02:00
parent 59d764fea8
commit fff7fde13b
6 changed files with 10 additions and 17 deletions

View File

@@ -268,14 +268,9 @@
</div> </div>
</div> </div>
<div id="playbar"> <div id="playbar">
</div> </div>
</main> </main>
<?php include("php/footer.php"); ?> <?php include("php/footer.php"); ?>
<div id="scripts">
</div>
<script type="text/javascript" src="/static/dist/main.min.js"></script>
</body> </body>
</html> </html>

View File

@@ -42,4 +42,5 @@
<script type="text/javascript" src="/static/dist/lib/jquery.lazyload.js"></script> <script type="text/javascript" src="/static/dist/lib/jquery.lazyload.js"></script>
<script type="text/javascript" src="/static/dist/lib/color-thief.js"></script> <script type="text/javascript" src="/static/dist/lib/color-thief.js"></script>
<script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha256.js"></script> <script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha256.js"></script>
<script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script> <script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script>
<script type="text/javascript" src="/static/dist/main.min.js"></script>

View File

@@ -172,8 +172,5 @@ if(isset($_GET['chan'])){
</main> </main>
<?php include("php/footer.php"); ?> <?php include("php/footer.php"); ?>
<div id="scripts">
<script type="text/javascript" src="static/dist/main.min.js"></script>
</div>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@@ -560,10 +560,10 @@ function onepage_load(){
$("main").attr("class", "center-align container"); $("main").attr("class", "center-align container");
$("body").attr("id", ""); $("body").attr("id", "");
$("body").attr("style", ""); $("body").attr("style", "");
$("header").html($($(e)[59]).html()); $("header").html($($(e)[61]).html());
$($(e)[61]).insertAfter("header"); $($(e)[63]).insertAfter("header");
$($(e)[63]).insertAfter(".mega"); $($(e)[65]).insertAfter(".mega");
$("main").html($($(e)[67]).html()); $("main").html($($(e)[69]).html());
$(".page-footer").removeClass("padding-bottom-extra"); $(".page-footer").removeClass("padding-bottom-extra");
$(".page-footer").removeClass("padding-bottom-novideo"); $(".page-footer").removeClass("padding-bottom-novideo");
$("#favicon").attr("href", "static/images/favicon.png"); $("#favicon").attr("href", "static/images/favicon.png");

View File

@@ -244,8 +244,8 @@ var Nochan = {
$(".mobile-search").remove(); $(".mobile-search").remove();
$("main").attr("class", "container center-align main"); $("main").attr("class", "container center-align main");
$("body").attr("id", "channelpage"); $("body").attr("id", "channelpage");
$("header").html($($(e)[59]).html()); $("header").html($($(e)[61]).html());
$("main").html($($(e)[63]).html()); $("main").html($($(e)[65]).html());
$("#search").attr("placeholder", "Find song on YouTube..."); $("#search").attr("placeholder", "Find song on YouTube...");
$(".page-footer").addClass("padding-bottom-novideo"); $(".page-footer").addClass("padding-bottom-novideo");
if($("#alreadychannel").length == 1){ if($("#alreadychannel").length == 1){