PageSourceSearch

https://moea.gov.mm/js/custom.js

js moea.gov.mm collected 2026-10-02 21:43:07 UTC 13,687 bytes, 577 lines download raw bytes

1/***************************************************************************************************************
2||||||||||||||||||||||||||||         CUSTOM SCRIPT FOR CHARITY HOME            ||||||||||||||||||||||||||||||||||||
3****************************************************************************************************************
4||||||||||||||||||||||||||||              TABLE OF CONTENT                  ||||||||||||||||||||||||||||||||||||
5****************************************************************************************************************
6****************************************************************************************************************
7
81 revolutionSliderActiver
92 galleryMasonaryLayout
103 LightBox / Fancybox
114 Gallery Filters
125 accrodion
136 pieChart RoundCircle
147 progressBarConfig
158 teamCarosule
169 testiCarosule
1710 clientsCarosule
1811 CounterNumberChanger
1912 stickyHeader
2013 contactFormValidation
2114 event slider
2215 selectInput
2316 datePicker
2417 gMap
2518 mobileMenu
26
27****************************************************************************************************************
28||||||||||||||||||||||||||||            End TABLE OF CONTENT                ||||||||||||||||||||||||||||||||||||
29****************************************************************************************************************/
30
31
32"use strict";
33
34// 1 revolutionSliderActiver
35function revolutionSliderActiver () {
36	if ($('.rev_slider_wrapper #slider1').length) {
37		$("#slider1").revolution({
38			sliderType:"standard",
39			sliderLayout:"auto",
40			delay:5000,
41			navigation: {
42				arrows:{enable:true} 
43			}, 
44			gridwidth:1170,
45			gridheight:770 
46		});
47	};
48}
49
50// 2 galleryMasonaryLayout
51function galleryMasonaryLayout () {
52	if ($('.img-masonary').length) {
53		$('.img-masonary').isotope({
54			layoutMode:'masonry'
55		});
56	}
57}
58
59// 3 LightBox / Fancybox
60if($('.lightbox-image').length) {
61	$('.lightbox-image').fancybox({
62		openEffect  : 'elastic',
63		closeEffect : 'elastic',
64		helpers : {
65			media : {}
66		}
67	});
68}
69
70// 4 Gallery Filters
71if($('.filter-list').length){
72	$('.filter-list').mixItUp({});
73}
74
75// 5 accrodion
76function accrodion () {
77	if ($('.accrodion-grp').length) {
78		
79		$('.accrodion-grp').each(function () {
80			var accrodionName = $(this).data('grp-name');
81			var Self = $(this);
82			Self.addClass(accrodionName);
83			Self.find('.accrodion .accrodion-content').hide();
84			Self.find('.accrodion.active').find('.accrodion-content').show();
85			Self.find('.accrodion').each(function() {
86				$(this).find('.accrodion-title').on('click', function () {
87					if ($(this).parent().hasClass('active') === false ) {					
88						$('.accrodion-grp.'+accrodionName).find('.accrodion').removeClass('active');
89						$('.accrodion-grp.'+accrodionName).find('.accrodion').find('.accrodion-content').slideUp();
90						$(this).parent().addClass('active');					
91						$(this).parent().find('.accrodion-content').slideDown();	
92					};
93				});
94			});
95		});
96		
97	};
98}
99
100// 6 pieChart RoundCircle
101function expertizeRoundCircle () {
102	var rounderContainer = $('.piechart.style-one');
103	if (rounderContainer.length) {
104		rounderContainer.each(function () {
105			var Self = $(this);
106			var value = Self.data('value');
107			var size = Self.parent().width();
108			var color = Self.data('fg-color');
109
110			Self.find('span').each(function () {
111				var expertCount = $(this);
112				expertCount.appear(function () {
113					expertCount.countTo({
114						from: 1,
115						to: value*100,
116						speed: 3000
117					});
118				});
119
120			});
121			Self.appear(function () {					
122				Self.circleProgress({
123					value: value,
124					size: 142,
125					thickness: 10,
126					emptyFill: 'rgba(149,149,149,1)',
127					animation: {
128						duration: 3000
129					},
130					fill: {
131						color: color
132					}
133				});
134			});
135		});
136	};
137}
138
139// 7 progressBarConfig
140function progressBarConfig () {
141  var progressBar = $('.progress');
142  if(progressBar.length) {
143    progressBar.each(function () {
144      var Self = $(this);
145      Self.appear(function () {
146        var progressValue = Self.data('value');
147
148        Self.find('.progress-bar').animate({
149          width:progressValue+'%'           
150        }, 100);
151
152        Self.find('span.value').countTo({
153          from: 0,
154            to: progressValue,
155            speed: 100
156        });
157      });
158    })
159  }
160
161}
162
163// 8 teamCarosule
164function teamCarosule () {
165	if ($('.team-carousel').length) {
166		$('.team-carousel').owlCarousel({
167		    loop: true,
168		    margin: 30,
169		    nav: true,
170		    dots: false,
171            navText: [
172                '<i class="fa fa-angle-left"></i>',
173                '<i class="fa fa-angle-right"></i>'
174            ],
175		    autoplay: true,
176		    autoplayTimeout: 3000,
177		    autoplayHoverPause: true,
178		    responsive: {
179		        0:{
180		            items:1
181		        },
182		        480:{
183		            items:1
184		        },
185		        600:{
186		            items:2
187		        },
188		        1000:{
189		            items:3
190		        },
191		        1200:{
192		            items:3
193		        }
194		    }
195		});
196	}
197}
198
199
200// 8 teamCarosule
201function newsDetailCarosule () {
202	if ($('.news-details-carousel').length) {
203		$('.news-details-carousel').owlCarousel({
204		    loop: true,
205		    margin: 10,
206		    nav: true,
207		    dots: false,
208            navText: [
209                '<i class="fa fa-angle-left"></i>',
210                '<i class="fa fa-angle-right"></i>'
211            ],
212		    autoplay: true,
213		    autoplayTimeout: 3000,
214		    autoplayHoverPause: true,
215		    responsive: {
216		        0:{
217		            items:1
218		        },
219		        480:{
220		            items:1
221		        },
222		        600:{
223		            items:2
224		        },
225		        1000:{
226		            items:2
227		        },
228		        1200:{
229		            items:2
230		        }
231		    }
232		});
233	}
234}
235
236
237// 9 testiCarosule
238function testiCarosule () {
239	if ($('.testimonaials-carousel').length) {
240		$('.testimonaials-carousel').owlCarousel({
241		    loop: true,
242		    margin: 50,
243		    nav: false,
244		    dots: false,
245		    autoplay: true,
246		    autoplayTimeout: 3000,
247		    autoplayHoverPause: true,
248		    responsive: {
249		        0:{
250		            items:1
251		        },
252		        480:{
253		            items:1
254		        },
255		        600:{
256		            items:1
257		        },
258		        1000:{
259		            items:2
260		        },
261		        1200:{
262		            items:2
263		        }
264		    }
265		});
266	}
267}
268
269//  sliderCarosule;
270function sliderCarosule() {
271  if ($(".slider-carousel").length) {
272    $(".slider-carousel").owlCarousel({
273      loop: true,
274      margin: 50,
275      navText: [
276        '<i class="fa fa-angle-left"></i>',
277        '<i class="fa fa-angle-right"></i>',
278      ],
279      dots: false,
280      autoplay: true,
281      autoplayTimeout: 5000,
282      autoplayHoverPause: true,
283      responsive: {
284        0: {
285          items: 1,
286        },
287        480: {
288          items: 1,
289        },
290        600: {
291          items: 1,
292        },
293        1000: {
294          items: 1,
295        },
296        1200: {
297          items: 1,
298        },
299      },
300    });
301  }
302}
303
304// 10 clientsCarosule
305function clientsCarosule () {
306	if ($('.clients-carousel').length) {
307		$('.clients-carousel').owlCarousel({
308		    loop: true,
309		    margin: 50,
310		    nav: false,
311		    dots: false,
312		    autoplay: true,
313		    autoplayTimeout: 3000,
314		    autoplayHoverPause: true,
315		    responsive: {
316		        0:{
317		            items:2
318		        },
319		        480:{
320		            items:3
321		        },
322		        600:{
323		            items:4
324		        },
325		        1000:{
326		            items:5
327		        },
328		        1200:{
329		            items:6
330		        }
331		    }
332		});
333	}
334}
335
336// 11 CounterNumberChanger
337function CounterNumberChanger () {
338	var timer = $('.timer');
339	if(timer.length) {
340		timer.appear(function () {
341			timer.countTo();
342		})
343	}
344}
345
346// 12 stickyHeader
347function stickyHeader () {
348	if ($('.stricky').length) {
349		var strickyScrollPos = 100;
350		if($(window).scrollTop() > strickyScrollPos) {
351			$('.stricky').removeClass('fadeIn animated');
352	      	$('.stricky').addClass('stricky-fixed fadeInDown animated');
353		}
354		else if($(this).scrollTop() <= strickyScrollPos) {
355			$('.stricky').removeClass('stricky-fixed fadeInDown animated');
356	      	$('.stricky').addClass('slideIn animated');
357		}
358	};
359}
360
361// 13 contactFormValidation
362function contactFormValidation () {
363
364	if($('.contact-form').length){
365		$('.contact-form').each(function () {
366			
367			var cfName = $(this).attr('id');
368
369			$('#'+cfName).validate({ // initialize the plugin
370				rules: {
371					name: {
372						required: true
373					},
374					email: {
375						required: true,
376						email: true
377					},
378					message: {
379						required: true
380					},
381					date: {
382						required: true
383					},
384					category: {
385						required: true
386					},
387					phone: {
388						required: true
389					},
390					gender: {
391						required: true
392					},
393					dateOfBirth: {
394						required: true
395					},
396					subject: {
397						required: true
398					}
399				},
400				submitHandler: function (form) { 
401					// sending value with ajax request
402					$.post($(form).attr('action'), $(form).serialize(), function (response) {
403						$(form).parent('div').append(response);
404						$(form).find('input[type="text"]').val('');
405						$(form).find('input[type="email"]').val('');
406						$(form).find('textarea').val('');
407					});
408					return false;
409				}
410			});
411		});
412	}
413}
414
415// 14 event slider
416function bxgeventCarousel () {
417	$('.bx-event-carousel').bxSlider({
418        auto: false,
419        speed: 300,
420        mode: 'vertical',
421        minSlides: 3,
422        slideMargin: 20,
423        pager: false,
424        prevText: '<i class="fa fa-angle-left"></i>',
425        nextText: '<i class="fa fa-angle-right"></i>'
426    });
427	$(".other-news-carousel").bxSlider({
428		auto: true,
429		speed: 400,
430		mode: "vertical",
431		minSlides: 7,
432		slideMargin: 20,
433		pager: false,
434		prevText: '<i class="fa fa-angle-left"></i>',
435		nextText: '<i class="fa fa-angle-right"></i>',
436  });
437  $(".marque-boxs").bxSlider({
438    auto: true,
439    speed: 600,
440    mode: "horizontal",
441    minSlides: 1,
442    slideMargin: 20,
443    pager: false,
444    prevText: '<i class="fa fa-angle-left"></i>',
445    nextText: '<i class="fa fa-angle-right"></i>',
446  });
447}
448
449
450
451// 15 selectInput
452function selectInput () {
453	if ($('.select-input').length) {
454		$('.select-input').selectmenu();
455	};
456}
457
458// 16 datePicker
459function datePicker () {
460	if ($('.date-picker').length) {
461		$('.date-picker').datepicker();
462	};
463}
464
465// 17 gMap
466function gMap () {
467	if ($('.google-map').length) {
468        $('.google-map').each(function () {
469        	// getting options from html 
470        	var mapName = $(this).attr('id');
471        	var mapLat = $(this).data('map-lat');
472        	var mapLng = $(this).data('map-lng');
473        	var iconPath = $(this).data('icon-path');
474        	var mapZoom = $(this).data('map-zoom');
475        	var mapTitle = $(this).data('map-title');
476
477        	// if zoom not defined the zoom value will be 15;
478        	if (!mapZoom) {
479        		var mapZoom = 15;
480        	};
481        	// init map
482        	var map;
483            map = new GMaps({
484                div: '#'+mapName,
485                scrollwheel: false,
486                lat: mapLat,
487                lng: mapLng,
488                zoom: mapZoom
489            });
490            // if icon path setted then show marker
491            if(iconPath) {
492        		map.addMarker({
493	            	icon: iconPath,
494	                lat: mapLat,
495	                lng: mapLng,
496	                title: mapTitle
497	            });
498        	}
499        });  
500	};
501}
502
503// 18 mobileMenu
504function mobileMenu () {
505	if ($('.navigation .nav-footer button').length && $(window).width() <= 768 ) {
506		$('.navigation .nav-footer button').on('click', function () {
507			$('.navigation .nav-header').slideToggle();
508			$('.navigation .nav-header').find('.dropdown').children('a').append(function () {
509				return '<button><i class="fa fa-bars"></i></button>';
510			});
511			$('.navigation .nav-header .dropdown a button').on('click', function () {
512				$(this).parent().parent().children('ul.submenu').slideToggle();
513				return false;
514			});
515		});
516	};
517}
518
519
520// Scroll Top
521function scrollToTop () {
522	if ($(".scroll-to-top").length) {
523		var strickyScrollPos = 100;
524		if ($(window).scrollTop() > strickyScrollPos) {
525			$(".scroll-to-top").addClass("active");
526			$(".scroll-to-top").fadeIn(500);
527		} else if ($(this).scrollTop() <= strickyScrollPos) {
528			$(".scroll-to-top").removeClass("active");
529			$(".scroll-to-top").fadeOut(500);
530		}
531	}
532    
533}
534
535
536
537// Dom Ready Function
538jQuery(document).on('ready', function () {
539	(function ($) {
540		// add your functions
541		
542		revolutionSliderActiver();
543		galleryMasonaryLayout();
544		accrodion();
545		expertizeRoundCircle();
546		progressBarConfig();
547		teamCarosule();
548		newsDetailCarosule();
549		sliderCarosule();
550		testiCarosule();
551		clientsCarosule();	
552		CounterNumberChanger();
553		contactFormValidation();
554		bxgeventCarousel();
555		selectInput();
556		datePicker();
557		gMap();
558		mobileMenu();
559	})(jQuery);
560});
561
562// window on load functino
563jQuery(window).on('load', function () {
564	(function ($) {
565		// add your functions	
566	})(jQuery);
567});
568
569// window on scroll functino
570jQuery(window).on('scroll', function () {
571	(function ($) {
572		// add your functions
573		stickyHeader();
574		scrollToTop();
575		
576	})(jQuery);
577});

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.