summaryrefslogtreecommitdiffstats
path: root/site/js
diff options
context:
space:
mode:
authorJosh Brewer2011-04-19 23:02:40 -0700
committerJosh Brewer2011-04-19 23:02:40 -0700
commit35ea8d18f349deb03f6412d67b42baddf822408e (patch)
tree3a6a029ac85596a48ae03eb229dc34f831fcff12 /site/js
parent89ff560712a9264db5b73ce3b76f656b4a3468ea (diff)
downloadffffallback-35ea8d18f349deb03f6412d67b42baddf822408e.tar.bz2
moving new site out of site folder and last couple tweaks in prep for launch
Diffstat (limited to 'site/js')
-rw-r--r--site/js/css_browser_selector.js8
-rwxr-xr-xsite/js/jquery.lettering.js66
2 files changed, 0 insertions, 74 deletions
diff --git a/site/js/css_browser_selector.js b/site/js/css_browser_selector.js
deleted file mode 100644
index 0668aa7..0000000
--- a/site/js/css_browser_selector.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-CSS Browser Selector v0.4.0 (Nov 02, 2010)
-Rafael Lima (http://rafael.adm.br)
-http://rafael.adm.br/css_browser_selector
-License: http://creativecommons.org/licenses/by/2.5/
-Contributors: http://rafael.adm.br/css_browser_selector#contributors
-*/
-function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
diff --git a/site/js/jquery.lettering.js b/site/js/jquery.lettering.js
deleted file mode 100755
index 4515590..0000000
--- a/site/js/jquery.lettering.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*global jQuery */
-/*!
-* Lettering.JS 0.6.1
-*
-* Copyright 2010, Dave Rupert http://daverupert.com
-* Released under the WTFPL license
-* http://sam.zoy.org/wtfpl/
-*
-* Thanks to Paul Irish - http://paulirish.com - for the feedback.
-*
-* Date: Mon Sep 20 17:14:00 2010 -0600
-*/
-(function($){
- function injector(t, splitter, klass, after) {
- var a = t.text().split(splitter), inject = '';
- if (a.length) {
- $(a).each(function(i, item) {
- inject += '<span class="'+klass+(i+1)+'">'+item+'</span>'+after;
- });
- t.empty().append(inject);
- }
- }
-
- var methods = {
- init : function() {
-
- return this.each(function() {
- injector($(this), '', 'char', '');
- });
-
- },
-
- words : function() {
-
- return this.each(function() {
- injector($(this), ' ', 'word', ' ');
- });
-
- },
-
- lines : function() {
-
- return this.each(function() {
- var r = "eefec303079ad17405c889e092e105b0";
- // Because it's hard to split a <br/> tag consistently across browsers,
- // (*ahem* IE *ahem*), we replaces all <br/> instances with an md5 hash
- // (of the word "split"). If you're trying to use this plugin on that
- // md5 hash string, it will fail because you're being ridiculous.
- injector($(this).children("br").replaceWith(r).end(), r, 'line', '');
- });
-
- }
- };
-
- $.fn.lettering = function( method ) {
- // Method calling logic
- if ( method && methods[method] ) {
- return methods[ method ].apply( this, [].slice.call( arguments, 1 ));
- } else if ( method === 'letters' || ! method ) {
- return methods.init.apply( this, [].slice.call( arguments, 0 ) ); // always pass an array
- }
- $.error( 'Method ' + method + ' does not exist on jQuery.lettering' );
- return this;
- };
-
-})(jQuery); \ No newline at end of file