1
我正在使用Cycle2幻灯片和标签来允许共享特定图像,但我不希望访问者必须重复按下后退按钮才能转到上一页。有没有办法让后退按钮忽略hashtags?防止影响Cycle2的后退按钮的标签#
万一有帮助,这里是循环2包括hashtag插件(信贷当然循环2):
function (e) {
"use strict";
function t(t, i) {
var n;
return t._hashFence ? (t._hashFence = !1, void 0) : (n = window.location.hash.substring(1), t.slides.each(function (s) {
if (e(this).data("cycle-hash") == n) {
if (i === !0)t.startingSlide = s; else {
var o = s > t.currSlide;
t.nextSlide = s, t.API.prepareTx(!0, o)
}
return!1
}
}), void 0)
}
e(document).on("cycle-pre-initialize", function (i, n) {
t(n, !0), n._onHashChange = function() {
t(n, !1)
}, e(window).on("hashchange", n._onHashChange)
}), e(document).on("cycle-update-view", function (e, t, i) {
i.hash && "#" + i.hash != window.location.hash && (t._hashFence = !0, window.location.hash = i.hash)
}), e(document).on("cycle-destroyed", function (t, i) {
i._onHashChange && e(window).off("hashchange", i._onHashChange)
})
}
(jQuery),
/*! loader plugin for Cycle2; version: 20131121 */
任何帮助非常感谢,谢谢:)
格式化的代码是你最好的朋友! –