-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
37 lines (35 loc) · 1003 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Link</title>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/global.js"></script>
<script src="js/LinkAI.js"></script>
<script src="js/dialog/Dialog.js"></script>
<link rel="stylesheet" href="css/global.css">
<?php
$files = scandir("js/dialog");
foreach($files as $file) {
if ($file != "." && $file != ".." && $file != "Dialog.js") {
?>
<script src="js/dialog/<?= $file ?>"></script>
<script>
linkDialogs.push(new <?= str_replace(".js", "", $file) ?>());
</script>
<?php
}
}
?>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="dialogs"></div>
<div id="manual-options">
<a href="javascript:void(0)" id="manual-input-link" onclick="showManualInput()">[Show manual input]</a>
<div style="display:none" id="manual-input-section">
<textarea id="manual-input"></textarea>
</div>
</div>
<button type="button" class="start-btn">Ready</button>
</body>
</html>