Skip to content

Instantly share code, notes, and snippets.

@mckernanin
Created December 30, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mckernanin/4f6f8e6b910d8fb0ba3e to your computer and use it in GitHub Desktop.
Save mckernanin/4f6f8e6b910d8fb0ba3e to your computer and use it in GitHub Desktop.
QA Navigation
// QA NAVIGATION
//REMOVE ME BEFORE PUBLISHING
$("body").append(' <div id="qanav" style="position: fixed; bottom: 5px; left: 5px; font-size: 12px; z-index:999999999999;"> '+
'<select>'+
'<option value="#" default>QA Nav - Select a Page</option>'+
'<option value="index.html">Home</option>'+
'<option value="browse-by-spf.html">Browse By SPF</option>'+
'<option value="product-detail.html">Product Detail</option>'+
'<option value="products-sport-protection.html">Prodcuts - Sport Protection</option>'+
'<option value="products-tanning.html">Products - Tanning</option>'+
'</select>'+
'</div>'
);
$('#qanav select').change(function(){
window.location = $(this).val();
});
// END QA NAVIGATION SNIPPET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment