1jQuery.noConflict(); 2jQuery(document).ready(function(){ 3 4/*AUDIO / VIDEO PLAYER STARTS*/ 5jQuery('audio,video').mediaelementplayer(); 6 /*AUDIO / VIDEO PLAYER ENDS*/ 7 8/*ACCORDION JQUERY STARTS*/ 9/********** jquery toogle function **********/ 10jQuery('#toggle-view li').click(function () { 11 var text = jQuery(this).children('p'); 12 13 if (text.is(':hidden')) { 14 text.slideDown('200'); 15 jQuery(this).find('.toggle-indicator').text('-'); 16 } else { 17 text.slideUp('200'); 18 jQuery(this).find('.toggle-indicator').text('+'); 19 } 20}); 21/*ACCORDION JQUERY ENDS*/ 22 23/*GOOGLE MAPS STARTS*/ 24if ( jQuery( '#map' ).length && jQuery() ) { 25var jQuerymap = jQuery('#map'); 26 jQuerymap.gMap({ 27 address: 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia', 28 zoom: 18, 29 markers: [ 30 { 'address' : 'Level 13, 2 Elizabeth St, Melbourne Victoria 3000 Australia' },] 31 }); 32 } 33/*GOOGLE MAPS STARTS*/ 34 35/*FIT VIDEOS STARTS*/ 36jQuery(".container").fitVids(); 37/*FIT VIDEOS ENDS*/ 38 39 40/*WIDTH RESIZE*/ 41 var currentWindowWidth = jQuery(window).width(); 42 jQuery(window).resize(function(){ 43 currentWindowWidth = jQuery(window).width(); 44 }); 45/*WIDTH RESIZE*/ 46 47/*PRETTY PHOTO STARTS*/ 48 jQuery("a[data-rel^='prettyPhoto'], a.prettyPhoto, a[rel^='prettyPhoto']").prettyPhoto({ 49 overlay_gallery: false 50 }); 51/*PRETTY PHOTO ENDS*/ 52 53/*BACK TO TOP*/ 54jQuery(document).ready(function() { jQuery('.backtotop').click(function(){ jQuery('html, body').animate({scrollTop:0}, 'slow'); return false; }); }); 55/*BACK TO TOP*/ 56 57 58 /*PORTFOLIO ITEM HOVER*/ 59if ( jQuery( '.portfolio-item-hover-content' ).length && jQuery() ) { 60function hover_effect() { 61jQuery('.portfolio-item-hover-content').hover(function() { 62 jQuery(this).find('div,a').stop(0,0).removeAttr('style'); 63 jQuery(this).find('.hover-options').animate({opacity: 0.9}, 'fast'); 64 jQuery(this).find('a').animate({"top": "60%" }); 65 }, function() { 66 jQuery(this).find('.hover-options').stop(0,0).animate({opacity: 0}, "fast"); 67 jQuery(this).find('a').stop(0,0).animate({"top": "150%"}, "slow"); 68 jQuery(this).find('a.zoom').stop(0,0).animate({"top": "150%"}, "slow"); 69 }); 70 } 71hover_effect(); 72} 73 74/*PORTFOLIO ITEM HOVER*/ 75 76/*HOMEPAGE CAROUSEL STARTS*/ 77(function() { 78 var jQuerycarousel = jQuery('#projects-carousel'); 79 if( jQuerycarousel.length ) { 80 var scrollCount; 81 if( jQuery(window).width() < 480 ) { 82 scrollCount = 1; 83 } else if( jQuery(window).width() < 768 ) { 84 scrollCount = 1; 85 } else if( jQuery(window).width() < 960 ) { 86 scrollCount = 3; 87 } else { 88 scrollCount = 4; 89 } 90 jQuerycarousel.jcarousel({ 91 animation : 600, 92 easing : 'easeOutCirc', 93 scroll : scrollCount, 94 initCallback: function() {jQuerycarousel.removeClass('loading')}, 95 }); 96} 97})(); 98/*HOMEPAGE CAROUSEL ENDS*/ 99 100/*RESPONSIVE MAIN NAVIGATION STARTS*/ 101 mainNavChildren(jQuery("#main-navigation > ul") , 0); 102 function mainNavChildren(parent , level){ 103 jQuery(parent).children("li").each(function(i , obj){ 104 var label = ""; 105 for(var k = 0 ; k < level ; k++){ 106 label += " "; 107 } 108 label += jQuery(obj).children("a").text(); 109 jQuery("#responsive-main-nav-menu").append("<option value = '" + jQuery(obj).children("a").attr("href") + "'>" + label + "</option>"); 110 111 if(jQuery(obj).children("ul").size() == 1){ 112 mainNavChildren(jQuery(obj).children("ul") , level + 1); 113 } 114 }); 115 } 116/*RESPONSIVE MAIN NAVIGATION STARTS*/ 117 118/*RESPONSIVE SOCIAL NAVIGATION STARTS*/ 119 mainNavSocial(jQuery("#social-icons > ul") , 0); 120 function mainNavSocial(parent , level){ 121 jQuery(parent).children("li").each(function(i , obj){ 122 var label = ""; 123 for(var k = 0 ; k < level ; k++){ 124 label += " "; 125 } 126 label += jQuery(obj).children("a").text(); 127 jQuery("#responsive-social-menu").append("<option value = '" + jQuery(obj).children("a").attr("href") + "'>" + label + "</option>"); 128 129 if(jQuery(obj).children("ul").size() == 1){ 130 mainNavSocial(jQuery(obj).children("ul") , level + 1); 131 } 132 }); 133 } 134 /*RESPONSIVE SOCIAL NAVIGATION STARTS*/ 135 136/*CAMERA SLIDERS STARTS*/ 137 if ( jQuery( '#camera_wrap_1' ).length && jQuery()) { 138 jQuery('#camera_wrap_1').camera({ 139 height: '350px', 140 loader: 'bar', 141 pagination: false, 142 thumbnails: true 143 }); 144 } 145if ( jQuery( '#camera_wrap_2' ).length && jQuery()) { 146 jQuery('#camera_wrap_2').camera({ 147 height: '350px', 148 thumbnails: true 149 }); 150 } 151/*CAMERA SLIDERS ENDS*/ 152 153/*TWITTER FEEDS STARTS (CHANGE USERNAME TO YOUR OWN USERNAME)*/ 154 if ( jQuery( '.tweet' ).length && jQuery()) { 155jQuery(".tweet").tweet({ 156 username: "trendywebstar", 157 join_text: null, 158 avatar_size: null, 159 count: 1, 160 auto_join_text_default: "we said,", 161 auto_join_text_ed: "we", 162 auto_join_text_ing: "we were", 163 auto_join_text_reply: "we replied to", 164 auto_join_text_url: "we were checking out", 165 loading_text: "loading tweets..." 166 }); 167 } 168/*TWITTER FEEDS ENDS*/ 169 170/*TIPSY STARTS*/ 171if ( jQuery().tipsy ) { 172 jQuery("#social-01").tipsy({gravity: 'n'}); 173 jQuery("#social-02").tipsy({gravity: 'n'}); 174 jQuery("#social-03").tipsy({gravity: 'n'}); 175 jQuery("#social-04").tipsy({gravity: 'n'}); 176 jQuery("#social-05").tipsy({gravity: 'n'}); 177 jQuery("#social-06").tipsy({gravity: 'n'}); 178 jQuery("#social-07").tipsy({gravity: 'n'}); 179 jQuery("#social-07").tipsy({gravity: 'n'}); 180 jQuery("#social-08").tipsy({gravity: 'n'}); 181 jQuery("#social-09").tipsy({gravity: 'n'}); 182 jQuery("#social-10").tipsy({gravity: 'n'}); 183 jQuery("#social-11").tipsy({gravity: 'n'}); 184 jQuery("#team-01").tipsy({gravity: 's'}); 185 } 186/*TIPSY ENDS*/ 187 188 189 190/* NAVIGATION JQUERY STARS */ 191if ( jQuery( '#main-navigation' ).length && jQuery() ) { 192/* var arrowimages={down:['downarrowclass', './images/plus.png', 23], right:['rightarrowclass', './images/plus-white.png']} */ 193var arrowimages={down:['downarrowclass'], right:['rightarrowclass', './images/plus-white.png']} 194var jqueryslidemenu={ 195animateduration: {over: 200, out: 100}, //duration of slide in/ out animation, in milliseconds 196buildmenu:function(menuid, arrowsvar){ 197 jQuery(document).ready(function(jQuery){ 198 var jQuerymainmenu=jQuery("#"+menuid+">ul") 199 var jQueryheaders=jQuerymainmenu.find("ul").parent() 200 jQueryheaders.each(function(i){ 201 var jQuerycurobj=jQuery(this) 202 var jQuerysubul=jQuery(this).find('ul:eq(0)') 203 this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:jQuerysubul.outerWidth(), subulh:jQuerysubul.outerHeight()} 204 this.istopheader=jQuerycurobj.parents("ul").length==1? true : false 205 jQuerysubul.css({top:this.istopheader? this._dimensions.h+"px" : 0}) 206 jQuerycurobj.children("a:eq(0)").css(this.istopheader? {paddingRight: arrowsvar.down[2]} : {}).append( 207 '<span class="' + (this.istopheader? arrowsvar.down[0] : arrowsvar.right[0]) 208 + '" />' 209 ) 210 jQuerycurobj.hover( 211 function(e){ 212 var jQuerytargetul=jQuery(this).children("ul:eq(0)") 213 this._offsets={left:jQuery(this).offset().left, top:jQuery(this).offset().top} 214 var menuleft=this.istopheader? 0 : this._dimensions.w 215 menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>jQuery(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft 216 if (jQuerytargetul.queue().length<=1) //if 1 or less queued animations 217 jQuerytargetul.css({left:menuleft+"px", width:this._dimensions.subulw+'px'}).slideDown(jqueryslidemenu.animateduration.over) 218 }, 219 function(e){ 220 var jQuerytargetul=jQuery(this).children("ul:eq(0)") 221 jQuerytargetul.slideUp(jqueryslidemenu.animateduration.out) 222 } 223 ) //end hover 224 jQuerycurobj.click(function(){ 225 jQuery(this).children("ul:eq(0)").hide() 226 }) 227 }) //end jQueryheaders.each() 228 jQuerymainmenu.find("ul").css({display:'none', visibility:'visible'}) 229 }) //end document.ready 230} 231} 232jqueryslidemenu.buildmenu("main-navigation", arrowimages) 233 234} 235 /* NAVIGATION JQUERY ENDS */ 236 237 238 239 /* 240 /* QUICKSAND PLUGIN JQUERY STARS */ 241 242 var jQueryfilterType = jQuery('#filterable li.active a').attr('class'); 243 var jQueryholder = jQuery('ul.portfolio-items'); 244 var jQuerydata = jQueryholder.clone(); 245 jQuery('#filterable li a').click(function(e) { 246 jQuery('#filterable li').removeClass('active'); 247 var jQueryfilterType = jQuery(this).attr('data-type'); 248 jQuery(this).parent().addClass('active'); 249 250 if (jQueryfilterType == 'all') { 251 var jQueryfilteredData = jQuerydata.find('li'); 252 } 253 else { 254 var jQueryfilteredData = jQuerydata.find('li[data-type~="' + jQueryfilterType + '"]'); 255 } 256 //alert(jQueryfilteredData); 257 jQueryholder.quicksand(jQueryfilteredData, { 258 duration: 500,
259 useScaling: false, 260 adjustHeight:false, 261 easing: 'swing', 262 enhancement:function(){ 263 hover_effect(); 264 } 265 }); 266 return false; 267 }); 268 269/* QUICKSAND PLUGIN JQUERY ENDS */ 270 271jQuery('#social-links a').attr('target', '_blank'); 272 273 274 275}); /* JQUERY ENDS */ 276
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.