Created
July 25, 2016 20:50
-
-
Save Tabares/b850a587a9841b46b0aa85fb75529299 to your computer and use it in GitHub Desktop.
Revisions
-
Tabares created this gist
Jul 25, 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,15 @@ // Welcome! require() some modules from npm (like you were using browserify) // and then hit Run Code to run your code on the right side. // Modules get downloaded from browserify-cdn and bundled in your browser. var $ = require('jquery'); $('#click').click(function(){ console.log('click'); $('.hide').css('display', 'none'); }); $('#show').click(function(){ console.log('show'); $('.hide').css('display', 'inline'); }); 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,7 @@ { "name": "requirebin-sketch", "version": "1.0.0", "dependencies": { "jquery": "3.1.0" } } 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,7 @@ <!-- contents of this file will be placed inside the <body> --> <div class="hide">This is an example of browserify</div> <button id="click">click me!</button> <button id="show">Show me!</button> 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 @@ <!-- contents of this file will be placed inside the <head> --> 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 @@ made with [requirebin](http://requirebin.com)