Remove appended script on window resize (javascript)
€8-30 EUR
Completed
Posted almost 5 years ago
€8-30 EUR
Paid on delivery
What I want to do is when the browser window width is above 992px, to enable the script DOUBLE TAP TO GO for the menu. But when the browser window width becomes less than 992px to disable DOUBLE TAP TO GO script, because I want a single tap to go for the hamburger menu.
I managed to do this when the window is more than 992px... But when I switch my iPad to portrait mode (which is less than 992px) the DOUBLE TAP TO GO script is still active because there was no refresh on the page.
So when orientation changes I run the code.
Can you tell me how can I remove the DOUBLE TAP GO script on else? I can't find a way...
MY CODE
jQuery(document).ready(function($){
orientationChange();
});
function orientationChange() {
if([login to view URL]) {
[login to view URL]("orientationchange", function() {
///////////////////////////////////////////////////////////////////////
if([login to view URL]("(min-width: 992px)").matches) {
////////////////////////////////////////////////////////////////////// 1) DOUBLE TAP TO GO
(function( $, window, document, undefined )
{
var b = $.[login to view URL] = function( params )
{
if( !( 'ontouchstart' in window ) &&
![login to view URL] &&
![login to view URL]().match( /windows phone os 7/i ) ) return false;
[login to view URL]( function()
{
var curItem = false;
$( this ).on( 'click', function( e )
{
var item = $( this );
if( item[ 0 ] != curItem[ 0 ] )
{
[login to view URL]();
curItem = item;
}
});
$( document ).on( 'click touchstart MSPointerDown', function( e )
{
var resetItem = true,
parents = $( [login to view URL] ).parents();
for( var i = 0; i < [login to view URL]; i++ )
if( parents[ i ] == curItem[ 0 ] )
resetItem = false;
if( resetItem )
curItem = false;
});
});
return this;
};
})( jQuery, window, document );
jQuery( function()
{
jQuery( '#menu-top-menu li' ).doubleTapToGo();
});
///////////////////////////////////////////////////////////////////////
}
///////////////////////////////////////////////////////////////////////
else {
//REMOVE DOUBLE TAP SCRIPT FROM MEMORY
}
///////////////////////////////////////////////////////////////////////
});
}
}
Hello there,
I have 9 years experience in web design and development and I am really looking forward to work on this project.
In the meantime you can check my work here:
https://www.freelancer.com/u/WebWars.html
I always provide excellent communication and I work towards your total fulfillment of your requirements.
If you need any more details about me please feel free to ask.
I am looking forward hearing from you.
Regards,
Babis Fersizidis
€25 EUR in 1 day
5.0 (376 reviews)
8.2
8.2
17 freelancers are bidding on average €30 EUR for this job
Hello,
I read your job description very carefully and bid here.
I already understood what you want and I can start immediately.
As you can see my profile, I am a senior developer in this fields.
I am sure I can finish your job perfectly.
Let's discuss details over live chat.
Thank you.
Regards!
VERY EASY FOR ME
As you can see in my review, I've done similar with yours
Hello.
I have read your description and I am so interested in your project.
I am confident in your project and I can finish it clearly on time.
I am well experienced and skillful
PHP
Javascript
CSS
HTML
jQuery / Prototype
programmer.
I have +5 years of experience in software developing.
I have finished a lot of project like this.
I ensure the best quality of your project and to keep your deadline.
Please contact me kindly and let us discuss in more detail.
Working with me, you will have a good experience and good friend and save more time and money.
After complete project, I can support fixing bugs with free.
and support update features with low price.
Best regards!
Hi There,
I can do it Now.
I am PHP experts having combined experience of more Than 6 years in PHP Framework :- Prestashop,Magento, Wordpress, & BIgcommerce and already completed more than 100 projects successfully.
We offer the following services in Web Development:
Creating library function
Configuring website
Website migration from one server to other
MYSQL database issues
Bug fixing and Maintenance
Developing admin Management to control the website content
Banner and Slider Management (customization)
Custom User Management.
Custom Coding.
Payment gateway Integration.
API Integrations.
Custom Ecommerce Development.
Please give us an opportunity to show our expertise in the same. I would love to discuss the work with you. we can proceed ahead for a long term relationship with best outputs always.
Wordpress: 6 yrs
wordpress plugin and theme integration: 6 yrs
html: 6 yrs
css: 6 yrs
javascript:6 yrs
Bootstap: 6 yrs
mysql : 6 yrs
Please initiate chat so that we can discuss more and I can suggest you better.
Regards:-
Pankaj Rai
⭐Dear Sir⭐
Nice to meet you.
I am interesting in your project.
I can build your project perfectly with my experience.
I am full time developer and my goal was always delivery perfectly results on time
I will do my best for you.
Hope to hear you soon.
-----⭐⭐⭐-----
Hello. I have just read your project.
https://www.freelancer.com/u/fastestJohn?w=f This is my profile.
I am really interested in your project now. Because my skills are suitable for your project.
I like the "Fastest" and "Perfect". I always complete the project perfectly.
Please check my portfolios and reviews.
I want to discuss with you in more detail.
I will wait for your answer.
Thanks.
Hi,
I have read code you provided, and I can do required change for you in single day. I have more than 10 years experience in javascript development. Please check my portfolio and reviews.
Dear Hiring Manager!
Wish you a very good day!!!
After reviewing your post, I am very interested in that due to my experience.
I’d like to be considered for your project position.
I am an expert Database developer.
As a senior software developer, I have developed lots of project.
I will satisfy you with high quality.
Best regards.
Please contact me and let's discuss your project together. Best regards.
Thank you for taking time reviewing the letter.
I’m glad to answer any questions you may have!
I’ll look forward to hearing from you for further process.
Thanking you!!!
Hi
Dear client
I am ready to remove the appended script in javascript and I will give you 100% satisfaction with requirements.
You can check my previous work and reviews on profile.
Thanks
Hello :)
Thanks for your posting.
I saw your description carefully. I am really good at JavaScript
I am a web expert who have 8+ years of experiences.
My skills are Html5,Css,Bootstrap,Javascript,Jquery,MySql,PHP such as Larave and WordPress ...
I can implement your project with fully and completely.
I can help you with my best.
I hope that you contact with me.
If you need, i will send my live link to you
Thank you :)
Hello.
I know how to do that - I have actually read the code.
But you will need to approve my bid on this project first.
Feel free to contact me if you need any details.
Specialization in the following -
Html5 and Css3
Bootstrap
javaScript
Angular Js
React js
React native
MongoDb
Mysql
Nodejs
jQuery
Ajax
PSD TO HTML
Wordpress
Give me one chance for proving myself.
Thanks :)
Greetings, my name is Ahmad. I am Head of Client Relations and a web-developer myself. I would love to have an opportunity to discuss your project with you.
With over 5 years of experience in mobile/web design and development we are certain we will not only execute this job but exceed your expectations.
Our Development Standards & Practices:-
Our Portfolio is verified with excellent client feedback. We develop Retina Ready and responsive designs across all platforms (Mobile, Tablets & Desktop) + We make sure that we follow the latest coding standards.
We do not want to bore you with a copy-paste proposal and because we believe in the saying "Actions speak louder than words", we will let our work do the talking, so feel free to look at our portfolio and if you like our projects, feel free to reach out to us.
We have 5+ years of experience in Web and mobile development.
Reasons to select us:
- 100% Job Success rate.
- Verified Portfolio.
- 5 Star feedback
- 100% client recommendation.
- We have our own server and you will be able to check the progress on daily basis.
We believe communication is key to any successful project, our dedicated client relations officers will make sure that you get updates on time and develop. This will enable us to make sure we communicate well and that both parties are completely comfortable with the scope of the project. Please let us know a time that works best for you and we'll make sure that we make ourselves available.
Greetings!
I can most definitely help you solve your browser resize issue. I have well over a decade's worth of professional experience in the field and can help you get back on your feet.
I look forward to speaking with you!