This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
$('*').each(function () { | |
var viewportWidth = 1024; | |
var outerWidth = $(this).outerWidth(); | |
if( outerWidth > viewportWidth ){ | |
//prints element in console so you can check what's the element | |
console.log($(this)[0]); | |
} | |
}); |
("#foo").on({ | |
click: function(){ alert("Hello") }, | |
mouseout: function(){ alert("World") } | |
}); | |
// Lookup events for this particular Element | |
$._data( $("#foo")[0], "events" ); | |
$._data($("#button1").get(0),"events") |
Apple has introduced an interesting tool with Xcode 6!
simctl
simclt allows you to control the simulators running
run xcrun simctl to get the list of available subcommands. Lots of new options to play around.
Now to do what I wanted. Here is the command to launch simulator
For OSX, open Terminal and run:
$ open -a Google\ Chrome --args --disable-web-security
For Linux run:
$ google-chrome --disable-web-security
Also if you're trying to access local files for dev purposes like AJAX or JSON, you can use this flag too.
-–allow-file-access-from-files
$('sup:contains("[")').each(function () { | |
var $this = $(this), | |
anchor = $this.attr('data-anchor'), | |
text ='#legal-'+ $this.text().replace('[','').replace(']',''); | |
if(anchor === text){ | |
}else{ | |
console.log('false', $this[0]); | |
} |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
/* Mixin */ | |
@mixin vertical-align { | |
position: relative; | |
top: 50%; |
python -m SimpleHTTPServer 8000