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.locale = { | |
en: { | |
day_names: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], | |
day_names_short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], | |
month_names: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], | |
month_names_short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | |
} | |
}; | |
//==================================================== |
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.teletype = function(opts){ | |
var $this = this, | |
defaults = { | |
animDelay: 50 | |
}, | |
settings = $.extend(defaults, opts); | |
$.each(settings.text.split(''), function(i, letter){ | |
setTimeout(function(){ | |
$this.html($this.html() + letter); |
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
{ | |
urls:[ | |
{url:'http://google.com', comment:'so funny', user:'Joe Schmoe'}, | |
{url:'http://google.com', comment:'so funny', user:'Joe Schmoe'}, | |
{url:'http://google.com', comment:'so funny', user:'Joe Schmoe'}, | |
{url:'http://google.com', comment:'so funny', user:'Joe Schmoe'} | |
] | |
} |
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
rand: function(min, max){ | |
var rand = Math.random() * (max - min) + min; | |
return Math.round(rand); | |
} | |
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($){ | |
//here's our TechWindow constructor | |
$.TechWindow = function (el, options) { | |
this.options = options; | |
this.$el = $(el); | |
this.init(); | |
}; | |
//default 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
/* | |
* Plugin Name : responsiveEvents | |
* Author : Shane Donnelly | |
*/ | |
(function($){ | |
$.fn.responsiveEvents = function(options){ | |
var defaults = { | |
'phone_portrait' : true, |
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
/* | |
* Plugin Name : basicImageCycler | |
* Author : Shane Donnelly | |
*/ | |
(function($){ | |
$.fn.basicImageCycler = function(options){ | |
var defaults = { | |
'images' : [], |
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 highlight_current_link($element){ | |
var pathname = (window.location.pathname.match(/[^\/]+$/)[0]); | |
$element.find("a").removeClass("current"); | |
$element.find("a[href='" + pathname + "']").addClass("active"); | |
} |
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
/* | |
* Plugin Name : imgResize | |
* Author : Shane Donnelly | |
*/ | |
(function($){ | |
//here's our resizer object | |
$.Resize = function (el, options) { | |
this.options = options; | |
this.$el = $(el); |
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
//set the console log area up - only populated if IE | |
$('body').append('<div id="debug" style="position: absolute; top: 0; left: 200px; background: #fff; display: none; visibility: hidden;"></div>') | |
//log messages to this function instead of using console.log | |
function ie_console_log(console_message) { | |
try { | |
console.log(console_message) | |
} | |
catch (e) { | |
$('#debug').append('<div class="debug">'+ console_message +'</div>') |