PageSourceSearch

https://menafn.com/js/main.js

js menafn.com collected 2026-09-24 06:53:44 UTC 3,687 bytes, 136 lines download raw bytes

1/**
2* @author JoomShaper http://www.joomshaper.com
3* @copyright Copyright (c) 2010 - 2015 JoomShaper
4* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
5*/
6const d = new Date();
7const Days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
8const Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
9
10let year = d.getUTCFullYear();
11let month = d.getUTCMonth();
12let day = d.getUTCDate();
13
14let LongDay = Days[d.getUTCDay()];
15let LongMonth = Months[d.getUTCMonth()];
16
17let hours = d.getUTCHours();
18let minutes = d.getUTCMinutes();
19hours = hours % 12;
20hours = hours ? hours : 12;
21hours = hours < 10 ? '0' + hours : hours;
22minutes = minutes < 10 ? '0' + minutes : minutes;
23
24document.getElementById("lbl_day").innerHTML = LongDay;
25document.getElementById("lbl_date").innerHTML = day + " " + LongMonth + " " + year;
26document.getElementById("lbl_time").innerHTML = hours + ':' + minutes + " GMT";
27
28
29jQuery(function($) {
30	//offcanvas
31	$('#offcanvas-toggler').on('click', function(event){
32        event.preventDefault();
33        $('body').addClass('offcanvas');
34    });
35    $( '<div class="offcanvas-overlay"></div>' ).insertBefore( '.body-innerwrapper > .offcanvas-menu' );
36    $('.close-offcanvas, .offcanvas-overlay').on('click', function(event){
37        event.preventDefault();
38        $('body').removeClass('offcanvas');
39    });
40
41
42    //Sticky Menu
43    $(document).ready(function(){
44        $("body.sticky-header").find('#navigation-bar, #mobile-nav-bar').sticky({topSpacing:0})
45    });
46	
47
48	//Search
49	$(".search-icon-wrapper").on('click', function(){
50		$(".search-wrapper").fadeIn(200);
51	});
52	$("#search-close").on('click', function(){
53		$(".search-wrapper").fadeOut(200);
54	});
55
56
57    //select menu
58    (function() {
59    	[].slice.call( document.querySelectorAll( 'select.cs-select' ) ).forEach( function(el) {	
60    		new SelectFx(el);
61    	} );
62    })();
63
64
65    //vertical tabs on hover
66    $('.vertical-tabs a').hover(function (e) {
67          e.preventDefault()
68          $(this).tab('show')
69       });
70
71
72    //article-slider
73    $('#article-slider').owlCarousel({
74    	loop:true,
75    	responsive:{
76    		0:{
77    			items:1
78    		},
79    		600:{
80    			items:1
81    		},
82    		1000:{
83    			items:1
84    		}
85    	}
86    });
87
88    // Contact form
89    var form = $('#main-contact-form');
90    form.submit(function(event){
91        event.preventDefault();
92        var form_status = $('<div class="form_status"></div>');
93        $.ajax({
94            url: $(this).attr('action'),
95            beforeSend: function(){
96                form.prepend( form_status.html('<p><i class="fa fa-spinner fa-spin"></i> Email is sending...</p>').fadeIn() );
97            }
98        }).done(function(data){
99            form_status.html('<p class="text-success">Thank you for contact us. As early as possible  we will contact you</p>').delay(3000).fadeOut();
100        });
101    });
102
103    // nanoscroller
104    (function() {
105        $(".nano").nanoScroller({
106            flash: true
107        });
108
109    }).call(this);
110
111    //thumb gallery
112    $(window).load(function() {
113		$('#img_galley').flexslider({
114			animation: 'slide', 
115            controlNav: true,
116            directionNav: true,
117            animationLoop: false,
118            slideshow: false,
119            minItems: 5,
120            move: 1,
121            itemWidth: 129,
122            itemMargin: 15,
123			asNavFor: '#img_thumb'
124		});
125
126		$('#img_thumb').flexslider({
127			animation: "fade",
128            controlNav: false,
129            directionNav: true,
130            animationLoop: false,
131            slideshow: true,
132			sync: "#img_galley"
133		});
134	});
135
136});

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.