11<!doctype html>
22< html >
3- < head >
4- < title > Synth</ title >
5- < script src ="/static/fastclick/lib/fastclick.js "> </ script >
6- < script src ="/static/socket.io/node_modules/socket.io-client/socket.io.js "> </ script >
7- < style >
8- table , td , th {
9- border : 2px solid black;
10- }
11- td {
12- background-color : green;
13- }
14- </ style >
15- </ head >
16- < body >
17- < table width ="100% " height ="300px ">
18- < tr >
19- < td onclick ="play('A') "> </ td >
20- < td onclick ="play('B') "> </ td >
21- < td onclick ="play('C') "> </ td >
22- </ tr >
23- < tr >
24- < td onclick ="play('D') "> </ td >
25- < td onclick ="play('E') "> </ td >
26- < td onclick ="play('F') "> </ td >
27- </ tr >
28- < tr >
29- < td onclick ="play('G') "> </ td >
30- < td onclick ="play('C') "> </ td >
31- < td onclick ="play('C') "> </ td >
32- </ tr >
33- < tr >
34- < td onclick ="play('C') "> </ td >
35- < td onclick ="play('C') "> </ td >
36- < td onclick ="play('C') "> </ td >
37- </ tr >
38- </ table >
39- < script >
40- var socket = io ( ) ,
41-
42- play = function ( note ) {
43- socket . emit ( 'play' , note ) ;
44- } ;
45-
46- if ( 'addEventListener' in document ) {
47- document . addEventListener ( 'DOMContentLoaded' , function ( ) {
48- FastClick . attach ( document . body ) ;
49- } , false ) ;
50- }
51- </ script >
52- </ body >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > Synth | Torsk</ title >
6+ < script src ="/static/fastclick/lib/fastclick.js "> </ script >
7+ < script src ="/static/socket.io/node_modules/socket.io-client/socket.io.js "> </ script >
8+
9+ <!-- CSS -->
10+ < link href ="http://getbootstrap.com/dist/css/bootstrap.min.css " rel ="stylesheet ">
11+ < link href ="torsk.css " rel ="stylesheet ">
12+ </ head >
13+ < body >
14+
15+ < div class ="container ">
16+
17+ < div class ="jumbotron ">
18+ < h1 > Torsk-Synth! Play for Lofoten :)</ h1 >
19+ </ div >
20+
21+ < div class ="row marketing ">
22+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('C') "> C</ button >
23+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('B') "> H</ button >
24+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('A') "> A</ button >
25+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('G') "> G</ button >
26+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('F') "> F</ button >
27+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('E') "> E</ button >
28+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('D') "> D</ button >
29+ < button type ="button " class ="btn btn-default torsk-btn col-md-3 " onclick ="play('C5') "> C5</ button >
30+ </ div >
31+
32+ </ div >
33+ < script >
34+ if ( 'addEventListener' in document ) {
35+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
36+ FastClick . attach ( document . body ) ;
37+ } , false ) ;
38+ }
39+
40+ var socket = io ( ) ,
41+
42+ play = function ( note ) {
43+ socket . emit ( 'play' , note ) ;
44+ } ;
45+ </ script >
46+ </ body >
47+
5348</ html >
0 commit comments