1/** 2 * Exoplanet Custom JS 3 * 4 * @package Exoplanet 5 * 6 * Distributed under the MIT license - http://opensource.org/licenses/MIT 7 */ 8 9 /* Mobile responsive Menu*/ 10var menu_width=""; 11jQuery(function($){ 12 menu_width=parseInt(jQuery("#menu-width").text().trim()); 13 /* Mobile responsive Menu*/ 14 document.getElementById("open_nav").addEventListener("click", open); 15 function open() { 16 document.getElementById("mySidenav").style.width = menu_width + "px"; 17 document.getElementById("mySidenav").style.display = "block"; 18 document.getElementById("mySidenav").style.transform = "translate3d(0, 0, 0)"; 19 } 20 document.getElementById("close_nav").addEventListener("click", close); 21 function close() { 22 document.getElementById("mySidenav").style.width = "0"; 23 document.getElementById("mySidenav").style.display = "none"; 24 } 25}); 26 jQuery(function($){ 27 "use strict"; 28 $('.menu > ul').superfish({ 29 delay: 500, 30 animation: {opacity:'show',height:'show'}, 31 speed: 'fast' 32 }); 33 34 $('.search-box span i').click(function(){ 35 $(".serach_outer").slideDown(700); 36 }); 37 38 $('.closepop i').click(function(){ 39 $(".serach_outer").slideUp(700); 40 }); 41 42 // Accordian 43 $(".collapse").on('show.bs.collapse', function(){ 44 $(this).parent().find(".fa-plus").removeClass("fa-plus").addClass("fa-minus"); 45 46 }).on('hide.bs.collapse', function(){ 47 $(this).parent().find(".fa-minus").removeClass("fa-minus").addClass("fa-plus"); 48 49 }); 50 51}); 52 53/* Mobile responsive Menu*/ 54function openNav() { 55 document.getElementById("mySidenav").style.width = "250px"; 56} 57 58function closeNav() { 59 document.getElementById("mySidenav").style.width = "0"; 60} 61 62 63jQuery(function() { 64 //----- OPEN 65 jQuery('[data-popup-open]').on('click', function(e) { 66 var targeted_popup_class = jQuery(this).attr('data-popup-open'); 67 jQuery('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); 68 69 e.preventDefault(); 70 }); 71 72 //----- CLOSE 73 jQuery('[data-popup-close]').on('click', function(e) { 74 var targeted_popup_class = jQuery(this).attr('data-popup-close'); 75 jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350); 76 77 e.preventDefault(); 78 }); 79}); 80 81 82 83jQuery(document).ready(function($){ 84 // Defining a function to set size for .slide and page title padding if we have a very large primary menu 85 function fullscreen(){ 86 var exoplanetwidth = jQuery(window).width(); 87 var exoplanetheight = jQuery(window).height(); 88 exoplanetwidth = parseInt(exoplanetwidth); 89 exoplanetheight = parseInt(exoplanetheight); 90 91 if ( exoplanetheight > 460 ) { 92 var exoplanetheight2 = exoplanetheight; 93 } else { 94 var exoplanetheight2 = 460; 95 } 96 97 var masthead = $('#masthead').height(); 98 var headertitle = $('.header-title').height(); 99 masthead = parseInt(masthead); 100 headertitle = parseInt(headertitle); 101 102 var headerheight = masthead + headertitle + 135; 103 104 if( $('.main-header').length ) { 105 jQuery('.main-header').css({ 106 'padding-top' : masthead + 'px', 107 'min-height' : headerheight + 'px' 108 }); 109 } else { 110 if ( $('#home-slider-section').length ) { 111 112 } else { 113 jQuery('.custom-post-type-header').css({ 114 'padding-top' : masthead + 'px', 115 'display' : 'block' 116 }); 117 } 118 } 119 } 120 121 fullscreen(); 122 123 // Run the function in case of window resize 124 jQuery(window).resize(function() { 125 fullscreen(); 126 }); 127 128 jQuery(".appointment-schedule > i").click(function() 129 { 130 131 jQuery("#appointment").css("display","block"); 132 133 }); 134 jQuery(".appointment-close-icon").click(function() 135 { 136 jQuery("#appointment").css("display","none"); 137 }); 138 139}); 140// ------------ Scroll Top --------------- 141 142 jQuery(window).scroll(function() { 143 if (jQuery(this).scrollTop() >= 50) { // If page is scrolled more than 50px 144 jQuery('#return-to-top').fadeIn(200); // Fade in the arrow 145 } else { 146 jQuery('#return-to-top').fadeOut(200); // Else fade out the arrow 147 } 148 }); 149 jQuery('#return-to-top').click(function() { // When arrow is clicked 150 jQuery('body,html').animate({ 151 scrollTop : 0 // Scroll to top of body 152 }, 2000); 153 }); 154 155 // ------------ Sticky Navbar ------------------- 156 157 var stickyon=jQuery('#sticky-onoff').text().trim(); 158 var a1=stickyon.length; 159 window.onscroll = function() { 160 if(a1==3) 161 { 162 myScrollNav(); 163 } 164 } 165 166 var navbar = document.getElementById("sticky-menu"); 167 var sticky = jQuery( navbar ).offset().top; 168 function myScrollNav() { 169 if (window.pageYOffset > sticky) { 170 //alert(window.pageYOffset); 171 navbar.classList.add("sticky"); 172 navbar.classList.add("stickynavbar"); 173 } else { 174 navbar.classList.remove("sticky"); 175 navbar.classList.remove("stickynavbar"); 176 } 177 } 178 179jQuery('document').ready(function(){ 180 var owl = jQuery('#speciality-section .owl-carousel'); 181 owl.owlCarousel({ 182 margin: 0, 183 nav: true, 184 autoplay : true, 185 lazyLoad: true, 186 autoplayTimeout: 3000, 187 loop:false, 188 dots:false, 189 navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'], 190 responsive: { 191 0: { 192 items: 1 193 }, 194 350: { 195 items: 1 196 }, 197 450: { 198 items: 1 199 }, 200 500: { 201 items: 2 202 }, 203 600: { 204 items: 2 205 }, 206 700: { 207 items: 2 208 }, 209 800: { 210 items: 3 211 }, 212 1000: { 213 items: 4 214 } 215 }, 216 autoplayHoverPause : true, 217 mouseDrag: true 218 }); 219}); 220 221jQuery('document').ready(function(){ 222 var owl = jQuery('#happy-clients .owl-carousel'); 223 owl.owlCarousel({ 224 margin: 0, 225 nav:true, 226 autoplay : true, 227 lazyLoad: true, 228 autoplayTimeout: 2000, 229 loop:false, 230 navText : ['<i class="fas fa-angle-double-left"></i>','<i class="fas fa-angle-double-right"></i>'], 231 dots:true, 232 responsive: { 233 0: { 234 items: 1 235 }, 236 600: { 237 items: 1 238 }, 239 1000: { 240 items: 1 241 } 242 }, 243 autoplay:true, 244 autoplayTimeout:1000, 245 autoplayHoverPause : true, 246 mouseDrag: true 247 248 }); 249}); 250 251jQuery('document').ready(function(){ 252 var owl = jQuery('#our-docters .owl-carousel'); 253 owl.owlCarousel({ 254 margin: 0, 255 nav: true, 256 autoplay : true, 257 lazyLoad: true, 258 autoplayTimeout: 3000, 259 loop:false, 260 navText : [''], 261 dots:false, 262 responsive: { 263 0: { 264 items: 1 265 }, 266 550: { 267 items: 2 268 }, 269 600: { 270 items: 2 271 }, 272 1000: { 273 items: 3 274 }, 275 1200: { 276 items: 4 277 } 278 }, 279 autoplayHoverPause : true, 280 mouseDrag: true 281 }); 282}); 283 284jQuery('document').ready(function(){ 285 var owl = jQuery('#success-stories .owl-carousel'); 286 owl.owlCarousel({ 287 margin: 0, 288 nav: true, 289 autoplay : true, 290 lazyLoad: true, 291 autoplayTimeout: 3000, 292 loop:false, 293 navText : [''], 294 dots:true, 295 responsive: { 296 320: { 297 items: 1 298 }, 299 400: { 300 items: 1 301 }, 302 500: { 303 items: 1 304 }, 305 600: { 306 items: 1 307 }, 308 1000: { 309 items: 1 310 } 311 }, 312 autoplayHoverPause : true, 313 mouseDrag: true 314 }); 315}); 316 317jQuery('document').ready(function(){ 318 var owl = jQuery('#gallary-content .owl-carousel'); 319 owl.owlCarousel({ 320 margin: 0, 321 nav: true, 322 autoplay : true, 323 lazyLoad: true, 324 autoplayTimeout: 3000, 325 loop:false, 326 navText : [''], 327 dots:true, 328 responsive: { 329 0: { 330 items: 1 331 }, 332 400: { 333 items: 2 334 }, 335 500: { 336 items: 2 337 }, 338 600: { 339 items: 3 340 }, 341 1000: { 342 items:6 343 } 344 }, 345 autoplayHoverPause : true, 346 mouseDrag: true 347 }); 348}); 349 350jQuery('document').ready(function(){ 351 var owl = jQuery('#our-partners-section .owl-carousel'); 352 owl.owlCarousel({ 353 margin: 0, 354 nav: true, 355 autoplay : true, 356 lazyLoad: true, 357 autoplayTimeout: 3000, 358 loop:true, 359 navText : [''], 360 dots:false, 361 responsive: { 362 320: { 363 items: 1 364 }, 365 400: { 366 items: 1 367 }, 368 500: { 369 items: 2 370 }, 371 600: { 372 items: 2 373 }, 374 1000: { 375 items: 3 376 }, 377 1100: { 378 items: 4 379 } 380 }, 381 autoplayHoverPause : true, 382 mouseDrag: true 383 }); 384}); 385jQuery('document').ready(function(){ 386 var owl = jQuery('#our-blogs-section .owl-carousel'); 387 owl.owlCarousel({ 388 margin: 0, 389 nav: true, 390 autoplay : true, 391 lazyLoad: true, 392 autoplayTimeout: 3000, 393 loop:false, 394 navText : [''], 395 dots:false, 396 responsive: { 397 320: { 398 items: 1 399 }, 400 400: { 401 items: 1 402 }, 403 500: { 404 items: 1 405 }, 406 600: { 407 items: 1 408 }, 409 1000: { 410 items: 2 411 }, 412 1200: { 413 items: 2 414 } 415 }, 416 autoplayHoverPause : true, 417 mouseDrag: true 418 }); 419}); 420var interval=null; 421function show_loading_box() 422{ 423 jQuery(".eco-nature-loading-box").css("display","none"); 424 clearInterval(interval); 425} 426jQuery('document').ready(function(){ 427 428 interval = setInterval(show_loading_box,1000); 429 430});
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.