Skip to content

Commit 92bb4b1

Browse files
author
Chad Hart
committed
adapter.js bug workaround, use strict, external ref to adapter.js, fav.ico
1 parent e671b1a commit 92bb4b1

File tree

3 files changed

+14
-563
lines changed

3 files changed

+14
-563
lines changed

index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>WebRTC Camera Resolution Finder</title>
77
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
9-
9+
<link rel="shortcut icon" href="https://webrtchacks.com/wp-content/themes/parament/favicon.ico">
1010
<style>
1111
.row {
1212
margin-left: 10px;
@@ -58,18 +58,21 @@ <h4>Click one of the buttons below to find camera resolutions:</h4>
5858
<video id="video" autoplay></video>
5959
</div>
6060
<div class="row">
61+
<p id="jump" hidden>Jump to <a href="#bottom">bottom</a> of table</p>
6162
<table class="table-condensed table-bordered table-striped" id="results" hidden >
6263
<tr><th>Browser</th><th>Device</th><th>Res Name</th><th>Ratio</th><th>Ask</th><th>Actual</th><th>Status</th><th class="hidden">deviceIndex</th><th class="hidden">resIndex</th></tr>
6364
</table>
6465
<h5 class="pfin" hidden><a href=".">Refresh</a> to run test again with same or different parameters (you'll lose the table above). </h5>
6566
<h5 class="pfin" hidden>Export results to a CSV file here: <a id="csvOut" href="#" class="btn btn-link btn-md">gumResTestExport.csv</a></h5>
6667
</div>
68+
<div id="bottom"></div>
6769
<div class="row">
6870
<h4>Visit <a href="http://webrtchacks.com">webrtcHacks.com</a> for more details.</h4>
6971
</div>
7072
</div>
7173
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
72-
<script src="js/adapter.js"></script> <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
74+
<!--script src="js/adapter.js"></script> <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
75+
<script src="https://webrtc.github.io/samples/src/js/adapter.js"></script>
7376
<script src="js/resolutionScan.js"></script>
7477
</body>
7578
</html>

0 commit comments

Comments
 (0)