-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
executable file
·91 lines (71 loc) · 2.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
function critical_css($path = '/assets/dist/critical.css') {
$critical = __DIR__ . $path;
if ( file_exists($critical) ) {
$critical_css = file_get_contents($critical);
echo '<style type="text/css" id="critical-css">' . $critical_css . '</style>';
}
}
function print_list_items($count) {
for ($i = 0; $i < $count; $i++) {
echo '<li></li>';
}
}
function print_grid_items($count) {
for ($i = 0; $i < $count; $i++) {
echo '<span></span>';
}
}
function print_tree() {
echo '<div class="tree__top"></div>';
echo '<div class="tree__middle"></div>';
echo '<div class="tree__bottom"></div>';
}
function print_part($name, $count) {
for ($i = 0; $i < $count; $i++) {
echo '<div class="' . $name . ' ' . $name . '--' . ($i + 1) . '"></div>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<?php critical_css(); ?>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="assets/dist/app.css">
<script>
(function(d, h, m){
var js, fjs = d.getElementsByTagName(h)[0];
if (d.getElementById(m)){return;}
js = d.createElement(h); js.id = m;
js.onload = function(){
window.makerWidgetComInit({
position: "left",
widget: "egtvfprlpcdjg1i4-8syknhxgseddkfli-j45otk13qspl7fts"
})};
js.src = "https://makerwidget.com/js/embed.js";
fjs.parentNode.insertBefore(js, fjs)
}(document, "script", "dhm"))
</script>
</head>
<body>
<html-head-component src="./assets/scripts/meta.json" hidden></html-head-component>
<div class="wrapper">
<div id="got" class="scene">
<?php include_once('components/jon-snow.php'); ?>
<?php include_once('components/white-walker.php'); ?>
<?php include_once('components/clouds.php'); ?>
<?php include_once('components/sky.php'); ?>
<?php include_once('components/snowflakes.php'); ?>
<?php include_once('components/wall.php'); ?>
<?php include_once('components/landscape.php'); ?>
</div>
<social-links style="color: #3d6b7a; display: block;"></social-links>
</div>
<script src="assets/dist/app.js"></script>
</body>
</html>