Created
June 11, 2016 02:37
-
-
Save resarahman/e7643899fe35e1ecc591b601a511889f to your computer and use it in GitHub Desktop.
Revisions
-
resarahman created this gist
Jun 11, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ (function() { var link = $('link'); $('button').on('click', function() { var $this = $(this), stylesheet = $this.data('file'); link.attr('href', stylesheet + '.css'); $this .siblings('button') .removeAttr('disabled') .end() .attr('disabled', 'disabled'); }); })();