123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- 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({
-
- '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
- $('.countdown').final_countdown({
- start : 1360000000, //Here use Milisecond. To convert your time you can go to this(https://currentmillis.com/) website.
- end : 1390000000,
- now : 1385000000,
- 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");
- }
- }
- });
- });
|