Optimized scripts execution

This commit is contained in:
Divlo 2019-10-04 23:26:46 +02:00
parent 0309cd9d87
commit 7265165167
3 changed files with 16 additions and 16 deletions

View File

@ -4,5 +4,15 @@
<div class="footer-text"><a href="https://divlo.fr/" target="_blank">Divlo</a> | Tous droits réservés</div> <div class="footer-text"><a href="https://divlo.fr/" target="_blank">Divlo</a> | Tous droits réservés</div>
</footer> </footer>
<!-- Scripts JS -->
<script defer src="/scripts/libs/jquery-min.js"></script>
<script defer src="/scripts/libs/bootstrap-min.js"></script>
<script defer src="/scripts/libs/moment.js"></script>
<script defer src="/scripts/libs/jquery-ui-min.js"></script>
<script defer src="/scripts/libs/bootstrap-datepicker-min.js"></script>
<script defer src="/scripts/variables.js"></script>
<script defer src="/scripts/fonctions_annexes.js"></script>
<script defer src="/scripts/fonctions_principales.js"></script>
<script defer src="/scripts/main.js"></script>
</body> </body>
</html> </html>

View File

@ -30,22 +30,12 @@
<meta name="twitter:image:src" content="<?php echo $image?>"> <meta name="twitter:image:src" content="<?php echo $image?>">
<meta name="twitter:creator" content="@Divlo_FR"> <meta name="twitter:creator" content="@Divlo_FR">
<!-- Frameworks and Tools --> <!-- Styles CSS -->
<script src="/scripts/libs/jquery-min.js"></script>
<link rel="stylesheet" href="/css/libs/bootstrap-min.css"> <link rel="stylesheet" href="/css/libs/bootstrap-min.css">
<script src="/scripts/libs/bootstrap-min.js"></script> <link rel="stylesheet" href="/css/libs/bootstrap-datepicker3.css">
<script src="/scripts/libs/moment.js"></script> <link rel="stylesheet" href="/css/libs/fonts.css">
<link rel="stylesheet" href="/css/libs/bootstrap-datepicker3.css"/> <link rel="stylesheet" href="/css/libs/fontawesome/css/all.css">
<script src="/scripts/libs/jquery-ui-min.js"></script> <link rel="stylesheet" href="/css/style.css">
<script src="/scripts/libs/bootstrap-datepicker-min.js"></script>
<link href="/css/libs/fonts.css" rel="stylesheet">
<link rel="stylesheet" href="/css/libs/fontawesome/css/all.css"/>
<script src="/scripts/variables.js"></script>
<script src="/scripts/fonctions_annexes.js"></script>
<script src="/scripts/fonctions_principales.js"></script>
<script src="/scripts/main.js"></script>
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head> </head>
<body> <body>

View File

@ -115,7 +115,7 @@ function isValidDate(s) {
let msToVerifyDate = Date.parse(splitedToVerifyDate); let msToVerifyDate = Date.parse(splitedToVerifyDate);
// Date courante // Date courante
let currentDate = dateTimeUTC(0); let currentDate = dateTimeUTC('0');
currentDate = currentDate.substr(0,10); currentDate = currentDate.substr(0,10);
let currentDateSplited = currentDate.split('/'); let currentDateSplited = currentDate.split('/');
let currentDateFormat = currentDateSplited[2] + '-' + currentDateSplited[1] + '-' + currentDateSplited[0]; let currentDateFormat = currentDateSplited[2] + '-' + currentDateSplited[1] + '-' + currentDateSplited[0];