Find Jobs
Hire Freelancers

Adjust a small Jquery script

$10-30 USD

Completed
Posted over 8 years ago

$10-30 USD

Paid on delivery
Hello, Job description Jquery/Javascript (HTML code below job description) ------------------------------------------------------------------------------------- The script must first detect if <div id="page" contains layout1 in CLASS. Then the script must generate: jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 50){ jQuery('#masthead').addClass("zazasticky111111111111 animated slideInDown"); } else{ jQuery('#masthead').removeClass("zazasticky111111111111 animated slideInDown"); } }); ------------------------------------------------------------------------------------- But if the script detects if <div id="page" contains layout2 OR layout3 in CLASS. Then the script must generate: (without "111111111111") jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 50){ jQuery('#masthead').addClass("zazasticky animated slideInDown"); } else{ jQuery('#masthead').removeClass("zazasticky animated slideInDown"); } }); ------------------------------------------------------------------------------------- I also want to disable or enable the above script on different viewports. Lets say the script must execute on large and medium screens but not at mobile Or not at medium and mobile screens. Something like: Large = y Medium = N Small = N ------------------------------------------------------------------------------------- HTML ------------------------------------------------------------------------------------- <div id="page" class="hfeed site container <?php echo $zaza_optionsbase['container-shadow']; ?> <?php if($zaza_optionsbase['layout'] == '1') { echo 'layout1'; } elseif($zaza_optionsbase['layout'] == '2') { echo 'layout2'; } else { echo 'layout3'; } ?>"> <div class="second-header-width"><div class="second-header"><?php echo $zaza_optionsbase['header-secondary-editor']; ?></div></div> <header id="masthead" class="site-header columns"> <div class="header-width"> <div class="small-12 large-3 columns"> <?php if(true == $zaza_optionsbase['basic-logo']['url']) { echo '<a href="'. get_option('home'). '"/><img class="logo" alt="'. get_bloginfo('name') .'" title="'. get_bloginfo('name') .'" src="' . $zaza_optionsbase['basic-logo']['url'] . '" /></a>'; } elseif(true == $zaza_optionsbase['retina-logo']['ur bl']) { echo '<a href="'. get_option('home'). '"/><img class="logo" alt="'. get_bloginfo('name') .'" title="'. get_bloginfo('name') .'" src="' . $zaza_optionsbase['retina-logo']['url'] . '" /></a>'; } else { echo '<a href="'. get_option('home'). '"/><h1>'.get_bloginfo('name').'</h1></a>'; } ?> </div> <div class="small-12 large-9 columns"> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'zaza' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?> </nav><!-- #site-navigation --> </div> </div> </header><!-- #masthead -->
Project ID: 9166034

About the project

12 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am expert in js/jQuery. I will start this job right now and hopefully finish this in few hours. I am available to start this job right now. I am currently online please contact me via freelancer.com chat. For the time being please have a look at my Point Of Sale application [login to view URL] Above web application is full of Html, Css, js/jQuery, Ajax, php and mysql that show I am capable of these kind of work.
$30 USD in 1 day
5.0 (293 reviews)
6.8
6.8
12 freelancers are bidding on average $26 USD for this job
User Avatar
Hello Sir/Ma'am! I'm expert in web development. with more than 130 successful project; I assure you the highest quality of the work. Please discuss details in message. thank you!
$24 USD in 1 day
5.0 (239 reviews)
8.3
8.3
User Avatar
Hello, I understand your requirement and have experience to do this type of work. I assure you that we complete your product on time with quality. Please check your Private Message Box for more details. Thank you, Govind sharma
$34 USD in 1 day
5.0 (490 reviews)
8.3
8.3
User Avatar
A proposal has not yet been provided
$20 USD in 1 day
5.0 (206 reviews)
6.4
6.4
User Avatar
Ok, i am interested in taking this jquery job. Please award me. so i can start work right now. thanks,
$24 USD in 1 day
5.0 (55 reviews)
5.7
5.7
User Avatar
Hello. I am a devveloper with experience in using HTML, PHP, CSS, JQuery. Codeigniter, Bootstrap, etc. I can help you to adjust the jquery script. So, could we discuss it now? Thank you
$35 USD in 1 day
5.0 (28 reviews)
5.5
5.5
User Avatar
I have 8+years work experience in .NET,FLASH,C#,Linux,Visual Studio2010,Joomla,ASP,Javascript,Java,PHP,Python,Prestashop, MS access,SQL,Shell script,XML,moodle,AJAX,CMS,HTML,Drupal,SEO,CSS,wordpress,Bootstrap,Photoshop,Oscommerce, CSS,Paypal API technologies here.I am a web and tech savvy person.I have satisfied more clients successfully in short duration.I will give you very good quality and high level of Accuracy for this position.I can accept your payment terms and method here,Keep me posted. Specialization Areas Website Development Website Testing Project Management( Base camp) Data Collection Advanced VBA and Excel Macros E commerce PayPal Payment Gateway Integration Directory Automation Scraping Application Development Mobile Application Development Amazon Product services Graphic Design Windows and Linux Server Administration Thank you.
$25 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i have wide knowledge about javascript, Jquery ,wordpress plugin, theme modification, CSS, HTML and PHP. i will update every work on day by day activities.
$19 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of NETHERLANDS
Almere, Netherlands
5.0
9
Payment method verified
Member since Jul 10, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.