Initial commit
This commit is contained in:
7
website/js/bootstrap.min.js
vendored
Normal file
7
website/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
44
website/js/jquery.easing.min.js
vendored
Normal file
44
website/js/jquery.easing.min.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){"use strict";return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){"use strict";return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){"use strict";return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){"use strict";if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){"use strict";return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){"use strict";return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){"use strict";if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){"use strict";return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){"use strict";return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){"use strict";if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){"use strict";return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){"use strict";return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){"use strict";if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){"use strict";return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){"use strict";return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){"use strict";return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){"use strict";return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){"use strict";return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){"use strict";if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){"use strict";return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){"use strict";return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){"use strict";if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){"use strict";var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){"use strict";var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){"use strict";var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){"use strict";if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){"use strict";if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){"use strict";if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){"use strict";return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){"use strict";if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){"use strict";if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
|
3
website/js/jquery.magnific-popup.js
Normal file
3
website/js/jquery.magnific-popup.js
Normal file
File diff suppressed because one or more lines are too long
2
website/js/jquery.min.js
vendored
Normal file
2
website/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
website/js/popper.min.js
vendored
Normal file
5
website/js/popper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
400
website/js/scripts.js
Normal file
400
website/js/scripts.js
Normal file
@@ -0,0 +1,400 @@
|
||||
/* Template: Tivo - SaaS App HTML Landing Page Template
|
||||
Author: Inovatik
|
||||
Created: Sep 2019
|
||||
Description: Custom JS file
|
||||
*/
|
||||
|
||||
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
/* Preloader */
|
||||
$(window).on('load', function() {
|
||||
var preloaderFadeOutTime = 500;
|
||||
function hidePreloader() {
|
||||
var preloader = $('.spinner-wrapper');
|
||||
setTimeout(function() {
|
||||
preloader.fadeOut(preloaderFadeOutTime);
|
||||
}, 500);
|
||||
}
|
||||
hidePreloader();
|
||||
});
|
||||
|
||||
|
||||
/* Navbar Scripts */
|
||||
// jQuery to collapse the navbar on scroll
|
||||
$(window).on('scroll load', function() {
|
||||
if ($(".navbar").offset().top > 60) {
|
||||
$(".fixed-top").addClass("top-nav-collapse");
|
||||
} else {
|
||||
$(".fixed-top").removeClass("top-nav-collapse");
|
||||
}
|
||||
});
|
||||
|
||||
// jQuery for page scrolling feature - requires jQuery Easing plugin
|
||||
$(function() {
|
||||
$(document).on('click', 'a.page-scroll', function(event) {
|
||||
var $anchor = $(this);
|
||||
$('html, body').stop().animate({
|
||||
scrollTop: $($anchor.attr('href')).offset().top
|
||||
}, 600, 'easeInOutExpo');
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
// closes the responsive menu on menu item click
|
||||
$(".navbar-nav li a").on("click", function(event) {
|
||||
if (!$(this).parent().hasClass('dropdown'))
|
||||
$(".navbar-collapse").collapse('hide');
|
||||
});
|
||||
|
||||
|
||||
/* Image Slider - Swiper */
|
||||
var imageSlider = new Swiper('.image-slider', {
|
||||
autoplay: {
|
||||
delay: 2000,
|
||||
disableOnInteraction: false
|
||||
},
|
||||
loop: true,
|
||||
spaceBetween: 30,
|
||||
slidesPerView: 5,
|
||||
breakpoints: {
|
||||
// when window is <= 580px
|
||||
580: {
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 10
|
||||
},
|
||||
// when window is <= 768px
|
||||
768: {
|
||||
slidesPerView: 2,
|
||||
spaceBetween: 20
|
||||
},
|
||||
// when window is <= 992px
|
||||
992: {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 20
|
||||
},
|
||||
// when window is <= 1200px
|
||||
1200: {
|
||||
slidesPerView: 4,
|
||||
spaceBetween: 20
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/* Text Slider - Swiper */
|
||||
var textSlider = new Swiper('.text-slider', {
|
||||
autoplay: {
|
||||
delay: 6000,
|
||||
disableOnInteraction: false
|
||||
},
|
||||
loop: true,
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/* Video Lightbox - Magnific Popup */
|
||||
$('.popup-youtube, .popup-vimeo').magnificPopup({
|
||||
disableOn: 700,
|
||||
type: 'iframe',
|
||||
mainClass: 'mfp-fade',
|
||||
removalDelay: 160,
|
||||
preloader: false,
|
||||
fixedContentPos: false,
|
||||
iframe: {
|
||||
patterns: {
|
||||
youtube: {
|
||||
index: 'youtube.com/',
|
||||
id: function(url) {
|
||||
var m = url.match(/[\\?\\&]v=([^\\?\\&]+)/);
|
||||
if ( !m || !m[1] ) return null;
|
||||
return m[1];
|
||||
},
|
||||
src: 'https://www.youtube.com/embed/%id%?autoplay=1'
|
||||
},
|
||||
vimeo: {
|
||||
index: 'vimeo.com/',
|
||||
id: function(url) {
|
||||
var m = url.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);
|
||||
if ( !m || !m[5] ) return null;
|
||||
return m[5];
|
||||
},
|
||||
src: 'https://player.vimeo.com/video/%id%?autoplay=1'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/* Details Lightbox - Magnific Popup */
|
||||
$('.popup-with-move-anim').magnificPopup({
|
||||
type: 'inline',
|
||||
fixedContentPos: false, /* keep it false to avoid html tag shift with margin-right: 17px */
|
||||
fixedBgPos: true,
|
||||
overflowY: 'auto',
|
||||
closeBtnInside: true,
|
||||
preloader: false,
|
||||
midClick: true,
|
||||
removalDelay: 300,
|
||||
mainClass: 'my-mfp-slide-bottom'
|
||||
});
|
||||
|
||||
|
||||
/* Move Form Fields Label When User Types */
|
||||
// for input and textarea fields
|
||||
$("input, textarea").keyup(function(){
|
||||
if ($(this).val() != '') {
|
||||
$(this).addClass('notEmpty');
|
||||
} else {
|
||||
$(this).removeClass('notEmpty');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/* Sign Up Form */
|
||||
$("#signUpForm").validator().on("submit", function(event) {
|
||||
if (event.isDefaultPrevented()) {
|
||||
// handle the invalid form...
|
||||
sformError();
|
||||
ssubmitMSG(false, "Please fill all fields!");
|
||||
} else {
|
||||
// everything looks good!
|
||||
event.preventDefault();
|
||||
ssubmitForm();
|
||||
}
|
||||
});
|
||||
|
||||
function ssubmitForm() {
|
||||
// initiate variables with form content
|
||||
var email = $("#semail").val();
|
||||
var name = $("#sname").val();
|
||||
var password = $("#spassword").val();
|
||||
var terms = $("#sterms").val();
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "php/signupform-process.php",
|
||||
data: "email=" + email + "&name=" + name + "&password=" + password + "&terms=" + terms,
|
||||
success: function(text) {
|
||||
if (text == "success") {
|
||||
sformSuccess();
|
||||
} else {
|
||||
sformError();
|
||||
ssubmitMSG(false, text);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function sformSuccess() {
|
||||
$("#signUpForm")[0].reset();
|
||||
ssubmitMSG(true, "Sign Up Submitted!");
|
||||
$("input").removeClass('notEmpty'); // resets the field label after submission
|
||||
}
|
||||
|
||||
function sformError() {
|
||||
$("#signUpForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
|
||||
$(this).removeClass();
|
||||
});
|
||||
}
|
||||
|
||||
function ssubmitMSG(valid, msg) {
|
||||
if (valid) {
|
||||
var msgClasses = "h3 text-center tada animated";
|
||||
} else {
|
||||
var msgClasses = "h3 text-center";
|
||||
}
|
||||
$("#smsgSubmit").removeClass().addClass(msgClasses).text(msg);
|
||||
}
|
||||
|
||||
|
||||
/* Log In Form */
|
||||
$("#logInForm").validator().on("submit", function(event) {
|
||||
if (event.isDefaultPrevented()) {
|
||||
// handle the invalid form...
|
||||
lformError();
|
||||
lsubmitMSG(false, "Please fill all fields!");
|
||||
} else {
|
||||
// everything looks good!
|
||||
event.preventDefault();
|
||||
lsubmitForm();
|
||||
}
|
||||
});
|
||||
|
||||
function lsubmitForm() {
|
||||
// initiate variables with form content
|
||||
var email = $("#lemail").val();
|
||||
var password = $("#lpassword").val();
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "php/loginform-process.php",
|
||||
data: "email=" + email + "&password=" + password,
|
||||
success: function(text) {
|
||||
if (text == "success") {
|
||||
lformSuccess();
|
||||
} else {
|
||||
lformError();
|
||||
lsubmitMSG(false, text);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function lformSuccess() {
|
||||
$("#logInForm")[0].reset();
|
||||
lsubmitMSG(true, "Log In Submitted!");
|
||||
$("input").removeClass('notEmpty'); // resets the field label after submission
|
||||
}
|
||||
|
||||
function lformError() {
|
||||
$("#logInForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
|
||||
$(this).removeClass();
|
||||
});
|
||||
}
|
||||
|
||||
function lsubmitMSG(valid, msg) {
|
||||
if (valid) {
|
||||
var msgClasses = "h3 text-center tada animated";
|
||||
} else {
|
||||
var msgClasses = "h3 text-center";
|
||||
}
|
||||
$("#lmsgSubmit").removeClass().addClass(msgClasses).text(msg);
|
||||
}
|
||||
|
||||
|
||||
/* Newsletter Form */
|
||||
$("#newsletterForm").validator().on("submit", function(event) {
|
||||
if (event.isDefaultPrevented()) {
|
||||
// handle the invalid form...
|
||||
nformError();
|
||||
nsubmitMSG(false, "Please fill all fields!");
|
||||
} else {
|
||||
// everything looks good!
|
||||
event.preventDefault();
|
||||
nsubmitForm();
|
||||
}
|
||||
});
|
||||
|
||||
function nsubmitForm() {
|
||||
// initiate variables with form content
|
||||
var email = $("#nemail").val();
|
||||
var terms = $("#nterms").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "php/newsletterform-process.php",
|
||||
data: "email=" + email + "&terms=" + terms,
|
||||
success: function(text) {
|
||||
if (text == "success") {
|
||||
nformSuccess();
|
||||
} else {
|
||||
nformError();
|
||||
nsubmitMSG(false, text);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function nformSuccess() {
|
||||
$("#newsletterForm")[0].reset();
|
||||
nsubmitMSG(true, "Subscribed!");
|
||||
$("input").removeClass('notEmpty'); // resets the field label after submission
|
||||
}
|
||||
|
||||
function nformError() {
|
||||
$("#newsletterForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
|
||||
$(this).removeClass();
|
||||
});
|
||||
}
|
||||
|
||||
function nsubmitMSG(valid, msg) {
|
||||
if (valid) {
|
||||
var msgClasses = "h3 text-center tada animated";
|
||||
} else {
|
||||
var msgClasses = "h3 text-center";
|
||||
}
|
||||
$("#nmsgSubmit").removeClass().addClass(msgClasses).text(msg);
|
||||
}
|
||||
|
||||
|
||||
/* Privacy Form */
|
||||
$("#privacyForm").validator().on("submit", function(event) {
|
||||
if (event.isDefaultPrevented()) {
|
||||
// handle the invalid form...
|
||||
pformError();
|
||||
psubmitMSG(false, "Please fill all fields!");
|
||||
} else {
|
||||
// everything looks good!
|
||||
event.preventDefault();
|
||||
psubmitForm();
|
||||
}
|
||||
});
|
||||
|
||||
function psubmitForm() {
|
||||
// initiate variables with form content
|
||||
var name = $("#pname").val();
|
||||
var email = $("#pemail").val();
|
||||
var select = $("#pselect").val();
|
||||
var terms = $("#pterms").val();
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "php/privacyform-process.php",
|
||||
data: "name=" + name + "&email=" + email + "&select=" + select + "&terms=" + terms,
|
||||
success: function(text) {
|
||||
if (text == "success") {
|
||||
pformSuccess();
|
||||
} else {
|
||||
pformError();
|
||||
psubmitMSG(false, text);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function pformSuccess() {
|
||||
$("#privacyForm")[0].reset();
|
||||
psubmitMSG(true, "Request Submitted!");
|
||||
$("input").removeClass('notEmpty'); // resets the field label after submission
|
||||
}
|
||||
|
||||
function pformError() {
|
||||
$("#privacyForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
|
||||
$(this).removeClass();
|
||||
});
|
||||
}
|
||||
|
||||
function psubmitMSG(valid, msg) {
|
||||
if (valid) {
|
||||
var msgClasses = "h3 text-center tada animated";
|
||||
} else {
|
||||
var msgClasses = "h3 text-center";
|
||||
}
|
||||
$("#pmsgSubmit").removeClass().addClass(msgClasses).text(msg);
|
||||
}
|
||||
|
||||
|
||||
/* Back To Top Button */
|
||||
// create the back to top button
|
||||
$('body').prepend('<a href="body" class="back-to-top page-scroll">Back to Top</a>');
|
||||
var amountScrolled = 700;
|
||||
$(window).scroll(function() {
|
||||
if ($(window).scrollTop() > amountScrolled) {
|
||||
$('a.back-to-top').fadeIn('500');
|
||||
} else {
|
||||
$('a.back-to-top').fadeOut('500');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/* Removes Long Focus On Buttons */
|
||||
$(".button, a, button").mouseup(function() {
|
||||
$(this).blur();
|
||||
});
|
||||
|
||||
})(jQuery);
|
13
website/js/swiper.min.js
vendored
Normal file
13
website/js/swiper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
29
website/js/validator.min.js
vendored
Normal file
29
website/js/validator.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user