PageSourceSearch

https://www.mindfiretechnology.com/Themes/Unity/js/app.js?cdv=1904185229

js mindfiretechnology.com collected 2026-10-09 23:05:17 UTC 9,223 bytes, 322 lines download raw bytes

1/*
2* Template Name: Unify - Responsive Bootstrap Template
3* Author: @htmlstream
4* Website: http://htmlstream.com
5*/
6
7var App = function () {
8	// We extend jQuery by method hasAttr
9	$.fn.hasAttr = function(name) {
10	  return this.attr(name) !== undefined;
11	};
12
13
14	//Fixed Header
15	function handleHeader() {
16		jQuery(window).scroll(function() {
17			if (false/*jQuery(window).scrollTop() > 0*/) { //We do not want the header to change sizes
18			jQuery('.header-fixed .header-sticky').addClass('header-fixed-shrink');
19		  } else {
20			jQuery('.header-fixed .header-sticky').removeClass('header-fixed-shrink');
21		  }
22		});
23	}
24
25	// Header Mega Menu
26	function handleMegaMenu() {
27		jQuery(document).on('click', '.mega-menu .dropdown-menu', function(e) {
28			e.stopPropagation();
29		})
30	}
31
32	// Search Box (Header)
33	function handleSearch() {
34		jQuery('.search').on("click", function () {
35			if(jQuery('.search-btn').hasClass('fa-search')){
36				jQuery('.search-open').fadeIn(500);
37				jQuery('.search-btn').removeClass('fa-search');
38				jQuery('.search-btn').addClass('fa-times');
39			} else {
40				jQuery('.search-open').fadeOut(500);
41				jQuery('.search-btn').addClass('fa-search');
42				jQuery('.search-btn').removeClass('fa-times');
43			}
44		});
45	}
46
47	// Search Box v1 (Header v5)
48	function handleSearchV1() {
49		jQuery('.header-v5 .search-button').click(function () {
50			jQuery('.header-v5 .search-open').slideDown();
51		});
52
53		jQuery('.header-v5 .search-close').click(function () {
54			jQuery('.header-v5 .search-open').slideUp();
55		});
56
57		jQuery(window).scroll(function(){
58		  if(jQuery(this).scrollTop() > 1) jQuery('.header-v5 .search-open').fadeOut('fast');
59		});
60	}
61
62	// Search Box v2 (Header v8)
63	function handleSearchV2() {
64		$(".blog-topbar .search-btn").on("click", function() {
65		  if (jQuery(".topbar-search-block").hasClass("topbar-search-visible")) {
66			jQuery(".topbar-search-block").slideUp();
67			jQuery(".topbar-search-block").removeClass("topbar-search-visible");
68		  } else {
69			jQuery(".topbar-search-block").slideDown();
70			jQuery(".topbar-search-block").addClass("topbar-search-visible");
71		  }
72		});
73		$(".blog-topbar .search-close").on("click", function() {
74		  jQuery(".topbar-search-block").slideUp();
75		  jQuery(".topbar-search-block").removeClass("topbar-search-visible");
76		});
77		jQuery(window).scroll(function() {
78		  jQuery(".topbar-search-block").slideUp();
79		  jQuery(".topbar-search-block").removeClass("topbar-search-visible");
80		});
81	}
82
83	// TopBar (Header v8)
84	function handleTopBar() {
85		$(".topbar-toggler").on("click", function() {
86		  if (jQuery(".topbar-toggler").hasClass("topbar-list-visible")) {
87			jQuery(".topbar-menu").slideUp();
88			jQuery(this).removeClass("topbar-list-visible");
89		  } else {
90			jQuery(".topbar-menu").slideDown();
91			jQuery(this).addClass("topbar-list-visible");
92		  }
93		});
94	}
95
96	// TopBar SubMenu (Header v8)
97	function handleTopBarSubMenu() {
98		$(".topbar-list > li").on("click", function(e) {
99		  if (jQuery(this).children("ul").hasClass("topbar-dropdown")) {
100			if (jQuery(this).children("ul").hasClass("topbar-dropdown-visible")) {
101			  jQuery(this).children(".topbar-dropdown").slideUp();
102			  jQuery(this).children(".topbar-dropdown").removeClass("topbar-dropdown-visible");
103			} else {
104			  jQuery(this).children(".topbar-dropdown").slideDown();
105			  jQuery(this).children(".topbar-dropdown").addClass("topbar-dropdown-visible");
106			}
107		  }
108		  //e.preventDefault();
109		});
110	}
111
112	// Sidebar Navigation Toggle
113	function handleToggle() {
114		jQuery('.list-toggle').on('click', function() {
115			jQuery(this).toggleClass('active');
116		});
117	}
118
119	// Equal Height Columns
120	function handleEqualHeightColumns() {
121		var EqualHeightColumns = function () {
122			$(".equal-height-columns").each(function() {
123				heights = [];
124				$(".equal-height-column", this).each(function() {
125					$(this).removeAttr("style");
126					heights.push($(this).height()); // write column's heights to the array
127				});
128				$(".equal-height-column", this).height(Math.max.apply(Math, heights)); //find and set max
129			});
130		}
131
132		EqualHeightColumns();
133		$(window).resize(function() {
134			EqualHeightColumns();
135		});
136		$(window).load(function() {
137			EqualHeightColumns();
138		});
139	}
140
141	// Equal Height Image-Columns
142	function handleEqualHeightColumns__Images() {
143		var EqualHeightColumns__Images = function () {
144			$('.equal-height-columns-v2').each(function() {
145				var heights = [];
146				$('.equal-height-column-v2', this).each(function() {
147					$(this).removeAttr('style');
148					heights.push($(this).height()); // Write column's heights to the array
149				});
150				$('.equal-height-column-v2', this).height(Math.max.apply(Math, heights)); // Find and set max
151
152				$('.equal-height-column-v2', this).each(function() {
153					if ($(this).hasAttr('data-image-src')) {
154						$(this).css('background', 'url('+$(this).attr('data-image-src')+') no-repeat scroll 50% 0 / cover');
155					}
156				});
157			});
158		}
159	$('.equal-height-columns-v2').ready(function() {
160	  EqualHeightColumns__Images();
161	});
162		$(window).resize(function() {
163			EqualHeightColumns__Images();
164		});
165	}
166
167	// Full Screen
168	var handleFullscreen = function() {
169		var WindowHeight = $(window).height();
170		var HeaderHeight = 0;
171
172		if ($(document.body).hasClass("promo-padding-top")) {
173		  HeaderHeight = $(".header").height();
174		} else {
175		  HeaderHeight = 0;
176		}
177
178		$(".fullheight").css("height", WindowHeight - HeaderHeight);
179
180		$(window).resize(function() {
181		  var WindowHeight = $(window).height();
182		  $(".fullheight").css("height", WindowHeight - HeaderHeight);
183		});
184	}
185
186	// Align Middle
187	var handleValignMiddle = function() {
188		$(".valign__middle").each(function() {
189		  $(this).css("padding-top", $(this).parent().height() / 2 - $(this).height() / 2);
190		});
191		$(window).resize(function() {
192		  $(".valign__middle").each(function() {
193			$(this).css("padding-top", $(this).parent().height() / 2 - $(this).height() / 2);
194		  });
195		});
196	}
197
198	// Hover Selector
199	function handleHoverSelector() {
200		// $('.hoverSelector').on('hover', function(e) {
201		// 	$('.hoverSelectorBlock', this).toggleClass('show');
202		// 	e.stopPropagation();
203		// });
204		$('.hoverSelector').on('click', function(e) {
205		  if (jQuery(this).children('ul').hasClass('languages')) {
206			if (jQuery(this).children('ul').hasClass('languages-visible')) {
207			  jQuery(this).children('.languages').slideUp();
208			  jQuery(this).children('.languages').removeClass('languages-visible');
209			} else {
210			  jQuery(this).children('.languages').slideDown();
211			  jQuery(this).children('.languages').addClass('languages-visible');
212			}
213		  }
214		  //e.preventDefault();
215		});
216	}
217
218	// Bootstrap Tooltips and Popovers
219	function handleBootstrap() {
220		/* Bootstrap Carousel */
221		jQuery('.carousel').carousel({
222			interval: 15000,
223			pause: 'hover'
224		});
225
226		/* Tooltips */
227		jQuery('.tooltips').tooltip();
228		jQuery('.tooltips-show').tooltip('show');
229		jQuery('.tooltips-hide').tooltip('hide');
230		jQuery('.tooltips-toggle').tooltip('toggle');
231		jQuery('.tooltips-destroy').tooltip('destroy');
232
233		/* Popovers */
234		jQuery('.popovers').popover();
235		jQuery('.popovers-show').popover('show');
236		jQuery('.popovers-hide').popover('hide');
237		jQuery('.popovers-toggle').popover('toggle');
238		jQuery('.popovers-destroy').popover('destroy');
239	}
240
241	return {
242		init: function () {
243			handleBootstrap();
244			handleSearch();
245			handleSearchV1();
246			handleSearchV2();
247			handleTopBar();
248			handleTopBarSubMenu();
249			handleToggle();
250			handleHeader();
251			handleMegaMenu();
252			handleHoverSelector();
253			handleFullscreen();
254			handleValignMiddle();
255			handleEqualHeightColumns();
256			handleEqualHeightColumns__Images();
257		},
258
259		// Counters
260		initCounter: function () {
261			jQuery('.counter').counterUp({
262				delay: 10,
263				time: 1000
264			});
265		},
266
267		// Parallax Backgrounds
268		initParallaxBg: function () {
269			jQuery(window).load(function() {
270				jQuery('.parallaxBg').parallax("50%", 0.2);
271				jQuery('.parallaxBg1').parallax("50%", 0.4);
272			});
273		},
274
275		// Scroll Bar
276		initScrollBar: function () {
277			jQuery('.mCustomScrollbar').mCustomScrollbar({
278				theme:"minimal",
279				scrollInertia: 200,
280				scrollEasing: "linear"
281			});
282		},
283
284		// Sidebar Menu Dropdown
285		initSidebarMenuDropdown: function() {
286		  function SidebarMenuDropdown() {
287			jQuery('.header-v7 .dropdown-toggle').on('click', function() {
288			  jQuery('.header-v7 .dropdown-menu').stop(true, false).slideUp();
289			  jQuery('.header-v7 .dropdown').removeClass('open');
290
291			  if (jQuery(this).siblings('.dropdown-menu').is(":hidden") == true) {
292				jQuery(this).siblings('.dropdown-menu').stop(true, false).slideDown();
293				jQuery(this).parents('.dropdown').addClass('open');
294			  }
295			});
296		  }
297		  SidebarMenuDropdown();
298		},
299
300		// Animate Dropdown
301		initAnimateDropdown: function() {
302		  function MenuMode() {
303			jQuery('.dropdown').on('show.bs.dropdown', function() {
304			  jQuery(this).find('.dropdown-menu').first().stop(true, true).slideDown();
305			});
306			jQuery('.dropdown').on('hide.bs.dropdown', function() {
307			  jQuery(this).find('.dropdown-menu').first().stop(true, true).slideUp();
308			});
309		  }
310
311		  jQuery(window).resize(function() {
312			if (jQuery(window).width() > 768) {
313			  MenuMode();
314			}
315		  });
316
317		  if (jQuery(window).width() > 768) {
318			MenuMode();
319		  }
320		},
321	};
322}();

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.