This file contains hidden or 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
/** | |
* Extending Paul Irish’s DOM-ready execution for single-page AJAX application. | |
* This snippet executes methods based on URL hash values. | |
* | |
* Original implementation by Paul Irish & Viget Labs: http://bit.ly/aEwAny | |
* Requires jQuery Address plugin: http://bit.ly/11wNxa | |
* | |
* TODO: support HTML5 History API. | |
* | |
*/ |
This file contains hidden or 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
{ | |
"Abel": "abel", | |
"Abril Fatface": "abril-fatface", | |
"Aclonica": "aclonica", | |
"Acme": "acme", | |
"Actor": "actor", | |
"Adamina": "adamina", | |
"Advent Pro": "advent-pro", | |
"Aguafina Script": "aguafina-script", | |
"Aladin": "aladin", |
This file contains hidden or 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 5 | |
// paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
//if IE 8 | |
<html class="no-js lt-ie9" lang="en"> | |
//[if gt IE 8]><! | |
html(class="no-js", lang="en") | |
//<![endif] | |
head |
This file contains hidden or 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 SheepIt HTML Template - http://goo.gl/7VrJu --> | |
<!-- start: SheepIt Form --> | |
<div id="myform"> | |
<!-- start: Form template--> | |
<div class="template" id="myform_template"> | |
<label for="myform_#index#_name">Name <span id="myform_label"></span></label> | |
<input id="myform_#index#_name" name="myform_name[#index#]" type="text"/> | |
<div> | |
<a href="#" id="myform_remove_current" class="icon-remove-sign"></a> |
This file contains hidden or 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 SheepIt Configuration - http://goo.gl/7VrJu | |
// SheepIt plugin defaults | |
var defaults = { | |
separator: '', | |
// controls | |
allowRemoveLast: true, | |
allowRemoveCurrent: true, | |
allowRemoveAll: false, | |
allowAdd: true, |
This file contains hidden or 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
.top-bar { | |
background-color: transparent; | |
&.expanded { | |
.title-area { | |
background-color: transparent; | |
} | |
} | |
} |
This file contains hidden or 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 ($articles->pagination()->hasPages()): ?> | |
<ul class="pagination"> | |
<? if($articles->pagination()->hasNextPage()): ?> | |
<li><a class="prev" href="<?= $articles->pagination()->nextPageURL() ?>">Older posts</a></li> | |
<? endif; ?> | |
<? foreach($articles->pagination()->range(5) as $paging): ?> | |
<li><a href="<?= $articles->pagination()->pageURL($paging); ?>"><?= $paging; ?></a></li> | |
<? endforeach ?> |
This file contains hidden or 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
// sanity checks | |
var $map = $('.map-container'); | |
if ($map.length) { | |
// on page load, run the main map handler | |
google.maps.event.addDomListener(window, 'load', originsMap); | |
} | |
// custom map style. see: http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html | |
var mapStyle = [{featureType:'water',elementType:'all',stylers:[{hue:'#281d01'},{saturation:100},{lightness:-89},{visibility:'simplified'}]},{featureType:'landscape',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:47},{lightness:-39},{visibility:'on'}]},{featureType:'road',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:-39},{lightness:-15},{visibility:'off'}]},{featureType:'poi',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:32},{lightness:-30},{visibility:'off'}]},{featureType:'administrative.province',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:61},{lightness:7},{visibility:'off'}]},{featureType:'administrative.locality',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:61},{lightness:54 |
This file contains hidden or 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
function range() { | |
// the outer most container element that wraps the pages | |
var $viewport = $('.viewport'); | |
// the container element for each pages | |
var $page = $('.page'); | |
// viewport dimension | |
var viewX = $viewport.scrollLeft(), | |
viewY = $viewport.scrollTop(), | |
viewWidth = $viewport.width(), |
This file contains hidden or 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
@mixin size($width, $height: $width) { | |
width: $width; | |
height: $height; | |
} |
OlderNewer