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
<IfModule mod_rewrite.c> | |
# Enable Rewrite Engine | |
# ------------------------------ | |
RewriteEngine On | |
RewriteBase / | |
# Redirect index.php Requests | |
# ------------------------------ | |
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] |
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
RewriteEngine On | |
# exclude list method: http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method | |
RewriteCond $1 !^(admin|css|images|js|templates|themes|uploads|favicon\.ico|robots\.txt|index\.php|googleWebmasterFile\.html|sitemap\.html) [NC] | |
RewriteRule ^(.*)$ index.php?/$1 [L] |
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
// Thanks to Chris Coyier: http://css-tricks.com/organic-tabs/ | |
// I added a quick minHeight option and a check for it on line 50 | |
(function($) { | |
$.organicTabs = function(el, options) { | |
var base = this; | |
base.$el = $(el); | |
base.$nav = base.$el.find(".nav"); | |
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 query = escape('select item from weather.forecast where woeid=2450080'), | |
url = "http://query.yahooapis.com/v1/public/yql?q=" + query + "&format=json&callback=w"; | |
$.ajax({ | |
url: url, | |
dataType: 'jsonp', | |
jsonpCallback: 'w', | |
success: function(data) { | |
var cond = { | |
text: data.query.results.channel.item.condition.text, |
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
<!-- | |
uses jQuery FlexSlider v2.1 | |
by Tyler Smith ((@mbmufffin) | |
--> | |
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> |
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
(function($){ | |
$.fn.extend({ | |
//pass the options variable to the function | |
alert: function(options) { | |
//Set the default values | |
var defaults = { | |
pull: 'right', |
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
$.fn.fadeOutAndRemove = function(speed){ | |
$(this).fadeOut(speed,function(){ | |
$(this).remove(); | |
}) | |
} | |
// use like $('div').fadeOutAndRemove(200); |
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 dataJson = {}, | |
dataArray = []; | |
// assuming a JSON structure like this: | |
dataJson = { | |
"key1": { | |
"prop1": "val1", | |
"prop2": "val2" | |
}, |
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
// TODO: add keyboard listeners and aria attributes (expanded, haspopup) | |
///////////////////////// | |
////// HTML | |
/////////////// | |
<div class="drawer trigger-drawer-open is-drawer-closed"> | |
<div class="drawer-hd"> | |
<span class="pull-left" data-target="drawer-bd"><span class="icon--arrow--closed"></span></span> | |
<h3 class="drawer-title">Drawer header indicates drawer-bd content</h3> |
OlderNewer