Created
September 14, 2017 18:49
-
-
Save infoscigeek/b8c810a52d2bd948a80257dc807217be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() | |
{ | |
var option = 'coke'; | |
var url = window.location.href; | |
option = url.match(/option=(.*)/)[1]; | |
showDiv(option); | |
}); | |
function showDiv(option) | |
{ | |
$('.boxes').hide(); | |
$('#' + option).show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment