0
jqueryのtouchSwipeプラグインを使用してスワイプをクリックに変換しています。touchSwipe jquery click issue
ページをスワイプして次のページに移動しようとしたときと同じように動作しているようですが、同じコンテンツが表示されています。
次のクリック/スワイプのこのコード行には疑問があります。ここ
window.location.href='http://something.com/aakarsha/2559277';
私fiddle.Anyヘルプはここ
https://jsfiddle.net/bydbest/9gsgLqst/
素晴らしいものになるである直接リンクは
http://something.com/aakarsha/2559277
<html><body>
<p><div class="content_main_div div_100_per"><div id="timeline_content"><div><div class="content_box_main">
<div class="messagelove_box" style="" ><div class="content_box_1">
<div class="content_box_2z"><sup class="joke_icon"></sup></div>
<div class="content_box_3_title"></div>
<div class="content_box_3_text"><div style="position: absolute; top: 35%; left: 0%; margin: 0 auto; text-align: center;"></div>
<div style="position: absolute; top: 35%; right: 0%; margin: 0 auto; text-align: center;"></div>
<div id="detail_view" class="detail_view"><div class="detail_view_m" id="detail_view_m"><img src="http://image.something.com/misc/lazyg/aakarsha/people/aakarsha_aakarsha_photoshoot_stills_027_jpg_700_1052__mxoWV4za.sized.jpg" width="99%" alt="aakarsha" title="aakarsha"/><a href="http://something.com/aakarsha/2559276" class="view_pl" id="view_pl" hidefocus="true"></a>
<a href="http://something.com/aakarsha/2559276" class="view_nr" id="view_nr" hidefocus="true"></a></div><a style="top: 188.5px;" id="view_prev" class="view_prev prev" href="http://something.com/aakarsha/2559276"></a>
<a style="top: 188.5px;" id="view_next" class="view_next next" href="http://something.com/aakarsha/2559276"></a></div> </div><div class="content_box_5"><span class="vote" data-name="up" id="2559277"><span class="lipos">0 Likes</span></span></div> </div></div>
</div><script src="http://code.jquery.com/jquery-1.10.2.js"></script><script type="text/javascript" src="http://www.something.com/app/jquery.touchSwipe.min.js"></script>
<script type="text/javascript">
$("a").swipe({
swipe: function(event) {
window.location.href='http://something.com/aakarsha/2559277';
},
threshold: 75,
excludedElements: "label, button, input, select, textarea, .noSwipe"
});
</script>
</body>
</html>
です10
私はgithubを通過し、アンカータグのブロックについて知っているので、javascriptで同じものが除外されています。その後も動作しません。