SHARE
TWEET

Untitled

a guest Feb 21st, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. console.log("Bucketed into '[YF36] FAQ in Global Navigation (QA)'");
  2.  
  3. var utils = window.optimizely.get('utils');
  4. var $ = window.optimizely.get('jquery') || window.jQuery;
  5.  
  6. utils.waitForElement('.submenu-items').then(function() {
  7.   // Get rid of the FAQs menu item under 'About Us'
  8.   $(".submenu-items:nth(1) li:nth(4)").remove();
  9. });
  10.  
  11. utils.waitForElement('.site-nav li:last-child').then(function() {
  12.   // Add new menu item at the top level for FAQ
  13.   $(".site-nav > li:last-child").after('<li><a href="/pages/contact" class="site-nav__link site-nav__link--main">HELP</a></li>');
  14. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top