1/* script prevents spam-bots from harvesting email address */ 2var name = "production"; 3var address = "timminchin.com"; 4var link = "Contact Tim"; 5function protectmail() { 6document.write('<a class="email" href=mailto:' + name + '@' + address + '>' + link + '</a>'); 7} 8 9/* clears default values from input boxes */ 10function clearText(thefield){ 11 if (thefield.defaultValue==thefield.value) 12 thefield.value = "" 13} 14 15/*! Copyright 2011, Ben Lin (http://dreamerslab.com/) 16* Licensed under the MIT License (LICENSE.txt). 17* 18* Version: 1.1.1 19* 20* Requires: jQuery 1.2.6+ 21*/ 22;( function( $, window ){ 23 var get_win_size = function (){ 24 if( window.innerWidth != undefined ){ 25 return [ window.innerWidth, window.innerHeight ]; 26 }else{ 27 var B = document.body; 28 var D = document.documentElement; 29 30 return [ Math.max( D.clientWidth, B.clientWidth ), Math.max( D.clientHeight, B.clientHeight )]; 31 } 32 } 33 34 $.fn.center = function( opt ){ 35 var $w = $( window ); // cache gobal 36 var scrollTop = $w.scrollTop(); 37 38 return this.each( function(){ 39 var $this = $( this ); // cache $( this ) 40 41 // merge user options with default configs 42 var configs = $.extend({ 43 against : 'window', 44 top : false, 45 topPercentage : 0.5, 46 resize : true 47 }, opt ); 48 49 var centerize = function(){ 50 var against = configs.against; 51 var against_w_n_h; 52 var $against; 53 54 if( against === 'window' ){ 55 against_w_n_h = get_win_size(); 56 }else if( against === 'parent' ){ 57 $against = $this.parent(); 58 against_w_n_h = [ $against.width(), $against.height()]; 59 scrollTop = 0; 60 }else{ 61 $against = $this.parents( against ); 62 against_w_n_h = [ $against.width(), $against.height()]; 63 scrollTop = 0; 64 } 65 66 var x = (( against_w_n_h[ 0 ]) - ( $this.outerWidth())) * 0.5; 67 var y = (( against_w_n_h[ 1 ]) - ( $this.outerHeight())) * configs.topPercentage + scrollTop; 68 69 if( configs.top ) y = configs.top + scrollTop; 70 71 $this.css({ 72 'left' : x, 73 'top' : y 74 }); 75 }; 76 77 // apply centerization 78 centerize(); 79 if( configs.resize === true ) $w.resize( centerize ); 80 }); 81 }; 82})( $, window ); 83 84// Begin jQuery functions. 85$('document').ready(function(){ 86 87 // Shop switcher mechanism. 88 $('.merch h1, #shop-switcher').hover( 89 function(){ 90 $('#shop-switcher').css('left', '175px'); 91 }, function(){ 92 $('#shop-switcher').css('left', '-9999px'); 93 } 94 ); 95 96 // Choose store on link click. 97 $('a.shop-chooser, #shop-chooser-whiteout, #close-shop-chooser').bind('click', function(clickEvent){ 98 var anchorURL = $(this).attr('href'); 99 100 $('li.australasia a').attr('href', '/australasia-shop-selection/'); 101 $('li.europe a').attr('href', 'http://timminchin.firebrandstores.com'); 102 $('li.america a').attr('href', 'http://timminchin.shopfirebrand.com'); 103 104 $('#shop-chooser-whiteout').toggle(); 105 $('#shop-chooser').toggle().center(); 106 clickEvent.preventDefault(); 107 }); 108 109});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.