- Open Element Inspector ⌘⌥I
- Open Console ⌘⌥J
- Search file in sources ⌘O
- Search a word in all files ⌘⌥F
- Change dock position ⌘⌥D
- Toggle console ESC
- Toggle mobile emulation ⌘⌥M
- Clear console ⌘K
- Execute snippet ⌘⏎
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 http = require( 'http' ); | |
http.createServer( function ( request, response ) { | |
response.setHeader( 'Content-Type', 'text/html; charset=UTF-8' ); | |
response.setHeader( 'Transfer-Encoding', 'chunked' ); | |
response.write( 'Hello ' ); | |
setTimeout( 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
( function ( doc ) | |
{ | |
var BODY_ID = 'batman', | |
fpCommonSetUp = function () | |
{ | |
/*:DOC += <span class="batman"></span> */ | |
}; | |
TestCase( 'is body restored between tests?', { | |
setUp: 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
var oStrongWithoutWrapper = ( function ( doc ) | |
{ | |
function createStrongWithWrapper() | |
{ | |
var oStrong = doc.createElement('strong'); | |
oStrong.innerHTML = 'ola k ase' | |
return doc.createDocumentFragment() |
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 async( fn ) | |
{ | |
window.setTimeout( fn, 0 ); | |
} | |
function problem() | |
{ | |
for( var i = 0; i < 10; i++ ) | |
{ | |
async( 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
(function(){ | |
var mailLink = document.getElementById( 'mail' ), | |
fullName = [ 'alex', 'alvarez', 'chinchilla' ]; | |
mailLink.href = 'mailto:' + fullName.join( '.' ) + '@gmail.com'; | |
}()); |