update hammer js
This commit is contained in:
@@ -62,4 +62,28 @@ div#tags {
|
|||||||
font-size: 24pt;
|
font-size: 24pt;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.category-1 a, a.tag-type-1 {
|
||||||
|
color: #A00;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #B66;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-3 a, a.tag-type-3 {
|
||||||
|
color: #A0A;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #B6B;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-4 a, a.tag-type-4 {
|
||||||
|
color: #0A0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #6B6;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,24 +11,25 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$(document).on("swipeleft", function(e) {
|
$(document)
|
||||||
if (e.gesture.distance > 150) {
|
.hammer()
|
||||||
var href = $(".paginator a[rel=next]").attr("href");
|
.on("swipeleft", function(e) {
|
||||||
if (href) {
|
if (e.gesture.distance > 125) {
|
||||||
window.location = href;
|
var href = $(".paginator a[rel=next]").attr("href");
|
||||||
|
if (href) {
|
||||||
|
window.location = href;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
});
|
.on("swiperight", function(e) {
|
||||||
|
if (e.gesture.distance > 125) {
|
||||||
$(document).on("swiperight", function(e) {
|
var href = $(".paginator a[rel=prev]").attr("href");
|
||||||
if (e.gesture.distance > 150) {
|
if (href) {
|
||||||
var href = $(".paginator a[rel=prev]").attr("href");
|
window.location = href;
|
||||||
if (href) {
|
}
|
||||||
window.location = href;
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
})
|
})
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
6
vendor/assets/javascripts/hammer.min.js
vendored
6
vendor/assets/javascripts/hammer.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,8 +1,8 @@
|
|||||||
/*! jQuery plugin for Hammer.JS - v1.1.0dev - 2014-04-11
|
/*! jQuery plugin for Hammer.JS - v1.1.3 - 2014-05-20
|
||||||
* http://eightmedia.github.com/hammer.js
|
* http://eightmedia.github.com/hammer.js
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
|
* Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
|
||||||
* Licensed under the MIT license */
|
* Licensed under the MIT license */
|
||||||
|
|
||||||
!function(a){"use strict";function b(a,b){Date.now||(Date.now=function(){return(new Date).getTime()}),a.utils.each(["on","off"],function(c){a.utils[c]=function(a,d,e){b(a)[c](d,function(a){var c=b.extend({},a.originalEvent,a);e.call(this,c)})}}),a.Instance.prototype.trigger=function(a,c){var d=b(this.element);return d.has(c.target).length&&(d=b(c.target)),d.trigger({type:a,gesture:c})},b.fn.hammer=function(c){return this.each(function(){var d=b(this),e=d.data("hammer");e?e&&c&&a.utils.extend(e.options,c):d.data("hammer",new a(this,c||{}))})}}"function"==typeof define&&define.amd?define(["hammerjs","jquery"],b):b(a.Hammer,a.jQuery||a.Zepto)}(window);
|
!function(a,b){"use strict";function c(a,c){Date.now||(Date.now=function(){return(new Date).getTime()}),a.utils.each(["on","off"],function(d){a.utils[d]=function(a,e,f){c(a)[d](e,function(a){var d=c.extend({},a.originalEvent,a);d.button===b&&(d.button=a.which-1),f.call(this,d)})}}),a.Instance.prototype.trigger=function(a,b){var d=c(this.element);return d.has(b.target).length&&(d=c(b.target)),d.trigger({type:a,gesture:b})},c.fn.hammer=function(b){return this.each(function(){var d=c(this),e=d.data("hammer");e?e&&b&&a.utils.extend(e.options,b):d.data("hammer",new a(this,b||{}))})}}"function"==typeof define&&define.amd?define(["hammerjs","jquery"],c):c(a.Hammer,a.jQuery||a.Zepto)}(window);
|
||||||
//# sourceMappingURL=jquery.hammer.min.map
|
//# sourceMappingURL=jquery.hammer.min.map
|
||||||
Reference in New Issue
Block a user