| Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64 Path : /home/udaipurk/public_html/js/ |
| Current File : //home/udaipurk/public_html/js/script.js |
var $ = jQuery;
jQuery(document).ready(function($) {
$(window).load(function(){
$('#preloader').fadeOut('slow',function(){$(this).remove();});
});
});
// Setting up Video
var $ = jQuery;
var vidWidth = $(window).width(), vidHeight = $(window).height();
$("#video-wrap").css({
'width': vidWidth,
'height': vidHeight
});
$('#video').videoBG({
mp4:'assets/bg.mp4',
ogv:'assets/bg.ogv',
webm:'assets/bg.webm',
poster:'assets/poster.jpg',
scale:true,
zIndex:0,
height: vidHeight
});
// Navbar fixing
$("#nav-menu").stick_in_parent()
// Calling Wow
new WOW().init();
// Count Down Timer
var countDownEndDate = '14 february 2017'; // specify your count down timer here
$('.countdown').final_countdown({
start : new Date().getTime() / 1000,
end : new Date(countDownEndDate).getTime() / 1000,
now : new Date().getTime() / 1000,
seconds: {
borderColor: '#5677fc',
borderWidth: '3'
},
minutes: {
borderColor: '#7e57c2',
borderWidth: '3'
},
hours: {
borderColor: '#4db6ac',
borderWidth: '3'
},
days: {
borderColor: '#d81b60',
borderWidth: '3'
}}, function() {
});
// rotating text
(function() {
var quotes = $(".quotes");
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(1000)
.delay(1000)
.fadeOut(1000, showNextQuote);
}
showNextQuote();
})();
// smooth mouse wheel
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
/*------------------------------------------
Subscribe form ajax
------------------------------------------*/
$('#subscribe-form').submit(function(e) {
e.preventDefault();
var $form = $('#subscribe-form');
var submit = $('#subscribe-button');
var ajaxResponse = $('#subscription-response');
var email = $('#subscriber-email').val();
$.ajax({
type: 'POST',
url: 'php/subscribe.php',
dataType: 'json',
data: {
email: email
},
cache: false,
beforeSend: function(result) {
submit.val("Joining...");
},
success: function(result) {
if(result.sendstatus == 1) {
ajaxResponse.html(result.message);
$form.fadeOut(500);
} else {
ajaxResponse.html(result.message);
submit.val("Join");
}
}
});
});