/
index.html
90 lines (82 loc) · 3.12 KB
/
index.html
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
<html>
<head>
<title>Phonolog.js</title>
<script src="script/lib/jquery-1.8.2.min.js"></script>
<script src="script/lib/recorderjs/recorder.js"></script>
<script src="script/main.js"></script>
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
margin: 10px;
}
.textInput{
width: 150px;
height: 30px;
}
.operation{
display: inline block;
float: left;
margin: 5px;
}
</style>
</head>
<body>
<div id="shown">
Awaiting permission...
</div>
<div id="hidden" style="display:none">
<a id="record-toggle" href="#">Click me to record.</a><br/><br/></br>
Play back using the audio exported to a WAV blob & the <audio> tag.<br/>
<audio id="recorded-audio" controls="controls">
</audio><br/><br/>
</div>
<div>
<a id="1" href="#">1</a>
<a id="2" href="#">2</a>
<a id="3" href="#">3</a>
<a id="4" href="#">4</a>
</div>
<a id="webaudio-playback" href="#">Click me to play back using Web Audio.</a>
</br>
<div>
<div id='creation' class='operation'>
<h2>Wanna create a file?</h2>
<a id="createFile" href="#">Create File</a>
<input id="createFileInput" class="textInput" type="text" placeholder="fileYouFinnaCreate.dawg">
<h2>How about a directory?</h2>
<a id="createDirectory" href="#">Create Directory</a>
<input id="createDirectoryInput" class="textInput" type="text" placeholder="fileYouFinnaCreate.dawg">
</div>
<div id="reading" class='operation'>
<h2>Wanna read one of those files?</h2>
<a id="readFile" href="#">Read File</a>
<input id='readFileInput' class="textInput" type='text' placeholder='fileYouFinnaRead.mayne'>
<h2>Wanna check out a directory?</h2>
<a id="readDirectory" href="#">Read Directory</a>
<input id='readDirectoryInput' class="textInput" type='text' placeholder='fileYouFinnaRead.mayne'>
</div>
<div id="writing" class='operation'>
<h2>Tryna write to a file?</h2>
<a id="write" href="#">Write File</a>
<input id='writeFileName' class="textInput" type='text' placeholder='fileYouFinnaWrite.bruh'>
<input id="writeInput" class="textInput" type='text' placeholder='stuffYouFinnaWrite'>
</div>
<br>
<div id="deletion" class='operation'>
<h2>Wanna delete a file?</h2>
<a id="deleteFile" href="#">deleteFile</a>
<input id='deleteInput' class="textInput" type='text' placeholder='fileYouFinnaDelete.sah'>
<h2>Wanna delete a directory (be careful!)</h2>
<a id="deleteDirectory" href="#">
<input id='deleteDirectory' class="textInput" type='text' placeholder='fileYouFinnaDelete.sah'>
</div>
<div id="uploads" class='operation'>
<h2>Whaddaya wanna upload, my dude?</h2>
<input type="file" id="myfile" multiple />
</div>
</div>
</body>
</html>