1 2 var owl = $("#owl-demo"); 3 4 owl.owlCarousel({ 5 6 items : 3, //10 items above 1000px browser width 7 itemsDesktop : [992,3], //5 items between 1000px and 901px 8 itemsDesktopSmall : [991,2], // 3 items betweem 900px and 601px 9 itemsTablet: [600,1], //2 items between 600 and 0; 10 itemsMobile : [300,1] // itemsMobile disabled - inherit from itemsTablet option 11 12 }); 13 14 // Custom Navigation Events 15 $(".next").click(function(){ 16 owl.trigger('owl.next'); 17 }) 18 $(".prev").click(function(){ 19 owl.trigger('owl.prev'); 20 }) 21 $(".play").click(function(){ 22 owl.trigger('owl.play',1000); 23 }) 24 $(".stop").click(function(){ 25 owl.trigger('owl.stop'); 26 }) 27 28 jQuery(".change_language_link").click(function(){ 29 var language_code = jQuery(this).attr("rel"); 30 jQuery("#language-selected").val(language_code); 31 switchLanguage(); 32 }) 33 $(function () { 34 // Slideshow 4 35 $("#slider4").responsiveSlides({ 36 auto: true, 37 pager: true, 38 nav: true, 39 speed: 500, 40 namespace: "callbacks", 41 before: function () { 42 $('.events').append("<li>before event fired.</li>"); 43 }, 44 after: function () { 45 $('.events').append("<li>after event fired.</li>"); 46 } 47 }); 48 49 }); 50 51 WOW.prototype.addBox = function(element) { 52 this.boxes.push(element); 53 }; 54 55 var wow = new WOW(); 56 wow.init(); 57 58 59function showHide(shID) { 60 if (document.getElementById(shID)) { 61 if (document.getElementById(shID+'-show').style.display != 'none') { 62 document.getElementById(shID+'-show').style.display = 'none'; 63 document.getElementById(shID).style.display = 'block'; 64 } 65 else { 66 document.getElementById(shID+'-show').style.display = 'inline'; 67 document.getElementById(shID).style.display = 'none'; 68 } 69 } 70} 71/* var a = 0; 72$(window).scroll(function () { 73 74 var oTop = $('#counter').offset().top - window.innerHeight; 75 if (a == 0 && $(window).scrollTop() > oTop) { 76 $('.counter-value').each(function () { 77 var varthis = $(this), 78 countTo = varthis.attr('data-count'); 79 $({ 80 countNum: varthis.text() }). 81 animate({ 82 countNum: countTo }, 83 84 85 { 86 87 duration: 2000, 88 easing: 'swing', 89 step: function () { 90 varthis.text(Math.floor(this.countNum)); 91 }, 92 complete: function () { 93 varthis.text(this.countNum); 94 //alert('finished'); 95 } }); 96 97 98 }); 99 a = 1; 100 } 101 102}); */ 103function switchLanguage() { 104 $.ajax({ 105 url: localStorage.baseUrl + 'switchlang?lang=' + $("#language-selected").val(), 106 type: 'GET', 107 cache: !1, 108 data: 'lang=' + $("#language-selected").val(), 109 success: function(json) { 110 location.reload() 111 } 112 }) 113} 114 loadWeather("sohar", "oman", "f", "c_id", "C"); 115 loadWeather("sohar", "oman", "c", "f_id", "F"); 116 117 118 $(".send_message").click(function() { 119 var name = $("#name").val(); 120 var email = $("#email").val(); 121 var message = $("#message-contact").val(); 122 if (name != "" && email != "" && message != "") { 123 $(".contact_errors").hide(); 124 if(isEmail(email)) 125 { 126 var csrfParam = $('meta[name="csrf-param"]').attr('content'); 127 var csrfToken = $('meta[name="csrf-token"]').attr('content'); 128 var contactData = { name: name, email: email, message: message }; 129 if (csrfParam && csrfToken) contactData[csrfParam] = csrfToken; 130 $.ajax({ 131 url: localStorage.baseUrl + "contact_home", 132 cache: !1, 133 method: "POST", 134 data: contactData, 135 success: function(html) { 136 if (html == "0") { 137 $(".success").show(); 138 if (localStorage.lang_id == '1') 139 $(".success").html("Sorry there was some issue please try again later.") 140 else $(".success").html("Ø¹Ø°Ø±ÙØ§ Ø ØØ¯Ø«Øª Ù Ø´ÙÙØ© ٠ا Ø ÙØ±Ø¬Ù إعادة اÙÙ ØØ§ÙÙØ© ÙØ§ØÙÙØ§") 141 } else if (html == "1") { 142 $(".success").show(); 143 $("#name").val(""); 144 $("#email").val(""); 145 $("#message-contact").val(""); 146 if (localStorage.lang_id == '1')
147 $(".success").html("Thank you for contacting us we will get back to you soon.") 148 else $(".success").html("Ø´ÙØ±Ùا عÙ٠اتصاÙÙ Ø¨ÙØ§ ÙØ³ÙÙØ§ÙÙÙ Ø¨Ø§ÙØ±Ø¯ ÙØ±ÙØ¨ÙØ§") 149 } 150 } 151 }) 152 } 153 } 154 else 155 { 156 $(".contact_errors").show(); 157 $(".contact_errors").html("Please fill valid data and try again."); 158 return false; 159 } 160 161 }) 162 function isEmail(email) { 163 var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 164 return regex.test(email) 165} 166 $(".news_go").click(function() { 167 news_email = $("#news_email").val(); 168 if (news_email == "") { 169 if (localStorage.lang_id == '1') 170 $(".news_error").html("Email is a required field."); 171 else $(".news_error").html("Ø¥Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ØÙÙ Ù Ø·ÙÙØ¨"); 172 return !1 173 } else { 174 if (!isEmail(news_email)) { 175 if (localStorage.lang_id == '1') 176 $(".news_error").html("Please input a valid email."); 177 else $(".news_error").html("ÙØ±Ø¬Ù Ø¥Ø¯Ø®Ø§Ù Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ ØµØ§ÙØ"); 178 return !1 179 } else { 180 $(".news_error").html(""); 181 var csrfParam = $('meta[name="csrf-param"]').attr('content'); 182 var csrfToken = $('meta[name="csrf-token"]').attr('content'); 183 var newsData = { news_email: news_email }; 184 if (csrfParam && csrfToken) newsData[csrfParam] = csrfToken; 185 $.ajax({ 186 url: localStorage.baseUrl + "news_subscribe", 187 cache: !1, 188 method: "POST", 189 data: newsData, 190 success: function(data) { 191 if (data == "1") { 192 if (localStorage.lang_id == '1') 193 $(".news_error").html("Thank you for subscribing.") 194 else $(".news_error").html("Ø´ÙØ±Ø§ ÙÙØ§Ø´ØªØ±Ø§Ù") 195 } else if (data == "0") { 196 if (localStorage.lang_id == '1') 197 $(".news_error").html("Sorry there was some issue submitting your data. Please try again later.") 198 else $(".news_error").html("Ø¹Ø°Ø±ÙØ§ Ø ØØ¯Ø«Øª Ù Ø´ÙÙØ© ÙÙ Ø¥Ø±Ø³Ø§Ù Ø¨ÙØ§ÙاتÙ. Ø§ÙØ±Ø¬Ø§Ø¡ Ù Ø¹Ø§ÙØ¯Ø© اÙÙ ØØ§ÙÙØ© ÙÙ ÙÙØª ÙØ§ØÙ") 199 } 200 } 201 }) 202 } 203 } 204 }) 205 $(document).ready(function () { 206 207 "use strict"; 208 209 $('.menu > ul > li:has( > ul)').addClass('menu-dropdown-icon'); 210 //Checks if li has sub (ul) and adds class for toggle icon - just an UI 211 212 213 $('.menu > ul > li > ul:not(:has(ul))').addClass('normal-sub'); 214 //Checks if drodown menu's li elements have anothere level (ul), if not the dropdown is shown as regular dropdown, not a mega menu (thanks Luka Kladaric) 215 216 $(".menu > ul").before("<a href=\"#\" class=\"menu-mobile\">Sohar Airport</a>"); 217 218 //Adds menu-mobile class (for mobile toggle menu) before the normal menu 219 //Mobile menu is hidden if width is more then 959px, but normal menu is displayed 220 //Normal menu is hidden if width is below 959px, and jquery adds mobile menu 221 //Done this way so it can be used with wordpress without any trouble 222 223 $(".menu > ul > li").hover(function (e) { 224 if ($(window).width() > 943) { 225 $(this).children("ul").stop(true, false).fadeToggle(150); 226 e.preventDefault(); 227 } 228 }); 229 //If width is more than 943px dropdowns are displayed on hover 230 231 $(".menu > ul > li").click(function () { 232 if ($(window).width() <= 943) { 233 $(this).children("ul").fadeToggle(150); 234 } 235 }); 236 //If width is less or equal to 943px dropdowns are displayed on click (thanks Aman Jain from stackoverflow) 237 238 $(".menu-mobile").click(function (e) { 239 $(".menu > ul").toggleClass('show-on-mobile'); 240 e.preventDefault(); 241 }); 242 //when clicked on mobile-menu, normal menu is shown as a list, classic rwd menu story (thanks mwl from stackoverflow) 243 244}); 245$(document).ready(function() { 246 $(".close-alert").click(function() { 247 $(".top-message").hide("medium", function() {}) 248 }); 249 if($.session.get("notiny")!="true") 250 { 251 if (localStorage.lang_id == '1') 252 { 253 $.notiny({ 254 text: 'By using this site, you agree to our <a href="'+localStorage.baseUrl+'content/privacy-policy">Private Policy</a>,<a href="'+localStorage.baseUrl+'content/terms-conditions"> Conditions of Access</a> and to the placement of cookies on your Computer', 255 autohide: false, 256 clickhide: false, 257 theme: 'light', 258 width:'380px', 259 image: localStorage.baseUrl+'images/white_close.png', 260 }); 261 } 262 else 263 { 264 $.notiny({ 265 text: 'Ø¨Ø§Ø³ØªØ®Ø¯Ø§Ù ÙØ°Ø§ اÙÙ ÙÙØ¹ ÙØ£Ùت ØªÙØ§Ù٠عÙÙ <a href="'+localStorage.baseUrl+'content/privacy-policy">Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©</a>,<a href="'+localStorage.baseUrl+'content/terms-conditions"> ÙØ´Ø±ÙØ· Ø§ÙØ§Ø³ØªØ®Ø¯Ø§Ù </a> and Ø§ÙØ®Ø§ØµÙÙ Ø¨ÙØ§ ÙÙØ°ÙÙ ØªÙØ§Ù٠عÙ٠تخزÙÙ Ù ÙÙØ§Øª تعرÙÙ Ø§ÙØ§Ø±ØªØ¨Ø§Ø· عÙÙ ØØ§Ø³ÙبÙ.', 266 autohide: false, 267 clickhide: false, 268 theme: 'light', 269 width:'380px', 270 image: localStorage.baseUrl+'images/white_close.png', 271 }); 272 } 273 } 274 $(".notiny-text").on("click", function() { 275 $.session.set("notiny", "true"); 276 }); 277 $(".notiny-img").on("click", function() { 278 console.log("notiny img"); 279 $.session.set("notiny", "true"); 280 $(".notiny").css("display","none"); 281 282 }); 283});
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.