This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>50 Shades Of Grey · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Ben Howdle, http://codepen.io/benhowdle89 | |
Permission is hereby granted, free of charge, to any person obtaining |
This file contains 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 myClass = function(){ | |
var privateVar = 'do not look at me from the outside'; | |
return { | |
publicVar: 'access me from anywhere', | |
fname: '', | |
This file contains 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 a plugin already exists then great, but I can't find one! | |
A client wants to simply select some images from the media | |
library and assign them to a "gallery". Now, I need to create a | |
page in the admin area that they can visit and then some UI to do the | |
selecting. | |
I then need to create, eg. gallery.php which is accessible on | |
their site for me to pull in those selected images and output them. |
This file contains 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
Carousel/slider/etc... | |
What are you main feature requests for a simplistic slider? | |
ie. | |
Animated sliding? | |
Easing? |
This file contains 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 model.LineItems = [blah, blah, blah]; // pseudo array declaration | |
var projects = BB.Collection; // pseudo collection declaration | |
model.LineItems[1].ProjectNumber = 'xyz'; // an example value for a line item | |
//in view render function | |
for (x in model.LineItems) { | |
model.LineItems[x].projects = projects; | |
} | |
This file contains 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
Name some sites/networks you check everyday, ie. Twitter, GitHub, Dribbble, etc... |
This file contains 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
So, I create a gh-pages on my main account: benhowdle89.github.com repo and | |
point my domain at it http://benhowdle.im. I then create gh-pages in one of | |
my repos: so, http://benhowdle.im/svgeezy will point at my repo | |
benhowdle.github.com/svgeezy. That's all good. | |
HOWEVER. | |
What would happen if I create a folder in my jekyll site at the root, | |
ie. in benhowdle.github.com called "svgeezy"? |
This file contains 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
<ul class={{#oneOrMany posts}}{{/oneOrMany}}> | |
{{#each posts}} | |
<li>{{content}}</li> | |
{{/each}} | |
</ul> |
This file contains 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 a=document.links;i=0;for(l=a.length;i<l;i++){var b=new Image;b.src=a[i].href;a[i].insertBefore(b)}; |
This file contains 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 forceReflow = function(el) { | |
el = el || document.body; | |
el.style.position = 'static'; | |
setTimeout(function() { | |
el.style.position = 'relative'; | |
}, 0); | |
} |
OlderNewer