1// Rewritten version 2// By @mathias, @cheeaun and @jdalton 3 4(function(doc) { 5 6var addEvent = 'addEventListener', 7type = 'gesturestart', 8qsa = 'querySelectorAll', 9scales = [1, 1], 10meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; 11 12function fix() { 13meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; 14doc.removeEventListener(type, fix, true); 15} 16 17if ((meta = meta[meta.length - 1]) && addEvent in doc) { 18fix(); 19scales = [.25, 1.6]; 20doc[addEvent](type, fix, true); 21} 22 23}(document)); 24 25jQuery(document).ready(function(){ 26 27// --------------------------------------------------------- 28// Tabs 29// --------------------------------------------------------- 30jQuery(".tabs").each(function(){ 31 32 jQuery(this).find(".tab").hide(); 33 jQuery(this).find(".tab-menu li:first a").addClass("active").show(); 34 jQuery(this).find(".tab:first").show(); 35 36}); 37 38jQuery(".tabs").each(function(){ 39 40 jQuery(this).find(".tab-menu a").click(function() { 41 42 jQuery(this).parent().parent().find("a").removeClass("active"); 43 jQuery(this).addClass("active"); 44 jQuery(this).parent().parent().parent().parent().find(".tab").hide(); 45 var activeTab = jQuery(this).attr("href"); 46 jQuery(activeTab).fadeIn(); 47 return false; 48 49 }); 50 51}); 52 53 54 55// --------------------------------------------------------- 56// Menu 57// --------------------------------------------------------- 58 59//jQuery('.sf-menu').mobileMenu({ 60// combine: false, 61// switchWidth:538, 62// prependTo: 'div.container nav.primary' 63//}); 64 65 jQuery('.sf-menu').mobileMenu(); 66 67 68// --------------------------------------------------------- 69// Toggle 70// --------------------------------------------------------- 71 72jQuery(".toggle").each(function(){ 73 74 jQuery(this).find(".box").hide(); 75 76}); 77 78jQuery(".toggle").each(function(){ 79 80 jQuery(this).find(".trigger").click(function() { 81 82 jQuery(this).toggleClass("active").next().stop(true, true).slideToggle("normal"); 83 84 return false; 85 86 }); 87 88}); 89 90 91 92jQuery(".recent-posts.team li:nth-child(3n)").addClass("nomargin"); 93 94 95 96// --------------------------------------------------------- 97// Social Icons 98// --------------------------------------------------------- 99 100jQuery(".tooltip").tooltip({ effect: 'slide', position: 'bottom center', opacity: .5 }); 101 102 103 /// SAfari hack 104 var isSafari = /Constructor/.test(window.HTMLElement); 105 106 if(isSafari === true){ 107 $(".golink").css('height','177px'); 108 } 109 110 111});
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.