PageSourceSearch

https://www.roboticgovernance.com/wp-content/themes/newave-theme/js/scripts.js?ver=5.1.26

js roboticgovernance.com collected 2026-10-02 17:45:00 UTC 38,090 bytes, 1,148 lines download raw bytes

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

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.