first commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<dwsync>
|
||||
<file name="particles-config.js" server="ftp.wp1.themevibrant.com/newwp/thinkai/wp-content/" local="133596465026016838" remote="133596285000000000" Dst="0" />
|
||||
<file name="particles.min.js" server="ftp.wp1.themevibrant.com/newwp/thinkai/wp-content/" local="133596465026244590" remote="133596285000000000" Dst="0" />
|
||||
<file name="banner.js" server="ftp.wp1.themevibrant.com/newwp/thinkai/wp-content/" local="133596466229793216" remote="133596286200000000" Dst="0" />
|
||||
</dwsync>
|
||||
63
wp-content/plugins/thinkai-plugin/assets/js/accordion.js
Normal file
63
wp-content/plugins/thinkai-plugin/assets/js/accordion.js
Normal file
@@ -0,0 +1,63 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var accordion_script_js = function($scope, $) {
|
||||
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
Accordion Active Style1
|
||||
--------------------------------------------------------------*/
|
||||
function accordionActive() {
|
||||
if ($('.accordion-box-style1').length) {
|
||||
$(".accordion-box-style1").on('click', '.acc-accord-btn', function () {
|
||||
|
||||
if ($(this).hasClass('active') !== true) {
|
||||
$('.acc-accordion .acc-accord-btn').removeClass('active');
|
||||
|
||||
}
|
||||
|
||||
if ($(this).next('.acc-accord-content').is(':visible')) {
|
||||
$(this).removeClass('active');
|
||||
$(this).next('.acc-accord-content').slideUp(500);
|
||||
} else {
|
||||
$(this).addClass('active');
|
||||
$('.acc-accordion .acc-accord-content').slideUp(500);
|
||||
$(this).next('.acc-accord-content').slideDown(500);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
Accordion Active Style2
|
||||
--------------------------------------------------------------*/
|
||||
function accordionActive2() {
|
||||
if ($('.accordion-box-style2').length) {
|
||||
$(".accordion-box-style2").on('click', '.accord-btn', function () {
|
||||
|
||||
if ($(this).hasClass('active') !== true) {
|
||||
$('.accordion .accord-btn').removeClass('active');
|
||||
|
||||
}
|
||||
|
||||
if ($(this).next('.accord-content').is(':visible')) {
|
||||
$(this).removeClass('active');
|
||||
$(this).next('.accord-content').slideUp(500);
|
||||
} else {
|
||||
$(this).addClass('active');
|
||||
$('.accordion .accord-content').slideUp(500);
|
||||
$(this).next('.accord-content').slideDown(500);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
accordionActive();
|
||||
accordionActive2();
|
||||
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_faqs.default', accordion_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
92
wp-content/plugins/thinkai-plugin/assets/js/banner.js
Normal file
92
wp-content/plugins/thinkai-plugin/assets/js/banner.js
Normal file
@@ -0,0 +1,92 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var banner_script_js = function($scope, $) {
|
||||
|
||||
// Curved Circle
|
||||
if ($('.curved-circle').length) {
|
||||
$('.curved-circle').circleType({
|
||||
position: 'absolute',
|
||||
dir: 1,
|
||||
radius: 85,
|
||||
forceHeight: true,
|
||||
forceWidth: true
|
||||
});
|
||||
}
|
||||
|
||||
// Curved Circle 2
|
||||
if ($('.curved-circle-2').length) {
|
||||
$('.curved-circle-2').circleType({
|
||||
position: 'absolute',
|
||||
dir: 1,
|
||||
radius: 80,
|
||||
forceHeight: true,
|
||||
forceWidth: true
|
||||
});
|
||||
}
|
||||
|
||||
//Jquery Curved 3
|
||||
if ($('.curved-circle-3').length) {
|
||||
$('.curved-circle-3').circleType({
|
||||
position: 'absolute',
|
||||
dir: 1,
|
||||
radius: -57,
|
||||
forceHeight: true,
|
||||
forceWidth: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Vegas Slider
|
||||
if ($(".slider-bg-slide").length) {
|
||||
$(".slider-bg-slide").each(function () {
|
||||
var Self = $(this);
|
||||
var bgSlidesOptions = Self.data("options");
|
||||
var bannersTwoSlides = Self.vegas(bgSlidesOptions);
|
||||
});
|
||||
}
|
||||
|
||||
//Banner Carousel
|
||||
if ($(".thm-owl__carousel").length) {
|
||||
$(".thm-owl__carousel").each(function () {
|
||||
let elm = $(this);
|
||||
let options = elm.data('owl-options');
|
||||
let thmOwlCarousel = elm.owlCarousel(options);
|
||||
});
|
||||
}
|
||||
|
||||
// particular Animation
|
||||
if ($(".particular").length) {
|
||||
$(".particular").jParticle({
|
||||
background: "rgba(0,0,0, 0.0)",
|
||||
color: "#e7e3ed",
|
||||
particlesNumber: 150,
|
||||
particle: {
|
||||
speed: 20
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// particular Animation
|
||||
if ($(".particular-top").length) {
|
||||
$(".particular-top").jParticle({
|
||||
background: "rgba(0,0,0, 0.0)",
|
||||
color: "#e7e3ed",
|
||||
particlesNumber: 150,
|
||||
particle: {
|
||||
speed: 20,
|
||||
width: 1
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_banner.default', banner_script_js);
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_about_us.default', banner_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
21
wp-content/plugins/thinkai-plugin/assets/js/cm-counter.js
Normal file
21
wp-content/plugins/thinkai-plugin/assets/js/cm-counter.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var cm_counter_script_js = function($scope, $) {
|
||||
|
||||
if ($('.time-countdown-two').length) {
|
||||
$('.time-countdown-two').each(function () {
|
||||
var Self = $(this);
|
||||
var countDate = Self.data('countdown-time'); // getting date
|
||||
|
||||
Self.countdown(countDate, function (event) {
|
||||
$(this).html('<li> <div class="box"> <span class="days">' + event.strftime('%D') + '</span> <span class="timeRef">days</span> </div> </li> <li> <div class="box"> <span class="hours">' + event.strftime('%H') + '</span> <span class="timeRef clr-1">Hours</span> </div> </li> <li> <div class="box"> <span class="minutes">' + event.strftime('%M') + '</span> <span class="timeRef clr-2">Minutes</span> </div> </li> <li> <div class="box"> <span class="seconds">' + event.strftime('%S') + '</span> <span class="timeRef clr-3">Seconds</span> </div> </li>');
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_coming_soon.default', cm_counter_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
@@ -0,0 +1,45 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var feature_carousels_script_js = function($scope, $) {
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
Owl Slider
|
||||
--------------------------------------------------------------*/
|
||||
function thmOwlInit() {
|
||||
if ($(".thm-owl__carousel").length) {
|
||||
$(".thm-owl__carousel").each(function () {
|
||||
let elm = $(this);
|
||||
let options = elm.data('owl-options');
|
||||
let thmOwlCarousel = elm.owlCarousel(options);
|
||||
});
|
||||
}
|
||||
|
||||
if ($(".thm-owl__carousel--custom-nav").length) {
|
||||
$(".thm-owl__carousel--custom-nav").each(function () {
|
||||
let elm = $(this);
|
||||
let owlNavPrev = elm.data('owl-nav-prev');
|
||||
let owlNavNext = elm.data('owl-nav-next');
|
||||
$(owlNavPrev).on("click", function (e) {
|
||||
elm.trigger('prev.owl.carousel');
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(owlNavNext).on("click", function (e) {
|
||||
elm.trigger('next.owl.carousel');
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
thmOwlInit();
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_feature_carousel.default', feature_carousels_script_js);
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_testimonial_carousel.default', feature_carousels_script_js);
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_clients_Carousel.default', feature_carousels_script_js);
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_blog_carousel.default', feature_carousels_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
118
wp-content/plugins/thinkai-plugin/assets/js/particles-config.js
Normal file
118
wp-content/plugins/thinkai-plugin/assets/js/particles-config.js
Normal file
@@ -0,0 +1,118 @@
|
||||
|
||||
if (('#particles-js').length) {
|
||||
particlesJS("particles-js", {
|
||||
"particles": {
|
||||
"number": {
|
||||
"value": 180,
|
||||
"density": {
|
||||
"enable": true,
|
||||
"value_area": 800
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"value": "#e1dee5" //mh--------- dot color
|
||||
},
|
||||
"shape": {
|
||||
"type": "circle",
|
||||
"stroke": {
|
||||
"width": 1, //// dot width mh
|
||||
"color": "#e1dee5" //// dot border color mh
|
||||
},
|
||||
"polygon": {
|
||||
"nb_sides": 5
|
||||
},
|
||||
"image": {
|
||||
"src": "img/github.svg",
|
||||
"width": 100,
|
||||
"height": 100
|
||||
}
|
||||
},
|
||||
"opacity": {
|
||||
"value": 1.0, //// mh opacity
|
||||
"random": false,
|
||||
"anim": {
|
||||
"enable": false,
|
||||
"speed": 1,
|
||||
"opacity_min": 1.0,
|
||||
"sync": false
|
||||
}
|
||||
},
|
||||
"size": {
|
||||
"value": 2, // width dot
|
||||
"random": true,
|
||||
"anim": {
|
||||
"enable": false,
|
||||
"speed": 10,
|
||||
"size_min": 0.1,
|
||||
"sync": false
|
||||
}
|
||||
},
|
||||
"line_linked": {
|
||||
"enable": true,
|
||||
"distance": 150, // dot many mh
|
||||
"color": "#e1dee5", // line color mh--------
|
||||
"opacity": 1.0, //--------
|
||||
"width": 1
|
||||
},
|
||||
"move": {
|
||||
"enable": true,
|
||||
"speed": 6,
|
||||
"direction": "none",
|
||||
"random": false,
|
||||
"straight": false,
|
||||
"out_mode": "out",
|
||||
"bounce": false,
|
||||
"attract": {
|
||||
"enable": false,
|
||||
"rotateX": 600,
|
||||
"rotateY": 1200
|
||||
}
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"detect_on": "canvas",
|
||||
"events": {
|
||||
"onhover": {
|
||||
"enable": true,
|
||||
"mode": "repulse"
|
||||
},
|
||||
"onclick": {
|
||||
"enable": true,
|
||||
"mode": "push"
|
||||
},
|
||||
"resize": true
|
||||
},
|
||||
"modes": {
|
||||
"grab": {
|
||||
"distance": 400,
|
||||
"line_linked": {
|
||||
"opacity": 1
|
||||
}
|
||||
},
|
||||
"bubble": {
|
||||
"distance": 400,
|
||||
"size": 40,
|
||||
"duration": 2,
|
||||
"opacity": 8,
|
||||
"speed": 3
|
||||
},
|
||||
"repulse": {
|
||||
"distance": 100,
|
||||
"duration": 0.4
|
||||
},
|
||||
"push": {
|
||||
"particles_nb": 4
|
||||
},
|
||||
"remove": {
|
||||
"particles_nb": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
"retina_detect": true
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
12
wp-content/plugins/thinkai-plugin/assets/js/particles.min.js
vendored
Normal file
12
wp-content/plugins/thinkai-plugin/assets/js/particles.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
50
wp-content/plugins/thinkai-plugin/assets/js/pricing-tabs.js
Normal file
50
wp-content/plugins/thinkai-plugin/assets/js/pricing-tabs.js
Normal file
@@ -0,0 +1,50 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var pricing_tab_script_js = function($scope, $) {
|
||||
|
||||
if ($("#switch-toggle-tab").length) {
|
||||
var toggleSwitch = $("#switch-toggle-tab label.switch");
|
||||
var TabTitle = $("#switch-toggle-tab li");
|
||||
var monthTabTitle = $("#switch-toggle-tab li.month");
|
||||
var yearTabTitle = $("#switch-toggle-tab li.year");
|
||||
var monthTabContent = $("#month");
|
||||
var yearTabContent = $("#year");
|
||||
// hidden show deafult;
|
||||
monthTabContent.fadeIn();
|
||||
yearTabContent.fadeOut();
|
||||
|
||||
function toggleHandle() {
|
||||
if (toggleSwitch.hasClass("on")) {
|
||||
monthTabContent.fadeIn();
|
||||
yearTabContent.fadeOut();
|
||||
monthTabTitle.addClass("active");
|
||||
yearTabTitle.removeClass("active");
|
||||
} else {
|
||||
monthTabContent.fadeOut();
|
||||
yearTabContent.fadeIn();
|
||||
yearTabTitle.addClass("active");
|
||||
monthTabTitle.removeClass("active");
|
||||
}
|
||||
}
|
||||
monthTabTitle.on("click", function () {
|
||||
toggleSwitch.addClass("on").removeClass("off");
|
||||
toggleHandle();
|
||||
return false;
|
||||
});
|
||||
yearTabTitle.on("click", function () {
|
||||
toggleSwitch.addClass("off").removeClass("on");
|
||||
toggleHandle();
|
||||
return false;
|
||||
});
|
||||
toggleSwitch.on("click", function () {
|
||||
toggleSwitch.toggleClass("on off");
|
||||
toggleHandle();
|
||||
});
|
||||
}
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_pricing_plan.default', pricing_tab_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
55
wp-content/plugins/thinkai-plugin/assets/js/video-banner.js
Normal file
55
wp-content/plugins/thinkai-plugin/assets/js/video-banner.js
Normal file
@@ -0,0 +1,55 @@
|
||||
(function($) {
|
||||
|
||||
"use strict";
|
||||
var video_banner_script_js = function($scope, $) {
|
||||
|
||||
// Video------------------
|
||||
if ($(".video-holder-wrap").length > 0) {
|
||||
function videoint() {
|
||||
const w = $(".background-vimeo").data("vim"),
|
||||
bvc = $(".background-vimeo"),
|
||||
bvmc = $(".media-container"),
|
||||
bvfc = $(".background-vimeo iframe "),
|
||||
vch = $(".video-container");
|
||||
bvc.append('<iframe src="//player.vimeo.com/video/' + w + '?background=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe>');
|
||||
$(".video-holder").height(bvmc.height());
|
||||
if ($(window).width() > 1024) {
|
||||
if ($(".video-holder").length > 0)
|
||||
if (bvmc.height() / 9 * 16 > bvmc.width()) {
|
||||
bvfc.height(bvmc.height()).width(bvmc.height() / 9 * 16);
|
||||
bvfc.css({
|
||||
"margin-left": -1 * $("iframe").width() / 2 + "px",
|
||||
top: "-75px",
|
||||
"margin-top": "0px"
|
||||
});
|
||||
} else {
|
||||
bvfc.width($(window).width()).height($(window).width() / 16 * 9);
|
||||
bvfc.css({
|
||||
"margin-left": -1 * $("iframe").width() / 2 + "px",
|
||||
"margin-top": -1 * $("iframe").height() / 2 + "px",
|
||||
top: "50%"
|
||||
});
|
||||
}
|
||||
} else if ($(window).width() < 760) {
|
||||
$(".video-holder").height(bvmc.height());
|
||||
bvfc.height(bvmc.height());
|
||||
} else {
|
||||
$(".video-holder").height(bvmc.height());
|
||||
bvfc.height(bvmc.height());
|
||||
}
|
||||
vch.css("width", $(window).width() + "px");
|
||||
vch.css("height", Number(720 / 1280 * $(window).width()) + "px");
|
||||
if (vch.height() < $(window).height()) {
|
||||
vch.css("height", $(window).height() + "px");
|
||||
vch.css("width", Number(1280 / 720 * $(window).height()) + "px");
|
||||
}
|
||||
}
|
||||
videoint();
|
||||
}
|
||||
|
||||
};
|
||||
$(window).on('elementor/frontend/init', function () {
|
||||
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_video_banner.default', video_banner_script_js);
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
Reference in New Issue
Block a user