PageSourceSearch

https://www.orenlavie.com/wp-content/themes/nexus/js/custom/custom.js?ver=1.0

js orenlavie.com collected 2026-10-02 12:41:32 UTC 16,572 bytes, 228 lines download raw bytes

1/*
2	Scripts for Nexus WordPress Theme
3*/
4
5jQuery('body').bind('touchstart', function() {});
6
7jQuery(window).load(function() {
8
9	// Fix chrome issue
10	jQuery('body').width(jQuery('body').width()+1).width('auto');
11
12	// Parallax Backgrounds
13	if(!( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) )) {	
14		// jQuery('.parallax-section[id^="parallax-"]').parallax("50%", 0.4);
15	}
16	
17	// Parallax Fix for Mobile Devices
18	if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
19		jQuery('.parallax-section').css({'background-attachment': 'scroll'});
20	}
21
22	// CSS animations off 
23	if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
24		jQuery('.cssanimations .wpb_animate_when_almost_visible').css({'opacity':'1'});
25		jQuery('.cssanimations .wpb_animate_when_almost_visible').css({'-webkit-animation':'none', '-moz-animation':'none', '-o-animation':'none', '-ms-animation':'none', 'animation':'none'});		
26	}
27	
28});
29
30
31// fullscreenmenu
32function fullscreenmenu() { 
33	'use strict';
34
35	// Burger menu positioning
36	var headerinheight = jQuery('.logo').height();
37	jQuery('.burger-icon').css({'height': headerinheight, 'line-height': headerinheight+'px'});
38	jQuery('#burger-menu').css({'padding-top': (headerinheight-28)/2 });
39
40    var open = false;
41    var animationIn = 'animated fadeInDown';
42    var animationOut = 'animated fadeOutUp';
43
44    jQuery('#burger-menu').on('click', function() {
45        jQuery(this).toggleClass("active");
46        if (open == false) {
47            jQuery('.overlay').fadeIn(200);
48            open = true;
49        } else {
50            jQuery('.overlay').fadeOut(200);
51            open = false;
52        }
53    });
54    jQuery('.wrap-nav a').on('click', function() {
55        jQuery('.overlay').fadeOut(400);
56        jQuery('#burger-menu').removeClass('active');
57        open = false;
58    });	   
59}
60
61
62//Effect for Scrolltop Button	
63function totop() {		
64	jQuery('.totop').hover(function(){	
65	jQuery(this).animate({top:"-35px"},{queue:false,duration:60}); },
66	function() {         
67		jQuery(this).animate({top:"-30px"},{queue:false,duration:60})
68	});
69	
70	//Scroll to top
71	jQuery('.totop').click(function(){
72        jQuery("html, body").animate({ scrollTop: 0 }, 700);
73        return false;
74    });	
75}
76
77
78// Services
79function nexusservices() {
80	jQuery('.nexus-service-item').click(function() {
81			jQuery(this).parent().children('.nexus-service-hover').fadeIn();
82			jQuery(this).parent().siblings().children('.nexus-service-hover').fadeOut();
83			jQuery('.nexus-service-item').addClass('under-opacity');
84	});	
85	
86	jQuery('.nexus-service-hover').click(function() {
87		jQuery(this).fadeOut();
88		jQuery('.nexus-service-item').removeClass('under-opacity');
89	});
90
91	jQuery('.homepage-services').each(function(){
92		var divclass = jQuery(this).children('.nexus-service-wrapper'),
93			instances = divclass.length;
94
95		switch (instances) { 
96		    case 1: 
97		        divclass.addClass('full-width');
98		        break;
99		    case 2: 
100		        divclass.addClass('percent-one-half');
101		        break;
102		    case 3: 
103		        divclass.addClass('percent-one-third');
104		        break;      
105		    case 4: 
106		        divclass.addClass('percent-one-fourth');
107		        break;
108		    case 5: 
109		        divclass.addClass('percent-one-fifth');
110		        break;
111		    case 6: 
112		        divclass.addClass('percent-one-sixth');
113		        break;		        
114		}
115
116		divclass.last().addClass('column-last');
117
118	})
119}
120
121	// function fade_home_top() {
122	// 	if ( jQuery(window).width() > 800 ) {
123 //        window_scroll = jQuery(this).scrollTop();
124	//    		jQuery(".tp-caption.black").css({
125	// 			  'opacity' : 1-(window_scroll/300)
126	//     	});
127	// 	}
128	// }
129	// jQuery(window).scroll(function() { fade_home_top(); });
130	
131
132	
133jQuery(document).ready(function() {
134
135	//Run Functions
136	totop();	
137	nexusservices();
138	fullscreenmenu();
139	
140	// Twitter Slider
141	jQuery("#owl-twitter").owlCarousel({
142		autoHeight : true,
143		items : 1,
144		nav: true,
145		rewind: true,
146		autoplay: false,
147		autoplayTimeout: 5000,
148		autoplayHoverPause: true,
149		dots: true,
150		smartSpeed: 800					
151	});			
152	
153	// Calculate Audio bar width	
154	var audiowidth = jQuery('.audio-item').width();
155	jQuery('.jp-progress').css({'width': audiowidth-250});
156	
157	// In and Out Effect
158	jQuery('.item-on-hover').hover(function(){		 		 
159		jQuery(this).animate({ opacity: 1 }, 200);
160		jQuery(this).children('.hover-link, .hover-image, .hover-video').animate({ opacity: 1 }, 200);
161	}, function(){
162		jQuery(this).animate({ opacity: 0 }, 200);
163		jQuery(this).children('.hover-link, .hover-image, .hover-video').animate({ opacity: 0 }, 200);
164	});
165	
166
167	// Video in Posts		
168	jQuery(".post-video").fitVids();	
169
170	// Fix for Overlapping Iframes - removed since nexus 1.4
171	// jQuery('iframe').each(function() {
172	// 	  var url = jQuery(this).attr("src");
173	// 	  if (jQuery(this).attr("src").indexOf("?") > 0) {
174	// 	    jQuery(this).attr({
175	// 	      "src" : url + "&wmode=transparent",
176	// 	      "wmode" : "Opaque"
177	// 	    });
178	// 	  }
179	// 	  else {
180	// 	    jQuery(this).attr({
181	// 	      "src" : url + "?wmode=transparent",
182	// 	      "wmode" : "Opaque"
183	// 	    });
184	// 	  }
185	// });			
186	
187	// PrettyPhoto
188	jQuery("a[rel^='prettyPhoto']").prettyPhoto({
189		animation_speed:'normal',
190		theme:'light_square',
191		slideshow:3000, 
192		autoplay_slideshow: false, 
193		deeplinking: false
194	});
195	
196
197	// Appending style classes to submit comment button
198	jQuery('input#submit_my_comment').addClass('button orange');
199	
200
201	// FONT AWESOME LISTS
202	var ICONS = ["fa-glass" , "fa-music" , "fa-search" , "fa-envelope-o" , "fa-heart" , "fa-star" , "fa-star-o" , "fa-user" , "fa-film" , "fa-th-large" , "fa-th" , "fa-th-list" , "fa-check" , "fa-times" , "fa-search-plus" , "fa-search-minus" , "fa-power-off" , "fa-signal" , "fa-cog" , "fa-trash-o" , "fa-home" , "fa-file-o" , "fa-clock-o" , "fa-road" , "fa-download" , "fa-arrow-circle-o-down" , "fa-arrow-circle-o-up" , "fa-inbox" , "fa-play-circle-o" , "fa-repeat" , "fa-refresh" , "fa-list-alt" , "fa-lock" , "fa-flag" , "fa-headphones" , "fa-volume-off" , "fa-volume-down" , "fa-volume-up" , "fa-qrcode" , "fa-barcode" , "fa-tag" , "fa-tags" , "fa-book" , "fa-bookmark" , "fa-print" , "fa-camera" , "fa-font" , "fa-bold" , "fa-italic" , "fa-text-height" , "fa-text-width" , "fa-align-left" , "fa-align-center" , "fa-align-right" , "fa-align-justify" , "fa-list" , "fa-outdent" , "fa-indent" , "fa-video-camera" , "fa-picture-o" , "fa-pencil" , "fa-map-marker" , "fa-adjust" , "fa-tint" , "fa-pencil-square-o" , "fa-share-square-o" , "fa-check-square-o" , "fa-arrows" , "fa-step-backward" , "fa-fast-backward" , "fa-backward" , "fa-play" , "fa-pause" , "fa-stop" , "fa-forward" , "fa-fast-forward" , "fa-step-forward" , "fa-eject" , "fa-chevron-left" , "fa-chevron-right" , "fa-plus-circle" , "fa-minus-circle" , "fa-times-circle" , "fa-check-circle" , "fa-question-circle" , "fa-info-circle" , "fa-crosshairs" , "fa-times-circle-o" , "fa-check-circle-o" , "fa-ban" , "fa-arrow-left" , "fa-arrow-right" , "fa-arrow-up" , "fa-arrow-down" , "fa-share" , "fa-expand" , "fa-compress" , "fa-plus" , "fa-minus" , "fa-asterisk" , "fa-exclamation-circle" , "fa-gift" , "fa-leaf" , "fa-fire" , "fa-eye" , "fa-eye-slash" , "fa-exclamation-triangle" , "fa-plane" , "fa-calendar" , "fa-random" , "fa-comment" , "fa-magnet" , "fa-chevron-up" , "fa-chevron-down" , "fa-retweet" , "fa-shopping-cart" , "fa-folder" , "fa-folder-open" , "fa-arrows-v" , "fa-arrows-h" , "fa-bar-chart" , "fa-twitter-square" , "fa-facebook-square" , "fa-camera-retro" , "fa-key" , "fa-cogs" , "fa-comments" , "fa-thumbs-o-up" , "fa-thumbs-o-down" , "fa-star-half" , "fa-heart-o" , "fa-sign-out" , "fa-linkedin-square" , "fa-thumb-tack" , "fa-external-link" , "fa-sign-in" , "fa-trophy" , "fa-github-square" , "fa-upload" , "fa-lemon-o" , "fa-phone" , "fa-square-o" , "fa-bookmark-o" , "fa-phone-square" , "fa-twitter" , "fa-facebook" , "fa-github" , "fa-unlock" , "fa-credit-card" , "fa-rss" , "fa-hdd-o" , "fa-bullhorn" , "fa-bell" , "fa-certificate" , "fa-hand-o-right" , "fa-hand-o-left" , "fa-hand-o-up" , "fa-hand-o-down" , "fa-arrow-circle-left" , "fa-arrow-circle-right" , "fa-arrow-circle-up" , "fa-arrow-circle-down" , "fa-globe" , "fa-wrench" , "fa-tasks" , "fa-filter" , "fa-briefcase" , "fa-arrows-alt" , "fa-users" , "fa-link" , "fa-cloud" , "fa-flask" , "fa-scissors" , "fa-files-o" , "fa-paperclip" , "fa-floppy-o" , "fa-square" , "fa-bars" , "fa-list-ul" , "fa-list-ol" , "fa-strikethrough" , "fa-underline" , "fa-table" , "fa-magic" , "fa-truck" , "fa-pinterest" , "fa-pinterest-square" , "fa-google-plus-square" , "fa-google-plus" , "fa-money" , "fa-caret-down" , "fa-caret-up" , "fa-caret-left" , "fa-caret-right" , "fa-columns" , "fa-sort" , "fa-sort-desc" , "fa-sort-asc" , "fa-envelope" , "fa-linkedin" , "fa-undo" , "fa-gavel" , "fa-tachometer" , "fa-comment-o" , "fa-comments-o" , "fa-bolt" , "fa-sitemap" , "fa-umbrella" , "fa-clipboard" , "fa-lightbulb-o" , "fa-exchange" , "fa-cloud-download" , "fa-cloud-upload" , "fa-user-md" , "fa-stethoscope" , "fa-suitcase" , "fa-bell-o" , "fa-coffee" , "fa-cutlery" , "fa-file-text-o" , "fa-building-o" , "fa-hospital-o" , "fa-ambulance" , "fa-medkit" , "fa-fighter-jet" , "fa-beer" , "fa-h-square" , "fa-plus-square" , "fa-angle-double-left" , "fa-angle-double-right" , "fa-angle-double-up" , "fa-angle-double-down" , "fa-angle-left" , "fa-angle-right" , "fa-angle-up" , "fa-angle-down" , "fa-desktop" , "fa-laptop" , "fa-tablet" , "fa-mobile" , "fa-circle-o" , "fa-quote-left" , "fa-quote-right" , "fa-spinner" , "fa-circle" , "fa-reply" , "fa-github-alt" , "fa-folder-o" , "fa-folder-open-o" , "fa-smile-o" , "fa-frown-o" , "fa-meh-o" , "fa-gamepad" , "fa-keyboard-o" , "fa-flag-o" , "fa-flag-checkered" , "fa-terminal" , "fa-code" , "fa-reply-all" , "fa-star-half-o" , "fa-location-arrow" , "fa-crop" , "fa-code-fork" , "fa-chain-broken" , "fa-question" , "fa-info" , "fa-exclamation" , "fa-superscript" , "fa-subscript" , "fa-eraser" , "fa-puzzle-piece" , "fa-microphone" , "fa-microphone-slash" , "fa-shield" , "fa-calendar-o" , "fa-fire-extinguisher" , "fa-rocket" , "fa-maxcdn" , "fa-chevron-circle-left" , "fa-chevron-circle-right" , "fa-chevron-circle-up" , "fa-chevron-circle-down" , "fa-html5" , "fa-css3" , "fa-anchor" , "fa-unlock-alt" , "fa-bullseye" , "fa-ellipsis-h" , "fa-ellipsis-v" , "fa-rss-square" , "fa-play-circle" , "fa-ticket" , "fa-minus-square" , "fa-minus-square-o" , "fa-level-up" , "fa-level-down" , "fa-check-square" , "fa-pencil-square" , "fa-external-link-square" , "fa-share-square" , "fa-compass" , "fa-caret-square-o-down" , "fa-caret-square-o-up" , "fa-caret-square-o-right" , "fa-eur" , "fa-gbp" , "fa-usd" , "fa-inr" , "fa-jpy" , "fa-rub" , "fa-krw" , "fa-btc" , "fa-file" , "fa-file-text" , "fa-sort-alpha-asc" , "fa-sort-alpha-desc" , "fa-sort-amount-asc" , "fa-sort-amount-desc" , "fa-sort-numeric-asc" , "fa-sort-numeric-desc" , "fa-thumbs-up" , "fa-thumbs-down" , "fa-youtube-square" , "fa-youtube" , "fa-xing" , "fa-xing-square" , "fa-youtube-play" , "fa-dropbox" , "fa-stack-overflow" , "fa-instagram" , "fa-flickr" , "fa-adn" , "fa-bitbucket" , "fa-bitbucket-square" , "fa-tumblr" , "fa-tumblr-square" , "fa-long-arrow-down" , "fa-long-arrow-up" , "fa-long-arrow-left" , "fa-long-arrow-right" , "fa-apple" , "fa-windows" , "fa-android" , "fa-linux" , "fa-dribbble" , "fa-skype" , "fa-foursquare" , "fa-trello" , "fa-female" , "fa-male" , "fa-gratipay" , "fa-sun-o" , "fa-moon-o" , "fa-archive" , "fa-bug" , "fa-vk" , "fa-weibo" , "fa-renren" , "fa-pagelines" , "fa-stack-exchange" , "fa-arrow-circle-o-right" , "fa-arrow-circle-o-left" , "fa-caret-square-o-left" , "fa-dot-circle-o" , "fa-wheelchair" , "fa-vimeo-square" , "fa-try" , "fa-plus-square-o" , "fa-space-shuttle" , "fa-slack" , "fa-envelope-square" , "fa-wordpress" , "fa-openid" , "fa-university" , "fa-graduation-cap" , "fa-yahoo" , "fa-google" , "fa-reddit" , "fa-reddit-square" , "fa-stumbleupon-circle" , "fa-stumbleupon" , "fa-nexus" , "fa-digg" , "fa-pied-piper" , "fa-pied-piper-alt" , "fa-drupal" , "fa-joomla" , "fa-language" , "fa-fax" , "fa-building" , "fa-child" , "fa-paw" , "fa-spoon" , "fa-cube" , "fa-cubes" , "fa-behance" , "fa-behance-square" , "fa-steam" , "fa-steam-square" , "fa-recycle" , "fa-car" , "fa-taxi" , "fa-tree" , "fa-spotify" , "fa-deviantart" , "fa-soundcloud" , "fa-database" , "fa-file-pdf-o" , "fa-file-word-o" , "fa-file-excel-o" , "fa-file-powerpoint-o" , "fa-file-image-o" , "fa-file-archive-o" , "fa-file-audio-o" , "fa-file-video-o" , "fa-file-code-o" , "fa-vine" , "fa-codepen" , "fa-jsfiddle" , "fa-life-ring" , "fa-circle-o-notch" , "fa-rebel" , "fa-empire" , "fa-git-square" , "fa-git" , "fa-hacker-news" , "fa-tencent-weibo" , "fa-qq" , "fa-weixin" , "fa-paper-plane" , "fa-paper-plane-o" , "fa-history" , "fa-circle-thin" , "fa-header" , "fa-paragraph" , "fa-sliders" , "fa-share-alt" , "fa-share-alt-square" , "fa-bomb" , "fa-futbol-o" , "fa-tty" , "fa-binoculars" , "fa-plug" , "fa-slideshare" , "fa-twitch" , "fa-yelp" , "fa-newspaper-o" , "fa-wifi" , "fa-calculator" , "fa-paypal" , "fa-google-wallet" , "fa-cc-visa" , "fa-cc-mastercard" , "fa-cc-discover" , "fa-cc-amex" , "fa-cc-paypal" , "fa-cc-stripe" , "fa-bell-slash" , "fa-bell-slash-o" , "fa-tras
202h" , "fa-copyright" , "fa-at" , "fa-eyedropper" , "fa-paint-brush" , "fa-birthday-cake" , "fa-area-chart" , "fa-pie-chart" , "fa-line-chart" , "fa-lastfm" , "fa-lastfm-square" , "fa-toggle-off" , "fa-toggle-on" , "fa-bicycle" , "fa-bus" , "fa-ioxhost" , "fa-angellist" , "fa-cc" , "fa-ils" , "fa-meanpath" , "fa-buysellads" , "fa-connectdevelop" , "fa-dashcube" , "fa-forumbee" , "fa-leanpub" , "fa-sellsy" , "fa-shirtsinbulk" , "fa-simplybuilt" , "fa-skyatlas" , "fa-cart-plus" , "fa-cart-arrow-down" , "fa-diamond" , "fa-ship" , "fa-user-secret" , "fa-motorcycle" , "fa-street-view" , "fa-heartbeat" , "fa-venus" , "fa-mars" , "fa-mercury" , "fa-transgender" , "fa-transgender-alt" , "fa-venus-double" , "fa-mars-double" , "fa-venus-mars" , "fa-mars-stroke" , "fa-mars-stroke-v" , "fa-mars-stroke-h" , "fa-neuter" , "fa-genderless" , "fa-facebook-official" , "fa-pinterest-p" , "fa-whatsapp" , "fa-server" , "fa-user-plus" , "fa-user-times" , "fa-bed" , "fa-viacoin" , "fa-train" , "fa-subway" , "fa-medium" , "fa-y-combinator" , "fa-optin-monster" , "fa-opencart" , "fa-expeditedssl" , "fa-battery-full" , "fa-battery-three-quarters" , "fa-battery-half" , "fa-battery-quarter" , "fa-battery-empty" , "fa-mouse-pointer" , "fa-i-cursor" , "fa-object-group" , "fa-object-ungroup" , "fa-sticky-note" , "fa-sticky-note-o" , "fa-cc-jcb" , "fa-cc-diners-club" , "fa-clone" , "fa-balance-scale" , "fa-hourglass-o" , "fa-hourglass-start" , "fa-hourglass-half" , "fa-hourglass-end" , "fa-hourglass" , "fa-hand-rock-o" , "fa-hand-paper-o" , "fa-hand-scissors-o" , "fa-hand-lizard-o" , "fa-hand-spock-o" , "fa-hand-pointer-o" , "fa-hand-peace-o" , "fa-trademark" , "fa-registered" , "fa-creative-commons" , "fa-gg" , "fa-gg-circle" , "fa-tripadvisor" , "fa-odnoklassniki" , "fa-odnoklassniki-square" , "fa-get-pocket" , "fa-wikipedia-w" , "fa-safari" , "fa-chrome" , "fa-firefox" , "fa-opera" , "fa-internet-explorer" , "fa-television" , "fa-contao" , "fa-500px" , "fa-amazon" , "fa-calendar-plus-o" , "fa-calendar-minus-o" , "fa-calendar-times-o" , "fa-calendar-check-o" , "fa-industry" , "fa-map-pin" , "fa-map-signs" , "fa-map-o" , "fa-map" , "fa-commenting" , "fa-commenting-o" , "fa-houzz" , "fa-vimeo" , "fa-black-tie" , "fa-fonticons"];
203	
204	for ( var i in ICONS ) {
205		jQuery('.list-icon-' + ICONS[i] + ' li').prepend('<i class="fa '+ ICONS[i] +'"></i>');
206	}		
207	
208	// Header Search Form 
209
210	jQuery(".searchform-switch .fa-times-circle").hide();
211	jQuery(".searchform-switch .fa-search").click(function() {
212		jQuery(".searchform-switch .fa-search").hide("slow");
213		
214		jQuery(".header-search-form").fadeIn("slow", function(){
215			  jQuery(this).removeClass("display-none");
216		});
217		jQuery(".searchform-switch .fa-times-circle").show("slow");
218	});
219	
220	jQuery(".searchform-switch .fa-times-circle").click(function() {
221		jQuery(".searchform-switch .fa-times-circle").hide("slow");
222		jQuery(".header-search-form").fadeOut("slow", function(){
223			  jQuery(this).addClass("display-none");
224		});			
225		jQuery(".searchform-switch .fa-search").show("slow");
226	});			
227
228});

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.