1 2 3$(document).ready(function(){ 4 $('#hero').flexslider({ 5 animation: "fade", 6 duration: 3000 7 }); 8 9 10 11 12}); 13 14 15$(document).ready(function(){ 16 17 18 19 20 21 22 $('.grid img').each(function(){ 23 $(this).wrap('<a class="fancybox"></a>'); 24 }); 25 $('.grid a.fancybox').each(function(){ 26 imgpath = $(this).find('img').attr('src'); 27 $(this).attr('href',imgpath) 28 $(this).attr('rel', 'gallery') 29 }); 30 $('.grid a.fancybox').fancybox({padding:0}); 31/* 32 $('.grid a.fancybox img').each(function() { 33 var imageH = $(this).height(); 34 var imageW = $(this).width(); 35 if (imageH > imageW) { 36 $(this).addClass('vert'); 37 } 38 else { 39 $(this).addClass('horz'); 40 41 } 42 }); 43*/ 44 45 46 47 48 49/* 50 var count = $('#story .grid').children().length; 51 if ( (count <= 3) && ($('.vert').length > 0) ) { 52 $('.grid').addClass('float'); 53 } 54 if ( (count <= 4) && ($('.vert').length == 0) ) { 55 $('.grid').addClass('float'); 56 } 57*/ 58 //&& ($('.vert').length > 0) 59 60 61 $('#story.prop-detail .inset h1').each(function(){ 62 var propT = $(this).text().length; 63 if (propT > 10) { 64 //alert(propT); 65 $(this).find('small').addClass('tight'); 66 } 67 }); 68}); 69 70 //$(propS).addClass('margin','5px 0 10px'); 71 //$(propS).css('display','block'); 72 73 74 75// HEIGHTS 76function propImg () { 77 var horzH = $('#story .grid .horz').height(); 78 var vertH = ((horzH * 2) + 15); 79 $('#story .grid .vert').css('height', vertH); 80 //$('#story .grid .horz').css('height', horzH); 81} 82 83$(document).ready(function(){ 84 $(propImg); 85}); 86$(window).resize(function() { 87 $(propImg); 88 89}); 90 91 92 93 94 95 96 97 98 99 100 101 102/* 103 CSS Browser Selector js v0.5.3 (July 2, 2013) 104 105 -- original -- 106 Rafael Lima (http://rafael.adm.br) 107 http://rafael.adm.br/css_browser_selector 108 License: http://creativecommons.org/licenses/by/2.5/ 109 Contributors: http://rafael.adm.br/css_browser_selector#contributors 110 -- /original -- 111 112 Fork project: http://code.google.com/p/css-browser-selector/ 113 Song Hyo-Jin (shj at xenosi.de) 114 */ 115function css_browser_selector(n){var b=n.toLowerCase(),f=function(c){return b.indexOf(c)>-1},h="gecko",k="webkit",p="safari",j="chrome",d="opera",e="mobile",l=0,a=window.devicePixelRatio?(window.devicePixelRatio+"").replace(".","_"):"1";var i=[(!(/opera|webtv/.test(b))&&/msie\s(\d+)/.test(b)&&(l=RegExp.$1*1))?("ie ie"+l+((l==6||l==7)?" ie67 ie678 ie6789":(l==8)?" ie678 ie6789":(l==9)?" ie6789 ie9m":(l>9)?" ie9m":"")):(/trident\/\d+.*?;\s*rv:(\d+)\.(\d+)\)/.test(b)&&(l=[RegExp.$1,RegExp.$2]))?"ie ie"+l[0]+" ie"+l[0]+"_"+l[1]+" ie9m":(/firefox\/(\d+)\.(\d+)/.test(b)&&(re=RegExp))?h+" ff ff"+re.$1+" ff"+re.$1+"_"+re.$2:f("gecko/")?h:f(d)?d+(/version\/(\d+)/.test(b)?" "+d+RegExp.$1:(/opera(\s|\/)(\d+)/.test(b)?" "+d+RegExp.$2:"")):f("konqueror")?"konqueror":f("blackberry")?e+" blackberry":(f(j)||f("crios"))?k+" "+j:f("iron")?k+" iron":!f("cpu os")&&f("applewebkit/")?k+" "+p:f("mozilla/")?h:"",f("android")?e+" android":"",f("tablet")?"tablet":"",f("j2me")?e+" j2me":f("ipad; u; cpu os")?e+" chrome android tablet":f("ipad;u;cpu os")?e+" chromedef android tablet":f("iphone")?e+" ios iphone":f("ipod")?e+" ios ipod":f("ipad")?e+" ios ipad tablet":f("mac")?"mac":f("darwin")?"mac":f("webtv")?"webtv":f("win")?"win"+(f("windows nt 6.0")?" vista":""):f("freebsd")?"freebsd":(f("x11")||f("linux"))?"linux":"",(a!="1")?" retina ratio"+a:"","js portrait"].join(" ");if(window.jQuery&&!window.jQuery.browser){window.jQuery.browser=l?{msie:1,version:l}:{}}return i}(function(j,b){var c=css_browser_selector(navigator.userAgent);var g=j.documentElement;g.className+=" "+c;var a=c.replace(/^\s*|\s*$/g,"").split(/ +/);b.CSSBS=1;for(var f=0;f<a.length;f++){b["CSSBS_"+a[f]]=1}var e=function(d){return j.documentElement[d]||j.body[d]};if(b.jQuery){(function(q){var h="portrait",k="landscape";var i="smartnarrow",u="smartwide",x="tabletnarrow",r="tabletwide",w=i+" "+u+" "+x+" "+r+" pc";var v=q(g);var s=0,o=0;function d(){if(s!=0){return}try{var l=e("clientWidth"),p=e("clientHeight");if(l>p){v.removeClass(h).addClass(k)}else{v.removeClass(k).addClass(h)}if(l==o){return}o=l}catch(m){}s=setTimeout(n,100)}function n(){try{v.removeClass(w);v.addClass((o<=360)?i:(o<=640)?u:(o<=768)?x:(o<=1024)?r:"pc")}catch(l){}s=0}if(b.CSSBS_ie){setInterval(d,1000)}else{q(b).on("resize orientationchange",d).trigger("resize")}})(b.jQuery)}})(document,window); 116 117
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.