optimize code, move main.css

This commit is contained in:
Felix Schulze 2019-11-06 14:32:34 +01:00
parent fa406d6dcb
commit bd2bc9e2cd
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<?php
echo "
</form>
<a type='button' class='btn btn-primary btn-mini add_row' style='color:#fff;display:block; width:85%; margin:10px auto 0;' onClick='setTimeout(updateGrade(), 5000);'>Lägg till Kurs</a>
<a type='button' class='btn btn-primary btn-mini add_row' style='color:#fff;display:block; width:85%; margin:10px auto 0;' onClick='updateGrade();'>Lägg till Kurs</a>
<form onSubmit='return false;' style='display:table; margin:auto;'>
<h5>Meritpoäng:</h5>
<input class='meritpoint' style='width:29px; position:static;' value='0' type='number' step='0.5' min='0' max='2.5'>

View File

@ -19,11 +19,11 @@ echo "
<link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src='assets/js/modernizer-webp.js'></script>
<link rel='stylesheet' async href='assets/css/main.min.css'>
<link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'>
<link disabled class='lateLoader' rel='stylesheet' defer href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link rel='stylesheet' defer href='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css'>
<script data-ad-client='ca-pub-5143923140938916' defer src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<link rel='stylesheet' async href='assets/css/main.min.css'>
<!--[if lt IE 9]>
<script src='https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js'></script>

View File

@ -17,7 +17,7 @@ $(document).ready(function() {
function updateGrade() {
$('select').material_select('destroy');
window.setTimeout(partB,50);
window.setTimeout(partB,0);
}
function partB(){
$(document).ready(function() {