summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-14 09:32:45 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-14 09:33:21 -0500
commitfd81c33c904ac13e66a1c6f945be05f8b4599b9e (patch)
treec76d14f5500c5104a636deb06196abccc4b478f0
parentc6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b (diff)
downloadhtml5ks-fd81c33c904ac13e66a1c6f945be05f8b4599b9e.tar.xz
html5ks-fd81c33c904ac13e66a1c6f945be05f8b4599b9e.zip
Add fastclick
-rw-r--r--.gitmodules3
m---------fastclick0
-rw-r--r--www/index.html11
-rw-r--r--www/js/html5ks.js1
l---------www/js/lib/fastclick1
5 files changed, 11 insertions, 5 deletions
diff --git a/.gitmodules b/.gitmodules
index 697d19b..2cc00d1 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule "when"]
path = when
url = https://github.com/cujojs/when
+[submodule "fastclick"]
+ path = fastclick
+ url = https://github.com/ftlabs/fastclick.git
diff --git a/fastclick b/fastclick
new file mode 160000
+Subproject 57d35f73ca54e31ee37161e32f6ac11786f520d
diff --git a/www/index.html b/www/index.html
index dafc342..509f6b5 100644
--- a/www/index.html
+++ b/www/index.html
@@ -6,17 +6,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<title class="window_name">Katawa Shoujo</title>
<script>
- window.define = function(factory) {
- try{ delete window.define; } catch(e){ window.define = void 0; } // IE
- window.when = factory();
- };
- window.define.amd = {};
+ window.define = function(factory) {
+ try{ delete window.define; } catch(e){ window.define = void 0; } // IE
+ window.when = factory();
+ };
+ window.define.amd = {};
</script>
<link rel="shortcut icon" type="image/png" href="dump/ui/icon.png">
<link rel="apple-touch-icon" href="dump/ui/icon.png">
<link rel="stylesheet" type="text/css" href="css/anim.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script src="js/lib/when/when.js"></script>
+ <script src="js/lib/fastclick/lib/fastclick.js"></script>
<script src="js/lib/modernizr-build.js"></script>
<script src="js/all.min.js"></script>
</head>
diff --git a/www/js/html5ks.js b/www/js/html5ks.js
index 25b7c23..8c2c679 100644
--- a/www/js/html5ks.js
+++ b/www/js/html5ks.js
@@ -161,6 +161,7 @@ window.html5ks = {
}
},
onload: function () {
+ FastClick.attach(document.body);
this.initElements();
this.scale();
this.initEvents();
diff --git a/www/js/lib/fastclick b/www/js/lib/fastclick
new file mode 120000
index 0000000..3b8df4c
--- /dev/null
+++ b/www/js/lib/fastclick
@@ -0,0 +1 @@
+../../../fastclick \ No newline at end of file