PageSourceSearch

https://theemerypdx.com/wp-content/themes/newave-theme/js/scripts.js?ver=7.1.3

js theemerypdx.com collected 2026-10-08 08:19:21 UTC 41,836 bytes, 1,296 lines download raw bytes

1//Page Preloader
2jQuery(window).on( 'load', function () {
3	
4	setTimeout( function(){
5					jQuery('.animsition-loading').remove();
6					jQuery('body.animsition').css("opacity", "1");						
7				} , 500 );			
8});
9
10jQuery(document).ready(function(){
11	
12	
13	//New In Reloaded
14	if ( jQuery(window).width() < 1025 ) { 
15		jQuery('li.dropdown a').on('click', function (event) {
16			jQuery(this).parent().toggleClass('open');
17		});
18		
19		jQuery('.show-menu').on('click', function (event) {
20			jQuery(this).toggleClass('collapsed');
21		});
22	}
23	
24	jQuery(".animsition").animsition({
25	  
26		inClass               :   'fade-in',
27		outClass              :   'fade-out',
28		inDuration            :    500,
29		outDuration           :    500,
30		linkElement           :   '.external',
31		// e.g. linkElement   :   'a:not([target="_blank"]):not([href^=#])'
32		loading               :    true,
33		loadingParentElement  :   'html', //animsition wrapper element
34		loadingClass          :   'animsition-loading',
35		unSupportCss          : [ 'animation-duration',
36								  '-webkit-animation-duration',
37								  '-o-animation-duration'
38								],
39		//"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
40		//The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
41		
42		overlay               :   false,
43		
44		overlayClass          :   'animsition-overlay-slide',
45		overlayParentElement  :   'body'
46	});
47	
48	jQuery(".hamburger, #black-fade").click(function() {
49		jQuery(".hamburger ").toggleClass("is-active");
50		jQuery("header").toggleClass("show-menu");
51		jQuery('#black-fade').toggleClass('display-hide');
52		jQuery('body').toggleClass('menu-in');
53		setTimeout(function(){
54		jQuery("body").toggleClass("no-scroll");
55		},( 1 ));					
56	});
57	
58	jQuery('nav li.has-sub>a').on('click', function(){
59		jQuery(this).removeAttr('href');
60		var element = jQuery(this).parent('li');
61		if (element.hasClass('open')) {
62			element.removeClass('open');
63			element.find('li').removeClass('open');
64			element.find('ul').slideUp();
65		}
66		else {
67			element.addClass('open');
68			element.children('ul').slideDown();
69			element.siblings('li').children('ul').slideUp();
70			element.siblings('li').removeClass('open');
71			element.siblings('li').find('li').removeClass('open');
72			element.siblings('li').find('ul').slideUp();
73		}
74	});
75	
76	//Hero Height
77	function HeroHeight() {
78	
79		jQuery(window).on( 'resize', function () {
80	
81		if( jQuery('#hero').length > 0 ){
82			
83			if (jQuery('#hero').hasClass('hero-small')) {
84				var heights = window.innerHeight;
85				document.getElementById("hero").style.height = heights * 0.5 + "px";
86			} else if (jQuery('#hero').hasClass('hero-large')) {
87				var heights = window.innerHeight;
88				document.getElementById("hero").style.height = heights * 0.85 + "px";
89			}  else  {			
90				var heights = window.innerHeight;
91				document.getElementById("hero").style.height = heights + "px";
92			}
93		}
94		
95		});
96	
97	}
98	
99	HeroHeight();
100	MasonryPortfolio();
101	
102	var page_title = jQuery('body');
103		var block_intro = page_title.find('#hero-styles');
104		if( block_intro.length > 0 ) var block_intro_top = block_intro.offset().top;	
105	jQuery( window ).scroll(function() {
106		var current_top = jQuery(document).scrollTop(); 
107		var hero_height = jQuery('#hero-styles').height();
108		if( jQuery('#hero-styles').hasClass('parallax-hero')){			  
109			block_intro.css('top', (current_top*0.5));			
110		}
111		if( jQuery('#hero-styles').hasClass('static-hero')){			  
112			block_intro.css('top', (current_top*1));			
113		}
114		if( jQuery('#hero-styles').hasClass('opacity-hero')){				 
115			block_intro.css('opacity', (1 - current_top / hero_height * 1.2));
116		}
117	});
118	
119	
120	if( jQuery('.clapat-slider').length > 0 ){
121
122		var main_slider_transition    = "slide";
123		var main_slider_auto          = true;
124		var main_slider_speed         = 5000;
125		var main_slider_direction     = "horizontal";
126		if( typeof MainSliderOptions != 'undefined' ){
127			main_slider_transition    = MainSliderOptions.slider_transition;
128			main_slider_speed         = MainSliderOptions.slider_speed;
129			main_slider_auto          = MainSliderOptions.slider_autoplay;
130			main_slider_direction     = MainSliderOptions.slider_direction;
131		}
132		
133		jQuery('.clapat-slider').flexslider({
134			animation: main_slider_transition,
135			direction: main_slider_direction,
136			slideshow: main_slider_auto,
137			slideshowSpeed: main_slider_speed,
138			animationSpeed: 1000,
139			animationLoop: false,
140			controlNav: false,
141			directionNav: true,
142			before: function(slider){
143			  jQuery(slider).find(".flex-active-slide").find('.clapat-caption').each(function(){
144			   jQuery(this).removeClass("animated");
145			   });
146			 },
147			after: function(slider){
148				  jQuery(slider).find(".flex-active-slide").find('.clapat-caption').addClass("animated");
149			  },
150			useCSS: true				
151		});
152	}
153	
154	//Progress bar animations	
155	jQuery('.progress-bar li').each(function(i){		
156		jQuery(this).appear(function(){			
157			var percent = jQuery(this).find('span').attr('data-width');
158			var $endNum = parseInt(jQuery(this).find('span strong i').text());
159			var $that = jQuery(this);			
160			jQuery(this).find('span').animate({
161				'width' : percent + '%'
162			},1600, function(){
163			});			
164			jQuery(this).find('span strong').animate({
165				'opacity' : 1
166			},1400);			
167			jQuery(this).find('span strong i').countTo({
168				from: 0,
169				to: $endNum,
170				speed: 1200,
171				refreshInterval: 30,
172				onComplete: function(){}
173			});	 
174			if(percent == '100'){
175				$that.find('span strong').addClass('full');
176			}	
177		});
178	});	
179	
180	
181	//End In Reloaded
182	
183	
184	if( jQuery('#maximage-external').length > 0 ){
185
186		jQuery('#maximage-external').maximage({
187            cycleOptions: {
188				fx: 'fade',
189	            speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
190	            timeout: 6000,
191	            prev: '#arrow_left',
192	            next: '#arrow_right',
193	            pause: 1,
194            },
195		});
196
197	}
198	
199	//Sticky Navigation	
200	if( jQuery('.slide-menu').length > 0 ){	
201		if( jQuery('#portfolio').length > 0 ){		
202			jQuery("#filters.modern-filters").sticky({topSpacing:0});
203		}	
204	}
205	jQuery("#navigation").sticky({topSpacing:1});
206	
207	InitContactMap();
208
209});
210
211
212
213if( jQuery('.slide-menu').length > 0 ){	
214	if( jQuery('#portfolio').length > 0 ){		
215		jQuery(window).scroll(function () {
216			if (jQuery(window).scrollTop() + jQuery(window).height() > jQuery('.portfolio-bottom').offset().top + jQuery(window).height() - 100) {
217				jQuery("#filters.modern-filters").addClass("hide-filters");
218			} else {
219				jQuery("#filters.modern-filters").removeClass("hide-filters");
220			}
221		});
222	}
223}
224
225	  
226//Back To Top
227jQuery(function() {
228	jQuery('a#back-top').click(function () {
229		jQuery('html, body').stop().animate({
230				scrollTop: 0
231			}, 1500,'easeInOutExpo');
232		});
233});
234//Navigation Scrolling
235jQuery(function() {
236	jQuery('.nav a, .nav li a, #home-center a, a.move').bind('click',function(event){
237		var $anchor = jQuery(this);
238		
239		if( jQuery('.slide-menu').length > 0 ){		
240			jQuery('html, body').stop().animate({
241			scrollTop: jQuery($anchor.attr('href')).offset().top 
242			}, 1500,'easeInOutExpo');		
243		} else {
244			jQuery('html, body').stop().animate({
245			scrollTop: jQuery($anchor.attr('href')).offset().top -44
246			}, 1500,'easeInOutExpo');
247		}
248		
249		event.preventDefault();
250	});
251});
252	 
253//PrettyPhoto
254jQuery(function(){
255	jQuery("a[rel^='prettyPhoto']").prettyPhoto({
256			  opacity: 0.5,
257			  social_tools: "",
258			  deeplinking: false
259	});
260});		
261//Parallax	
262jQuery(window).bind('load', function () {
263	parallaxInit();						  
264});
265function parallaxInit() {
266    jQuery('.parallax').each(function(){
267        jQuery(this).parallax("30%", 0.1);
268    });
269}
270//BxSlider
271jQuery(document).ready(function(){
272		
273		var onMobile = false;
274		if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { onMobile = true; }
275        var fullwidth_slider_auto  = true;
276        var fullwidth_slider_speed = 1000;
277        if( typeof FullwidthSliderOptions != 'undefined' ){
278            fullwidth_slider_auto   = FullwidthSliderOptions.slider_auto;
279            fullwidth_slider_speed  = FullwidthSliderOptions.slider_speed;
280        }
281		jQuery('.fullwidth-slider').bxSlider({
282			mode: "fade",
283			speed: 1000,
284			pager: false,
285            auto: fullwidth_slider_auto,
286            pause: fullwidth_slider_speed,
287			
288			onSlideBefore: function(jQueryslideElement) {
289				(jQueryslideElement).find('.slide-caption').fadeOut().animate({top:'100px'},{queue:false, easing: 'easeOutQuad', duration: 550});
290				(jQueryslideElement).find('.slide-caption').hide().animate({top:'-100px'});
291			},
292			onSlideAfter: function(jQueryslideElement) {
293				(jQueryslideElement).find('.slide-caption').fadeIn().animate({top:'0'},{queue:false, easing: 'easeOutQuad', duration: 450});
294			},
295			
296		});
297		
298		jQuery('.bx-wrapper .bx-controls-direction a').attr('data-500','top:83%; opacity: 0;').attr('data-start','top:50%; opacity: 1;');
299		
300		
301		if( ( onMobile === false ) && ( jQuery('.parallax-slider').length ) ) {
302		
303			skrollr.init({
304				edgeStrategy: 'set',
305				smoothScrolling: false,
306				forceHeight: false
307			});
308			
309		}	
310		
311		
312		
313	    
314		jQuery('.twitter-slider').bxSlider({
315			controls: true, 
316			pager: false,		
317			auto:true,
318			mode:'fade',
319			pause: 3000,
320		});
321		
322		
323		jQuery('.clients-slider').bxSlider({
324			pagerCustom: '#bx-pager',
325			controls:false,
326		});
327		
328		jQuery('.project-slider').bxSlider({
329			controls: true, 
330			pager: false,		
331			auto:true,
332			pause: 3000,
333			preloadImages:'all',
334		});
335		
336		jQuery('.blog-slider').bxSlider({
337			controls: true, 
338			pager: false,		
339			auto:false,
340			pause: 3000,
341			preloadImages: 'visible',
342            adaptiveHeight:true,
343		});
344        var text_slider_transition  = 'fade';
345        var text_slider_speed       = 5000;
346        if( typeof TextSliderOptions != 'undefined' ){
347            text_slider_transition  = TextSliderOptions.slider_transition;
348            text_slider_speed       = TextSliderOptions.slider_speed;
349        }
350		jQuery('.text-slide-vertical').bxSlider({
351			controls: false,
352			adaptiveHeight: true, 
353			pager: false,		
354			auto: true,
355			mode: text_slider_transition,
356			pause: text_slider_speed,
357		});
358        var page_title = jQuery('body');
359        var block_intro = page_title.find('.block-intro');
360        if( block_intro.length > 0 ) var block_intro_top = block_intro.offset().top;
361        jQuery( window ).scroll(function() {
362            var current_top = jQuery(document).scrollTop(); block_intro.css('top', (current_top*0.50)); block_intro.css('opacity', (1 - current_top/500));
363        });
364        ///// 1.2 /////
365		if( jQuery('.our-team-new').length > 0 ){
366		
367			jQuery('.our-team-new').carouFredSel({
368				width: '100%',
369				height: 'auto',
370				prev: '#prev3',
371				next: '#next3',
372				align: "center",
373				scroll: 1,
374				auto: false,
375				visible: {
376					min: 1,
377					max: 5
378				}
379			});
380		
381		}
382		if( jQuery('.new-service').length > 0 ){
383		
384			jQuery('.new-service').carouFredSel({
385				width: '100%',
386				height: 'auto',
387				prev: '#prev1',
388				next: '#next1',
389				align: "center",
390				scroll: 1,
391				auto: false,
392				visible: {
393					min: 1,
394					max: 5
395				}
396			});
397		
398		}
399        // Radial Counters
400        jQuery(".knob").knob({
401            width: 140,
402            height: 140,
403            fgColor: '#222',
404            inputColor: '#999',
405            dynamicDraw: true,
406            thickness: 0.15,
407            tickColorizeValues: true,
408            skin:'tron',
409            readOnly:true,
410        });
411        jQuery(".knob").appear(function(e){
412            var $this = jQuery(this);
413            var myVal = $this.attr("rel");
414            jQuery({value: 0}).animate({value: myVal}, {
415                duration: 2000,
416                easing: 'swing',
417                step: function () {
418                    $this.val(Math.ceil(this.value)).trigger('change');
419                }
420            })
421        });
422        // Testimonial Sliders
423        jQuery('.new-client-slider-image').flexslider({
424            animation: "fade",
425            directionNav:false,
426            controlNav:false,
427            smoothHeight: true,
428            animationLoop:true,
429            slideshowSpeed: 5000,
430            slideToStart: 0,
431        });
432        jQuery('.new-client-slider-info').flexslider({
433            animation: "slide",
434            directionNav:true,
435            controlsContainer:".new-client-nav",
436            controlNav:false,
437            smoothHeight: true,
438            animationLoop:true,
439            sync: ".new-client-slider-image",
440            slideshowSpeed: 5000,
441            slideToStart: 0,
442        });
443        // Contact Details Carousel
444        var carousel = jQuery(".contact-details-slider");
445		if( jQuery('.contact-details-slider').length > 0 ){
446			jQuery('.contact-details-slider').carouFredSel({
447				auto: false,
448				width: '100%',
449				height: 'variable',
450				responsive: true,
451				onCreate: function () {
452					jQuery(window).on('resize', function () {
453						carousel.parent().add(carousel).height(carousel.children().first().height());
454					}).trigger('resize');
455				},
456				items: {
457					height: 'auto',
458				},
459				scroll: {
460					fx: 'scroll',
461					onBefore: function( data ) {
462						jQuery('.contact-icons-slider').trigger( 'slideTo', [ jQuery('.contact-icons-slider li[class='+ data.items.visible.attr( 'id' ) +']'), -1 ] );
463					}
464				}
465			});
466		}
467		if( jQuery('.contact-icons-slider').length > 0 ){
468		
469			jQuery('.contact-icons-slider').carouFredSel({
470				auto: false,
471				items: {
472					visible: 3,
473					start: -1
474				},
475			});
476		}
477		
478		if( jQuery('#news-carousel').length > 0 ){
479			jQuery("#news-carousel").carouFredSel({
480				auto: false,
481				scroll  : 1,
482				pagination  : "#news-pag",
483				prev : "#cnews_prev",
484				next : "#cnews_next",
485				swipe: { onTouch: true, onMouse: true },
486				items: {
487					width       : 500,
488					visible: {
489						min: 1,
490						max: 4,
491					},
492					height: '50%',
493				},
494				responsive: true,
495				width: '100%',
496				height: 'variable',
497				onCreate: function () {
498					jQuery(document).ready(function(){
499						jQuery('#news-carousel').each(function(){  
500							var highestBox = 0;
501							jQuery('.news-carousel-item', this).each(function(){						
502								if(jQuery(this).height() > highestBox) 
503								   highestBox = jQuery(this).height(); 
504							});  						
505							jQuery('.news-carousel-item',this).height(highestBox);						
506						});
507					}); 
508				}
509			});
510		}
511
512        jQuery('.contact-icons-slider li').click(function() {
513            jQuery('.contact-details-slider').trigger( 'slideTo', [ jQuery('.contact-details-slider li[id='+ jQuery(this).attr( 'class' ) +']') ] );
514            jQuery('.contact-icons-slider li').removeClass('active-icon');
515            jQuery(this).addClass('active-icon');
516        }).css( 'cursor', 'pointer' );
517
518        jQuery('.hide-overlay').click(function() {
519            jQuery(".map-overlay").toggleClass("overlay-hide");
520            jQuery(".hide-overlay").toggleClass("show-overlay");
521        });
522
523		jQuery('#maximage-external').maximage({
524            cycleOptions: {
525				fx: 'fade',
526	            speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
527	            timeout: 6000,
528	            prev: '#arrow_left',
529	            next: '#arrow_right',
530	            pause: 1,
531            },
532		});
533        ///// end 1.2 /////
534});  
535//Navigation Dropdown
536jQuery('.nav a.collapse_menu1').click(function () { jQuery(".nav-collapse").collapse("hide") });
537jQuery('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
538// Accordion
539jQuery('dl.accordion dt').filter(':first-child').addClass('accordion-active');
540jQuery('dd.accordion-content').filter(':nth-child(n+3)').addClass('hide');
541	
542jQuery('dl.accordion').on('click', 'dt', function() {
543		jQuery(this)
544			.addClass('accordion-active')
545			.next()
546				.slideDown(200)
547				.siblings('dd.accordion-content')
548					.slideUp(200)
549			.prev()
550				.removeClass('accordion-active');
551});	
552// Tabs	
553jQuery(".tab_container").hide(); //Hide all content
554jQuery("ul.tabs li:first").addClass("tab-active").show(); //Activate first tab
555jQuery(".tab_container:first").show(); //Show first tab content
556	
557jQuery("ul.tabs li").click(function() {
558		jQuery("ul.tabs li").removeClass("tab-active"); //Remove any "active" class
559		jQuery(this).addClass("tab-active"); //Add "active" class to selected tab
560		jQuery(".tab_container").hide(); //Hide all tab content
561		var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
562		jQuery(activeTab).fadeIn(); //Fade in the active content
563		return false;
564});
565// Toggle	
566jQuery(".toggle_container").hide(); 
567jQuery("span.toggle-title").click(function(){
568		jQuery(this).toggleClass("toggle-active").next().slideToggle("normal");
569		return false; 
570});
571jQuery(document).ready(function(){
572		//Elements Fading
573		jQuery('.element_from_top').each(function () {
574			jQuery(this).appear(function() {
575			  jQuery(this).delay(150).animate({opacity:1,top:"0px"},1000);
576			});	
577		});
578		
579		jQuery('.element_from_bottom').each(function () {
580			jQuery(this).appear(function() {
581			  jQuery(this).delay(150).animate({opacity:1,bottom:"0px"},1000);
582			});	
583		});
584		
585		
586		jQuery('.element_from_left').each(function () {
587			jQuery(this).appear(function() {
588			  jQuery(this).delay(150).animate({opacity:1,left:"0px"},1000);
589			});	
590		});
591		
592		
593		jQuery('.element_from_right').each(function () {
594			jQuery(this).appear(function() {
595			  jQuery(this).delay(150).animate({opacity:1,right:"0px"},1000);
596			});	
597		});
598		
599		jQuery('.element_fade_in').each(function () {
600			jQuery(this).appear(function() {
601			  jQuery(this).delay(150).animate({opacity:1,right:"0px"},1000);
602			});	
603		});
604		//Animated Progress Bars
605		jQuery('.bar li').each(function () {
606			jQuery(this).appear(function() {
607			  jQuery(this).animate({opacity:1,left:"0px"},1200);
608			  var b = jQuery(this).find("span").attr("data-width");
609			  jQuery(this).find("span").animate({
610				width: b + "%"
611			  }, 1700, "easeOutCirc");
612			});	
613		});
614		//Animated Counters
615		jQuery('.counters').each(function () {
616			jQuery(".timer .count").appear(function() {
617			var counter = jQuery(this).html();
618			jQuery(this).countTo({
619				from: 0,
620				to: counter,
621				speed: 2000,
622				refreshInterval: 60,
623				});
624			});
625		});
626		
627		//Fading Out AlertBox
628		jQuery('.shortcode_alertbox').find('.box_close').click(function(){
629			jQuery(this).parents('.alertboxes').animate({opacity:0}
629,300).animate({height:"0px"});
630		});
631});
632jQuery(window).on( 'load', function(){
633	
634	//Masonry Blog
635	var $container = jQuery('.blog-posts-content');
636	$container.isotope({
637		masonry: { },
638		animationOptions: {
639			duration: 750,
640			easing: 'linear',
641			queue: false,
642		},	
643	});
644	  
645});	
646function MasonryPortfolio() {	
647	
648		if( jQuery('.portfolio').length > 0 ){
649			
650		
651			var $container = jQuery('#portfolio-wrap');
652		
653			$container.isotope({
654				layoutMode: 'packery',
655			  itemSelector: '.portfolio-item',
656			  gutter:0,
657			  transitionDuration: "0.5s"
658			});
659			
660			jQuery('#filters a').click(function(){
661				jQuery('#filters a').removeClass('active');
662				jQuery(this).addClass('active');
663				var selector = jQuery(this).attr('data-filter');
664				$container.isotope({ filter: selector });		
665				return false;
666			});
667			
668			jQuery(window).on( 'resize', function () {
669				
670				
671				
672				var winWidth = window.innerWidth;
673				columnNumb = 1;			
674				var attr_col = jQuery('.portfolio').attr('data-col');
675					
676				 if (winWidth >= 1466) {
677					
678					
679					jQuery('#portfolio-wrap').css( {width : jQuery('#portfolio-wrap').parent().parent().width() - 20 + 'px'});
680					jQuery('#portfolio-wrap.no-gutter').css( {width : jQuery('#portfolio-wrap').parent().parent().width() + 5 +'px'});			
681					var portfolioWidth = jQuery('#portfolio-wrap').width();
682					
683					if (typeof attr_col !== typeof undefined && attr_col !== false) {
684						columnNumb = jQuery('.portfolio').attr('data-col');
685					} else columnNumb = 3;
686					
687					postHeight = window.innerHeight
688					postWidth = Math.floor(portfolioWidth / columnNumb)			
689					$container.find('.portfolio-item').each(function () { 
690						jQuery('.portfolio-item').css( { 
691							width : postWidth * 1 - 20 + 'px',
692							height : postWidth * 0.7 - 20 + 'px',
693							margin : 10 + 'px' 
694						});
695						jQuery('.no-gutter .portfolio-item').css( {
696							width : postWidth + 'px',
697							height : postWidth *0.7 + 'px',
698							margin : 0 + 'px' 
699						});
700						jQuery('.portfolio-item.wide').css( { 
701							width : postWidth * 2 - 20 + 'px',
702							height : postWidth * 1.4 - 20 + 'px'
703						});
704						jQuery('.no-gutter .portfolio-item.wide').css( { 
705							width : postWidth * 2  + 'px',
706							height : postWidth * 1.4  + 'px' 
707						});
708					});
709					
710					
711				} else if (winWidth > 1024) {
712					
713					jQuery('#portfolio-wrap').css( {width : jQuery('#portfolio-wrap').parent().width() - 20 + 'px'});
714					jQuery('#portfolio-wrap.no-gutter').css( {width : jQuery('#portfolio-wrap').parent().width() + 5 + 'px'});			
715					var portfolioWidth = jQuery('#portfolio-wrap').width();
716								
717					if (typeof attr_col !== typeof undefined && attr_col !== false) {
718						columnNumb = jQuery('.portfolio').attr('data-col');
719					} else columnNumb = 3;
720					
721					postHeight = window.innerHeight
722					postWidth = Math.floor(portfolioWidth / columnNumb)			
723					$container.find('.portfolio-item').each(function () { 
724						jQuery('.portfolio-item').css( { 
725							width : postWidth - 20 + 'px',
726							height : postWidth * 0.7  - 20 + 'px',
727							margin : 10 + 'px' 
728						});
729						jQuery('.no-gutter .portfolio-item').css( {
730							width : postWidth + 'px',
731							height : postWidth * 0.7  + 'px',
732							margin : 0 + 'px' 
733						});
734						jQuery('.portfolio-item.wide').css( { 
735							width : postWidth * 2 - 20 + 'px',
736							height : postWidth * 1.4 - 20 + 'px'
737						});
738						jQuery('.no-gutter .portfolio-item.wide').css( { 
739							width : postWidth * 2 + 'px',
740							height : postWidth * 1.4 + 'px' 
741						});
742					});
743					
744					
745				} else if (winWidth > 767) {
746					
747					jQuery('#portfolio-wrap').css( {width : jQuery('#portfolio-wrap').parent().width() - 20 + 'px'});
748					jQuery('#portfolio-wrap.no-gutter').css( {width : jQuery('#portfolio-wrap').parent().width() + 'px'});			
749					var portfolioWidth = jQuery('#portfolio-wrap').width();
750					
751					columnNumb = 2;
752					postWidth = Math.floor(portfolioWidth / columnNumb)			
753					$container.find('.portfolio-item').each(function () { 
754						jQuery('.portfolio-item').css( { 
755							width : postWidth - 20 + 'px',
756							height : postWidth * 0.75 - 20 + 'px',
757							margin : 10 + 'px' 
758						});
759						jQuery('.no-gutter .portfolio-item').css( {
760							width : postWidth  + 'px',
761							height : postWidth * 0.75  + 'px',
762							margin : 0 + 'px' 
763						});
764						jQuery('.portfolio-item.wide').css( { 
765							width : postWidth * 2 - 20 + 'px',
766							height : postWidth * 1.4 - 20 + 'px'  
767						});
768						jQuery('.no-gutter .portfolio-item.wide').css( { 
769							width : postWidth * 2 + 'px'  
770						});
771						jQuery('.portfolio-item.tall').css( {
772							height : postWidth * 1.5 - 40 + 'px'  
773						});
774						jQuery('.no-gutter .portfolio-item.tall').css( {
775							height : postWidth * 1.5  + 'px'  
776						});
777						jQuery('.portfolio-item.wide-tall').css( {
778							width : postWidth * 2 - 40 + 'px',
779							height : postWidth * 1.5 - 40 + 'px'  
780						});
781						jQuery('.no-gutter .portfolio-item.wide-tall').css( {
782							width : postWidth * 2 + 'px',
783							height : postWidth * 1.5  + 'px'  
784						});
785					});
786					
787					
788				}	else if (winWidth > 479) {
789					
790					jQuery('#portfolio-wrap').css( {width : jQuery('#portfolio-wrap').parent().width() - 20 + 'px'});
791					jQuery('#portfolio-wrap.no-gutter').css( {width : jQuery('#portfolio-wrap').parent().width() + 'px'});			
792					var portfolioWidth = jQuery('#portfolio-wrap').width();
793					
794					columnNumb = 1;
795					postWidth = Math.floor(portfolioWidth / columnNumb)			
796					$container.find('.portfolio-item').each(function () { 
797						jQuery('.portfolio-item').css( { 
798							width : postWidth - 20 + 'px',
799							height : postWidth * 0.75 - 20 + 'px',
800							margin : 10 + 'px' 
801						});
802						jQuery('.no-gutter .portfolio-item').css( {
803							width : postWidth  + 'px',
804							height : postWidth * 0.75  + 'px',
805							margin : 0 + 'px' 
806						});
807						jQuery('.portfolio-item.wide').css( { 
808							width : postWidth - 20 + 'px'  
809						});
810						jQuery('.no-gutter .portfolio-item.wide').css( { 
811							width : postWidth + 'px'  
812						});
813						jQuery('.portfolio-item.tall').css( {
814							height : postWidth * 1.5 - 40 + 'px'  
815						});
816						jQuery('.no-gutter .portfolio-item.tall').css( {
817							height : postWidth * 1.5  + 'px'  
818						});
819						jQuery('.portfolio-item.wide-tall').css( {
820							width : postWidth - 40 + 'px',
821							height : postWidth * 0.75 - 40 + 'px'  
822						});
823						jQuery('.no-gutter .portfolio-item.wide-tall').css( {
824							width : postWidth  + 'px',
825							height : postWidth * 0.75  + 'px'  
826						});
827					});
828					
829					
830				}
831				
832				else if (winWidth <= 479) {
833					
834					jQuery('#portfolio-wrap').css( {width : jQuery('#portfolio-wrap').parent().width() - 20 + 'px'});
835					jQuery('#portfolio-wrap.no-gutter').css( {width : jQuery('#portfolio-wrap').parent().width() + 'px'});			
836					var portfolioWidth = jQuery('#portfolio-wrap').width();
837					
838					columnNumb = 1;
839					postWidth = Math.floor(portfolioWidth / columnNumb)			
840					$container.find('.portfolio-item').each(function () { 
841						jQuery('.portfolio-item').css( { 
842							width : postWidth - 20 + 'px',
843							height : postWidth * 0.75 - 20 + 'px',
844							margin : 10 + 'px' 
845						});
846						jQuery('.no-gutter .portfolio-item').css( {
847							width : postWidth  + 'px',
848							height : postWidth * 0.75  + 'px',
849							margin : 0 + 'px' 
850						});
851						jQuery('.portfolio-item.wide').css( { 
852							width : postWidth - 20 + 'px'  
853						});
854						jQuery('.no-gutter .portfolio-item.wide').css( { 
855							width : postWidth + 'px'  
856						});
857						jQuery('.portfolio-item.tall').css( {
858							height : postWidth * 1.5 - 40 + 'px'  
859						});
860						jQuery('.no-gutter .portfolio-item.tall').css( {
861							height : postWidth * 1.5  + 'px'  
862						});
863						jQuery('.portfolio-item.wide-tall').css( {
864							width : postWidth - 40 + 'px',
865							height : postWidth * 0.75 - 40 + 'px'  
866						});
867						jQuery('.no-gutter .portfolio-item.wide-tall').css( {
868							width : postWidth + 'px',
869							height : postWidth * 0.75  + 'px'  
870						});
871					});
872					
873					
874				}		
875				return columnNumb;
876				
877			
878			}).resize();
879		
880			jQuery("#all").click();
881			
882		}
883	
884	}//End MasonryPortfolio	
885	
886	
887	
888//Expander Slider
889function initBxModal() {
890    jQuery('.project-slider').bxSlider({
891		controls: true, 
892		pager: false,		
893		auto:true,
894		pause: 3000,
895		adaptiveHeight:true,
896		
897	});
898};
899//FullScreen Slider
900jQuery(function (){
901    var fullscreen_slider_transition  = 'fade';
902    var fullscreen_slider_speed       = 5000;
903    if( typeof FullScreenSliderOptions != 'undefined' ){
904        fullscreen_slider_transition  = FullScreenSliderOptions.slider_transition;
905        fullscreen_slider_speed       = FullScreenSliderOptions.slider_speed;
906    }
907	jQuery('#fullscreen-slider').maximage({
908		cycleOptions: {
909			fx: fullscreen_slider_transition,
910			speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
911			timeout: fullscreen_slider_speed,
912			prev: '#slider_left',
913			next: '#slider_right',
914			pause: 0,
915			before: function(last,current){
916				jQuery('.slide-content').fadeOut().animate({top:'100px'},{queue:false, easing: 'easeOutQuad', duration: 550});
917				jQuery('.slide-content').fadeOut().animate({top:'-100px'});
918			},
919			after: function(last,current){
920				jQuery('.slide-content').fadeIn().animate({top:'0'},{queue:false, easing: 'easeOutQuad', duration: 450});
921			}	
922			
923			
924					
925		},
926		
927		
928		
929		onFirstImageLoaded: function(){
930			jQuery('#cycle-loader').delay(800).hide();
931			jQuery('#fullscreen-slider').delay(800).fadeIn('slow');
932			jQuery('.slide-content').fadeIn().animate({top:'0'});
933			jQuery('.slide-content a').bind('click',function(event){
934				var jQueryanchor = jQuery(this);				
935				jQuery('html, body').stop().animate({
936				scrollTop: jQuery(jQueryanchor.attr('href')).offset().top -44
937				}, 1500,'easeInOutExpo');				
938				event.preventDefault();
939				});			
940		}
941	});
942	// Helper function to Fill and Center the HTML5 Video
943	jQuery('video,object').maximage('maxcover');
944	
945	
946	
947	
948	// To show it is dynamic html text
949	
950});
951jQuery(window).on( 'load', function() {
952	
953	
954	
955		// Portfolio Ajax Expander
956		(function(){			
957			
958			jQuery('#portfolio-wrap .open-project-link').click(function(){
959				jQuery('#project-page-data').removeClass('is-open');					
960			  
961			  		
962			var myUrl = jQuery(this).find('.open-project').attr("href") + " .item-data"; 			
963			
964			if( jQuery('.slide-menu').length > 0 ){	
965				jQuery('html, body').animate({ scrollTop: jQuery(".portfolio-bottom").offset().top + 1}, 600);	
966			} else {
967				jQuery('html, body').animate({ scrollTop: jQuery(".portfolio-bottom").offset().top - 40}, 600);			
968			}
969			setTimeout(function(){
970			
971			
972			jQuery('#project-page-holder').animate({height:'100px'}, 300,function(){			
973				jQuery('#loader-line-box').addClass('is-open');				
974				var scroll_offset = 1;
975				if (jQuery(".navbar-inner")[0]){
976
977				   if( jQuery(".navbar-inner").css("min-height") == "65px" ){
978					scroll_offset = -60;
979				   }
980				   else if( jQuery(".navbar-inner").css("min-height") == "60px" ){
981					scroll_offset = -60;
982				   }
983				   else if( jQuery(".navbar-inner").css("min-height") == "45px" ) {
984					scroll_offset = -20;
985
986				   }
987				}
988
989				jQuery('html, body').animate({ scrollTop: jQuery("#project-page-holder").offset().top + scroll_offset}, 600);		
990					setTimeout(function(){					
991						jQuery("#project-page-data").load(myUrl,function(e){						
992												
993						jQuery('#project-page-holder').waitForImages({
994							finished: function() {								
995								jQuery('#loader-line-box').removeClass('is-open');	
996								///Init scripts here
997								initBxModal();
998								jQuery('#maximage').css({'height' : ''});
999								
1000								jQuery('#maximage').maximage({
1001											cycleOptions: {
1002												fx: 'fade',
1003												speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33)
1004												timeout: 6000,
1005												prev: '#arrow_left',
1006												next: '#arrow_right',
1007												pause: 1,
1008											},
1009								});
1010								
1011								setTimeout(function(){  
1012									jQuery('#project-page-holder, #project-page-data').height(jQuery(window).height());
1013									jQuery('#project-page-data').addClass('is-open');
1014									setTimeout(function(){ 
1015										jQuery('#project-page-holder, #project-page-data').height(jQuery('.project-page').height());
1016									},( 1000 ));
1017								},( 500 ));							
1018							},
1019								waitForAll: true
1020							});							
1021						});					
1022					},( 2000 ));	
1023			});	
1024			
1025			
1026			},( 600 ));
1027			
1028			
1029					  
1030		});
1031			
1032			jQuery(document).on('click', '#project_close', function(event) {				
1033				jQuery('#project-page-data').removeClass('is-open');						
1034				setTimeout(function(){jQuery('#project-page-holder').height('0');},( 500 ));
1035				setTimeout(function(){jQuery(".project-page").remove();},( 500 ));						
1036				setTimeout(function(){jQuery('html, body').animate({ scrollTop: jQuery(".portfolio-top").offset().top}, 800);},( 1200 ));
1037				return false;				
1038			  });	
1039		})();
1040	
1041	
1042});
1043
1044
1045
1046
1047
1048jQuery(window).on( 'load', function() {
1049    if( jQuery("#all").length > 0 ){
1050        document.getElementById("all").click();
1051    }
1052    resizeNavigationMenu();
1053});
1054function resizeNavigationMenu(){
1055    jQuery('ul#nav.nav').find("li").each( function(){
1056        if( (jQuery(window).width() <= 1300) && (jQuery(window).width() >= 1000) ){
1057            if( (typeof jQuery(this).attr('data-threshold-margin-right') != 'undefined') && (jQuery(this).attr('data-threshold-margin-right') != '') ){
1058                var margin_right = jQuery(this).attr('data-threshold-margin-right') + 'px';
1059                jQuery(this).css('margin-right', margin_right);
1060            }
1061        }
1062        else{
1063            if( (typeof jQuery(this).attr('data-margin-right') != 'undefined') && (jQuery(this).attr('data-margin-right') != '') ){
1064                var margin_right = jQuery(this).attr('data-margin-right') + 'px';
1065                jQuery(this).css('margin-right', margin_right);
1066            }
1067        }
1068    });
1069}
1070jQuery( window ).resize(function() {
1071    resizeNavigationMenu();
1072});
1073// social sharing
1074var completed = 0;
1075if( jQuery('a.facebook-share').length > 0 || jQuery('a.twitter-share').length > 0 || jQuery('a.pinterest-share').length > 0) {
1076    ////facebook
1077    //load share count on load
1078    jQuery.getJSON("http://graph.facebook.com/?id="+ window.location +'&callback=?', function(data) {
1079        if((data.shares != 0) && (data.shares != undefined) && (data.shares != null)) {
1080            jQuery('.facebook-share a span.count, a.facebook-share span.count').html( data.shares );
1081        }
1082        else {
1083            jQuery('.facebook-share a span.count, a.facebook-share span.count').html( 0 );
1084        }
1085        completed++;
1086    });
1087    function facebookShare(){
1088        window.open( 'https://www.facebook.com/sharer/sharer.php?u='+window.location, "facebookWindow", "height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0" )
1089        return false;
1090    }
1091    jQuery('.facebook-share').click(facebookShare);
1092    ////twitter
1093    //load tweet count on load
1094    jQuery.getJSON('http://urls.api.twitter.com/1/urls/count.json?url='+window.location+'&callback=?', function(data) {
1095        if((data.count != 0) && (data.count != undefined) && (data.count != null)) {
1096            jQuery('.twitter-share a span.count, a.twitter-share span.count').html( data.count );
1097        }
1098        else {
1099            jQuery('.twitter-share a span.count, a.twitter-share span.count').html( 0 );
1100        }
1101        completed++;
1102    });
1103    function twitterShare(){
1104        window.open( 'http://twitter.com/intent/tweet?text='+jQuery(".project-header h1 .text-large").text() +' '+window.location, "twitterWindow", "height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0" )
1105        return false;
1106    }
1107    jQuery('.newave-social .twitter-share').click(twitterShare);
1108    ////pinterest
1109    //load pin count on load
1110    jQuery.getJSON('http://api.pinterest.com/v1/urls/count.json?url='+window.location+'&callback=?', function(data) {
1111        if((data.count != 0) && (data.count != undefined) && (data.count != null)) {
1112            jQuery('.pinterest-share a span.count, a.pinterest-share span.count').html( data.count );
1113        }
1114        else {
1115            jQuery('.pinterest-share a span.count, a.pinterest-share span.count').html( 0 );
1116        }
1117        completed++;
1118    });
1119    function pinterestShare(){
1120        var jQuerysharingImg = '';
1121        if ( (jQuery('#single-portfolio-featured-image').length > 0) && (jQuery('#single-portfolio-featured-image').attr('data-featured-img') != 'empty' )){
1122            jQuerysharingImg = jQuery('#single-portfolio-featured-image').attr('data-featured-img');
1123        }
1124        window.open( 'http://pinterest.com/pin/create/button/?url='+window.location+'&media='+jQuerysharingImg+'&description='+jQuery('.project-header h1 .text-large').text(), "pinterestWindow", "height=640,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0" )
1125        return false;
1126    }
1127    jQuery('.newave-social .pinterest-share').click(pinterestShare);
1128}
1129//Collage Home Section
1130var page_title = jQuery('body');
1131var block_intro = page_title.find('#collage');
1132if( block_intro.length > 0 ) var block_intro_top = block_intro.offset().top;
1133jQuery( window ).scroll(function() {
1134    var current_top = jQuery(document).scrollTop(); var collage_height = jQuery(window).height(); block_intro.css('top', (current_top*0.50)); block_intro.css('opacity', (1 - current_top/collage_height*1.2));
1135});
1136jQuery.fn.bgscroll = jQuery.fn.bgScroll = function( options ) {
1137    if( !this.length ) return this;
1138    if( !options ) options = {};
1139    if( !window.scrollElements ) window.scrollElements = {};
1140    for( var i = 0; i < this.length; i++ ) {
1141        var allowedChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
1142        var randomId = '';
1143        for( var l = 0; l < 5; l++ ) randomId += allowedChars.charAt( Math.floor( Math.random() * allowedChars.length ) );
1144        this[ i ].current = 0;
1145        this[ i ].scrollSpeed = options.scrollSpeed ? options.scrollSpeed : 70;
1146        this[ i ].direction = options.direction ? options.direction : 'h';
1147        window.scrollElements[ randomId ] = this[ i ];
1148        eval( 'window[randomId]=function(){var axis=0;var e=window.scrollElements.' + randomId + ';e.current += 1;if (e.direction == "h") axis = e.current + "px 0";else if (e.direction == "v") axis = "0 " + e.current + "px";else if (e.direction == "d") axis = e.current + "px " + e.current + "px";jQuery( e ).css("background-position", axis);}' );
1149        setInterval( 'window.' + randomId + '()', options.scrollSpeed ? options.scrollSpeed : 70 );
1150    }
1151    return this;
1152}
1153var scroll_speed = 5;
1154var scroll_direction = 'h';
1155if( typeof CollageBkndOptions != 'undefined' ){
1156    scroll_speed = CollageBkndOptions.scroll_speed;
1157    scroll_direction = CollageBkndOptions.scroll_direction;
1158}
1159jQuery('#collage').bgscroll({scrollSpeed:scroll_speed , direction:scroll_direction });
1160function animUp() {
1161    jQuery("#arrow").animate({
1162        top: "-3px"
1163    }, "slow", "swing", animDown);
1164}
1165function animDown() {
1166    jQuery("#arrow").animate({
1167        top: "3px"
1168    }, "slow", "swing", animUp);
1169}
1170jQuery(document).ready(function() {
1171    animUp();
1172});
1173
1174/*--------------------------------------------------
1175Function Contact Map
1176---------------------------------------------------*/	
1177
1178function ContactMap() {	
1179	
1180	if( jQuery('#map_canvas').length > 0 ){
1181		
1182		var map_marker_image 	= 'images/marker.png';
1183        var map_address 			= 'New York City'
1184        var map_zoom				= 16;
1185        var marker_title 				= 'Hello Friend!';
1186		var marker_text				= 'Here we are. Come to drink a coffee!';
1187		var map_type					= google.maps.MapTypeId.SATELLITE;
1188		
1189		if( typeof ClapatMapOptions != 'undefined' ){
1190		
1191			map_marker_image 	= ClapatMapOptions.map_marker_image;
1192			map_address 			= ClapatMapOptions.map_address;
1193			map_zoom				= Number(ClapatMapOptions.map_zoom);
1194			marker_title 				= ClapatMapOptions.marker_title;
1195			marker_text				= ClapatMapOptions.marker_text;
1196			if( ClapatMapOptions.map_type == 'satellite' ){
1197			
1198				map_type = google.maps.MapTypeId.SATELLITE;
1199			}
1200			else{
1201			
1202				map_type = google.maps.MapTypeId.ROADMAP;
1203			}
1204			
1205		}
1206				
1207		var settings = {
1208			zoom: map_zoom,
1209			center: new google.maps.LatLng(43.270441,6.640888),
1210			mapTypeControl: false,
1211            scrollwheel: false,
1212            draggable: true,
1213			mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
1214            navigationControl: false,
1215            navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
1216			mapTypeId: map_type
1217		};		
1218		var map = new google.maps.Map(document.getElementById("map_canvas"), settings);	
1219		google.maps.event.addDomListener(window, "resize", function() {
1220			var center = map.getCenter();
1221			google.maps.event.trigger(map, "resize");
1222			map.setCenter(center);
1223		});
1224		 var contentString = '<div id="content">'+
1225                    '<div id="siteNotice">'+
1226                    '</div>'+
1227                    '<h2 id="firstHeading" class="firstHeading">' + marker_title + '</h2>'+
1228                    '<div id="bodyContent">'+
1229                    '<p>' + marker_text + '</p>'+
1230                    '</div>'+
1231                    '</div>';
1232		
1233		var infowindow = new google.maps.InfoWindow({
1234			content: contentString
1235		});	
1236		var companyImage = new google.maps.MarkerImage(map_marker_image,
1237			new google.maps.Size(58,63),<!-- Width and height of the marker -->
1238			new google.maps.Point(0,0),
1239			new google.maps.Point(29,63)<!-- Position of the marker -->
1240		);
1241		
1242		var latitude = 43.270441;
1243        var longitude = 6.640888;
1244		var geocoder = new google.maps.Geocoder();
1245		geocoder.geocode({'address':map_address}, function(results, status) {
1246 			if(status == google.maps.GeocoderStatus.OK) {
1247			
1248				map.setCenter(results[0].geometry.location);
1249				
1250                latitude = results[0].geometry.location.lat();
1251                longitude = results[0].geometry.location.lng();
1252				
1253				var companyPos = new google.maps.LatLng(latitude, longitude);	
1254				var companyMarker = new google.maps.Marker({
1255									position: companyPos,
1256									map: map,
1257									icon: companyImage,               
1258									title:"Our Office",
1259									zIndex: 3});	
1260								google.maps.event.addListener(companyMarker, 'click', function() {
1261									infowindow.open(map,companyMarker);
1262								});	
1263			}
1264		});
1265		
1266	}
1267	
1268	return false
1269	
1270}
1271
1272function InitContactMap() {
1273	
1274	if( jQuery('#map_canvas').length > 0 ){
1275		
1276		if (typeof google != 'undefined' && typeof google.maps != 'undefined'){
1277			
1278			// google maps already loaded, call the function which draws the map
1279			ContactMap();
1280			
1281		} else {
1282		
1283			var map_api_key = '';
1284			if( typeof ClapatMapOptions != 'undefined' &&  ClapatMapOptions.map_api_key != null ){
1285				map_api_key = 'key=' + ClapatMapOptions.map_api_key;
1286			}
1287			var script = document.createElement('script');
1288			script.type = 'text/javascript';
1289			script.src = 'https://maps.googleapis.com/maps/api/js?' + map_api_key +
1290			      		'&callback=ContactMap';
1291			document.body.appendChild(script);
1292		}
1293		
1294	}
1295}
1296//End ContactMap

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.