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