Skip to content

Instantly share code, notes, and snippets.

@donoage
Last active May 23, 2016 17:19
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 donoage/ec83ec3f4645752178b66065c9d6f87f to your computer and use it in GitHub Desktop.
Save donoage/ec83ec3f4645752178b66065c9d6f87f to your computer and use it in GitHub Desktop.
$(document).ready(function(){
console.log("page loaded");
$("a").click(function(event){
event.preventDefault();
});
$(".readmore").click(function(){
$(".readmore").hide();
$("#show-this-on-click").slideDown("slow");
$(".readless").show();
});
$(".readless").click(function(){
// $(".readless").show();
$("#show-this-on-click").slideUp("slow", function() {
$(".readless").hide();
$(".readmore").show();
});
});
$(".learnmore").click(function(){
$(".learnmore").hide();
$("#learnmoretext").slideDown("slow");
$(".learnless").show();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment