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
2019-11-05 12:25:32 +01:00

33 lines
815 B
PHP

<?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");
echo "
$(document).ready(function() {
$('select').material_select();
});
function updateGrade() {
$('select').material_select('destroy');
window.setTimeout(partB,50);
}
function partB(){
$(document).ready(function() {
$('select').material_select();
});
}
if('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js');
});
}
</script>
";