1 /* Responsive Changes to DOM */ 2 jQuery.fn.swapWith = function(to) { 3 return this.each(function() { 4 var copy_to = $(to).clone(true); 5 var copy_from = $(this).clone(true); 6 $(to).replaceWith(copy_from); 7 $(this).replaceWith(copy_to); 8 }); 9 }; 10 11 12 jQuery.fn.isBefore= function(sel){ 13 return this.nextAll(sel).length !== 0; 14 } 15 16 17 function ten23() { 18 19 if($(window).width() < 1023) { 20 21 if($('#left').isBefore($('#right'))) { 22 $('#left').swapWith($('#right')); 23 } 24 25 26 $('table .download, table .description').remove(); 27 $('table#documents th:contains(Description)').remove(); 28 $('table#documents th:first-child').remove(); 29 30 31 } else { 32 // if > 1023 33 if($('#right').isBefore($('#left'))) { 34 $('#right').swapWith($('#left')); 35 } 36 } 37 } 38 39 40 41 $(window).resize(function() { 42 43 ten23(); 44 $('ul.sf-menu').superclick(); 45 46 }); 47 48 ten23(); 49 50 51 52 53 54/* Responsive Menu */ 55 56$('#responder ul').removeClass('sf-menu'); 57 58$('#menu, #close').click(function() { 59 $('#responder, #wrapper').toggleClass('open'); 60 $('#menu').toggle(); 61 return false; 62}); 63 64 65 66 67 68 if(jQuery().pngFix) { 69 $(document).pngFix(); 70 } 71 72 73 function deObfuscate(str) { 74 var asciiArray = str.split("."); 75 76 for(k=0; k < asciiArray.length; k++) { 77 asciiArray[k] = String.fromCharCode(asciiArray[k]); 78 } // end for 79 80 var outStr = asciiArray.join(""); 81 return outStr; 82 } // end deObfuscate 83 84 85 $("a.email").each(function(i){ 86 var decoded = deObfuscate(this.rev); 87 var mailto = "mailto:" + decoded; 88 this.href = mailto; 89 $(this).html(decoded); 90 $(this).style({ display: true }); 91 }); // end callback func 92 93 94 95 if(jQuery().prettyPhoto) { 96 97 $(".apollo-gallery").click(function() { 98 99 100 var id = $(this).attr("href").replace("#", ""); 101 102 var data = new Array(); 103 data['id'] = id; 104 105 $.getJSON('/json_portfolio/'+id, function(response) { 106 // alert(response.images); 107 $.prettyPhoto.open(response.images,response.descriptions, response.titles); 108 }); 109 110 111 return false; 112 113 }); 114 115 116 $("a[rel^='prettyPhoto']").prettyPhoto({ 117 theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 118 opacity: 0.67, 119 overlay_gallery : false 120 }); 121 122 } 123
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.