Skip to content

Instantly share code, notes, and snippets.

@kane-thornwyrd
Created August 20, 2013 14:31
Show Gist options
  • Save kane-thornwyrd/6282135 to your computer and use it in GitHub Desktop.
Save kane-thornwyrd/6282135 to your computer and use it in GitHub Desktop.
(function($, doc){
$('#flou1,#flou2,#flou3,#flou4').hide();
$('#kling').click(function() {
$('#appz,#vid,#spiele').toggle();
$('#flou2,#flou3,#flou4').toggle();
});
$('#appz').click(function() {
$('#kling,#vid,#spiele').toggle();
$('#flou1,#flou3,#flou4').toggle();
});
$('#vid').click(function() {
$('#appz,#kling,#spiele').toggle();
$('#flou2,#flou1,#flou4').toggle();
});
$('#spiele').click(function() {
$('#appz,#vid,#kling').toggle();
$('#flou2,#flou3,#flou1').toggle();
});
})($, document);
@kane-thornwyrd
Copy link
Author

That's a good exemple of what you should never do !!!! EVER !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment