0
スマートフォンのメニュー項目をクリックすると、他のページにリダイレクトされます。私は別の戦術を使用しましたが、誰も成功しません。ここに私が使用したコード/スクリプトがあります。スマートフォンでメニュー項目をクリックすると、まず色が変わってからページに移動します
jQuery(document).on('click touchstart','.mobile-menu a',function(){
jQuery(this).css('color','#9e1b64');
});
jQuery(document).on('click touchstart','div.text_only',function(){
jQuery(this).css('color','#9e1b64');
});
jQuery("body").delegate(".text_only", "click", function() {
jQuery(this).css('color','#9e1b64');
});
jQuery(document).ready(function() {
jQuery(".mobile-menu a").click(function (e) {
e.preventDefault();
jQuery(this).css('color','#9e1b64');
});
});
jQuery(document).on("mousedown", ".mobile-menu a", function() {
jQuery(this).css('color','#9e1b64');
});
jQuery(document).ready(function(){
jQuery('.mobile-menu a').on('click touchstart', function() {
jQuery(this).css('color','#9e1b64');
});
});
jQuery(document).on("vclick", ".mobile-menu a", function() {
jQuery(this).css('color','#9e1b64');
});
jQuery(".mobile-menu a").bind("click touchstart", function() {
jQuery(this).css('color','#9e1b64');
});