This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfskube.html
69 lines (54 loc) · 1.67 KB
/
fskube.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
<html ng-app="modemTestModule">
<head>
<meta name="viewport" content="width=device-width" />
<script src="scripts/bower_components/underscore/underscore.js"></script>
<script src="scripts/bower_components/angular/angular.js"></script>
<script src="release/fskube.js"></script>
<script src="scripts/main.js"></script>
<script>
Module.setLogLevels('fsk/0');
</script>
<style>
textarea {
width: 250px;
height: 200px;
}
.inbox {
position: relative;
}
.inboxBlocker {
position: absolute;
width: 100%;
height: 100%;
background-color: red;
text-align: center;
font-size: 5em;
}
</style>
</head>
<body ng-controller="MainCtrl">
<h1>zero counting@{{sampleRate}}hZ</h1>
<div class="outbox">
<stackmat state="stackmatState"></stackmat>
<textarea ng-model="rs232BytesJson"></textarea>
<textarea ng-model="eightN1bits"></textarea>
<button ng-click="play()">Play</button>
</div>
<hr>
Select input source
<select ng-model="source" ng-options="s group by 'Choose input' for s in sources"></select>
<button id="clear" ng-click="clear()">Clear</button>
<button id="saveSamples" ng-click="saveSamples()">{{ savingSamples ? "Stop saving samples" : "Save samples to blob" }}</button>
<div class="inbox">
<div ng-show="!hasMicrophone && source == 'Microphone'" class="inboxBlocker">Need microphone permission to receive!</div>
<textarea readonly>{{receivedBits}}</textarea>
<textarea readonly>{{receivedMessageJson()}}</textarea>
<stackmat readonly="true" state="receivedStackmatState"></stackmat>
</div>
<ul>
<li ng-repeat="sampleFile in sampleFiles">
<a href="{{ sampleFile }}">{{ sampleFile }}</a>
</li>
</ul>
</body>
</html>