migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,337 @@
window.addEventListener("scroll", function () {
var header = document.querySelector(".header-section.home-header");
var scrollPosition = window.scrollY;
if (scrollPosition > 5) {
header.classList.add("bg-0d0d16");
} else {
header.classList.remove("bg-0d0d16");
}
});
/* ----------------------------------------------- */
/* Slick Slider */
/* ----------------------------------------------- */
$(document).ready(function () {
$(".slick-slider-section .app-slide").slick({
slidesToShow: 4,
slidesToScroll: 1,
arrows: true,
rtl: false,
autoplay: true,
autoplaySpeed: 1500,
infinite: true,
pauseOnFocus: false,
responsive: [{
breakpoint: 1400,
settings: {
slidesToShow: 3,
},
},
{
breakpoint: 992,
settings: {
slidesToShow: 2,
},
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
},
},
],
});
});
$(document).ready(function () {
$(".customer-slider-section .row").slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: false,
rtl: false,
autoplay: true,
autoplaySpeed: 1500,
infinite: true,
pauseOnFocus: false,
responsive: [{
breakpoint: 1200,
settings: {
slidesToShow: 2,
},
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
},
},
],
});
});
/* ----------------------------------------------- */
/* Top Scroll */
/* ----------------------------------------------- */
$(document).ready(function () {
$("#scrollToTopButton").on("click", function () {
$("html, body").animate({
scrollTop: 0,
},
"slow"
);
});
});
/* ----------------------------------------------- */
/* product-details Slide Image */
/* ----------------------------------------------- */
$(document).ready(function () {
$(".product-details-small-image").on("click", function () {
var newImageSrc = $(this).data("image-src");
$("#product-details-big-image").attr("src", newImageSrc);
$(".product-details-small-image")
.parent()
.removeClass("product-details-custom-b");
$(this).parent().addClass("product-details-custom-b");
});
});
/* ----------------------------------------------- */
/* About Page Read More Button */
/* ----------------------------------------------- */
$(document).ready(function () {
$("#readMoreButton").on("click", function () {
if ($("#moreText").css("display") === "none") {
$("#moreText").css("display", "block");
$("#readMoreButton").hide();
} else {
$("#moreText").css("display", "none");
}
});
});
/* ----------------------------------------------- */
/* Blogs page tags active button */
/* ----------------------------------------------- */
$(document).ready(function () {
$(".tags-btn").on("click", function () {
$(".tags-btn")
.removeClass("blogs-tag-btn-selected")
.addClass("blogs-tag-btn-unselected");
$(this)
.removeClass("blogs-tag-btn-unselected")
.addClass("blogs-tag-btn-selected");
});
});
(function ($) {
"use strict";
var $swiperSelector = $(".creative-interface-slider");
$swiperSelector.each(function (index) {
var $this = $(this);
$this.addClass("swiper-sliderone-" + index);
var dragSize = $this.data("drag-size") ? $this.data("drag-size") : 50;
var freeMode = $this.data("free-mode") ? $this.data("free-mode") : false;
var loop = $this.data("loop") ? $this.data("loop") : true;
var slidesDesktop = $this.data("slides-desktop") ?
$this.data("slides-desktop") :
4;
var slideslaptop = $this.data("slides-laptop") ?
$this.data("slides-laptop") :
4;
var slidesTablet = $this.data("slides-tablet") ?
$this.data("slides-tablet") :
4;
var slidesMobile = $this.data("slides-mobile") ?
$this.data("slides-mobile") :
2.2;
var spaceBetween = $this.data("space-between") ?
$this.data("space-between") :
20;
var swiper7 = new Swiper(".swiper-sliderone-" + index, {
direction: "horizontal",
loop: loop,
freeMode: freeMode,
spaceBetween: spaceBetween,
breakpoints: {
1920: {
slidesPerView: slidesDesktop,
},
1024: {
slidesPerView: slideslaptop,
},
767: {
slidesPerView: slidesTablet,
},
320: {
slidesPerView: slidesMobile,
},
},
navigation: {
nextEl: ".next",
prevEl: ".prev",
},
scrollbar: {
el: ".swiper-scrollbar",
draggable: true,
dragSize: dragSize,
},
});
});
var $swiperSelectorOne = $(".premium-product-slide");
$swiperSelectorOne.each(function (index) {
var $this = $(this);
$this.addClass("swiper-slidertwo-" + index);
var dragSize = $this.data("drag-size") ? $this.data("drag-size") : 50;
var freeMode = $this.data("free-mode") ? $this.data("free-mode") : false;
var loop = $this.data("loop") ? $this.data("loop") : true;
var slidesDesktop = $this.data("slides-desktop") ?
$this.data("slides-desktop") :
3;
var slideslaptop = $this.data("slides-laptop") ?
$this.data("slides-laptop") :
3;
var slidesTablet = $this.data("slides-tablet") ?
$this.data("slides-tablet") :
2.5;
var slidesMobile = $this.data("slides-mobile") ?
$this.data("slides-mobile") :
1.2;
var spaceBetween = $this.data("space-between") ?
$this.data("space-between") :
20;
var swiper5 = new Swiper(".swiper-slidertwo-" + index, {
direction: "horizontal",
loop: loop,
freeMode: freeMode,
spaceBetween: spaceBetween,
breakpoints: {
1920: {
slidesPerView: slidesDesktop,
},
1024: {
slidesPerView: slideslaptop,
},
767: {
slidesPerView: slidesTablet,
},
320: {
slidesPerView: slidesMobile,
},
},
navigation: {
nextEl: ".next1",
prevEl: ".prev1",
},
scrollbar: {
el: ".swiper-scrollbar",
draggable: true,
dragSize: dragSize,
},
});
});
var $swiperSelectorTwo = $(".testimonial-slider");
$swiperSelectorTwo.each(function (index) {
var $this = $(this);
$this.addClass("swiper-sliderthree-" + index);
var dragSize = $this.data("drag-size") ? $this.data("drag-size") : 50;
var freeMode = $this.data("free-mode") ? $this.data("free-mode") : false;
var loop = $this.data("loop") ? $this.data("loop") : true;
var slidesDesktop = $this.data("slides-desktop") ?
$this.data("slides-desktop") :
3;
var slideslaptop = $this.data("slides-laptop") ?
$this.data("slides-laptop") :
3;
var slidesTablet = $this.data("slides-tablet") ?
$this.data("slides-tablet") :
1.5;
var slidesMobile = $this.data("slides-mobile") ?
$this.data("slides-mobile") :
1;
var spaceBetween = $this.data("space-between") ?
$this.data("space-between") :
20;
var swiper2 = new Swiper(".swiper-sliderthree-" + index, {
direction: "horizontal",
loop: loop,
freeMode: freeMode,
spaceBetween: spaceBetween,
breakpoints: {
1920: {
slidesPerView: slidesDesktop,
},
1024: {
slidesPerView: slideslaptop,
},
767: {
slidesPerView: slidesTablet,
},
320: {
slidesPerView: slidesMobile,
},
},
navigation: {
nextEl: ".next2",
prevEl: ".prev2",
},
scrollbar: {
el: ".swiper-scrollbar",
draggable: true,
dragSize: dragSize,
},
});
});
var swiper = new Swiper(".admin-panel-slider", {
slidesPerView: 1,
spaceBetween: 30,
autoplay: false,
loop: true,
speed: 1400,
autoplay: {
delay: 6000,
},
navigation: {
nextEl: ".next5",
prevEl: ".prev5",
},
});
})(jQuery);
// show signup
$('.choose-plan-btn').on('click', function () {
$('#signup-modal').modal('show');
var route = $('#get-business-categories').val();
var plan_id = $(this).data('plan_id');
var plan_name = $(this).data('plan_name');
$('#subscription_name').text(plan_name)
$('#plan_id').val(plan_id)
$.ajax({
url: route,
method: 'GET',
success: function (data) {
var category_select = $('#business_category');
category_select.empty();
category_select.append(`<option value="">Select Business Category</option>`);
$.each(data, function (index, category) {
category_select.append(`<option value="${category.id}">${category.name}</option>`);
});
},
});
});

