Created
March 27, 2019 06:31
-
-
Save ArunHub/7c5f49088728fdbce1708762ecb179ed to your computer and use it in GitHub Desktop.
toggle icons for more/less or advanced filter
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
function() { | |
$(this).hasClass("active") ? | |
($(this).removeClass("active"), | |
$(".fresh-widgets .icon-question").show(), | |
$(".fresh-widgets .icon-cross").hide()) | |
: | |
($(this).addClass("active"), | |
$(".fresh-widgets .icon-question").hide(), | |
$(".fresh-widgets .icon-cross").show()) | |
} | |
/*var stop = false, age = 23; | |
age > 18 ? ( | |
alert("OK, you can go."), | |
location.assign("continue.html") | |
) : ( | |
stop = true, | |
alert("Sorry, you are much too young!") | |
); */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment