| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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 (!e) var e = window.event; | |
| e.cancelBubble = true; | |
| if (e.stopPropagation) e.stopPropagation(); |
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 serialize = function (obj) { | |
| "use strict"; | |
| var val, vArr, vObj, i, attr; | |
| if (obj !== undefined) { | |
| switch (obj.constructor) { | |
| case "Array": | |
| vArr = "["; | |
| for (i = 0; i < obj.length; i += 1) { | |
| if (i > 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 characters
| document.getElementById("elem1").addEventListener("click", function (evt) { | |
| console.log("click", this.id, evt.srcElement); | |
| }, false); |
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
| a$('div').css('color:red'); | |
| a$('p>span').css('color:red'); | |
| a$('#testElem2').html('Hello World!').css('color:red'); | |
| a$('#testElem3').html(new Date()).css('background-color:yellow').css('color:red'); |
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
Show hidden characters
| // Path: Packages/User/Base File.sublime-settings | |
| { | |
| "color_scheme": "Packages/Textmate/HelvectorLight.tmTheme", | |
| "font_face": "Meslo LG M DZ", | |
| "font_size": 8, | |
| //"draw_white_space": "all", | |
| "trim_trailing_white_space_on_save": true | |
| } |
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
| -webkit-transform: translate3d(0, 0, 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 characters
| function getDocHeight() { | |
| var D = document; | |
| return Math.max( | |
| Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), | |
| Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), | |
| Math.max(D.body.clientHeight, D.documentElement.clientHeight) | |
| ); | |
| } |
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 { | |
| background: rgb(0, 0, 0); /* fallback */ | |
| background: rgba(0, 0, 0, 0.65); | |
| } |
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
| /*jslint devel: true, browser: true, white: true, nomen: true */ | |
| /** | |
| * @description | |
| * | |
| */ | |
| var namespace = (function () { | |
| "use strict"; | |
| var internal = function () { |