File diff suppressed because one or more lines are too long

369
public/assets/web/js/lity.min.js vendored Normal file
View File

@@ -0,0 +1,369 @@
/*! Lity - v2.4.1 - 2020-04-26
* http://sorgalla.com/lity/
* Copyright (c) 2015-2020 Jan Sorgalla; Licensed MIT */
!(function (a, b) {
"function" == typeof define && define.amd
? define(["jquery"], function (c) {
return b(a, c);
})
: "object" == typeof module && "object" == typeof module.exports
? (module.exports = b(a, require("jquery")))
: (a.lity = b(a, a.jQuery || a.Zepto));
})("undefined" != typeof window ? window : this, function (a, b) {
"use strict";
function c(a) {
var b = B();
return (
N && a.length
? (a.one(N, b.resolve), setTimeout(b.resolve, 500))
: b.resolve(),
b.promise()
);
}
function d(a, c, d) {
if (1 === arguments.length) return b.extend({}, a);
if ("string" == typeof c) {
if (void 0 === d) return void 0 === a[c] ? null : a[c];
a[c] = d;
} else b.extend(a, c);
return this;
}
function e(a) {
for (
var b,
c = decodeURI(a.split("#")[0]).split("&"),
d = {},
e = 0,
f = c.length;
e < f;
e++
)
c[e] && ((b = c[e].split("=")), (d[b[0]] = b[1]));
return d;
}
function f(a, c) {
return a + (a.indexOf("?") > -1 ? "&" : "?") + b.param(c);
}
function g(a, b) {
var c = a.indexOf("#");
return -1 === c ? b : (c > 0 && (a = a.substr(c)), b + a);
}
function h(a) {
return b('<span class="lity-error"></span>').append(a);
}
function i(a, c) {
var d =
(c.opener() && c.opener().data("lity-desc")) ||
"Image with no description",
e = b('<img src="' + a + '" alt="' + d + '"/>'),
f = B(),
g = function () {
f.reject(h("Failed loading image"));
};
return (
e
.on("load", function () {
if (0 === this.naturalWidth) return g();
f.resolve(e);
})
.on("error", g),
f.promise()
);
}
function j(a, c) {
var d, e, f;
try {
d = b(a);
} catch (a) {
return !1;
}
return (
!!d.length &&
((e = b('<i style="display:none !important"></i>')),
(f = d.hasClass("lity-hide")),
c.element().one("lity:remove", function () {
e.before(d).remove(),
f && !d.closest(".lity-content").length && d.addClass("lity-hide");
}),
d.removeClass("lity-hide").after(e))
);
}
function k(a) {
var c = J.exec(a);
return (
!!c &&
o(
g(
a,
f(
"https://www.youtube" + (c[2] || "") + ".com/embed/" + c[4],
b.extend({ autoplay: 1 }, e(c[5] || ""))
)
)
)
);
}
function l(a) {
var c = K.exec(a);
return (
!!c &&
o(
g(
a,
f(
"https://player.vimeo.com/video/" + c[3],
b.extend({ autoplay: 1 }, e(c[4] || ""))
)
)
)
);
}
function m(a) {
var c = M.exec(a);
return (
!!c &&
(0 !== a.indexOf("http") && (a = "https:" + a),
o(
g(
a,
f(
"https://www.facebook.com/plugins/video.php?href=" + a,
b.extend({ autoplay: 1 }, e(c[4] || ""))
)
)
))
);
}
function n(a) {
var b = L.exec(a);
return (
!!b &&
o(
g(
a,
f("https://www.google." + b[3] + "/maps?" + b[6], {
output: b[6].indexOf("layer=c") > 0 ? "svembed" : "embed",
})
)
)
);
}
function o(a) {
return (
'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="' +
a +
'"/></div>'
);
}
function p() {
return z.documentElement.clientHeight
? z.documentElement.clientHeight
: Math.round(A.height());
}
function q(a) {
var b = v();
b &&
(27 === a.keyCode && b.options("esc") && b.close(),
9 === a.keyCode && r(a, b));
}
function r(a, b) {
var c = b.element().find(G),
d = c.index(z.activeElement);
a.shiftKey && d <= 0
? (c.get(c.length - 1).focus(), a.preventDefault())
: a.shiftKey ||
d !== c.length - 1 ||
(c.get(0).focus(), a.preventDefault());
}
function s() {
b.each(D, function (a, b) {
b.resize();
});
}
function t(a) {
1 === D.unshift(a) &&
(C.addClass("lity-active"), A.on({ resize: s, keydown: q })),
b("body > *")
.not(a.element())
.addClass("lity-hidden")
.each(function () {
var a = b(this);
void 0 === a.data(F) && a.data(F, a.attr(E) || null);
})
.attr(E, "true");
}
function u(a) {
var c;
a.element().attr(E, "true"),
1 === D.length &&
(C.removeClass("lity-active"), A.off({ resize: s, keydown: q })),
(D = b.grep(D, function (b) {
return a !== b;
})),
(c = D.length ? D[0].element() : b(".lity-hidden")),
c.removeClass("lity-hidden").each(function () {
var a = b(this),
c = a.data(F);
c ? a.attr(E, c) : a.removeAttr(E), a.removeData(F);
});
}
function v() {
return 0 === D.length ? null : D[0];
}
function w(a, c, d, e) {
var f,
g = "inline",
h = b.extend({}, d);
return (
e && h[e]
? ((f = h[e](a, c)), (g = e))
: (b.each(["inline", "iframe"], function (a, b) {
delete h[b], (h[b] = d[b]);
}),
b.each(h, function (b, d) {
return (
!d ||
!(!d.test || d.test(a, c)) ||
((f = d(a, c)), !1 !== f ? ((g = b), !1) : void 0)
);
})),
{ handler: g, content: f || "" }
);
}
function x(a, e, f, g) {
function h(a) {
(k = b(a).css("max-height", p() + "px")),
j.find(".lity-loader").each(function () {
var a = b(this);
c(a).always(function () {
a.remove();
});
}),
j.removeClass("lity-loading").find(".lity-content").empty().append(k),
(m = !0),
k.trigger("lity:ready", [l]);
}
var i,
j,
k,
l = this,
m = !1,
n = !1;
(e = b.extend({}, H, e)),
(j = b(e.template)),
(l.element = function () {
return j;
}),
(l.opener = function () {
return f;
}),
(l.options = b.proxy(d, l, e)),
(l.handlers = b.proxy(d, l, e.handlers)),
(l.resize = function () {
m && !n && k.css("max-height", p() + "px").trigger("lity:resize", [l]);
}),
(l.close = function () {
if (m && !n) {
(n = !0), u(l);
var a = B();
if (
g &&
(z.activeElement === j[0] || b.contains(j[0], z.activeElement))
)
try {
g.focus();
} catch (a) {}
return (
k.trigger("lity:close", [l]),
j.removeClass("lity-opened").addClass("lity-closed"),
c(k.add(j)).always(function () {
k.trigger("lity:remove", [l]),
j.remove(),
(j = void 0),
a.resolve();
}),
a.promise()
);
}
}),
(i = w(a, l, e.handlers, e.handler)),
j
.attr(E, "false")
.addClass("lity-loading lity-opened lity-" + i.handler)
.appendTo("body")
.focus()
.on("click", "[data-lity-close]", function (a) {
b(a.target).is("[data-lity-close]") && l.close();
})
.trigger("lity:open", [l]),
t(l),
b.when(i.content).always(h);
}
function y(a, c, d) {
a.preventDefault
? (a.preventDefault(),
(d = b(this)),
(a = d.data("lity-target") || d.attr("href") || d.attr("src")))
: (d = b(d));
var e = new x(
a,
b.extend({}, d.data("lity-options") || d.data("lity"), c),
d,
z.activeElement
);
if (!a.preventDefault) return e;
}
var z = a.document,
A = b(a),
B = b.Deferred,
C = b("html"),
D = [],
E = "aria-hidden",
F = "lity-" + E,
G =
'a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',
H = {
esc: !0,
handler: null,
handlers: {
image: i,
inline: j,
youtube: k,
vimeo: l,
googlemaps: n,
facebookvideo: m,
iframe: o,
},
template:
'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>',
},
I = /(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,
J =
/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,
K = /(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,
L = /((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,
M = /(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,
N = (function () {
var a = z.createElement("div"),
b = {
WebkitTransition: "webkitTransitionEnd",
MozTransition: "transitionend",
OTransition: "oTransitionEnd otransitionend",
transition: "transitionend",
};
for (var c in b) if (void 0 !== a.style[c]) return b[c];
return !1;
})();
return (
(i.test = function (a) {
return I.test(a);
}),
(y.version = "2.4.1"),
(y.options = b.proxy(d, y, H)),
(y.handlers = b.proxy(d, y, H.handlers)),
(y.current = v),
b(z).on("click.lity", "[data-lity]", y),
y
);
});

1
public/assets/web/js/slick.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,262 @@
String.prototype.rightChars = function (n) {
if (n <= 0) {
return "";
} else if (n > this.length) {
return this;
} else {
return this.substring(this.length, this.length - n);
}
};
(function ($) {
var options = {
highlightSpeed: 20,
typeSpeed: 200,
clearDelay: 1500,
typeDelay: 200,
clearOnHighlight: true,
typerDataAttr: 'data-typer-targets',
typerInterval: 1000
},
highlight,
clearText,
backspace,
type,
spanWithColor,
clearDelay,
typeDelay,
clearData,
isNumber,
typeWithAttribute,
getHighlightInterval,
getTypeInterval,
typerInterval;
spanWithColor = function (color, backgroundColor) {
if (color === 'rgba(0, 0, 0, 0)') {
color = 'rgb(255, 255, 255)';
}
return $('<span></span>')
.css('color', color)
.css('background-color', backgroundColor);
};
isNumber = function (n) {
return !isNaN(parseFloat(n)) && isFinite(n);
};
clearData = function ($e) {
$e.removeData([
'typePosition',
'highlightPosition',
'leftStop',
'rightStop',
'primaryColor',
'backgroundColor',
'text',
'typing'
]);
};
type = function ($e) {
var
text = $e.data('text'),
oldLeft = $e.data('oldLeft'),
oldRight = $e.data('oldRight');
if (!text || text.length === 0) {
clearData($e);
return;
}
$e.text(
oldLeft +
text.charAt(0) +
oldRight
).data({
oldLeft: oldLeft + text.charAt(0),
text: text.substring(1)
});
setTimeout(function () {
type($e);
}, getTypeInterval());
};
clearText = function ($e) {
$e.find('span').remove();
setTimeout(function () {
type($e);
}, typeDelay());
};
highlight = function ($e) {
var
position = $e.data('highlightPosition'),
leftText,
highlightedText,
rightText;
if (!isNumber(position)) {
position = $e.data('rightStop') + 1;
}
if (position <= $e.data('leftStop')) {
setTimeout(function () {
clearText($e);
}, clearDelay());
return;
}
leftText = $e.text().substring(0, position - 1);
highlightedText = $e.text().substring(position - 1, $e.data('rightStop') + 1);
rightText = $e.text().substring($e.data('rightStop') + 1);
$e.html(leftText)
.append(
spanWithColor(
$e.data('backgroundColor'),
$e.data('primaryColor')
)
.append(highlightedText)
)
.append(rightText);
$e.data('highlightPosition', position - 1);
setTimeout(function () {
return highlight($e);
}, getHighlightInterval());
};
typeWithAttribute = function ($e) {
var targets;
if ($e.data('typing')) {
return;
}
try {
targets = JSON.parse($e.attr($.typer.options.typerDataAttr)).targets;
} catch (e) {}
if (typeof targets === "undefined") {
targets = $.map($e.attr($.typer.options.typerDataAttr).split(','), function (e) {
return $.trim(e);
});
}
$e.typeTo(targets[Math.floor(Math.random() * targets.length)]);
};
// Expose our options to the world.
$.typer = (function () {
return {
options: options
};
})();
$.extend($.typer, {
options: options
});
//-- Methods to attach to jQuery sets
$.fn.typer = function () {
var $elements = $(this);
return $elements.each(function () {
var $e = $(this);
if (typeof $e.attr($.typer.options.typerDataAttr) === "undefined") {
return;
}
typeWithAttribute($e);
setInterval(function () {
typeWithAttribute($e);
}, typerInterval());
});
};
$.fn.typeTo = function (newString) {
var
$e = $(this),
currentText = $e.text(),
i = 0,
j = 0;
if (currentText === newString) {
// console.log("Our strings our equal, nothing to type");
return $e;
}
if (currentText !== $e.html()) {
// console.error("Typer does not work on elements with child elements.");
return $e;
}
$e.data('typing', true);
while (currentText.charAt(i) === newString.charAt(i)) {
i++;
}
while (currentText.rightChars(j) === newString.rightChars(j)) {
j++;
}
newString = newString.substring(i, newString.length - j + 1);
$e.data({
oldLeft: currentText.substring(0, i),
oldRight: currentText.rightChars(j - 1),
leftStop: i,
rightStop: currentText.length - j,
primaryColor: $e.css('color'),
backgroundColor: $e.css('background-color'),
text: newString
});
highlight($e);
return $e;
};
//-- Helper methods. These can one day be customized further to include things like ranges of delays.
getHighlightInterval = function () {
return $.typer.options.highlightSpeed;
};
getTypeInterval = function () {
return $.typer.options.typeSpeed;
},
clearDelay = function () {
return $.typer.options.clearDelay;
},
typeDelay = function () {
return $.typer.options.typeDelay;
};
typerInterval = function () {
return $.typer.options.typerInterval;
};
})(jQuery);
$('.type-once').typeTo("Testing Typer.js jQuery Plugin with a 1 time text string.");
$('[data-typer-targets]').typer({
highlightSpeed: 2660,
typeSpeed: 8600,
clearDelay: 6500,
typeDelay: 6200,
clearOnHighlight: false,
typerDataAttr: 'data-typer-targets',
typerInterval: 2000
});