-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboth.haml
More file actions
19 lines (19 loc) · 817 Bytes
/
both.haml
File metadata and controls
19 lines (19 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%html
%head
%meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'}
:css
*{margin:0;padding:0;border:none;background:#000;}
html{height:100%}
body{width:100%; height:100%;}
#left,#right{position:absolute;top:0;height:100%;width:50%}
#left{left:0}
#right{left:50%;}
:javascript
var _prevent = function(){
document.addEventListener('touchstart', function(e){e.preventDefault();}, false);
document.addEventListener('touchend', function(e){e.preventDefault();}, false);
document.addEventListener('touchmove', function(e){e.preventDefault();}, false);
}
%body{:onload => '_prevent()'}
%iframe#left{:src => 'fade/index.html'}
%iframe#right{:src => 'mesh/index.html'}