-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·70 lines (59 loc) · 2.23 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
<body <?php body_class('no-js fonts-loading'); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app" class="wrapper" data-barba="wrapper" data-scroll>
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
<div class="shutter shutter--container">
<div class="shutter__move shutter__move--scroll-locked">
<div class="shutter__content" data-src="/app/themes/KeleyOnMars/dist/animations/loading.json">
</div>
</div>
</div>
<div class="lines">
<span class="lines__date" id="styledDate">
_GALAXY <span><?php the_time('Y-m-d') . 'T' . the_time('H:i:s'); ?></span>
</span>
<?php echo (get_svg('images.svg.dots-round', ['class' => 'lines__doted'])); ?>
<?php echo (get_svg('images.svg.circle', ['class' => 'lines__circle'])); ?>
<?php echo (get_svg('images.svg.large-circle', ['class' => 'lines__circle lines__circle--larger'])); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
<svg width="300" height="250">
<!-- definitions -->
<defs>
<!-- identify the filter-->
<filter id="blurFilter">
<!-- filter processes -->
<feGaussianBlur in="SourceGraphic" stdDeviation="2" /><!-- stdDeviation is amount of blur -->
</filter>
</defs>
</svg>
<script>
// inline loadJS
function loadJS(e, t) {
"use strict";
var n = window.document.getElementsByTagName("script")[0],
o = window.document.createElement("script");
return o.src = e, o.async = !0, n.parentNode.insertBefore(o, n), t && "function" == typeof t && (o.onload = t), o
}
// then load your JS
if (sessionStorage.getItem('fonts-loaded')) {
// fonts cached, add class to document
document.documentElement.classList.remove('fonts-loading');
} else {
// load script with font observing logic
loadJS("<?php get_theme_file_uri('/dist/scripts/font-css-async.js') ?>");
}
</script>
</body>
</html>