Find Jobs
Hire Freelancers

Make menu dropdowns work on touch devices with JAVA using double tap method

€8-30 EUR

ที่ทำเสร็จแล้ว
โพสต์ เกือบ 5 ปีที่ผ่านมา

€8-30 EUR

ชำระเงินเมื่อส่งงาน
So I want to make my menu dropdowns work on touch devices too with double touch. The first touch is opening submenu (if submenu exists) and the second touch on the same menu item goes to URL. I found some javascript code that does that. The only problem is that it only works when I am on top of the current page. If I scroll a bit and press a menu item, it doesn't open the submenu anymore and it goes directly to the link. So it just works on top of the page. Any idea why that happening would be appreciated... $(document).ready(function(){ //added for surface window.USER_IS_TOUCHING = false; [login to view URL]('touchstart', function onFirstTouch() { window.USER_IS_TOUCHING = true; // we only need to know once that a human touched the screen, so we can stop listening now [login to view URL]('touchstart', onFirstTouch, false); }, false); function is_touch_device() { return 'ontouchstart' in window // works on most browsers || [login to view URL]; // works on IE10/11 and Surface }; $('ul > li > a').click(function(e){ var target = $([login to view URL]); var parent = [login to view URL](); // the li if(is_touch_device() || window.USER_IS_TOUCHING){ if([login to view URL]("active")){ //run default action of the link } else{ [login to view URL](); //remove class active from all links $('ul > li > [login to view URL]').removeClass('active'); //set class active to current link [login to view URL]("active"); [login to view URL]("active"); } } }); $('ul > li').click(function(e){ //remove class active from all links if li was clicked if ([login to view URL] == this){ $(".active").removeClass('active'); } }); });
รหัสโปรเจกต์: 20354605

เกี่ยวกับโปรเจกต์

6 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 5 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
autoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoautoauto
€30 EUR ใน 1 วัน
5.0 (104 รีวิว)
5.7
5.7
6 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย €22 EUR สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
⭐⭐⭐⭐⭐ Hi I read your job description carefully. You can check my past reviews here.❤️❤️❤️ I have developed a lot of websites. I will do my best for your project until you are satisfied. If you hire me, I will finish your job ASAP with the highest quality. Looking forward to the good news! Thank you.
€30 EUR ใน 1 วัน
5.0 (25 รีวิว)
6.1
6.1
รูปอวาตาร์ของผู้ใช้
Hello there, After gone through your work requirement, I believe that I can provide quality work to you. My name is Mansi, having over five years of experience in the Android & IOS App designing, Web Designing & UI/UX. My expertise - UI/UX Mobile App Screen designs (Android | IOS) Website Mockups & HTML Graphic Design Photoshop PSD creation PSD to html HTML5 Bootstrap Logo & Banners designing CSS Jquery and Javascript Wordpress E-commerce Kindly reply to discuss more over chat. Best regards, - Mansi
€19 EUR ใน 7 วัน
4.9 (4 รีวิว)
2.7
2.7
รูปอวาตาร์ของผู้ใช้
Hello, I am absolutely sure that I can do the project very well. I am a Java expert with 6+ years, especially I have a strong experience with Java I assure you top quality work as i look forward to a long term relationship with each of my clients. please give me a chance and i well make sure that you'll more than happy with the final output best regards
€15 EUR ใน 7 วัน
5.0 (1 รีวิว)
0.8
0.8

เกี่ยวกับลูกค้า

ปักธงของ GREECE
Argos, Greece
5.0
3
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ ก.ค. 4, 2019

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง