2020-06-12 19:17:41 +02:00
|
|
|
<?php if (isset($jsFiles)) : ?>
|
|
|
|
<?php foreach ($jsFiles as $jsFile) : ?>
|
|
|
|
<?php
|
|
|
|
if (!preg_match('/^http(s)?/', $jsFile)) {
|
|
|
|
$jsFile = $_ENV['STATIC_ROOT'] . '/' . $jsFile . '?rev=' . REVISION;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<script src="<?= $jsFile ?>"></script>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endif; ?>
|
2020-05-31 03:50:06 +02:00
|
|
|
<script>
|
2020-06-09 23:00:07 +02:00
|
|
|
(function () {
|
|
|
|
var anchors = document.getElementsByTagName('a');
|
|
|
|
for (var i = 0; i < anchors.length; i++) {
|
|
|
|
var a = anchors[i];
|
2020-06-10 00:40:47 +02:00
|
|
|
if (a.href !== 'javascript:;' && a.target !== '_blank') {
|
2020-06-09 23:00:07 +02:00
|
|
|
a.onclick = function () {
|
|
|
|
document.getElementById('loading').style.visibility = 'visible';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})();
|
2020-05-31 03:50:06 +02:00
|
|
|
</script>
|
2020-05-31 00:21:29 +02:00
|
|
|
</body>
|
|
|
|
</html>
|