This is a SCRIPT-8 cassette.
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
/* | |
A way to set your z-index to dynamically update, based on the current time. | |
When you click on the object ('.element'), the javascript grabs the current time, | |
concatenates the hours, minutes, and seconds, and sets that number as the z-index for the object. | |
*/ | |
$('.element').mousedown(function(event) { | |
var time = new Date(); | |
var hours = time.getHours(); | |
if (hours.toString().length == 1) { hours = "0" + '' + hours } |
This is a SCRIPT-8 cassette.
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
/*********** | |
The CSS | |
***********/ | |
.notebook{ | |
background: #AC1622; | |
border-radius: .3em 1em 1em .3em; | |
box-shadow: .3em .3em .3em rgba(0,0,0,0.2); | |
color: rgba(0,0,0,0.5); | |
font-family: futura, sans-serif; | |
font-size: .5em; |
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
<html> | |
<head> | |
<style type="text/css"> | |
.css-logo{font-size:10px;height:2.2em;position:relative;width:8.5em} | |
.letter-block{float:left;height:100%;margin-right:.2em;position:relative;width:1.6em} | |
.letter-block.i{margin-right:.3em;width:.7em} | |
.letter-block.t{width:1.7em} | |
.h{background:#f40;position:absolute;top:0;width:100%} | |
.h.short{top:.9em;width:1.3em;} | |
.s{background:#000;position:absolute} |
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
<div style="font-size:10px;height:2.2em;position:relative;width:8.5em"> | |
<div style="float:left;height:2.2em;margin-right:.3em;position:relative;width:.7em;"> | |
<div style="background:#3cf;height:100%;width:.7em"></div> | |
</div> | |
<div style="float:left;height:2.2em;margin-right:.2em;position:relative;width:1.6em"> | |
<div style="background:#3cf;height:100%;width:.7em"></div> | |
<div style="background:#f40;height:.7em;position:absolute;top:0;width:1.6em;"><div style="background:#000;height:.7em;position:absolute;width:.7em"></div></div> | |
<div style="background:#f40;height:.7em;position:absolute;top:.9em;width:1.3em;"><div style="background:#000;height:.7em;width:.7em"></div></div> | |
</div> | |
<div style="float:left;height:2.2em;margin-right:.2em;position:relative;width:1.7em"> |
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
/* via http://stackoverflow.com/questions/16443380/common-css-media-queries-break-points */ | |
@media only screen and (min-width: 768px) { | |
/* tablets and desktop */ | |
} | |
@media only screen and (max-width: 767px) { | |
/* phones */ | |
} |
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
// date of easter, call function with the 4-digit year as argument | |
//function (a,b,c,d,e,f,g,h,i,j,k,l,m){return b=a%19,c=~~(a/100),d=a%100,e=~~(c/4),f=c%4,g=~~((c+8)/25),h=~~((c-g+1)/3),i=(19*b+c-e-h+15)%30,j=~~(d/4),k=d%4,l=(32+2*f+2*j-i-k)%7,m=~~((b+11*i+22*l)/451),a+"-"+~~((i+l-7*m+114)/31)+"-"+((i+l-7*m+114)%31+1)} | |
function (y,a,b,c,h,l,n){return a=y%19,b=~~(y/100),c=y%100,h=(19*a+b-~~(b/4)-~~((b-~~((b+8)/25)+1)/3)+15)%30,l=(32+2*b%4+2*~~(c/4)-h-c%4)%7,n=h+l-7*~~((a+11*h+22*l)/451)+114,y+'-'+~~(n/31)+'-'+(n%31+1)} | |
// f(2013) -> "2013-3-31" | |
// f(2012) -> "2012-4-8 | |
// f(1775) -> "1775-4-16" |
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
/** | |
* This mixin is awesome. Handles vendor prefixing in a single line. | |
*/ | |
@mixin vendor-prefix($name, $argument) { | |
-webkit-#{$name}: $argument; | |
-moz-#{$name}: $argument; | |
-ms-#{$name}: $argument; | |
-o-#{$name}: $argument; | |
#{$name}: $argument; |