Skip to content

Instantly share code, notes, and snippets.

View jgentes's full-sized avatar
🎯
Crushing it

James Gentes jgentes

🎯
Crushing it
View GitHub Profile
@jgentes
jgentes / gist:425c034179c22c9b769c
Created June 18, 2015 15:55
ui-router state resolve with service injection
.state('person', {
url: "/{person}",
resolve: {
type: function (communityApi, $stateParams) {
console.log('output')
console.log(communityApi.getKey($stateParams.person))
return;
}
}
})
@jgentes
jgentes / index.html
Created April 23, 2013 02:56
A CodePen by James Gentes. iOS 6 style switches with pure CSS - Courtesy the awesome Lea Verou @ http://lea.verou.me/2013/03/ios-6-switch-style-checkboxes-with-pure-css/
<h1>iOS 6 style switches with pure CSS</h1>
<label>Something <input type="checkbox" class="ios-switch" /></label>
<label>Pre-checked<input type="checkbox" class="ios-switch" checked /></label>
<label><input type="checkbox" class="ios-switch" />Label after control</label>
<label><input type="checkbox" class="ios-switch" checked />Another label after control</label>
<p>Check out the slide animation, even in WebKit versions that don’t support animation for pseudo-elements.
Verified to work in <strong>Chrome, Firefox, IE10</strong>, but could possibly work in many others.</p>