first commit

This commit is contained in:
fuzi_fauzia committed 2024-07-31 13:12:38 +07:00
commit b4e8cbe182
10213 files changed
+3125839

No files matched your search

@@ -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>
@@ -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);
@@ -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);
@@ -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);
@@ -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
});
};
@@ -0,0 +1,12 @@
/* -----------------------------------------------
/* Author : Vincent Garreau - vincentgarreau.com
/* MIT license: http://opensource.org/licenses/MIT
/* Demo / Generator : vincentgarreau.com/particles.js
/* GitHub : github.com/VincentGarreau/particles.js
/* How to use? : Check the GitHub README
/* v2.0.0
/* ----------------------------------------------- */
function hexToRgb(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return a.indexOf(e)>-1}var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,Line truncated
@@ -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);
@@ -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);