-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
76 lines (64 loc) · 2.05 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
<?php
// load files from audio/
$handle = opendir("audio/");
$files = array();
while (($file = readdir($handle)) !== false) {
if ($file != "." && $file != "..") {
array_push($files, $file);
}
}
closedir($handle);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Crosswrite</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.hotkeys.js" type="text/javascript"></script>
<script src="js/config.js" type="text/javascript" charset="utf-8"></script>
<script src="js/crosswrite.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<h1>Crosswrite</h1>
<div id="page">
<sidebar>
<h2>Files</h2>
<ul id="files">
<?php foreach ($files as $file) { ?>
<li><?php echo $file; ?></li>
<?php } ?>
</ul>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
<input name="audiofile" type="file" />
<input type="submit" value="Upload File" class="button" />
</form>
</sidebar>
<article>
<section id="audio_container">
<h2>No file loaded.</h2>
<audio id="audio" src="your_audio.mp3" controls="true"></audio>
</section>
<section>
<textarea id="transcript" name="transcript"></textarea>
</section>
<small>
<ul>
<li><b>Play/pause:</b> shift+space</li>
<li><b>Rewind 5 seconds:</b> ctrl+j</li>
<li><b>Fast forward 5 seconds:</b> ctrl+k</li>
<li><b>Rewind 30 seconds:</b> ctrl+h</li>
<li><b>Fast forward 30 seconds:</b> ctrl+l</li>
<li><b>Jump to beginning:</b> ctrl+0</li>
<li><b>Jump to end:</b> ctrl+9</li>
<li><b>Increase volume:</b> ctrl+1</li>
<li><b>Decrease volume:</b> ctrl+2</li>
</ul>
</small>
<div id="error">Error saving text.</div>
</article>
</div>
</body>
</html>