Skip to content

Instantly share code, notes, and snippets.

@ArunHub
Created March 27, 2019 06:31
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 ArunHub/7c5f49088728fdbce1708762ecb179ed to your computer and use it in GitHub Desktop.
Save ArunHub/7c5f49088728fdbce1708762ecb179ed to your computer and use it in GitHub Desktop.
toggle icons for more/less or advanced filter
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