CodePen

HTML

            
              <input id="button1" type="button" value="Button 1"/>
<input id="button2" type="button" value="Button 2"/>
            
          
!

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var s,
    Mod1 = {
        settings: {
            message: "Module 1's settings"
        },
        init: function() {
            s = this.settings;
            $("#button1").on("click", function() {
                alert(s.message);
            });
        }
    };

var s,
    Mod2 = {
        settings: {
            message: "Module 2's settings"
        },
        init: function() {
            s = this.settings;
            $("#button2").on("click", function() {
                alert(s.message);
            });
        }
    };

Mod1.init();
Mod2.init();
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................