This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·104 lines (92 loc) · 4.08 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
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<!--
This file is part of 'ti_jsemu_wrapper' - see https://github.com/TI-Planet/ti_jsemu_wrapper
LGPL3-licensed
-->
<title>Wrapper for TI's JavaScript calc emulators</title>
<meta name="robots" content="noindex, nofollow">
<meta charset="utf8"/>
<script type="text/javascript" src="js/zip/zip.js"></script>
<script type="text/javascript" src="js/zip/inflate.js"></script>
<script>
zip.workerScriptsPath = "js/zip/";
zip.useWebWorkers = (location.protocol != "file:") || (navigator.userAgent.indexOf("Firefox") > -1);
</script>
<script type="text/javascript" src="js/main.js"></script>
<link href="css/main.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="chooserWrapper">
<input type="file" accept=".jar" id="file-input">
<span id="initLoading">Loading...</span>
</div>
<div id="mainWrapper" class="middlecenter">
<div id="histo" class="middlecenter">
<ul id="list"></ul>
</div>
<div id="calculatorDivWrapper" class="middlecenter">
<div id="calculatorDiv" tabindex="0" class="calculatorDiv">
<div class="displayDiv" id="displayDiv">
<canvas id="display" class="display" width="320" height="240"></canvas>
</div>
<img id="hand" src="images/hand.png">
</div>
</div>
<div id="zoom" class="middlecenter">
<canvas id="zoomeddisplay" width="480" height="360"></canvas>
</div>
</div>
<div id="leftToolbar">
<button id="resetEmu">Reset emu</button>
<button id="clearKey" title="= Escape key">Clear active key</button>
</div>
<div id="rightToolbar">
<button id="start" disabled>Start display recording</button>
<button id="stop" disabled>Stop</button>
<button id="screenshot">Screenshot</button>
<label id="toggleHandLabel"><input id="toggleHand" type="checkbox"> Hand pointer </label>
<label id="toggleHistoLabel"><input id="toggleHisto" type="checkbox" checked> Key history </label>
<label id="toggleZoomLabel"><input id="toggleZoom" type="checkbox" checked> Zoomed display</label>
<label id="zoomValueLabel">: <span>1.5x</span> <input id="zoomValue" type="range" min="1" max="3" step="0.5" value="1.5" list="volsettings"></label>
<datalist id=volsettings><option>1</option> <option>1.5</option> <option>2</option> <option>2.5</option> <option>3</option> </datalist>
</div>
<script type="text/javascript" src="js/loader.js"></script>
<script type="text/javascript"> /* Very ugly workaround for the WebRTC no-local restriction */ cerror = console.error; console.error = console.warn;</script>
<script type="text/javascript" src="https://cdn.webrtc-experiment.com/screenshot.js"></script>
<script type="text/javascript" src="https://cdn.webrtc-experiment.com/RecordRTC.js"></script>
<script type="text/javascript"> /* Very ugly workaround for the WebRTC no-local restriction */ console.error = cerror;</script>
<script type="text/javascript">
var recorder = RecordRTC(document.getElementById('display'), {type: 'canvas'});
document.getElementById('start').onclick = function () {
recorder.startRecording();
document.getElementById('start').disabled = true;
setTimeout(function () {
document.getElementById('stop').disabled = false;
}, 1000);
};
document.getElementById('stop').onclick = function () {
this.disabled = true;
document.getElementById('start').disabled = false;
recorder.stopRecording(function (url) {
window.open(url);
});
};
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-66011708-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>