diff --git a/js/main.js b/js/main.js index d7ffe45..d049c7c 100755 --- a/js/main.js +++ b/js/main.js @@ -1,12 +1,13 @@ $(document).ready(function() { + //toggle class of background when you click the button $(".thebutton").click(function() { $(this).toggleClass("voidfilled"); }); }); - +//change the text that appears when you click the button $(".thebutton").on("click", function() { var el = $(this); el.text() == el.data("text-swap") ? el.text(el.data("text-original")) : el.text(el.data("text-swap")); -}); \ No newline at end of file +});