rebuild index page
This commit is contained in:
1 parent
e87d252934
commit
eaa2febbf2
74 files changed
+16743
-38068
No files matched your search
@@ -1,89 +0,0 @@
|
||||
|
||||
(function ($) {
|
||||
"use strict";
|
||||
|
||||
|
||||
/*==================================================================
|
||||
[ Focus input ]*/
|
||||
$('.input100').each(function(){
|
||||
$(this).on('blur', function(){
|
||||
if($(this).val().trim() != "") {
|
||||
$(this).addClass('has-val');
|
||||
}
|
||||
else {
|
||||
$(this).removeClass('has-val');
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
/*==================================================================
|
||||
[ Validate ]*/
|
||||
var input = $('.validate-input .input100');
|
||||
|
||||
$('.validate-form').on('submit',function(){
|
||||
var check = true;
|
||||
|
||||
for(var i=0; i<input.length; i++) {
|
||||
if(validate(input[i]) == false){
|
||||
showValidate(input[i]);
|
||||
check=false;
|
||||
}
|
||||
}
|
||||
|
||||
return check;
|
||||
});
|
||||
|
||||
|
||||
$('.validate-form .input100').each(function(){
|
||||
$(this).focus(function(){
|
||||
hideValidate(this);
|
||||
});
|
||||
});
|
||||
|
||||
function validate (input) {
|
||||
if($(input).attr('type') == 'email' || $(input).attr('name') == 'email') {
|
||||
if($(input).val().trim().match(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{1,5}|[0-9]{1,3})(\]?)$/) == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if($(input).val().trim() == ''){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function showValidate(input) {
|
||||
var thisAlert = $(input).parent();
|
||||
|
||||
$(thisAlert).addClass('alert-validate');
|
||||
}
|
||||
|
||||
function hideValidate(input) {
|
||||
var thisAlert = $(input).parent();
|
||||
|
||||
$(thisAlert).removeClass('alert-validate');
|
||||
}
|
||||
|
||||
/*==================================================================
|
||||
[ Show pass ]*/
|
||||
var showPass = 0;
|
||||
$('.btn-show-pass').on('click', function(){
|
||||
if(showPass == 0) {
|
||||
$(this).next('input').attr('type','text');
|
||||
$(this).find('i').removeClass('zmdi-eye');
|
||||
$(this).find('i').addClass('zmdi-eye-off');
|
||||
showPass = 1;
|
||||
}
|
||||
else {
|
||||
$(this).next('input').attr('type','password');
|
||||
$(this).find('i').addClass('zmdi-eye');
|
||||
$(this).find('i').removeClass('zmdi-eye-off');
|
||||
showPass = 0;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,78 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
// wow initiation
|
||||
new WOW().init();
|
||||
|
||||
// navigation bar toggle
|
||||
$('#navbar-toggler').click(function(){
|
||||
$('.navbar-collapse').slideToggle(400);
|
||||
});
|
||||
|
||||
// navbar bg change on scroll
|
||||
$(window).scroll(function(){
|
||||
let pos = $(window).scrollTop();
|
||||
if(pos >= 100){
|
||||
$('.navbar').addClass('cng-navbar');
|
||||
} else {
|
||||
$('.navbar').removeClass('cng-navbar');
|
||||
}
|
||||
});
|
||||
|
||||
// sample video popup
|
||||
$(document).ready(function() {
|
||||
$('.popup-youtube').magnificPopup({
|
||||
disableOn: 700,
|
||||
type: 'iframe',
|
||||
mainClass: 'mfp-fade',
|
||||
removalDelay: 160,
|
||||
preloader: false,
|
||||
|
||||
fixedContentPos: false
|
||||
});
|
||||
});
|
||||
|
||||
// team carousel
|
||||
$('.team .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
margin: 10,
|
||||
autoplay: true,
|
||||
dots: true,
|
||||
nav: false,
|
||||
responsiveClass: true,
|
||||
responsive:{
|
||||
0:{
|
||||
items: 1
|
||||
},
|
||||
600:{
|
||||
items: 2
|
||||
},
|
||||
1000:{
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// faq accordion
|
||||
$('.faq-head').each(function(){
|
||||
$(this).click(function(){
|
||||
$(this).next().toggleClass('show-faq-content');
|
||||
let icon = $(this).children('span').children("i").attr('class');
|
||||
|
||||
if(icon == "fas fa-plus"){
|
||||
$(this).children('span').html('<i class = "fas fa-minus"></i>');
|
||||
} else {
|
||||
$(this).children('span').html('<i class = "fas fa-plus"></i>');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// testimonial carousel
|
||||
$('.testimonial .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
autoplay: true,
|
||||
dots: true,
|
||||
nav: false,
|
||||
items: 1
|
||||
});
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user