Skip to content

Instantly share code, notes, and snippets.

@Tabares
Created July 25, 2016 20:50
Show Gist options
  • Select an option

  • Save Tabares/b850a587a9841b46b0aa85fb75529299 to your computer and use it in GitHub Desktop.

Select an option

Save Tabares/b850a587a9841b46b0aa85fb75529299 to your computer and use it in GitHub Desktop.

Revisions

  1. Tabares created this gist Jul 25, 2016.
    15 changes: 15 additions & 0 deletions index.js
    Original 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');
    });
    5 changes: 5 additions & 0 deletions minified.js
    5 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
    7 changes: 7 additions & 0 deletions package.json
    Original 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"
    }
    }
    7 changes: 7 additions & 0 deletions page-body.html
    Original 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>


    1 change: 1 addition & 0 deletions page-head.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <!-- contents of this file will be placed inside the <head> -->
    1 change: 1 addition & 0 deletions requirebin.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    made with [requirebin](http://requirebin.com)