This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
164 lines (143 loc) · 5.6 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
require_once 'vendor/autoload.php';
require_once 'api/ArcadeFileLister.php';
require_once 'api/mongo/MongoArcadeClient.php';
?>
<!DOCTYPE html>
<html>
<head>
<link href="assets/fonts/pocket/pocket.css" rel="stylesheet" type="text/css"/>
<link href="assets/fonts/upheaval/upheaval.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css" integrity="sha256-PHcOkPmOshsMBC+vtJdVr5Mwb7r0LkSVJPlPrp/IMpU=" crossorigin="anonymous" />
<link href="dist/css/arcade-ui.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
<?php
# Make a new client
$client = new Arcade\MongoClient("api/config/mongo_connect_file");
# Print out the connection string
print($client->getJSON());
?>
</script>
<?php $client->printVideoPreloadHTML(); ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<script src="source/js.min.js"></script>
</head>
<body>
<video id="background-video" autoplay muted>
<source id="background-source" src="assets/video/games-showreel.mp4" type="video/mp4">
</video>
<article class="start screen">
<img class="splash" src="assets/images/press-start.png"/>
<h3>Use the joystick to navigate</h3>
</article>
<article class="menu screen hidden">
<img class="header" src="assets/images/research-arcade-header.png"/>
<ul class="centered">
<li :class="{ 'active': index == currentIndex }" v-for="(item, index) in items">{{ item.title }}</li>
</ul>
<p v-html="arcade.main_menu.html">
</p>
</article>
<article class="credits screen hidden">
<section class="credits">
<article>
<header>
<img class="credits-header" src="assets/images/research-arcade-header.png"/>
<p v-html="credits_header">
</p>
</header>
<ul v-for="(value, key) in credits">
<li class="title">{{ key }}</li>
<li v-for="entry in value">{{ entry }}</li>
</ul>
</article>
</section>
<button class="key info primary">
<kbd>B</kbd> Go back
</button>
</article>
<article class="games screen hidden" @keyup.right="right">
<button class="chevron left">
<span v-show="currentIndex > 0"><</span>
</button>
<section :data-target-path="currentGame.path" class="game">
<figure>
<img :src="currentGame.imagePath"/>
</figure>
<aside>
<span class="wrapper">
<h1>{{ currentGame.title }}</h1>
<h2>
{{ currentGame.genre }} <span>|</span>
{{ currentGame.players | formatPlayers }} <span>|</span>
{{ currentGame.author }}
</h2>
<p>
{{ currentGame.description }}
</p>
<section class="buttons">
<button class="key info secondary">
<kbd><span>B</span></kbd> Back
</button>
<button class="key info primary">
<kbd><span>A</span></kbd> Play
</button>
</section>
</span>
</aside>
</section>
<button class="chevron right">
<span v-show="currentIndex < (games.length - 1)">></span>
</button>
</article>
<article class="about screen hidden">
<article>
<h1>About</h1>
<span v-html="html">
</span>
</article>
<figure>
<img :src="qr_path"/>
</figure>
<section class="buttons">
<button class="key info primary">
<kbd><span>B</span></kbd> Back
</button>
</buttons>
</article>
<!-- <article class="debug screen hidden">
<aside class="info">
<nav>
<?php echo date("h:i:s") . " (refresh)"; ?><br>
{{ timeStr }}<br>
{{ heapStr }}
</nav>
<ul>
<li :click="item" v-for="(item, index) in items">{{ index }}</li>
</ul>
</aside>
<pre class="console">
Here is some
random text
</pre>
</article> -->
<kbd class="version-info hidden">
version <span>5.23</span> |
last updated
<span>
<?php
$timestamp = filemtime(__FILE__);
$date = date('d-m-Y H:i:s', $timestamp);
print($date);
?>
</span> |
last refreshed
<span>
<?php
$date = date('d-m-Y H:i:s', time());
print($date);
?>
</span>
</kbd>
</body>
</html>