Get rid of version in js files.

This commit is contained in:
Oleg Sh
2024-08-13 20:15:05 +02:00
parent 6d0f0f9ab7
commit 430a5a4a1c
8 changed files with 24 additions and 17 deletions

View File

@@ -17,6 +17,11 @@
<!-- extraPacker -->
<meta name="robots" content="noindex, nofollow">
<script>
// Global version needs to force reload scripts from server.
globalVersion = <?= $g_config['engine_version'] ?>;
</script>
</head>
<body>
<?php IncludeCom('admin/admin_menu', array('menu' => $menu, 'logo' => $logo))?>

View File

@@ -34,12 +34,15 @@
<!-- extraPacker -->
<script>
var now = new Date();
var Dec015_2019_start = new Date(2019,11,15,12,0,0,0);
var Dec015_2019_stop = new Date(2019,11,15,12,30,0,0);
if( now > Dec015_2019_start && now < Dec015_2019_stop) {
window.location.href = '/blackout/index.html';
}
var now = new Date();
var Dec015_2019_start = new Date(2019,11,15,12,0,0,0);
var Dec015_2019_stop = new Date(2019,11,15,12,30,0,0);
if( now > Dec015_2019_start && now < Dec015_2019_stop) {
window.location.href = '/blackout/index.html';
}
// Global version needs to force reload scripts from server.
globalVersion = <?= $g_config['engine_version'] ?>;
</script>
</head>
<body>