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 characters
| if ( elem.checked ) | |
| if ( $(elem).prop("checked") ) | |
| if ( $(elem).is(":checked") ) | |
| /* | |
| - Atributos que se modifican con attr(): class, id, href, label, src, title... | |
| - Propiedades que se modifican con prop(): autofocus, checked, async, multiple, readOnly... | |
| */ |
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 characters
| $(window).one({ | |
| resize: function() { | |
| _gaq.push(['_trackEvent', 'Viewport', 'Resize']); | |
| }, | |
| orientationchange: function() { | |
| _gaq.push(['_trackEvent', 'Viewport', 'Orientation Change']); | |
| } | |
| }); | |
| $(window).resize(function() { |
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 characters
| @value: #000; | |
| .mixin { | |
| color: @value; | |
| } | |
| @value: #333; | |
| .parametric() { | |
| color: @value; |
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 characters
| @left: left; | |
| @right: right; | |
| @import "main.less"; |
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 characters
| <div id="foo"> | |
| <p>first paragraph</p> | |
| <p>second paragraph</p> | |
| </div> | |
| <div id="bar"> |
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 characters
| body | |
| { | |
| font-family: "Segoe UI Light", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif; | |
| font-size: 14px; | |
| background: #000; | |
| } | |
| h1 | |
| { | |
| font-size: 2.4em; |
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 characters
| body | |
| { | |
| font-family: "Segoe UI Light", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif; | |
| font-size: 14px; | |
| background: #000; | |
| } | |
| h1 | |
| { | |
| font-size: 2.4em; |
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 characters
| table { | |
| border-collapse: collapse; | |
| margin: 32px; | |
| } | |
| th, td { | |
| border: 1px solid #CCC; | |
| padding: 4px; | |
| } |
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 characters
| var obj = { | |
| a: undefined, | |
| b: null, | |
| c: false | |
| }; | |
| // a, b, c all found | |
| for ( var prop in obj ) { | |
| document.writeln( "Object1: " + prop ); | |
| } |
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 characters
| var LoggerFactory = { | |
| getLogger: function() { | |
| return window.console; | |
| }, | |
| //log | |
| }; | |
| /* Example Usage */ | |
| var logger = LoggerFactory.getLogger(); | |
| logger.log("something to log"); |