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
// Detect IE versions | |
// https://gist.github.com/527683 | |
var ie = (function () { | |
var v = 3, | |
div = document.createElement('div'), | |
all = div.getElementsByTagName('i'); | |
do { | |
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->'; | |
} while (all[0]); | |
return (v > 4)? v: void 0; |
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
.br-before:before, | |
.br-after:after { | |
content: "\A"; | |
white-space: pre-line; | |
} |
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 id="cboxOverlay"></div> | |
<div id="colorbox"> | |
<div id="cboxWrapper"> | |
<div> | |
<div id="cboxTopLeft" style="float: left;"></div> | |
<div id="cboxTopCenter" style="float: left;"></div> | |
<div id="cboxTopRight" style="float: left;"></div> | |
</div> | |
<div style="clear: left;"> | |
<div id="cboxMiddleLeft" style="float: left;"></div> |
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
/*! | |
* jQuery Parallax Effect plugin v0.9 | |
* https://gist.github.com/2020675 | |
* | |
* Copyright (c) 2012 Takeru Suzuki - http://terkel.jp/ | |
* Licensed under the MIT license - http://www.opensource.org/licenses/MIT | |
*/ | |
(function (window, $) { | |
$.fn.parallax = function (options) { |
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
<select name="adr-pref" id="adr-pref"> | |
<optgroup label="北海道・東北"> | |
<option>北海道</option> | |
<option>青森県</option> | |
<option>岩手県</option> | |
<option>宮城県</option> | |
<option>秋田県</option> | |
<option>山形県</option> | |
<option>福島県</option> | |
</optgroup> |
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
$column-count: 12; | |
$column-width: 3em; | |
$gutter: 2em; | |
// 1. Class pattern | |
.gridRow { | |
margin-left: -($gutter); | |
@include clearfix; |
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
To keep updated, you can <a href="...">subscribe to my RSS feed</a>. | |
http://elliotjaystocks.com/ | |
<a href="..." title="Subscribe to my RSS feed"> | |
http://dbushell.com/ | |
For updates, please use <a href="...">RSS feed<a/> | |
http://www.maratz.com/about/ | |
<a href="..." title="Subscribe to my RSS feed for updates"> |
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
<?php | |
function get_root_rel_url ($url) { | |
$blog_url = get_bloginfo('url'); | |
$url = str_replace($blog_url, '', $url); | |
return $url; | |
} | |
function root_rel_url ($url) { | |
echo get_root_rel_url($url); |
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
<?php | |
function get_copyright_date ($then) { | |
$now = date('Y'); | |
if ($now > $then) { | |
return $then.'–'.$now; | |
} else { | |
return $then; | |
} | |
} |