Created
November 14, 2013 03:22
-
-
Save rn404/7460816 to your computer and use it in GitHub Desktop.
html template, riddle base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="Content-Style-Type" content="text/css"> | |
<meta http-equiv="Content-Script-Type" content="text/javascript"> | |
<title>new Document</title> | |
<meta name="description" content="#"> | |
<meta name="keywords" content="#"> | |
<meta name="viewport" content="width=device-width,user-scalable=0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"> | |
<meta name="format-detection" content="telephone=no"> | |
<link rel="apple-touch-icon" href="#"> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/3.7.2/build/cssreset/cssreset-min.css" type="text/css" media="all"> | |
<link rel="stylesheet" href="styles.css" type="text/css" media="all"> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<!-- | |
do your best! | |
--> | |
</div> | |
<script src="https://raw.github.com/zentooo/Riddle.js/develop/src/riddle-all.min.js"></script> | |
<script src="scripts.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function (_win, undefined) { | |
var touch = 'ontouchend' in _win, | |
_doc = _win.document, | |
evt = { | |
start : touch ? 'touchstart' : 'mousedown', | |
move : touch ? 'touchmove' : 'mousemove', | |
end : touch ? 'touchend' : 'mouseup' | |
}; | |
if ( typeof _doc.Func == 'undefined' ) return; | |
function Func () { | |
this.elm = { | |
}; | |
this.val = { | |
}; | |
this.init(); | |
}; | |
Func.prototype = { | |
init: function () { | |
// do your best! | |
} | |
}; | |
_win.func = new Func(); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment