This repository has been archived on 2023-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
meritkollen/html/include/html_script_bottom_head.php

34 lines
857 B
PHP
Raw Normal View History

2019-09-17 23:02:41 +02:00
<?php
echo "
<script>
";
readfile("https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js");
readfile("https://code.getmdl.io/1.3.0/material.min.js");
readfile("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/js/materialize.min.js");
readfile("assets/js/loader.min.js");
readfile("assets/js/calcscript.js");
readfile("assets/js/changeall.js");
readfile("assets/js/sparabetyg.js");
2019-11-05 11:24:51 +01:00
readfile("assets/js/modernizer-webp.js");
echo "
2019-09-17 23:02:41 +02:00
$(document).ready(function() {
$('select').material_select();
});
function updateGrade() {
$('select').material_select('destroy');
window.setTimeout(partB,50);
}
function partB(){
$(document).ready(function() {
$('select').material_select();
});
}
2019-11-04 23:27:32 +01:00
if('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js');
});
}
2019-09-17 23:02:41 +02:00
</script>
";