git.haldean.org sousvide / 47f0f09
Some fixes for mobile clients. Will Haldean Brown 8 years ago
5 changed file(s) with 21 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
Binary diff not shown
static/finished.wav less more
Binary diff not shown
11 <html>
22 <head>
33 <title>sousvide</title>
4 <link rel="stylesheet" media="screen and (min-device-width: 800px)" href="screen.css" />
45 <style>
56 body {
67 font-family: 'Source Sans Pro', sans-serif;
7 margin: 50px 50px;
8 max-width: 600px;
8 margin: 50px;
99 font-size: 14pt;
1010 }
1111
8282 position: relative;
8383 top: -1px;
8484 }
85
86 #enable_audio {
87 margin-top: 12pt;
88 font-size: 22pt;
89 }
8590 </style>
8691 <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro' rel='stylesheet' type='text/css'>
8792
101106 <input type="text" name="s" placeholder="SS" class="time">
102107 <input type="submit" value="save">
103108 </form>
104 <audio id="timernoise" src="/finished.wav" preload="auto" volume="1"></audio>
109 <input type="submit" value="enable timer audio" id="enable_audio">
110 <audio id="timernoise" src="/finished.ogg" preload="auto" volume="1"></audio>
105111 </section>
106112 <section>
107113 <h2>status</h2>
0 body {
1 max-width: 600px;
2 }
3
4 #enable_audio {
5 display: none;
6 }
139139
140140 timerElem = document.getElementById('timers')
141141 timerAudio = document.getElementById('timernoise')
142 audioEnable = document.getElementById('enable_audio')
143 audioEnable.onclick = function() {
144 $(audioEnable).css('display', 'none')
145 timerAudio.play()
146 }
142147 getTimerData()
143148 })