first commit
This commit is contained in:
commit
381106cbe5
1046 files changed
+285998
No files matched your search
@@ -0,0 +1,87 @@
|
||||
$(document).ready(function() {
|
||||
let subscriptionData = localStorage.getItem("subscription-data") ? JSON.parse(localStorage.getItem("subscription-data")) : null;
|
||||
|
||||
|
||||
data.cores = subscriptionData.blockDetails.cores;
|
||||
data.ram = subscriptionData.blockDetails.ram;
|
||||
data.storage = subscriptionData.blockDetails.storage;
|
||||
data.transfer = subscriptionData.blockDetails.transfer;
|
||||
|
||||
blockValue = subscriptionData.currentBlock;
|
||||
|
||||
subscriptionType = subscriptionData.subscriptionType;
|
||||
|
||||
data.totalCost = subscriptionData.totalCost
|
||||
|
||||
toggleSwitch = subscriptionData.toggleSwitch
|
||||
|
||||
console.log(toggleSwitch)
|
||||
|
||||
|
||||
changeHtmlData();
|
||||
$("#auth-block-input").change(function(){
|
||||
|
||||
let blockInp=$(this).val();
|
||||
if(blockInp==0 || blockInp >= 100) return;
|
||||
|
||||
blockValue = blockInp;
|
||||
data.cores=4*blockInp;
|
||||
data.ram =4*blockInp;
|
||||
data.storage =512*blockInp;
|
||||
data.transfer = 8*blockInp;
|
||||
|
||||
changeHtmlData();
|
||||
|
||||
})
|
||||
});
|
||||
// toggleswitch
|
||||
// $('#order-summary-toggle-switch').change(function() {
|
||||
console.log('change event')
|
||||
console.log($('#order-summary-toggle-switch'))
|
||||
|
||||
$('#order-summary-toggle-switch').change(function() {
|
||||
blockValue = $("#auth-block-input").val();
|
||||
if(blockValue == 0) return;
|
||||
|
||||
if(this.checked) {
|
||||
subscriptionType = "yearly";
|
||||
}else{
|
||||
subscriptionType = "monthly";
|
||||
}
|
||||
|
||||
changeTotalCost();
|
||||
});
|
||||
$(".status-check.nav-pills .nav-link").click(function() {
|
||||
// $(".status-check.nav-pills .nav-link").find('input[type=radio]').prop('checked',false);
|
||||
$(".status-check.nav-pills .nav-link.active").find('input[type=radio]').prop('checked',true);
|
||||
});
|
||||
$(".status-label").click(function() {
|
||||
// $(".status-label").find('input[type=radio]').prop('checked',false);
|
||||
// $(".status-label").find('input[type=radio]').prop('checked',true);
|
||||
});
|
||||
// change total-cost-order-summery
|
||||
function changeTotalCost() {
|
||||
blockValue = $("#auth-block-input").val();
|
||||
if(blockValue == 0) return;
|
||||
|
||||
if(!totalCost[blockValue]) return;
|
||||
|
||||
$("#subscription-cost").html(totalCost[blockValue].total[subscriptionType]);
|
||||
|
||||
changeServerPricing(blockValue);
|
||||
}
|
||||
|
||||
// new-input-changes
|
||||
function changeHtmlData() {
|
||||
$("#auth-block-input").val(blockValue);
|
||||
$("#data-cores").html(data.cores);
|
||||
$("#data-ram").html(data.ram);
|
||||
$("#data-storage").html(data.storage);
|
||||
$("#data-transfer").html(data.transfer);
|
||||
$("#data-subscription-type").html(subscriptionType);
|
||||
$("#subscription-cost").html(totalCost[blockValue].total[subscriptionType]);
|
||||
// toggle-switch
|
||||
if (toggleSwitch == true){
|
||||
$('#order-summary-toggle-switch').prop('checked',true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Bootstrap v5.0.2 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},e=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#"+i.split("#")[1]),e=i&&"#"!==i?i.trim():null}return e},n=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},s=t=>{const e=i(t);return e?document.querySelector(e):null},o=t=>{t.dispatchEvent(new Event("transitionend"))},r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?t.findOne(e):null,l=(t,e,i)=>{Object.keys(i).forEach(n=>{const s=i[n],o=e[n],a=o&&r(o)?"element":null==(l=o)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)})},c=t=>!(!r(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},f=t=>t.offsetHeight,p=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},m=[],g=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=p();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{m.forEach(t=>t())}),m.push(e)):e()},b=t=>{"function"==typeof t&&t()},v=(t,e,i=!0)=>{if(!i)return void b(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const r=({target:i})=>{i===e&&(s=!0,e.removeEventListener("transitionend",r),b(t))};e.addEventListener("transitionend",r),setTimeout(()=>{s||o(e)},n)},y=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,T={};let O=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},k=/^(mouseenter|mouseleave)/i,L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function x(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function D(t){const e=x(t);return t.uidEvent=e,T[e]=T[e]||{},T[e]}function S(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function I(t,e,i){const n="string"==typeof e,s=n?i:e;let o=M(t);return L.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),k.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=I(e,i,n),l=D(t),c=l[a]||(l[a]={}),h=S(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=x(r,e.replace(w,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parLine truncated
|
||||
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||
@@ -0,0 +1,238 @@
|
||||
|
||||
// calculator-input
|
||||
$(document).ready(function() {
|
||||
$('.btn-minus').click(function () {
|
||||
var $input = $(this).parent().find('input');
|
||||
var count = parseInt($input.val()) - 1;
|
||||
count = count < 1 ? 1 : count;
|
||||
$input.val(count);
|
||||
$input.change();
|
||||
return false;
|
||||
});
|
||||
$('.btn-plus').click(function () {
|
||||
var $input = $(this).parent().find('input');
|
||||
$input.val(parseInt($input.val()) + 1);
|
||||
$input.change();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
// left-block-data
|
||||
var data = {
|
||||
cores : 4,
|
||||
ram : 4,
|
||||
storage:512,
|
||||
transfer:8
|
||||
};
|
||||
var toggle= false;
|
||||
|
||||
var totalCost = {};
|
||||
// total-cost-and-savings
|
||||
for (let i = 0; i < 100 ; i++) {
|
||||
let value = i+1;
|
||||
|
||||
totalCost[value] = {
|
||||
total : { monthly : value* 1000, yearly : value*12000},
|
||||
serversCost : {
|
||||
Hireserver : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
},
|
||||
Aws : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
},
|
||||
Google : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
},
|
||||
Azure : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
},
|
||||
Digital : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
},
|
||||
Linode : {
|
||||
price: { monthly : value*10, yearly : value*100 },
|
||||
savings: { monthly : value*10/2, yearly : value*100/2 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var blockValue = 1;
|
||||
var subscriptionType = "monthly";
|
||||
// purchase-btn
|
||||
$("#total-cost").html(totalCost[1].total.monthly);
|
||||
|
||||
// calculator-input
|
||||
$(document).ready(function() {
|
||||
// toggleswitch
|
||||
$('#block-calculator-toggle-switch').change(function() {
|
||||
blockValue = $("#block-input").val();
|
||||
|
||||
if(blockValue == 0) return;
|
||||
|
||||
if(this.checked) {
|
||||
subscriptionType = "yearly";
|
||||
toggle=true;
|
||||
}else{
|
||||
subscriptionType = "monthly";
|
||||
toggle=false;
|
||||
}
|
||||
|
||||
changeTotalCost();
|
||||
});
|
||||
|
||||
$("#block-input").change(function(){
|
||||
let blockInp=$(this).val();
|
||||
if(blockInp==0 || blockInp >= 100) return;
|
||||
|
||||
data.cores=4*blockInp;
|
||||
data.ram =4*blockInp;
|
||||
data.storage =512*blockInp;
|
||||
data.transfer = 8*blockInp;
|
||||
|
||||
addLeftBlockHTML();
|
||||
|
||||
})
|
||||
$("#btn-plus").click(function () {
|
||||
let value = $("#block-input").val();
|
||||
|
||||
data.cores *= 2;
|
||||
data.ram *= 2;
|
||||
data.storage *= 2;
|
||||
data.transfer *= 2;
|
||||
addLeftBlockHTML();
|
||||
|
||||
})
|
||||
$("#btn-minus").click(function () {
|
||||
let value1 = $("#block-input").val();
|
||||
if(value1==1){
|
||||
return
|
||||
}
|
||||
data.cores /= 2;
|
||||
data.ram /= 2;
|
||||
data.storage /= 2;
|
||||
data.transfer /= 2;
|
||||
addLeftBlockHTML();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
// input
|
||||
addLeftBlockHTML();
|
||||
});
|
||||
|
||||
|
||||
|
||||
// leftblock
|
||||
function addLeftBlockHTML(){
|
||||
let html = `
|
||||
<div class="block-calculator-content d-flex justify-content-between border-bottom align-items-center">
|
||||
<div class="content-data ">
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<ul class="d-flex align-items-center justify-content-evenly list-unstyled">
|
||||
<li><img src="./images/home-page/new-svg/chip-icon.svg"
|
||||
class="img-fluid me-4" alt="core-icon"></li>
|
||||
<ul class="list-unstyled"><li>
|
||||
<p class="card-text mb-0">CPU's</p>
|
||||
<p class="sub-card-text">Core AMD EPYC 7003</p>
|
||||
</li></ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="content-value">
|
||||
<p >${data.cores} cores</p>
|
||||
</div></div>
|
||||
<div class="block-calculator-content d-flex justify-content-between border-bottom align-items-center">
|
||||
<div class="content-data d-flex align-items-center">
|
||||
<img src="./images/home-page/new-svg/chip-icon.svg"
|
||||
class="img-fluid me-4" alt="core-icon">
|
||||
<p class="card-text">RAM</p>
|
||||
</div>
|
||||
<div class="content-value">
|
||||
<p>${data.ram}GB</p>
|
||||
</div></div>
|
||||
<div class="block-calculator-content d-flex justify-content-between border-bottom align-items-center">
|
||||
<div class="content-data ">
|
||||
<ul class="d-flex align-items-center justify-content-evenly list-unstyled">
|
||||
<li> <img src="./images/home-page/new-svg/chip-icon.svg"
|
||||
class="img-fluid me-4" alt="core-icon"></li>
|
||||
<ul class="list-unstyled"><li>
|
||||
<p class="card-text mb-0">STORAGE</p>
|
||||
<p class="sub-card-text">NVMe SSD</p>
|
||||
</li></ul>
|
||||
</ul> </div>
|
||||
<div class="content-value">
|
||||
<p>${data.storage}GB</p>
|
||||
</div></div>
|
||||
<div class="block-calculator-content d-flex justify-content-between border-bottom align-items-center">
|
||||
<div class="content-data ">
|
||||
<ul class="d-flex align-items-center justify-content-evenly list-unstyled">
|
||||
<li> <img src="./images/home-page/new-svg/chip-icon.svg"
|
||||
class="img-fluid me-4" alt="core-icon"></li>
|
||||
<li> <p class="card-text">TRANSFER</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-value">
|
||||
<p>${data.transfer}TB</p>
|
||||
</div></div>
|
||||
`
|
||||
$("#block-content-main").html(html);
|
||||
changeServerPricing();
|
||||
changeTotalCost();
|
||||
}
|
||||
// total-cost-change-purchase-btn
|
||||
function changeTotalCost() {
|
||||
blockValue = $("#block-input").val();
|
||||
if(blockValue == 0) return;
|
||||
|
||||
if(!totalCost[blockValue]) return;
|
||||
|
||||
$("#total-cost").html(totalCost[blockValue].total[subscriptionType]);
|
||||
|
||||
changeServerPricing(blockValue);
|
||||
}
|
||||
// right-block
|
||||
function changeServerPricing () {
|
||||
$("#hire-server-cost").html(totalCost[blockValue].serversCost.Hireserver.savings[subscriptionType]);
|
||||
$("#hire-server-total-cost").html(totalCost[blockValue].serversCost.Hireserver.price[subscriptionType]);
|
||||
|
||||
$("#aws-cost").html(totalCost[blockValue].serversCost.Aws.savings[subscriptionType]);
|
||||
$("#aws-total-cost").html(totalCost[blockValue].serversCost.Aws.price[subscriptionType]);
|
||||
|
||||
$("#google-cost").html(totalCost[blockValue].serversCost.Google.savings[subscriptionType]);
|
||||
$("#google-total-cost").html(totalCost[blockValue].serversCost.Google.price[subscriptionType]);
|
||||
|
||||
$("#azure-cost").html(totalCost[blockValue].serversCost.Azure.savings[subscriptionType]);
|
||||
$("#azure-total-cost").html(totalCost[blockValue].serversCost.Azure.price[subscriptionType]);
|
||||
|
||||
$("#digital-cost").html(totalCost[blockValue].serversCost.Digital.savings[subscriptionType]);
|
||||
$("#digital-total-cost").html(totalCost[blockValue].serversCost.Digital.price[subscriptionType]);
|
||||
|
||||
$("#linode-cost").html(totalCost[blockValue].serversCost.Linode.savings[subscriptionType]);
|
||||
$("#linode-total-cost").html(totalCost[blockValue].serversCost.Linode.price[subscriptionType]);
|
||||
|
||||
}
|
||||
|
||||
// passing values to order-summary
|
||||
$("#purchase-button").click(function(){
|
||||
let subscriptionData = {
|
||||
currentBlock : blockValue,
|
||||
subscriptionType : subscriptionType,
|
||||
blockDetails: data,
|
||||
totalCost: totalCost,
|
||||
toggleSwitch:toggle
|
||||
};
|
||||
|
||||
localStorage.setItem("subscription-data",JSON.stringify(subscriptionData));
|
||||
|
||||
window.location.href="../login-register.html";
|
||||
})
|
||||
|
||||
// export {data};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,643 @@
|
||||
$(function () {
|
||||
// configuration js
|
||||
let m2DriveMaxQty = 4;
|
||||
let m2DriveSelectedQty = 0;
|
||||
// configuration items
|
||||
localStorage.setItem("currency", "INR");
|
||||
const configCatgories = [
|
||||
{
|
||||
id: 1,
|
||||
title: "barebone",
|
||||
maxQty: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "processor",
|
||||
maxQty: 3,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "memory",
|
||||
maxQty: 1,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "m.2 drive",
|
||||
maxQty: 4,
|
||||
},
|
||||
];
|
||||
|
||||
const bareboneProducts = [
|
||||
{
|
||||
id: 1,
|
||||
title: `Intel<sup>®</sup> C252 Chipset - 1U - 2x SATA - 1x M.2 - Dual Intel<sup>®</sup> 1-Gigabit Ethernet (RJ45) - 350W Power Supply`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
];
|
||||
|
||||
const processorProducts = [
|
||||
{
|
||||
productcatid: 1,
|
||||
productcattitle: `Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2314 Processor 2.8GHz 8MB
|
||||
Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2334 Processor 3.4GHz 8MB Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `Eight-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2378 Processor 2.6GHz 16MB Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 2,
|
||||
productcattitle: `Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series with Intel<sup>®</sup> UHD P750 Graphics`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2324G Processor 3.1GHz
|
||||
8MB Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2374G Processor 3.7GHz 8MB Cache (80W)`,
|
||||
qty: 2,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `Six-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2356G Processor 3.2GHz 12MB Cache (80W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: `Six-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2386G Processor 3.5GHz 12MB Cache (95W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const memoryProducts = [
|
||||
{
|
||||
id: 1,
|
||||
title: `16GB PC4-25600 3200MHz DDR4 ECC UDIMM`,
|
||||
qty: 2,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `32GB PC4-25600 3200MHz DDR4 ECC UDIMM`,
|
||||
qty: 2,
|
||||
price: 220,
|
||||
},
|
||||
];
|
||||
|
||||
const m2driveProducts = [
|
||||
{
|
||||
productcatid: 1,
|
||||
productcattitle: `Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `256GB Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State
|
||||
Drive`,
|
||||
qty: 4,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `512GB Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `1.0TB Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 2,
|
||||
productcattitle: `Intel<sup>®</sup> DC P4801X M.2 PCIe 3.0 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `100GB Intel<sup>®</sup> Optane™ SSD DC P4801X Series M.2 PCIe 3.0 x4 NVMe
|
||||
Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `200GB Intel<sup>®</sup> Optane™ SSD DC P4801X Series M.2 PCIe
|
||||
3.0 x4 NVMe Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `1.0TB Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 3,
|
||||
productcattitle: `Micron 7400 PRO M.2 PCIe 4.0 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `480GB Micron 7400 PRO Series M.2 22x80 PCIe 4.0 x4 NVMe Solid
|
||||
State Drive`,
|
||||
qty: 4,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `960GB Micron 7400 PRO Series M.2 22x80 PCIe 4.0 x4
|
||||
NVMe Solid State Drive`,
|
||||
qty: 4,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `1.92TB Micron 7400 PRO Series M.2 22x110 PCIe 4.0 x4 NVMe Solid
|
||||
State Drive`,
|
||||
qty: 4,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
//Bind Config Categories
|
||||
bindConfigurations();
|
||||
updateItemsCount();
|
||||
// max quantity-progress-bar
|
||||
function bindConfigurations() {
|
||||
let configCatHtml = "";
|
||||
$.each(configCatgories, function (i, cat) {
|
||||
const id = cat.id;
|
||||
let title = cat.title;
|
||||
let qty = cat.maxQty;
|
||||
let maxQtyHtml = "";
|
||||
if (title == "m.2 drive") {
|
||||
title = "m2-drive";
|
||||
}
|
||||
if (title == "m2-drive" || title == "processor") {
|
||||
let quantityHtml = "";
|
||||
if (title == "m2-drive") {
|
||||
let qtyProgressBarHtml = "";
|
||||
for (let i = 0; i < qty; i++) {
|
||||
qtyProgressBarHtml += `<span class="sms progress-bar progress-bar-${i}"></span>`;
|
||||
}
|
||||
quantityHtml = `<span>Quantity:</span><div class="max-qty-wrap ml-15"><div class="d-flex justify-content-between align-items-center"><div class="d-flex flex-column"><div class="qty-progress-bars d-flex align-items-center">${qtyProgressBarHtml}</div><div class="d-flex justify-content-between flex-wrap align-items-center mt-1"><span class="small">Max Quantity: ${qty}</span><div class="small"><span class="selected-qty">0</span>/<span class="max-qty-span">${qty}</span></div></div></div></div></div>`;
|
||||
}
|
||||
maxQtyHtml = `<div class="text-white p-3 border-radius-custom flex-wrap float-lg-end d-flex align-items-center config-max-quantity">${quantityHtml}</div>`;
|
||||
}
|
||||
configCatHtml += `<div class="product-config-selector accordion mb-20" id="config-${title}" data-maxqty='${qty}'>
|
||||
<div class="config-heading d-flex justify-content-between flex-wrap align-items-center">
|
||||
<h5 class="text-white p-3 border-radius-custom text-uppercase">${title}
|
||||
</h5>
|
||||
${maxQtyHtml}
|
||||
</div>
|
||||
<div class="config-content p-0"></div>
|
||||
</div>`;
|
||||
});
|
||||
$("#block-content-main").html(configCatHtml);
|
||||
bindAllConfigProducts();
|
||||
}
|
||||
// appending-html
|
||||
function bindAllConfigProducts() {
|
||||
bindBareboneAndMemoryProducts("barebone");
|
||||
bindBareboneAndMemoryProducts("memory");
|
||||
bindProcessorAndM2DriveProducts("processor");
|
||||
bindProcessorAndM2DriveProducts("m2-drive");
|
||||
bindEventListeners();
|
||||
}
|
||||
|
||||
function bindBareboneAndMemoryProducts(cat) {
|
||||
let productHtml = "";
|
||||
let productsArr = bareboneProducts;
|
||||
if (cat == "memory") {
|
||||
productsArr = memoryProducts;
|
||||
}
|
||||
$.each(productsArr, function (i, product) {
|
||||
productHtml += `<p class="provide-content product-item">
|
||||
<div
|
||||
class="name-of-config card-body row justify-content-between py-1 align-items-center config-product-item" data-id='${product.id}' data-cat='${cat}' data-price='${product.price}'>
|
||||
<div class="form-check mt-2 col-lg-7" id="form-check">
|
||||
<input class="form-check-input product-radio-btn" id="${cat}-radio-btn-${product.id}" type="radio" name="radio-btns"
|
||||
value="${product.title}">
|
||||
<label class="form-check-label" for="${cat}-radio-btn-${product.id}">
|
||||
<strong>${product.title}</strong>
|
||||
</label>
|
||||
</div>
|
||||
<div class="btn-group config-quantity-btn text-black col-lg-2">
|
||||
<select class="form-select fw-bold qty-selector">`;
|
||||
for (let i = 0; i <= product.qty; i++) {
|
||||
productHtml += `<option value="${i}">Qty: ${i}</option>`;
|
||||
}
|
||||
productHtml += `</select>
|
||||
</div>
|
||||
<div class="config-pricing col-lg-2">
|
||||
<span class="config-price-span p-2 border-radius-custom"><span>+</span><span class="total-price-amount price-wrap d-flex align-items-center"><span class="currency-symbol">₹</span><span class="product-price">${product.price}</span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</p>`;
|
||||
});
|
||||
$(`#config-${cat} .config-content`).html(productHtml);
|
||||
$('.qty-selector option[value="0"]').text("Select");
|
||||
}
|
||||
|
||||
function bindProcessorAndM2DriveProducts(cat) {
|
||||
let productCatHtml = "";
|
||||
let productsArr = processorProducts;
|
||||
let accordion = "processorProductAccordion";
|
||||
let collapse = "processorProductcollapse";
|
||||
let lastSelectDataAttr = "";
|
||||
if (cat == "m2-drive") {
|
||||
productsArr = m2driveProducts;
|
||||
accordion = "m2DriveProductAccordion";
|
||||
collapse = "m2DriveProductcollapse";
|
||||
lastSelectDataAttr = 'data-lastval="1"';
|
||||
}
|
||||
$.each(productsArr, function (i, productcat) {
|
||||
const productcatid = productcat.productcatid;
|
||||
const productcattitle = productcat.productcattitle;
|
||||
productCatHtml += `<div class="accordion mt-4 border-radius-custom" id="${accordion}-${productcatid}">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" style="color:#4e4c7d; background-color: #e7e9f4;"
|
||||
type="button" data-bs-toggle="collapse" data-bs-target="#${collapse}-${productcatid}"
|
||||
aria-expanded="true" aria-controls="${collapse}-${productcatid}">
|
||||
<strong>${productcattitle}</strong>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="${collapse}-${productcatid}" class="accordion-collapse collapse show" data-bs-parent="#${accordion}-${productcatid}">
|
||||
<div class="accordion-body">`;
|
||||
let productHtml = "";
|
||||
|
||||
$.each(productcat.products, function (i, product) {
|
||||
productHtml += `
|
||||
<div class="name-of-config row justify-content-between py-1 align-items-center config-product-item" data-id='${
|
||||
product.id
|
||||
}' data-cat='${cat}' data-price='${
|
||||
product.price
|
||||
}' data-productcatid='${productcatid}'>
|
||||
<div class="form-check mt-2 col-lg-7" id="form-check">
|
||||
${appendProcessorAndM2DriveInput(
|
||||
cat,
|
||||
product.id,
|
||||
product.title,
|
||||
productcatid
|
||||
)}
|
||||
</div>
|
||||
<div class="btn-group config-quantity-btn text-black col-lg-2">
|
||||
<select class="form-select fw-bold qty-selector" ${lastSelectDataAttr}><option value="0">Select</option>`;
|
||||
for (let i = 1; i <= product.qty; i++) {
|
||||
productHtml += `<option value="${i}">Qty: ${i}</option>`;
|
||||
}
|
||||
productHtml += `</select>
|
||||
</div>
|
||||
<div class="config-pricing col-lg-2">
|
||||
<span class="config-price-span p-2 border-radius-custom"><span>+</span><span class="processor-total-price total-price-amount price-wrap d-flex align-items-center"><span class="currency-symbol">₹</span><span class="product-price">${product.price}</span></span> </span>
|
||||
</div>
|
||||
</div>`;
|
||||
});
|
||||
productCatHtml += productHtml;
|
||||
productCatHtml += `</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
});
|
||||
$(`#config-${cat} .config-content`).html(productCatHtml);
|
||||
//$('.qty-selector option[value="0"]').text('Select')
|
||||
}
|
||||
|
||||
function appendProcessorAndM2DriveInput(cat, id, title, productcatid = 0) {
|
||||
if (cat == "m2-drive") {
|
||||
return `<input class="form-check-input product-check-btn" type="checkbox" name="m2Drive-check-btns"
|
||||
id="${cat}-check-btn-${productcatid}-${id}" value="${title}" >
|
||||
<label class="form-check-label" for="${cat}-check-btn-${productcatid}-${id}">
|
||||
<strong>${title}</strong>
|
||||
</label>`;
|
||||
} else {
|
||||
return `<input class="form-check-input product-radio-btn" type="radio" name="processor-radio-btns"
|
||||
id="${cat}-radio-btn-${productcatid}-${id}" value="${title}" >
|
||||
<label class="form-check-label" for="${cat}-radio-btn-${productcatid}-${id}">
|
||||
<strong>${title}</strong>
|
||||
</label>`;
|
||||
}
|
||||
}
|
||||
// select and radio-check-btn-section
|
||||
function bindEventListeners() {
|
||||
var alertBox = `<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>`;
|
||||
$(".product-radio-btn").click(function (e) {
|
||||
const radioEl = $(this);
|
||||
const accordionID = $(this).parents(".accordion").attr("id");
|
||||
const parentEl = radioEl.parents(".config-product-item");
|
||||
const val = radioEl.val();
|
||||
const productCatId = parentEl.attr("data-id");
|
||||
const cat = parentEl.attr("data-cat");
|
||||
const qty = parseInt(parentEl.find(".qty-selector").val("1"));
|
||||
const price = qty * parseInt(parentEl.attr("data-price"));
|
||||
const id = parentEl.attr("data-id");
|
||||
$(`#config-${cat}`).find(".config-price-span").removeClass("active");
|
||||
parentEl.find(".config-price-span").addClass("active");
|
||||
bindSelectedProduct(cat, val, qty, price, id, productCatId, accordionID);
|
||||
updateItemsCount();
|
||||
updateTotalCartPrice();
|
||||
});
|
||||
|
||||
$(".qty-selector").change(function () {
|
||||
const selectEl = $(this);
|
||||
const accordionId = $(this).parents(".accordion").attr("id");
|
||||
const parentEl = selectEl.parents(".config-product-item");
|
||||
const val = parseInt(selectEl.val());
|
||||
const lastSelectedVal = parseInt(selectEl.attr("data-lastval"));
|
||||
const price = val * parseFloat(parentEl.attr("data-price")).toFixed(2);
|
||||
const cat = parentEl.attr("data-cat");
|
||||
const id = parentEl.attr("data-id");
|
||||
if (!parentEl.find("input").is(":checked")) {
|
||||
parentEl.find("input").trigger("click");
|
||||
parentEl.find(".config-price-span").addClass("active");
|
||||
}
|
||||
|
||||
const selectedQty = val - lastSelectedVal;
|
||||
if (cat == "m2-drive") {
|
||||
if (m2DriveMaxQty >= m2DriveSelectedQty + selectedQty) {
|
||||
m2DriveSelectedQty += selectedQty;
|
||||
selectEl.attr("data-lastval", val);
|
||||
m2DriveProgress();
|
||||
parentEl.find(".product-price").text(price);
|
||||
const selecedSummaryProduct = $(
|
||||
`.${cat}-cart-product-${id}[data-accordionid="${accordionId}"]`
|
||||
);
|
||||
selecedSummaryProduct.find(".summary-total-qty .qty-span").text(val);
|
||||
selecedSummaryProduct.find(".product-price").text(price);
|
||||
updateTotalCartPrice();
|
||||
} else {
|
||||
alert("Quantity Max limit reached");
|
||||
selectEl.val(lastSelectedVal);
|
||||
parentEl.find("input").trigger("click");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
parentEl.find(".product-price").text(price);
|
||||
const selecedSummaryProduct = $(
|
||||
`.${cat}-cart-product-${id}[data-accordionid="${accordionId}"]`
|
||||
);
|
||||
selecedSummaryProduct.find(".summary-total-qty .qty-span").text(val);
|
||||
selecedSummaryProduct.find(".product-price").text(price);
|
||||
updateTotalCartPrice();
|
||||
}
|
||||
});
|
||||
|
||||
$(".product-check-btn").click(function () {
|
||||
const checkEl = $(this);
|
||||
const ElementId = $(this).parents(".accordion").attr("id");
|
||||
const parentEl = checkEl.parents(".config-product-item");
|
||||
const val = checkEl.val();
|
||||
const productCatId = parentEl.attr("data-productcatid");
|
||||
const cat = parentEl.attr("data-cat");
|
||||
const qtySelectEl = parentEl.find(".qty-selector");
|
||||
const qty = parseInt(qtySelectEl.val("1"));
|
||||
const price = parentEl.attr("data-price");
|
||||
const totalPrice = qty * parseFloat(price).toFixed(2);
|
||||
const id = parentEl.attr("data-id");
|
||||
|
||||
if (checkEl.is(":checked")) {
|
||||
m2DriveSelectedQty++;
|
||||
parentEl.addClass("selected");
|
||||
} else {
|
||||
m2DriveSelectedQty -= qty;
|
||||
qtySelectEl.val("1").attr("data-lastval", "1").trigger("change");
|
||||
parentEl.removeClass("selected").find(".product-price").text(price);
|
||||
}
|
||||
|
||||
if (m2DriveSelectedQty > m2DriveMaxQty) {
|
||||
alert("Quantity Max limit reached");
|
||||
return false;
|
||||
} else {
|
||||
parentEl.find(".config-price-span").toggleClass("active");
|
||||
bindSelectedProduct(
|
||||
cat,
|
||||
val,
|
||||
qty,
|
||||
totalPrice,
|
||||
id,
|
||||
productCatId,
|
||||
ElementId
|
||||
);
|
||||
updateItemsCount();
|
||||
updateTotalCartPrice();
|
||||
m2DriveProgress();
|
||||
}
|
||||
});
|
||||
// $('.product-check-btn ,.product-radio-btn').click(function() {
|
||||
// qtySelectEl.val('1').attr('data-lastval', '1').trigger('change');;
|
||||
// });
|
||||
}
|
||||
|
||||
function m2DriveProgress() {
|
||||
if (m2DriveSelectedQty <= m2DriveMaxQty) {
|
||||
$(".qty-progress-bars .progress-bar").removeClass("active");
|
||||
for (let i = 0; i < m2DriveSelectedQty; i++) {
|
||||
$(".qty-progress-bars .progress-bar").eq(i).addClass("active");
|
||||
}
|
||||
$("#config-m2-drive .max-qty-wrap")
|
||||
.find(".selected-qty")
|
||||
.text(m2DriveSelectedQty);
|
||||
}
|
||||
if (m2DriveSelectedQty == m2DriveMaxQty) {
|
||||
disableM2DriveOptions();
|
||||
} else {
|
||||
enableM2DriveOptions();
|
||||
}
|
||||
}
|
||||
|
||||
function enableM2DriveOptions() {
|
||||
$(".product-check-btn").prop("disabled", false);
|
||||
$("#config-m2-drive .qty-selector").prop("disabled", false);
|
||||
}
|
||||
|
||||
function disableM2DriveOptions() {
|
||||
$(".product-check-btn").not(":checked").prop("disabled", true);
|
||||
$("#config-m2-drive .config-product-item")
|
||||
.not(".selected")
|
||||
.find(".qty-selector")
|
||||
.prop("disabled", true);
|
||||
}
|
||||
|
||||
// summary section
|
||||
function bindSelectedProduct(
|
||||
cat,
|
||||
val,
|
||||
qty,
|
||||
price,
|
||||
id,
|
||||
productCatId = "",
|
||||
ElementId
|
||||
) {
|
||||
const summaryProductHtml = `<li class="w-100 my-1 d-flex align-items-center cart-product-item ${cat}-cart-product-${id}" data-accordionid="${ElementId}" data-productcatid='${productCatId}'><span class="summary-total-qty"><span class="qty-span">${qty}</span><i class="fa fa-times"></i></span>
|
||||
<div class="flex-grow-1 d-flex align-items-center justify-content-between"><span class="summary-product-val mr-2">${val}</span>
|
||||
<span class="price-wrap d-flex align-items-center"><span class="summary-plus-sign">+</span><span class="currency-symbol" id="summary-currency-symbol">₹</span><span class="order-price price-span product-price ml-auto">${price}</span></span>
|
||||
</div>
|
||||
</li>`;
|
||||
|
||||
if (cat == "m2-drive") {
|
||||
if (
|
||||
$(
|
||||
`.m2-drive-cart-product-${id}[data-productcatid = "${productCatId}"] `
|
||||
).length
|
||||
) {
|
||||
$(
|
||||
`.m2-drive-cart-product-${id}[data-productcatid = "${productCatId}"]`
|
||||
).remove();
|
||||
} else {
|
||||
$(`#${cat}-summary .summary-list`).append(summaryProductHtml);
|
||||
}
|
||||
} else {
|
||||
$(`#${cat}-summary .summary-list`).html(summaryProductHtml);
|
||||
}
|
||||
if ($(`#${cat}-summary .summary-list li`).length) {
|
||||
$(`#${cat}-summary`).removeClass("d-none");
|
||||
} else {
|
||||
$(`#${cat}-summary`).addClass("d-none");
|
||||
}
|
||||
}
|
||||
|
||||
// items-count
|
||||
function updateItemsCount() {
|
||||
const cartProductCount = $(
|
||||
"#productOrderSummary .cart-product-item"
|
||||
).length;
|
||||
$(".summary-head #items-count").text(cartProductCount);
|
||||
|
||||
if (cartProductCount >= 1) {
|
||||
$(".your-order-wrap").show();
|
||||
$(".your-order-wrap-empty").hide();
|
||||
} else {
|
||||
$(".your-order-wrap").hide();
|
||||
$(".your-order-wrap-empty").show();
|
||||
}
|
||||
}
|
||||
|
||||
// total-cart-price
|
||||
function updateTotalCartPrice() {
|
||||
let totalPrice = 0;
|
||||
$("#productOrderSummary .cart-product-item")
|
||||
.find(".price-span")
|
||||
.each(function (i, e) {
|
||||
totalPrice += Number($(e).text().trim());
|
||||
});
|
||||
$("#productOrderSummary #total-amount").text(totalPrice);
|
||||
}
|
||||
|
||||
//currency-converter:
|
||||
var rates = {
|
||||
INR: {
|
||||
value: 1,
|
||||
symbol: "₹",
|
||||
USD: 0.01311,
|
||||
INR: 1,
|
||||
GBP: 0.01,
|
||||
},
|
||||
USD: {
|
||||
value: 75,
|
||||
symbol: "$",
|
||||
USD: 1,
|
||||
INR: 76.32,
|
||||
GBP: 0.76,
|
||||
},
|
||||
GBP: {
|
||||
value: 100,
|
||||
symbol: "£",
|
||||
USD: 1.31,
|
||||
INR: 100,
|
||||
GBP: 1,
|
||||
},
|
||||
};
|
||||
|
||||
let usercurency;
|
||||
if (localStorage.getItem("currency")) {
|
||||
usercurency = localStorage.getItem("currency");
|
||||
} else {
|
||||
usercurency = "INR";
|
||||
}
|
||||
|
||||
$("#custom-selects").val(usercurency.toLowerCase());
|
||||
|
||||
function updatePrices(previousCurrency, currentCurrency) {
|
||||
$(".product-price").each(function (i, el) {
|
||||
console.log(currentCurrency);
|
||||
let val = parseFloat($(el).text());
|
||||
let con = val * rates[previousCurrency][currentCurrency],
|
||||
_con;
|
||||
if (currentCurrency == "INR") {
|
||||
_con = Math.round(con);
|
||||
} else {
|
||||
_con = con;
|
||||
}
|
||||
let curentSymbol = rates[currentCurrency];
|
||||
$(el).text(_con.toFixed(2));
|
||||
|
||||
$(el).siblings(".currency-symbol").text(curentSymbol.symbol);
|
||||
});
|
||||
$("[data-price]").each(function (i, e) {
|
||||
let val = parseFloat($(this).attr("data-price"));
|
||||
let con = val * rates[previousCurrency][currentCurrency],
|
||||
_con;
|
||||
if (currentCurrency == "INR") {
|
||||
_con = Math.round(con);
|
||||
} else {
|
||||
_con = parseInt(con);
|
||||
}
|
||||
$(this).attr("data-price", con);
|
||||
});
|
||||
let amount = parseFloat($("#total-amount").text()).toFixed(2);
|
||||
let curentSymbol = rates[currentCurrency];
|
||||
let conVal = amount * rates[previousCurrency][currentCurrency],
|
||||
_con;
|
||||
if (currentCurrency == "INR") {
|
||||
_con = Math.round(conVal);
|
||||
} else {
|
||||
_con = conVal;
|
||||
}
|
||||
$("#total-amount").text(parseFloat(_con).toFixed(2));
|
||||
$(".currency-symbol").text(curentSymbol.symbol);
|
||||
}
|
||||
|
||||
$("#custom-selects").on("change", function (e) {
|
||||
let previousCurrency = localStorage.getItem("currency");
|
||||
localStorage.setItem("currency", e.target.value.toUpperCase());
|
||||
updatePrices(previousCurrency, e.target.value.toUpperCase());
|
||||
});
|
||||
|
||||
updatePrices(rates[usercurency]);
|
||||
});
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,108 @@
|
||||
$(document).ready(function () {
|
||||
let footerHtml = `
|
||||
<!-- footer strat -->
|
||||
<footer class="">
|
||||
<div class="footer mt-md-5">
|
||||
<div class="container">
|
||||
<div class="row w-100">
|
||||
<div class="col-12 col-sm-6 col-lg-5 ">
|
||||
<div class="footer-widget mx-w-400">
|
||||
<div class="footer-logo mb-25">
|
||||
<a href="index.html">
|
||||
<img class="w-50" src="./assets/img/logo/anwi-logo-white.svg" alt="footer logo">
|
||||
</a>
|
||||
</div>
|
||||
<h4 class="text-white mb-30 pl-10 footer-content">
|
||||
Sign Up to <br>
|
||||
Our Newsletter
|
||||
</h4>
|
||||
|
||||
<div class="nletter-form mb-35 pl-10">
|
||||
<form class="bg-transparent border-bottom position-relative" >
|
||||
<input class="bg-transparent border-0 border-bottom form-control" type="text"
|
||||
placeholder="Email Address">
|
||||
<button class="btn news-letter-btn text-capitalize bg-white" >
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-7 row mt-md-5">
|
||||
<div class="col-5 col-sm-6 col-lg-5 mb-30 pl-5">
|
||||
<div class="footer-widget">
|
||||
<div class=" cbb1 ">
|
||||
<div class="section-title">
|
||||
<h2 class="title footer-title">Products</h2>
|
||||
</div>
|
||||
</div>
|
||||
<!-- footer-menu start -->
|
||||
<ul class="footer-menu">
|
||||
<li><a href="servers.html">Servers</a></li>
|
||||
<li><a href="24-bay-storage.html">Storage</a></li>
|
||||
<li><a href="network-switches.html">Network Switches</a></li>
|
||||
<li><a href="network-cards.html">Network Cards</a></li>
|
||||
</ul>
|
||||
<!-- footer-menu end -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 col-sm-6 col-lg-4 mb-30">
|
||||
<div class="footer-widget footer-information">
|
||||
<div class=" cbb1 ">
|
||||
<div class="section-title">
|
||||
<h2 class="title footer-title">About</h2>
|
||||
</div>
|
||||
</div>
|
||||
<!-- footer-menu start -->
|
||||
<ul class="footer-menu">
|
||||
<li><a href="about.html">About Us</a></li>
|
||||
<li><a href="#">Terms</a></li>
|
||||
<li><a href="#">Privacy</a></li>
|
||||
<li><a href="#">Careers</a></li>
|
||||
</ul>
|
||||
<!-- footer-menu end -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3 col-sm-6 col-lg-3 mb-30">
|
||||
<div class="footer-widget footer-information">
|
||||
<div class=" cbb1 ">
|
||||
<div class="section-title">
|
||||
<h2 class="title footer-title">Help</h2>
|
||||
</div>
|
||||
</div>
|
||||
<!-- footer-menu start -->
|
||||
<ul class="footer-menu">
|
||||
<li><a href="#">FAQs</a></li>
|
||||
<li><a href="contact-us.html">Contact Us</a></li>
|
||||
</ul>
|
||||
<!-- footer-menu end -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="justify-content-between row">
|
||||
<div class="col-12 col-lg-6 pl-15 row">
|
||||
<div class="col-lg-6 col-6"></div>
|
||||
<div class="col-lg-6 col-6"></div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 social-icons text-lg-end text-center">
|
||||
<a href="https://www.facebook.com/">
|
||||
<i class="fab fa-facebook-f mx-4"></i>
|
||||
</a>
|
||||
<a href="https://www.twitter.com/">
|
||||
<i class="fab fa-twitter"></i>
|
||||
</a>
|
||||
<a href="https://www.instagram.com/">
|
||||
<i class="fab fa-instagram mx-4"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- coppy-right end -->
|
||||
</footer>
|
||||
<!-- footer end -->
|
||||
`;
|
||||
$("#footer-head").html(footerHtml);
|
||||
});
|
||||
@@ -0,0 +1,145 @@
|
||||
$(document).ready(function () {
|
||||
let formHTML = ` <!-- pop up -->
|
||||
<!-- enquire-form pop up -->
|
||||
<div class="modal fade style" id="enquireModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class=" justify-content-center ">
|
||||
<!-- <h5 class="modal-title" id="itemTitle"> </h5> -->
|
||||
<button type="button" class="close" data-bs-dismiss="modal" style="color: black;" >
|
||||
<span >×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="myModal">
|
||||
<div class="contact-form-content">
|
||||
<h3 class="contact-page-title">Buy Now</h3>
|
||||
<div class="contact-form">
|
||||
<form id="contact-form" name="enquire_form" >
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="Your Name" name="name" id="usernames" onblur="submit_enquiry()" required />
|
||||
<small id="usercheck" style="color: red;" >
|
||||
*Username is missing
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="Product" name="Title" id="itemTitle" disabled />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="email" placeholder="Email-Id" name="email" id="email" onblur="submit_enquiry()" required/>
|
||||
<small id="emailvalid" class="form-text
|
||||
text-muted invalid-feedback">
|
||||
Your email must be a valid email
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="phone" placeholder="Mobile No" name="phone" id="phone" onblur="submit_enquiry()" required/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="subject" name="subject" id="subject" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<textarea name="contactMessage" placeholder="Your Message" class="pb-10" id="contactMessage" required></textarea>
|
||||
</div>
|
||||
<div class="form-group mb-0">
|
||||
<button type="submit" value="submit" id="submitbtn" class="btn btn-dark btn--lg " name="submit" onclick="submit_enquiry()">
|
||||
submit
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- <p class="form-message mt-10"></p> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end popup -->`
|
||||
|
||||
$("#enquire").html(formHTML);
|
||||
|
||||
|
||||
// Document is ready
|
||||
$(document).ready(function () {
|
||||
|
||||
// Validate Username
|
||||
$('#usercheck').hide();
|
||||
let usernameError = true;
|
||||
$('#usernames').keyup(function () {
|
||||
validateUsername();
|
||||
});
|
||||
|
||||
function validateUsername() {
|
||||
let usernameValue = $('#usernames').val();
|
||||
if (usernameValue.length == '') {
|
||||
$('#usercheck').show();
|
||||
usernameError = false;
|
||||
return false;
|
||||
} else if ((usernameValue.length < 3) ||
|
||||
(usernameValue.length > 10)) {
|
||||
$('#usercheck').show();
|
||||
$('#usercheck').html("*length of username must be between 3 and 10");
|
||||
usernameError = false;
|
||||
return false;
|
||||
} else {
|
||||
$('#usercheck').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// Validate Email
|
||||
const email =
|
||||
document.getElementById('email');
|
||||
email.addEventListener('blur', () => {
|
||||
let regex =
|
||||
/^([_\-\.0-9a-zA-Z]+)@([_\-\.0-9a-zA-Z]+)\.([a-zA-Z]){2,7}$/;
|
||||
let s = email.value;
|
||||
if (regex.test(s)) {
|
||||
email.classList.remove(
|
||||
'is-invalid');
|
||||
emailError = true;
|
||||
} else {
|
||||
email.classList.add(
|
||||
'is-invalid');
|
||||
emailError = false;
|
||||
}
|
||||
})
|
||||
|
||||
// Submit button
|
||||
$('#submitbtn').click(function () {
|
||||
validateUsername();
|
||||
validateEmail();
|
||||
if ((usernameError == true) &&
|
||||
(passwordError == true) &&
|
||||
(emailError == true)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
function pop_up() {
|
||||
let title = $('.single-product-head').find('.title').text();
|
||||
// $('#itemTitle').text(title);
|
||||
// console.log(title);
|
||||
$('#itemTitle').val(title);
|
||||
}
|
||||
|
||||
function submit_enquiry() {
|
||||
// alert("awsdfa");
|
||||
if (enquire_form.name.value.length == 0) {
|
||||
document.getElementById('errName');
|
||||
}
|
||||
if (enquire_form.email.value.length == 0) {
|
||||
document.getElementById('errEmail');
|
||||
|
||||
}
|
||||
}
|
||||
pop_up();
|
||||
submit_enquiry()
|
||||
})
|
||||
@@ -0,0 +1,184 @@
|
||||
$(document).ready(function () {
|
||||
let formHTML = ` <!-- pop up -->
|
||||
<!-- enquire-form pop up -->
|
||||
<div class="modal fade style" id="enquireModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="wrap-contact100">
|
||||
|
||||
<div class="modal-content contact100-form validate-form">
|
||||
<div class=" justify-content-center ">
|
||||
<!-- <h5 class="modal-title" id="itemTitle"> </h5> -->
|
||||
<button type="button" class="close" data-bs-dismiss="modal" >
|
||||
<span >×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="row w-100">
|
||||
<div class="enquire-form-img col-md-6 col-12">
|
||||
</div>
|
||||
<div class="enquire-form col-md-6 col-12 py-5 px-30">
|
||||
<div>
|
||||
<h3 class="contact-page-title">Request a Quote</h3>
|
||||
</div>
|
||||
<div>
|
||||
<div id="pageloader" class="d-none">
|
||||
<img src="http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.16.1/images/loader-large.gif"
|
||||
alt="processing..." />
|
||||
</div>
|
||||
<form id="anwi-enquire-form" method="POST" action="quote-request.php">
|
||||
<div class="form-floating ">
|
||||
<input type="text" class="form-control" id="userName" name="name" placeholder="name@example.com" onblur="submit_enquiry()" required>
|
||||
<label for="name">Your Name</label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<input type="text" class="form-control" id="itemTitle" name="Title" placeholder="Password" disabled>
|
||||
<label for="name">Product</label>
|
||||
</div>
|
||||
<div class="form-floating ">
|
||||
<input type="email" class="form-control" id="floatingEmail" name="email" placeholder="name@example.com" onblur="submit_enquiry()" required>
|
||||
<label for="floatingEmail">Email address</label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<input type="number" class="form-control" id="floatingPhonenumber" name="phone" placeholder="Password" onblur="submit_enquiry()" required>
|
||||
<label for="floatingPhonenumber">Mobile No</label>
|
||||
</div>
|
||||
<div class="form-floating ">
|
||||
<input type="text" class="form-control" id="floatingSubject" name="subject" placeholder="name@example.com" required>
|
||||
<label for="floatingSubject">Subject</label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<textarea name="contactMessage" class="form-control" id="contactMessage" name="message" placeholder="Your Message" required style="height:100px"></textarea>
|
||||
<label for="floatingPassword">Message</label>
|
||||
</div>
|
||||
<div class="form-floating text-center my-4">
|
||||
<button type="submit" value="submit" id="submitbtn" class="btn btn-primary btn--lg " name="submit" onclick="submit_enquiry()">
|
||||
submit
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end popup -->`;
|
||||
|
||||
$("#enquire").html(formHTML);
|
||||
|
||||
// Document is ready
|
||||
$(document).ready(function () {
|
||||
// Validate Username
|
||||
$("#usercheck").hide();
|
||||
let usernameError = true;
|
||||
$("#usernames").keyup(function () {
|
||||
validateUsername();
|
||||
});
|
||||
|
||||
function validateUsername() {
|
||||
let usernameValue = $("#usernames").val();
|
||||
if (usernameValue.length == "") {
|
||||
$("#usercheck").show();
|
||||
usernameError = false;
|
||||
return false;
|
||||
} else if (usernameValue.length < 3 || usernameValue.length > 10) {
|
||||
$("#usercheck").show();
|
||||
$("#usercheck").html("*length of username must be between 3 and 10");
|
||||
usernameError = false;
|
||||
return false;
|
||||
} else {
|
||||
$("#usercheck").hide();
|
||||
}
|
||||
}
|
||||
|
||||
// Validate Email
|
||||
const email = document.getElementById("email");
|
||||
email.addEventListener("blur", () => {
|
||||
let regex = /^([_\-\.0-9a-zA-Z]+)@([_\-\.0-9a-zA-Z]+)\.([a-zA-Z]){2,7}$/;
|
||||
let s = email.value;
|
||||
if (regex.test(s)) {
|
||||
email.classList.remove("is-invalid");
|
||||
emailError = true;
|
||||
} else {
|
||||
email.classList.add("is-invalid");
|
||||
emailError = false;
|
||||
}
|
||||
});
|
||||
|
||||
// Submit button
|
||||
$("#submitbtn").click(function () {
|
||||
validateUsername();
|
||||
validateEmail();
|
||||
if (
|
||||
usernameError == true &&
|
||||
passwordError == true &&
|
||||
emailError == true
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function pop_up() {
|
||||
let title = $(".single-product-head").find(".title").text();
|
||||
// $('#itemTitle').text(title);
|
||||
// console.log(title);
|
||||
$("#itemTitle").val(title);
|
||||
}
|
||||
|
||||
function submit_enquiry() {
|
||||
// alert("awsdfa");
|
||||
if (enquire_form.name.value.length == 0) {
|
||||
document.getElementById("errName");
|
||||
}
|
||||
if (enquire_form.email.value.length == 0) {
|
||||
document.getElementById("errEmail");
|
||||
}
|
||||
}
|
||||
pop_up();
|
||||
submit_enquiry();
|
||||
|
||||
$("#anwi-enquire-form").validate({
|
||||
rules: {
|
||||
phone: {
|
||||
minlength: 10,
|
||||
maxlength: 10,
|
||||
number: true,
|
||||
},
|
||||
},
|
||||
submitHandler: function (form) {
|
||||
loader();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "quote-request.php",
|
||||
data: $(form).serialize(),
|
||||
success: function (res) {
|
||||
if (res == 1) {
|
||||
toastr.success("Form Submitted Successfully!");
|
||||
$(form).trigger("reset");
|
||||
$(form)
|
||||
.find(".form-control-placeholder")
|
||||
.removeClass("floating-label");
|
||||
$("#pageloader").remove();
|
||||
$("#anwi-enquire-form").removeClass("d-none");
|
||||
} else {
|
||||
toastr.error("Something Went Wrong,Try Again!");
|
||||
$("#pageloader").remove();
|
||||
$("#anwi-enquire-form").removeClass("d-none");
|
||||
}
|
||||
},
|
||||
});
|
||||
return false;
|
||||
},
|
||||
});
|
||||
|
||||
function loader() {
|
||||
//$("#biz-contact-form").on("submit", function () {
|
||||
$("#pageloader").fadeIn();
|
||||
$("#anwi-enquire-form").addClass("d-none");
|
||||
//});
|
||||
//submit
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,469 @@
|
||||
(function ($) {
|
||||
"use strict";
|
||||
|
||||
// Searching & Expand Menu Popup
|
||||
|
||||
var searchToggle = $(".search-toggle"),
|
||||
closeA = $(".scale"),
|
||||
closeB = $(".searching button"),
|
||||
cBody = $("body"),
|
||||
closeScale = closeA.add(closeB);
|
||||
|
||||
if (searchToggle.length > 0) {
|
||||
searchToggle.on("click", function () {
|
||||
cBody.toggleClass("open");
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
if (closeScale.length > 0) {
|
||||
closeScale.on("click", function () {
|
||||
cBody.removeClass("open");
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
$(".close").on("click", function () {
|
||||
$("body").removeClass("open");
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*-----------------------------main slider active---------------------------- */
|
||||
|
||||
const $mainSlider = $(".main-slider");
|
||||
|
||||
$mainSlider.slick({
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
speed: 400,
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
dots: true,
|
||||
fade: true,
|
||||
arrows: true,
|
||||
prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
|
||||
responsive: [{
|
||||
breakpoint: 767,
|
||||
settings: {
|
||||
dots: true,
|
||||
arrows: false
|
||||
}
|
||||
}, ],
|
||||
})
|
||||
.slickAnimation();
|
||||
/*-------------------------- product slider init ---------------------------- */
|
||||
const $productSliderInit = $(".product-slider-init");
|
||||
|
||||
$productSliderInit.slick({
|
||||
autoplay: false,
|
||||
autoplaySpeed: 10000,
|
||||
dots: true,
|
||||
infinite: false,
|
||||
arrows: true,
|
||||
speed: 1000,
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
infinite: true,
|
||||
prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
|
||||
responsive: [{
|
||||
breakpoint: 1199,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
infinite: true,
|
||||
dots: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
autoplay: true,
|
||||
infinite: true,
|
||||
dots: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
infinite: true,
|
||||
dots: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
infinite: true,
|
||||
dots: true,
|
||||
},
|
||||
},
|
||||
// You can unslick at a given breakpoint now by adding:
|
||||
// settings: "unslick"
|
||||
// instead of a settings object
|
||||
],
|
||||
});
|
||||
|
||||
/*--------------------------popular-slider-init---------------------------- */
|
||||
const $popularSlider = $(".popular-slider-init");
|
||||
|
||||
$popularSlider.slick({
|
||||
autoplay: true,
|
||||
autoplaySpeed: 10000,
|
||||
dots: true,
|
||||
infinite: true,
|
||||
arrows: true,
|
||||
speed: 1000,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
|
||||
responsive: [{
|
||||
breakpoint: 1280,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
infinite: false,
|
||||
dots: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 991,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
// You can unslick at a given breakpoint now by adding:
|
||||
// settings: "unslick"
|
||||
// instead of a settings object
|
||||
],
|
||||
});
|
||||
|
||||
/*-------------------------- featured-init ---------------------------- */
|
||||
const $featuredSlider = $(".featured-init");
|
||||
|
||||
$featuredSlider.slick({
|
||||
autoplay: false,
|
||||
autoplaySpeed: 10000,
|
||||
dots: false,
|
||||
infinite: false,
|
||||
arrows: true,
|
||||
speed: 1000,
|
||||
slidesToShow: 4,
|
||||
slidesToScroll: 1,
|
||||
prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
|
||||
responsive: [{
|
||||
breakpoint: 1280,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
infinite: false,
|
||||
dots: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 991,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: false,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
// You can unslick at a given breakpoint now by adding:
|
||||
// settings: "unslick"
|
||||
// instead of a settings object
|
||||
],
|
||||
});
|
||||
|
||||
/*--------------------------
|
||||
product ctry slider init
|
||||
---------------------------- */
|
||||
|
||||
const $productCtry = $(".product-ctry-init");
|
||||
$productCtry.slick({
|
||||
autoplay: false,
|
||||
autoplaySpeed: 10000,
|
||||
dots: false,
|
||||
infinite: false,
|
||||
arrows: true,
|
||||
speed: 1000,
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
prevArrow: '<button class="slick-prev"><i class="fa fa-chevron-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fa fa-chevron-right"></i></button>',
|
||||
responsive: [{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
infinite: true,
|
||||
dots: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
breakpoint: 767,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
autoplay: true,
|
||||
},
|
||||
},
|
||||
|
||||
// You can unslick at a given breakpoint now by adding:
|
||||
// settings: "unslick"
|
||||
// instead of a settings object
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*---------------------------
|
||||
countdown-syncing
|
||||
---------------------------- */
|
||||
|
||||
$(".countdown-sync-init").slick({
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
infinite: true,
|
||||
draggable: false,
|
||||
arrows: false,
|
||||
dots: false,
|
||||
fade: true,
|
||||
asNavFor: ".countdown-sync-nav",
|
||||
});
|
||||
$(".countdown-sync-nav").slick({
|
||||
dots: false,
|
||||
arrows: false,
|
||||
infinite: true,
|
||||
prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
asNavFor: ".countdown-sync-init",
|
||||
focusOnSelect: true,
|
||||
draggable: false,
|
||||
});
|
||||
|
||||
/*---------------------------
|
||||
product-syncing
|
||||
---------------------------- */
|
||||
|
||||
$(".product-sync-init").slick({
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
infinite: true,
|
||||
draggable: false,
|
||||
arrows: false,
|
||||
dots: false,
|
||||
fade: true,
|
||||
asNavFor: ".product-sync-nav",
|
||||
});
|
||||
$(".product-sync-nav").slick({
|
||||
dots: false,
|
||||
arrows: false,
|
||||
infinite: true,
|
||||
prevArrow: '<button class="slick-prev"><i class="fas fa-arrow-left"></i></button>',
|
||||
nextArrow: '<button class="slick-next"><i class="fas fa-arrow-right"></i></button>',
|
||||
slidesToShow: 4,
|
||||
slidesToScroll: 1,
|
||||
asNavFor: ".product-sync-init",
|
||||
focusOnSelect: true,
|
||||
draggable: false,
|
||||
});
|
||||
|
||||
/*--------------------------
|
||||
tooltip
|
||||
---------------------------- */
|
||||
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
||||
return new bootstrap.Tooltip(tooltipTriggerEl)
|
||||
})
|
||||
|
||||
|
||||
// slider-range
|
||||
$("#slider-range").slider({
|
||||
range: true,
|
||||
min: 0,
|
||||
max: 800,
|
||||
values: [200, 600],
|
||||
slide: function (event, ui) {
|
||||
$("#amount").val("€" + ui.values[0] + " - €" + ui.values[1]);
|
||||
},
|
||||
});
|
||||
$("#amount").val(
|
||||
"€" +
|
||||
$("#slider-range").slider("values", 0) +
|
||||
" - €" +
|
||||
$("#slider-range").slider("values", 1)
|
||||
);
|
||||
|
||||
// slider-range end
|
||||
/*----------------------------------------
|
||||
fixed issue in bootstrap tabs problem
|
||||
----------------------------------------- */
|
||||
|
||||
$('a[data-bs-toggle="pill"]').on("shown.bs.tab", function (e) {
|
||||
e.target;
|
||||
e.relatedTarget;
|
||||
$(".slick-slider").slick("setPosition");
|
||||
});
|
||||
|
||||
/*-----------------------------------
|
||||
fixed issue in bs modal problem
|
||||
---------------------------------- */
|
||||
|
||||
$(".modal").on("shown.bs.modal", function (e) {
|
||||
$(".slick-slider").slick("setPosition");
|
||||
});
|
||||
|
||||
/*--------------------------
|
||||
comment scroll down
|
||||
---------------------------- */
|
||||
|
||||
$("#write-comment").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
$("html, body").animate({
|
||||
scrollTop: $(".btn-dark ").offset().top + 750
|
||||
},
|
||||
500,
|
||||
"linear"
|
||||
);
|
||||
});
|
||||
|
||||
/*--------------------------
|
||||
counter
|
||||
-------------------------- */
|
||||
|
||||
$(".count").each(function () {
|
||||
var count = $(this),
|
||||
input = count.find('input[type="number"]'),
|
||||
increament = count.find(".increment"),
|
||||
decreament = count.find(".decrement"),
|
||||
minValue = input.attr("min"),
|
||||
maxValue = input.attr("max");
|
||||
|
||||
increament.on("click", function () {
|
||||
var oldValue = parseFloat(input.val());
|
||||
if (oldValue >= maxValue) {
|
||||
var newVal = oldValue;
|
||||
} else {
|
||||
var newVal = oldValue + 1;
|
||||
}
|
||||
count.find("input").val(newVal);
|
||||
count.find("input").trigger("change");
|
||||
});
|
||||
|
||||
decreament.on("click", function () {
|
||||
var oldValue = parseFloat(input.val());
|
||||
if (oldValue <= minValue) {
|
||||
var newVal = oldValue;
|
||||
} else {
|
||||
var newVal = oldValue - 1;
|
||||
}
|
||||
count.find("input").val(newVal);
|
||||
count.find("input").trigger("change");
|
||||
});
|
||||
});
|
||||
|
||||
/*-------------------------
|
||||
Create an account toggle
|
||||
--------------------------*/
|
||||
$(".checkout-toggle2").on("click", function () {
|
||||
$(".open-toggle2").slideToggle(1000);
|
||||
});
|
||||
|
||||
$(".checkout-toggle").on("click", function () {
|
||||
$(".open-toggle").slideToggle(1000);
|
||||
});
|
||||
|
||||
/*--------------------------
|
||||
SscrollUp
|
||||
---------------------------- */
|
||||
|
||||
$.scrollUp({
|
||||
scrollName: "scrollUp", // Element ID
|
||||
scrollDistance: 400, // Distance from top/bottom before showing element (px)
|
||||
scrollFrom: "top", // 'top' or 'bottom'
|
||||
scrollSpeed: 800, // Speed back to top (ms)
|
||||
easingType: "linear", // Scroll to top easing (see http://easings.net/)
|
||||
animation: "fade", // Fade, slide, none
|
||||
animationSpeed: 400, // Animation speed (ms)
|
||||
scrollTrigger: false, // Set a custom triggering element. Can be an HTML string or jQuery object
|
||||
scrollTarget: false, // Set a custom target element for scrolling to. Can be element or number
|
||||
scrollText: '<i class="fas fa-arrow-up"></i>', // Text for element, can contain HTML
|
||||
scrollTitle: false, // Set a custom <a> title if required.
|
||||
scrollImg: false, // Set true to use image
|
||||
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
|
||||
zIndex: 214, // Z-Index for the overlay
|
||||
});
|
||||
|
||||
|
||||
})(jQuery);
|
||||
Vendored
+30883
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["bootstrap.bundle.min.js","main.js","plugins/ajax-contact.js","plugins/jquery-ui.min.js","plugins/plugins.js","plugins/plugins.min.js","vendor/jquery-3.6.0.min.js","vendor/jquery-migrate-3.3.2.min.js","vendor/modernizr-3.7.1.min.js","vendor/vendor.min.js"],"names":["t","e","exports","_typeof","module","define","amd","globalThis","self","bootstrap","Math","floor","random","document","getElementById","i","getAttribute","includes","startsWith","split","trim","n","querySelector","s","o","dispatchEvent","Event","r","jquery","nodeType","a","length","l","Object","keys","forEach","toString","call","match","toLowerCase","RegExp","test","TypeError","concat","toUpperCase","c","getClientRects","getComputedStyle","getPropertyValue","h","Node","ELEMENT_NODE","classList","contains","disabled","hasAttribute","u","f","offsetHeight","p","window","jQuery","body","g","documentElement","dir","_","NAME","fn","jQueryInterface","Constructor","noConflict","readyState","m","addEventListener","push","b","v","arguments","undefined","_window$getComputedSt","transitionDuration","transitionDelay","Number","parseFloat","_ref3","target","removeEventListener","setTimeout","y","indexOf","max","min","_ref","apply","_toConsumableArray","Element","prototype","querySelectorAll","_ref2","children","filter","matches","parentNode","previousElementSibling","nextElementSibling","w","E","A","T","O","C","mouseenter","mouseleave","k","L","Set","x","uidEvent","D","S","originalHandler","delegationSelector","I","M","has","N","relatedTarget","delegateTarget","this","_I","_I2","_slicedToArray","oneOff","d","replace","P","off","type","j","Boolean","on","one","_I3","_I4","slice","trigger","isPropagationStopped","isImmediatePropagationStopped","isDefaultPrevented","createEvent","initEvent","CustomEvent","bubbles","cancelable","defineProperty","get","preventDefault","defaultPrevented","H","Map","R","set","size","console","error","Array","from","B","_classCallCheck","_element","constructor","DATA_KEY","_createClass","key","value","_this","EVENT_KEY","getOwnPropertyNames","getInstance","Error","W","_B","_inherits","_super","_createSuper","_getRootElement","_triggerCloseEvent","_removeElement","closest","_this2","remove","_queueCallback","_destroyElement","each","getOrCreateInstance","close","handleDismiss","q","_B2","_super2","setAttribute","toggle","z","$","U","setDataAttribute","removeDataAttribute","removeAttribute","getDataAttributes","dataset","charAt","getDataAttribute","offset","getBoundingClientRect","top","scrollTop","left","scrollLeft","position","offsetTop","offsetLeft","F","interval","keyboard","slide","pause","wrap","touch","V","K","X","Y","Q","G","ArrowLeft","ArrowRight","Z","_B3","_super3","_this3","_items","_interval","_activeElement","_isPaused","_isSliding","touchTimeout","touchStartX","touchDeltaX","_config","_getConfig","_indicatorsElement","_touchSupported","navigator","maxTouchPoints","_pointerEvent","PointerEvent","_addEventListeners","_slide","hidden","next","cycle","clearInterval","_updateInterval","setInterval","visibilityState","nextWhenVisible","bind","_this4","_getItemIndex","to","_objectSpread","abs","_this5","_keydown","_addTouchEventListeners","_this6","pointerType","touches","clientX","_handleSwipe","clearTimeout","add","tagName","direction","parseInt","defaultInterval","_this7","_directionToOrder","_getItemByOrder","_orderToDirection","_triggerSlideEvent","_setActiveIndicatorElement","ride","carouselInterface","dataApiClickHandler","J","parent","tt","et","_B4","_super4","_this8","_isTransitioning","_triggerArray","id","_selector","_parent","_getParent","_addAriaAndCollapsedClass","hide","show","_this9","find","collapseInterface","_getDimension","style","setTransitioning","_this10","_this11","it","nt","st","ot","rt","at","reduce","lt","ct","ht","nodeName","dt","ownerDocument","defaultView","ut","ft","HTMLElement","pt","ShadowRoot","mt","name","enabled","phase","state","elements","styles","attributes","assign","effect","popper","options","strategy","margin","arrow","reference","hasOwnProperty","requires","gt","_t","width","height","right","bottom","bt","offsetWidth","vt","getRootNode","isSameNode","host","yt","Et","At","assignedSlot","Tt","offsetParent","Ot","userAgent","transform","perspective","contain","willChange","Ct","kt","Lt","xt","round","Dt","St","It","Nt","modifiersData","popperOffsets","placement","padding","rects","clientHeight","clientWidth","centerOffset","element","requiresIfExists","jt","Mt","popperRect","offsets","gpuAcceleration","adaptive","roundOffsets","devicePixelRatio","Pt","data-popper-placement","data","Ht","passive","Rt","instance","scroll","resize","scrollParents","update","Bt","Wt","qt","start","end","zt","$t","pageXOffset","pageYOffset","Ut","Ft","overflow","overflowX","overflowY","Vt","visualViewport","Kt","Xt","clientTop","clientLeft","scrollWidth","scrollHeight","Yt","Qt","Gt","boundary","rootBoundary","elementContext","altBoundary","contextElement","Jt","_skip","mainAxis","alLine truncated
|
||||
Whitespace-only changes.
@@ -0,0 +1,758 @@
|
||||
$(document).ready(function () {
|
||||
let navbarHtml = `
|
||||
<!-- offcanvas-overlay start -->
|
||||
<div class="offcanvas-overlay"></div>
|
||||
<!-- offcanvas-overlay end -->
|
||||
<!-- offcanvas-mobile-menu start -->
|
||||
<div id="offcanvas-mobile-menu" class="offcanvas theme1 offcanvas-mobile-menu ">
|
||||
<div class="inner">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="inner-img d-flex ">
|
||||
<img src="./assets/img/logo/logo-black.png" class="img-fluid " alt="anwi-logo">
|
||||
</div>
|
||||
<div class=" pt-3 text-end">
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="offcanvas-menu">
|
||||
<ul>
|
||||
<li class="home-text">
|
||||
<a class="home-text1" href="index.html"><span class="menu-text ">Home</span></a>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="products.html"><span class="menu-text">Products</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="servers.html"><span class="menu-text">Servers</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="surpass3u.html"><span class="menu-text">ANWI SURPASS 3U</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="surpass2u.html"><span class="menu-text">ANWI SURPASS 2U</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="surpass1u.html"><span class="menu-text">ANWI SURPASS 1U</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="24-bay-storage.html"><span class="menu-text">Storage</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="24-bay-storage.html"><span class="menu-text">24 Bay Storage</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="shop-text1" href="network-switches.html"><span class="menu-text">Network Switches</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li><a href="400g-data.html">400G</a></li>
|
||||
<li>
|
||||
<a href="100g-port3.html"><span class="menu-text">100G</span></a>
|
||||
</li>
|
||||
<li><a href="40g-data.html">40G</a></li>
|
||||
<li><a href="25g-data.html">25G</a></li>
|
||||
<li><a href="10g-data.html">10G</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="network-cards.html"><span class="menu-text">Network Cards/Cables </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="network-card-700series.html"><span class="menu-text">700 Series</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="network-card-800series.html"><span class="menu-text">800 Series</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text d-none">
|
||||
<a class="shop-text1" href="routers.html"><span class="menu-text">Routers </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="routers.html"><span class="menu-text">COR580</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text d-none">
|
||||
<a class="shop-text1" ><span class="menu-text">Firewalls </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="firewalls.html"><span class="menu-text">Netgate 7100 1U</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text d-none">
|
||||
<a class="shop-text1" ><span class="menu-text">Smart Racks </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="racks.html"><span class="menu-text">Computer Racks</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text d-none">
|
||||
<a class="shop-text1" ><span class="menu-text">Management Units </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="management-units.html"><span class="menu-text">IMOU Unit</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="about.html"><span class="menu-text">About US</span></a>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="contact-us.html"><span class="menu-text">Contact</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="offcanvas-social py-30">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"><i class="fab fa-facebook-f"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fab fa-twitter"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fab fa-instagram"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fab fa-google"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fab fa-whatsapp"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- offcanvas-mobile-menu end -->
|
||||
<!-- OffCanvas Wishlist Start -->
|
||||
<div id="offcanvas-wishlist" class="offcanvas offcanvas-wishlist theme1">
|
||||
<div class="inner">
|
||||
<div class="head d-flex flex-wrap justify-content-between">
|
||||
<span class="title">Wishlist</span>
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
<ul class="minicart-product-list">
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/4.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>orginal Age Defying Cosmetics Makeup</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$100.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/5.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>On Trend Makeup and Beauty Cosmetics</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$35.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/6.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>orginal Age Defying Cosmetics Makeup</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$9.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a
|
||||
href="wishlist.html"
|
||||
class="btn btn-primary btn--lg d-block d-sm-inline-block mt-30"
|
||||
>view wishlist</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<!-- OffCanvas Wishlist End -->
|
||||
|
||||
<!-- OffCanvas Cart Start -->
|
||||
<div id="offcanvas-cart" class="offcanvas offcanvas-cart theme1">
|
||||
<div class="inner">
|
||||
<div class="head d-flex flex-wrap justify-content-between">
|
||||
<span class="title">Cart</span>
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
<div id="side-cart">
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-5">
|
||||
<a href="cart.html" class="btn btn-secondary btn--lg d-block d-sm-inline-block me-sm-2 side-cart-btn" >view cart</a>
|
||||
<a href="checkout.html" class="btn btn-dark btn--lg d-block d-sm-inline-block mt-4 mt-sm-0 side-cart-btn" >checkout</a>
|
||||
<p class="minicart-message">Free Shipping on All Orders Over $100!</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- OffCanvas Cart End -->
|
||||
|
||||
<!-- header start -->
|
||||
<header>
|
||||
<!-- header-middle satrt -->
|
||||
<div id="sticky" class="header-middle theme1 py-lg-0 main-index product-info-page">
|
||||
<div class="container position-relative headers">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-6 col-lg-2 col-xl-2 mt-0">
|
||||
<div class="logo">
|
||||
<a href="index.html"
|
||||
><img class="main-logo img-fluid " src="./assets/img/logo/logo-white.png" alt="anwi-logo"
|
||||
/></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 col-xl-10 col-lg-10 d-lg-flex justify-content-between">
|
||||
<ul class="main-menu d-lg-flex d-none">
|
||||
<li class="ml-0 highlight">
|
||||
<a href="index.html" class="ps-0 main-nav-list nav-home"><span class="active cool-link">Home</span></a>
|
||||
</li>
|
||||
<li class="position-static highlight">
|
||||
<a href="products.html" class="nav-products main-nav-list"><span class="active cool-link">Products</span> <i class="fa fa-chevron-down"></i></a>
|
||||
<div class="mega-menu row">
|
||||
<div class="container nav-mega-menu">
|
||||
<ul id="tabs-nav" class=" nav-menu-category">
|
||||
<li data-role="thumb-1" class="nav-menu-category1 active py-3">
|
||||
<a href="servers.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Servers</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-1" class="menu-sections">
|
||||
<!-- <button class="close-btn">×</button> -->
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class= "d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <a href="servers.html"><h4>Servers</h4></a></div> <div><a href="servers.html" class= "view-all">view all</a> </div> </div>
|
||||
<div class=" mx-5 border-bottom row">
|
||||
<a href="surpass3u.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div> <img src="./assets/img/slider/slider-img1.svg" class="mega-nav-img"></div>
|
||||
<div >ANWI SURPASS 3U</div>
|
||||
</a>
|
||||
<a href="surpass2u.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/400!280/server2U.png" class="mega-nav-img"></div>
|
||||
<div >ANWI SURPASS 2U</div>
|
||||
</a>
|
||||
<a href="surpass1u.html" class="col-md-4 d-flex py-5 sub-nav-list ">
|
||||
<div><img src="./assets/img/400!280/server1U.png" class="mega-nav-img"></div>
|
||||
<div >ANWI SURPASS 1U</div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- servers-end -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="24-bay-storage.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Storage</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <a href="24-bay-storage.html"> <h4>Storage</h4> </a> </div> <div class="d-none"><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="24-bay-storage.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/storage/24-bay-storage.png" class="mega-nav-img switches router"></div>
|
||||
<div >24 Bay Storage </div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- storage-end -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class=" nav-menu-category1 py-3">
|
||||
<a href="network-switches.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Network Switches</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class=" pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <a href="network-switches.html"> <h4>Network Switches</h4> </a> </div> <div><a href="network-switches.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="10g-data.html" class="col-md-3 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/10g.png" class="mega-nav-img switches"></div>
|
||||
<div >10G-Switch</div>
|
||||
</a>
|
||||
|
||||
<a href="25g-data.html" class="col-md-3 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/25g.png" class="mega-nav-img switches"></div>
|
||||
<div >25G-Switch</div>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="40g-data.html" class="col-md-3 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/40g.png" class="mega-nav-img switches"></div>
|
||||
<div >40G-Switch</div>
|
||||
</a>
|
||||
|
||||
<a href="100g-port3.html" class="col-md-3 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/100g3.png" class="mega-nav-img switches"></div>
|
||||
<div >100G-Switch</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="100g-port2.html" class="col-md-3 d-flex py-5 sub-nav-list d-none">
|
||||
<div><img src="./assets/img/650!450/100g2.png" class="mega-nav-img switches"></div>
|
||||
<div href="100g-port2.html" >100G-2 Switch</div>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="100g-port1.html" class="col-md-3 d-flex py-5 sub-nav-list d-none">
|
||||
<div><img src="./assets/img/650!450/100g1.png" class="mega-nav-img switches"></div>
|
||||
<div >100G-1 Switch</div>
|
||||
</a>
|
||||
|
||||
<a href="400g-data.html" class="col-md-3 d-flex py-4 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/400g.png" class="mega-nav-img switches"></div>
|
||||
<div >400G Switch</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- switches-end -->
|
||||
<!-- network-cards / cables start -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="network-cards.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Network Cards/Cables</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <a href="network-cards.html"> <h4>Network Cards</h4> </a> </div> <div><a href="network-cards.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row ms-5 border-bottom">
|
||||
<a href="network-card-700series.html" class="col-md-5 py-5 d-flex sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/700-series.png" class="mega-nav-img switches"></div>
|
||||
<div >Anwi Ethernet Network Adapter XXV710</div>
|
||||
</a>
|
||||
<a href="network-card-800series.html" class="col-md-5 py-5 d-flex sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/800-series.png" class="mega-nav-img switches"></div>
|
||||
<div >Anwi Ethernet 800 Series Network Adapters</div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- network-cards / cables end -->
|
||||
|
||||
<!---Routers start -->
|
||||
<ul class=" nav-menu-category d-none">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="routers.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Routers</b><span><i class="arrow-nav-img2 fa fa-chevron-right"></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Routers</h4></div> <div class="d-none"><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="routers.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/650!450/700-series.png" class="mega-nav-img switches"></div>
|
||||
<div >Routers</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Routers end -->
|
||||
|
||||
<!---Firewalls start -->
|
||||
<ul class=" nav-menu-category d-none">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="firewall.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Firewalls</b><span><i class="arrow-nav-img2 fa fa-chevron-right"></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Firewalls</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="firewall.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/firewall/firewall3.png" class="mega-nav-img switches"></div>
|
||||
<div >Netgate 7100 1U</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Firewalls end -->
|
||||
|
||||
<!---Smart Racks start -->
|
||||
<ul class=" nav-menu-category d-none">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="racks.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Smart Racks</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Smart Racks</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="racks.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/no-image.png" class="mega-nav-img switches"></div>
|
||||
<div>Computer Racks</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Smart Racks end -->
|
||||
|
||||
<!---Management Units start -->
|
||||
<ul class=" nav-menu-category d-none">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="management-units.html" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Management Units</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Management Units</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="management-units.html" class="col-md-4 d-flex py-5 sub-nav-list">
|
||||
<div><img src="./assets/img/no-image.png" class="mega-nav-img switches"></div>
|
||||
<div >IMOU Unit</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Management units end -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<li class="highlight">
|
||||
<a href="about.html" class="main-nav-list"><span class="active cool-link">About US</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="d-flex main-menu justify-content-end">
|
||||
<li class="highlight currency">
|
||||
<select class="browser-default white-arrow" id="custom-selects">
|
||||
<option value="inr" id="inr" selected >₹ INR</span></option>
|
||||
<option value="usd" id="usd">$ USD</option>
|
||||
<option value="gbp" id="gbp">£ GBP</option>
|
||||
<option value="eur" id="eur">€ EUR</option>
|
||||
</select>
|
||||
</li>
|
||||
<li class="highlight d-none d-lg-block">
|
||||
<a href="contact-us.html" class=" get-in main-nav-list"><span class="get-in-touch active cool-link px-3 py-2">Get in Touch<i class="fa fa-arrow-right pl-20"></i> </span></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-2 col-lg-2 mt-0">
|
||||
<!-- search-form end -->
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<!-- static-media end -->
|
||||
<div class="mobile-menu-toggle theme1 d-lg-none">
|
||||
<a href="#offcanvas-mobile-menu" class="offcanvas-toggle">
|
||||
<svg viewBox="0 0 700 550">
|
||||
<path d="M300,220 C300,220 520,220 540,220 C740,220 640,540 520,420 C440,340 300,200 300,200" id="top" style="stroke: #fff;"></path>
|
||||
<path d="M300,320 L540,320" id="middle" style="stroke: #fff;"></path>
|
||||
<path d="M300,210 C300,210 520,210 540,210 C740,210 640,530 520,410 C440,330 300,190 300,190" id="bottom" transform="translate(480, 320) scale(1, -1) translate(-480, -318)" style="stroke: #fff;"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- header-middle end -->
|
||||
</header>
|
||||
<!-- header end -->
|
||||
`;
|
||||
$("#navbar-head").html(navbarHtml);
|
||||
|
||||
$(".nav-products").click(function () {
|
||||
$(".mega-menu").toggle();
|
||||
});
|
||||
|
||||
// all category hover
|
||||
$(".nav-menu-category1").mouseover(function () {
|
||||
$(".nav-menu-category1").find("a").removeClass("active");
|
||||
$(this).find("a").addClass("active");
|
||||
$(".menu-sections").attr("Style", "");
|
||||
});
|
||||
|
||||
// products hover
|
||||
$("a.main-nav-list").click(function () {
|
||||
$("a.main-nav-list").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
$(".nav-menu-category1.bgg .menu-sections").css("top", "1.7%");
|
||||
});
|
||||
|
||||
$(".nav-menu-category1.active").removeClass("active");
|
||||
$(this).parents(".menu-sections").removeClass("d-none");
|
||||
$(this).parents(".menu-sections").parent().addClass("active");
|
||||
|
||||
// active-menu for navbar
|
||||
if (location.pathname != "/") {
|
||||
// Main Nav
|
||||
$("a.main-nav-list").each(function () {
|
||||
if (this.href === location.href) {
|
||||
$(this).addClass("active");
|
||||
if ($(this).parents().hasClass("highlight")) {
|
||||
$(this)
|
||||
.parents("highlight")
|
||||
.find("a.main-nav-list")
|
||||
.addClass("active");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// else if ($('body[data-page="product"]')) {
|
||||
// $(this).addClass("active");
|
||||
// }
|
||||
});
|
||||
} else {
|
||||
$("a.nav-home").addClass("active");
|
||||
}
|
||||
// active-menu for sub category
|
||||
if (location.pathname != "/") {
|
||||
// Main Nav
|
||||
$("a.sub-nav-list").each(function () {
|
||||
if (this.href === location.href) {
|
||||
$(this).addClass("active");
|
||||
if ($(this).parents().hasClass("highlight")) {
|
||||
$(this)
|
||||
.parents("highlight")
|
||||
.find("a.sub-nav-list")
|
||||
.addClass("active");
|
||||
$(this)
|
||||
.parents(".nav-menu-category1")
|
||||
.css("background", "white")
|
||||
.addClass("bgg");
|
||||
$(this).parents(".menu-sections").css("top", "1.7%");
|
||||
// $(this).parents('.menu-sections').parent().addClass('active');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// console.log(location.pathname);
|
||||
}
|
||||
|
||||
// border for products
|
||||
if (location.pathname != "/") {
|
||||
$(".sub-nav-list").each(function () {
|
||||
if (this.href === location.href) {
|
||||
$(this).addClass("border");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// active-menu for category
|
||||
// if (location.pathname != "/") {
|
||||
// // Main Nav
|
||||
// $(".sub-category").each(function () {
|
||||
// if (this.href === location.href) {
|
||||
// $(this).addClass("active");
|
||||
// if ($(this).parents().hasClass("nav-menu-category1")) {
|
||||
// $(this).parents("nav-menu-category1").find(".sub-category").addClass("active");
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
/*---------------------------
|
||||
Commons Variables
|
||||
------------------------------ */
|
||||
const $window = $(window),
|
||||
$body = $("body");
|
||||
|
||||
/*--------------------------
|
||||
Sticky Menu
|
||||
---------------------------- */
|
||||
var initialSrc = "./assets/img/logo/logo-white.png";
|
||||
var scrollSrc = "./assets/img/logo/logo-black.png";
|
||||
|
||||
$($window).on("scroll", function () {
|
||||
var scroll = $($window).scrollTop();
|
||||
if (scroll < 150) {
|
||||
$("#sticky").removeClass("is-isticky");
|
||||
$("#sticky").addClass("main-index");
|
||||
|
||||
$("#custom-selects").addClass("white-arrow");
|
||||
$("#custom-selects").removeClass("blue-arrow");
|
||||
} else {
|
||||
$("#sticky").addClass("is-isticky");
|
||||
$("#sticky").removeClass("main-index");
|
||||
|
||||
$("#custom-selects").addClass("blue-arrow");
|
||||
$("#custom-selects").removeClass("white-arrow");
|
||||
}
|
||||
|
||||
var value = $(this).scrollTop();
|
||||
if ($("body").attr("data-page") != "product") {
|
||||
if (value > 100) {
|
||||
$(".main-logo").attr("src", scrollSrc);
|
||||
$(".mobile-menu-toggle.theme1 svg path").css("stroke", "#000");
|
||||
// $("#custom-selects").addClass("blue-arrow");
|
||||
// $("#custom-selects").removeClass("white-arrow");
|
||||
} else {
|
||||
$(".main-logo").attr("src", initialSrc);
|
||||
$(".mobile-menu-toggle.theme1 svg path").css("stroke", "#fff");
|
||||
// $("#custom-selects").addClass("blue-arrow");
|
||||
// $("#custom-selects").removeClass("white-arrow");
|
||||
}
|
||||
}
|
||||
if ($("body").attr("data-page") == "product") {
|
||||
if (value > 100) {
|
||||
$("#custom-selects").addClass("blue-arrow");
|
||||
$("#custom-selects").removeClass("white-arrow");
|
||||
} else {
|
||||
$("#custom-selects").addClass("blue-arrow");
|
||||
$("#custom-selects").removeClass("white-arrow");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ($("body").attr("data-page") == "product") {
|
||||
// console.log("working");
|
||||
$(".waves").removeClass("waves");
|
||||
$(".main-logo").attr("src", scrollSrc);
|
||||
$(".nav-products").addClass("active");
|
||||
$("#custom-selects").removeClass("white-arrow");
|
||||
$("#custom-selects").addClass("blue-arrow");
|
||||
}
|
||||
|
||||
/*---------------------------------
|
||||
Off Canvas toggler Function
|
||||
-----------------------------------*/
|
||||
const $offCanvasToggle = $(".offcanvas-toggle"),
|
||||
$offCanvas = $(".offcanvas"),
|
||||
$offCanvasOverlay = $(".offcanvas-overlay"),
|
||||
$mobileMenuToggle = $(".mobile-menu-toggle");
|
||||
$offCanvasToggle.on("click", function (e) {
|
||||
e.preventDefault();
|
||||
const $this = $(this),
|
||||
$target = $this.attr("href");
|
||||
$body.addClass("offcanvas-open");
|
||||
$($target).addClass("offcanvas-open");
|
||||
$offCanvasOverlay.fadeIn();
|
||||
if ($this.parent().hasClass("mobile-menu-toggle")) {
|
||||
$this.addClass("close");
|
||||
}
|
||||
});
|
||||
|
||||
$(".offcanvas-close, .offcanvas-overlay").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
$body.removeClass("offcanvas-open");
|
||||
$offCanvas.removeClass("offcanvas-open");
|
||||
$offCanvasOverlay.fadeOut();
|
||||
$mobileMenuToggle.find("a").removeClass("close");
|
||||
});
|
||||
|
||||
/*----------------------------------
|
||||
Off Canvas Menu
|
||||
-----------------------------------*/
|
||||
function mobileOffCanvasMenu() {
|
||||
var $offCanvasNav = $(".offcanvas-menu, .overlay-menu"),
|
||||
$offCanvasNavSubMenu = $offCanvasNav.find(".offcanvas-submenu");
|
||||
|
||||
/*Add Toggle Button With Off Canvas Sub Menu*/
|
||||
$offCanvasNavSubMenu.parent().prepend('<span class="menu-expand"></span>');
|
||||
|
||||
/*Category Sub Menu Toggle*/
|
||||
$offCanvasNav.on("click", "li a, .menu-expand", function (e) {
|
||||
var $this = $(this);
|
||||
if ($this.attr("href") === "#" || $this.hasClass("menu-expand")) {
|
||||
e.preventDefault();
|
||||
if ($this.siblings("ul:visible").length) {
|
||||
$this.parent("li").removeClass("active");
|
||||
$this.siblings("ul").slideUp();
|
||||
$this.parent("li").find("li").removeClass("active");
|
||||
$this.parent("li").find("ul:visible").slideUp();
|
||||
} else {
|
||||
$this.parent("li").addClass("active");
|
||||
$this
|
||||
.closest("li")
|
||||
.siblings("li")
|
||||
.removeClass("active")
|
||||
.find("li")
|
||||
.removeClass("active");
|
||||
$this.closest("li").siblings("li").find("ul:visible").slideUp();
|
||||
$this.siblings("ul").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
mobileOffCanvasMenu();
|
||||
|
||||
$(".close").on("click", function () {
|
||||
$("body").removeClass("open");
|
||||
});
|
||||
|
||||
$("#custom-selects").on("change", function (e) {
|
||||
let userCurrency = localStorage.getItem("defaultCurrency");
|
||||
let selectedCurrency = localStorage.getItem("currentCurrency");
|
||||
|
||||
localStorage.setItem("currentCurrency", e.target.value.toUpperCase());
|
||||
// updatePrices(previousCurrency, e.target.value.toUpperCase());
|
||||
updatePrices(selectedCurrency, e.target.value.toUpperCase());
|
||||
|
||||
updatePrices(rates[usercurency]);
|
||||
});
|
||||
|
||||
// api calling for currrent location finding
|
||||
|
||||
let localCurrency;
|
||||
|
||||
async function myCurrency() {
|
||||
let country;
|
||||
const key = "b3de4pl6nvcq5gvr";
|
||||
|
||||
let url = `https://api.ipregistry.co/?key=${key}&fields=currency,location.country.name,location.continent.name`;
|
||||
|
||||
const response = await fetch(url);
|
||||
|
||||
var data = await response.json();
|
||||
console.log(data);
|
||||
country = data.currency.code;
|
||||
let country_codes = ["INR", "USD", "EUR", "GBP"];
|
||||
if (!country_codes.includes(country)) {
|
||||
country = "USD";
|
||||
}
|
||||
return country;
|
||||
}
|
||||
if (localStorage.getItem("defaultCurrency") == "undefined") {
|
||||
currency();
|
||||
}
|
||||
|
||||
let selectedCurrency = localStorage.getItem("currentCurrency");
|
||||
let regionalCurrency = localStorage.getItem("defaultCurrency");
|
||||
|
||||
let userCurrency = $("#custom-selects").val();
|
||||
let originalCurrency = "INR";
|
||||
|
||||
async function currency() {
|
||||
localCurrency = await myCurrency();
|
||||
// if (!country_codes.includes(localCurrency)) {
|
||||
// localCurrency = "USD";
|
||||
// }
|
||||
let currency = localStorage.getItem("defaultCurrency");
|
||||
console.log(localCurrency);
|
||||
if ((currency = "undefined")) {
|
||||
localStorage.setItem("defaultCurrency", localCurrency);
|
||||
localStorage.setItem("currentCurrency", localCurrency);
|
||||
$("#custom-selects").val(localCurrency.toLowerCase());
|
||||
} else {
|
||||
let uc = localStorage.getItem("currency");
|
||||
localStorage.setItem("currency", uc);
|
||||
}
|
||||
if (regionalCurrency != selectedCurrency) {
|
||||
updatePrices(originalCurrency, selectedCurrency);
|
||||
} else if (localCurrency != originalCurrency) {
|
||||
updatePrices(originalCurrency, localCurrency);
|
||||
}
|
||||
}
|
||||
|
||||
function updateAllPrices() {
|
||||
function selectChange() {
|
||||
$("#custom-selects").val(selectedCurrency.toLowerCase());
|
||||
if (userCurrency == "undefined") {
|
||||
$("#custom-selects").val(regionalCurrency.toLowerCase());
|
||||
}
|
||||
}
|
||||
selectChange();
|
||||
if (originalCurrency != selectedCurrency) {
|
||||
changeCurrency = $("#custom-selects").val();
|
||||
updatePrices(originalCurrency, changeCurrency.toUpperCase());
|
||||
}
|
||||
}
|
||||
updateAllPrices();
|
||||
});
|
||||
// $(".fade").addClass
|
||||
@@ -0,0 +1,657 @@
|
||||
$(document).ready(function () {
|
||||
let navbarHtml = `
|
||||
<!-- offcanvas-overlay start -->
|
||||
<div class="offcanvas-overlay"></div>
|
||||
<!-- offcanvas-overlay end -->
|
||||
<!-- offcanvas-mobile-menu start -->
|
||||
<div id="offcanvas-mobile-menu" class="offcanvas theme1 offcanvas-mobile-menu ">
|
||||
<div class="inner">
|
||||
<div class="d-flex ">
|
||||
<div class="inner-img d-flex ml-15">
|
||||
<img src="./assets/img/logo/logo-black.png" class="img-fluid " alt="anwi-logo">
|
||||
</div>
|
||||
<div class=" pt-3 pr-10 ms-auto ">
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="offcanvas-menu">
|
||||
<ul>
|
||||
<li class="home-text">
|
||||
<a class="home-text1" href="index.html"><span class="menu-text ">Home</span></a>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="products.html"><span class="menu-text">Products</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Servers</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="surpass3u.html"><span class="menu-text">American Pass</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="surpass2u.html"><span class="menu-text">Coyote Pass</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="surpass1u.html"><span class="menu-text">North Pass</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Storage</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="24-bay-storage.html"><span class="menu-text">24 Bay Storage</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="network-switches.html"><span class="menu-text">Network Switches</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li><a href="400g-data.html">400G</a></li>
|
||||
<li>
|
||||
<a href="#"><span class="menu-text">100G</span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="100g-port1.html">100G1</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="100g-port2.html">100G2</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="100g-port3.html">100g3</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="40g-data.html">40G</a></li>
|
||||
<li><a href="25g-data.html">25G</a></li>
|
||||
<li><a href="10g-data.html">10G</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Network Cards/Cables </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="network-card-700series.html"><span class="menu-text">700 Series</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="network-card-800series.html"><span class="menu-text">800 Series</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Routers </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="routers.html"><span class="menu-text">COR580</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Firewalls </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="firewalls.html"><span class="menu-text">Netgate 7100 1U</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Smart Racks </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="racks.html"><span class="menu-text">Computer Racks</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" ><span class="menu-text">Management Units </span></a>
|
||||
<ul class="offcanvas-submenu">
|
||||
<li>
|
||||
<a href="management-units.html"><span class="menu-text">IMOU Unit</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="about.html"><span class="menu-text">About US</span></a>
|
||||
</li>
|
||||
<li class="shop-text">
|
||||
<a class="shop-text1" href="contact-us.html"><span class="menu-text">Contact</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="offcanvas-social py-30">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"><i class="icon-social-facebook"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-social-twitter"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-social-instagram"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-social-google"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="icon-social-instagram"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- offcanvas-mobile-menu end -->
|
||||
<!-- OffCanvas Wishlist Start -->
|
||||
<div id="offcanvas-wishlist" class="offcanvas offcanvas-wishlist theme1">
|
||||
<div class="inner">
|
||||
<div class="head d-flex flex-wrap justify-content-between">
|
||||
<span class="title">Wishlist</span>
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
<ul class="minicart-product-list">
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/4.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>orginal Age Defying Cosmetics Makeup</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$100.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/5.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>On Trend Makeup and Beauty Cosmetics</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$35.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="single-product.html" class="image"
|
||||
><img src="./assets/img/mini-cart/6.png" alt="Cart product Image"
|
||||
/></a>
|
||||
<div class="content">
|
||||
<a href="single-product.html" class="title"
|
||||
>orginal Age Defying Cosmetics Makeup</a
|
||||
>
|
||||
<span class="quantity-price"
|
||||
>1 x <span class="amount">$9.00</span></span
|
||||
>
|
||||
<a href="#" class="remove">×</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a
|
||||
href="wishlist.html"
|
||||
class="btn btn-primary btn--lg d-block d-sm-inline-block mt-30"
|
||||
>view wishlist</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<!-- OffCanvas Wishlist End -->
|
||||
|
||||
<!-- OffCanvas Cart Start -->
|
||||
<div id="offcanvas-cart" class="offcanvas offcanvas-cart theme1">
|
||||
<div class="inner">
|
||||
<div class="head d-flex flex-wrap justify-content-between">
|
||||
<span class="title">Cart</span>
|
||||
<button class="offcanvas-close">×</button>
|
||||
</div>
|
||||
<div id="side-cart">
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-5">
|
||||
<a href="cart.html" class="btn btn-secondary btn--lg d-block d-sm-inline-block me-sm-2 side-cart-btn" >view cart</a>
|
||||
<a href="checkout.html" class="btn btn-dark btn--lg d-block d-sm-inline-block mt-4 mt-sm-0 side-cart-btn" >checkout</a>
|
||||
<p class="minicart-message">Free Shipping on All Orders Over $100!</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- OffCanvas Cart End -->
|
||||
|
||||
<!-- header start -->
|
||||
<header>
|
||||
<!-- header-middle satrt -->
|
||||
<div id="sticky" class="header-middle theme1 py-lg-0 main-index product-info-page">
|
||||
<div class="container position-relative headers">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-6 col-lg-2 col-xl-2 mt-0">
|
||||
<div class="logo">
|
||||
<a href="index.html"
|
||||
><img class="main-logo img-fluid " src="./assets/img/logo/logo-white.png" alt="anwi-logo"
|
||||
/></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-10 col-lg-10 d-none d-lg-block">
|
||||
<ul class="main-menu d-flex justify-content-right">
|
||||
<li class="ml-0 highlight">
|
||||
<a href="index.html" class="ps-0 main-nav-list"><span class="active cool-link">Home</span></a>
|
||||
</li>
|
||||
<li class="position-static highlight">
|
||||
<div class="nav-products main-nav-list"><span class="active cool-link">Products</span> <i class="ion-ios-arrow-down"></i></div>
|
||||
<div class="mega-menu row">
|
||||
<div class="container nav-mega-menu">
|
||||
<ul id="tabs-nav" class=" nav-menu-category">
|
||||
<li data-role="thumb-1" class="nav-menu-category1 active py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>SERVERS</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-1" class="menu-sections">
|
||||
<!-- <button class="close-btn">×</button> -->
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class= "d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Servers</h4></div> <div><a href="products.html" class= "view-all">view all</a> </div> </div>
|
||||
<div class=" mx-5 border-bottom row">
|
||||
<a href="surpass3u.html" class="col-md-4 d-flex py-5 nav-product">
|
||||
<img src="./assets/img/servers/american-pass-fv.png" class="mega-nav-img">
|
||||
<div class="sub-nav-list">American Pass</div>
|
||||
</a>
|
||||
<a href="surpass2u.html" class="col-md-4 d-flex py-5 nav-product">
|
||||
<img src="./assets/img/servers/creek-pass-fv.png" class="mega-nav-img">
|
||||
<div class="sub-nav-list">Coyote Pass</div>
|
||||
</a>
|
||||
<a href="surpass1u.html" class="col-md-4 d-flex py-5 nav-product">
|
||||
<img src="./assets/img/servers/creek-pass-fv.png" class="mega-nav-img">
|
||||
<div class="sub-nav-list">North Pass</div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- servers-end -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>STORAGE</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Storage</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="24-bay-storage.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/storage/24-bay-storage.png" class="mega-nav-img switches router">
|
||||
<div class="sub-nav-list">24 Bay Storage </div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- storage-end -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class=" nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Network Switches</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Network Switches</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="10g-data.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/10g.png" class="mega-nav-img switches">
|
||||
<div >10G-Switch</div>
|
||||
</a>
|
||||
|
||||
<a href="25g-data.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/25g.png" class="mega-nav-img switches">
|
||||
<div >25G-Switch</div>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="40g-data.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/40g.png" class="mega-nav-img switches">
|
||||
<div >40G-Switch</div>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="100g-port1.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/100g1.png" class="mega-nav-img switches">
|
||||
<div >100G-1 Switch</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="row mt-5 mx-5 border-bottom">
|
||||
<a href="100g-port2.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/100g2.png" class="mega-nav-img switches">
|
||||
<div href="100g-port2.html" >100G-2 Switch</div>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="100g-port3.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/100g3.png" class="mega-nav-img switches">
|
||||
<div >100G-3 Switch</div>
|
||||
</a>
|
||||
|
||||
<a href="400g-data.html" class="col-md-3 d-flex py-5">
|
||||
<img src="./assets/img/650!450/400g.png" class="mega-nav-img switches">
|
||||
<div >400G Switch</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- switches-end -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Network Cards/Cables</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections">
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Network Cards</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="network-card-700series.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/650!450/700-series.png" class="mega-nav-img switches">
|
||||
<div class="sub-nav-list">Anwi Ethernet Network Adapter XXV710</div>
|
||||
</a>
|
||||
<a href="network-card-800series.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/650!450/800-series.png" class="mega-nav-img switches">
|
||||
<div class="sub-nav-list">Anwi Ethernet 800 Series Network Adapters</div>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
<!-- network-cards / cables end -->
|
||||
|
||||
<!---Routers start -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Routers</b><span><i class="arrow-nav-img2 fa fa-chevron-right"></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Routers</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="routers.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/650!450/700-series.png" class="mega-nav-img switches">
|
||||
<div class="sub-nav-list">Routers</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Routers end -->
|
||||
|
||||
<!---Firewalls start -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Firewalls</b><span><i class="arrow-nav-img2 fa fa-chevron-right"></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Firewalls</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="firewall.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/firewall/firewall3.png" class="mega-nav-img switches">
|
||||
<div >Netgate 7100 1U</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Firewalls end -->
|
||||
|
||||
<!---Smart Racks start -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Smart Racks</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Smart Racks</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="racks.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/firewall/firewall3.png" class="mega-nav-img switches">
|
||||
<div >Computer Racks</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Smart Racks end -->
|
||||
|
||||
<!---Management Units start -->
|
||||
<ul class=" nav-menu-category">
|
||||
<li data-role="thumb-2" class="nav-menu-category1 py-3">
|
||||
<a href="#" class="sub-category d-flex justify-content-between w-75 px-2 py-1"><b>Management Units</b><span><i class="arrow-nav-img2 fa fa-chevron-right" ></i></span></a>
|
||||
<section data-role="content-2" class="menu-sections" >
|
||||
<div class="container mt-5">
|
||||
<div class="pb-4 px-50 text-lg-start d-flex justify-content-between"><div class="d-flex"><i class="fa fa-2x fa-compass pr-10"></i> <h4>Management Units</h4></div> <div><a href="products.html" class="view-all active">view all</a> </div> </div>
|
||||
<div class="row mx-5 border-bottom">
|
||||
<a href="management-units.html" class="col-md-4 d-flex py-5">
|
||||
<img src="./assets/img/firewall/firewall3.png" class="mega-nav-img switches">
|
||||
<div >IMOU Unit</div>
|
||||
</a>
|
||||
</div>
|
||||
</div></section>
|
||||
</li></ul>
|
||||
<!---Management units end -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<li class="highlight">
|
||||
<a href="about.html" class="main-nav-list"><span class="active cool-link">About US</span></a>
|
||||
</li>
|
||||
<li class="highlight">
|
||||
<a href="contact-us.html" class="main-nav-list"><span class="active cool-link">Contact</span></a>
|
||||
</li>
|
||||
<li class="highlight currency">
|
||||
<select class="browser-default" id="custom-selects">
|
||||
<option value="inr" id="inr" selected>INR</option>
|
||||
<option value="usd" id="usd">USD</option>
|
||||
<option value="gbp" id="gbp">GBP</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6 col-lg-2 mt-0">
|
||||
<!-- search-form end -->
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<!-- static-media end -->
|
||||
<div class="mobile-menu-toggle theme1 d-lg-none">
|
||||
<a href="#offcanvas-mobile-menu" class="offcanvas-toggle">
|
||||
<svg viewBox="0 0 700 550">
|
||||
<path d="M300,220 C300,220 520,220 540,220 C740,220 640,540 520,420 C440,340 300,200 300,200" id="top" style="stroke: #fff;"></path>
|
||||
<path d="M300,320 L540,320" id="middle" style="stroke: #fff;"></path>
|
||||
<path d="M300,210 C300,210 520,210 540,210 C740,210 640,530 520,410 C440,330 300,190 300,190" id="bottom" transform="translate(480, 320) scale(1, -1) translate(-480, -318)" style="stroke: #fff;"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- header-middle end -->
|
||||
</header>
|
||||
<!-- header end -->
|
||||
`;
|
||||
$("#navbar-head").html(navbarHtml);
|
||||
|
||||
$(".nav-products").click(function () {
|
||||
$(".mega-menu").toggle();
|
||||
});
|
||||
|
||||
// all category hover
|
||||
$(".nav-menu-category1").mouseover(function () {
|
||||
$(".nav-menu-category1").find("a").removeClass("active");
|
||||
$(this).find("a").addClass("active");
|
||||
$(".menu-sections").attr("Style", "");
|
||||
});
|
||||
|
||||
// products hover
|
||||
$("a.main-nav-list").click(function () {
|
||||
$("a.main-nav-list").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
$(".nav-menu-category1.bgg .menu-sections").css("top", "1.7%");
|
||||
});
|
||||
|
||||
|
||||
$(".nav-menu-category1.active").removeClass("active");
|
||||
$(this).parents(".menu-sections").removeClass("d-none");
|
||||
$(this).parents(".menu-sections").parent().addClass("active");
|
||||
|
||||
// active-menu for navbar
|
||||
if (location.pathname != "/") {
|
||||
// Main Nav
|
||||
$("a.main-nav-list").each(function () {
|
||||
if (this.href === location.href) {
|
||||
$(this).addClass("active");
|
||||
if ($(this).parents().hasClass("highlight")) {
|
||||
$(this)
|
||||
.parents("highlight")
|
||||
.find("a.main-nav-list")
|
||||
.addClass("active");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// else if ($('body[data-page="product"]')) {
|
||||
// $(this).addClass("active");
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// active-menu for sub category
|
||||
// if (location.pathname != "/") {
|
||||
// // Main Nav
|
||||
// $(".sub-nav-list").each(function () {
|
||||
// if (this.href === location.href) {
|
||||
// $(this).addClass("active");
|
||||
// if ($(this).parents().hasClass("highlight")) {
|
||||
// $(this)
|
||||
// .parents("highlight")
|
||||
// .find("a.sub-nav-list")
|
||||
// .addClass("active");
|
||||
// $(this)
|
||||
// .parents(".nav-menu-category1")
|
||||
// .css("background", "white")
|
||||
// .addClass("bgg");
|
||||
// $(this).parents(".menu-sections").css("top", "1.7%");
|
||||
// $(this).parents('.menu-sections').parent().addClass('active');
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
// border for products
|
||||
if (location.pathname != "/") {
|
||||
$(".nav-product").each(function () {
|
||||
if (this.href === location.href) {
|
||||
$(this).addClass("border");
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------- Commons Variables ------------------------------ */
|
||||
const $window = $(window),
|
||||
$body = $("body");
|
||||
|
||||
/*-------------------------- Sticky Menu ---------------------------- */
|
||||
var initialSrc = "./assets/img/logo/logo-white.png";
|
||||
var scrollSrc = "./assets/img/logo/logo-black.png";
|
||||
|
||||
$($window).on("scroll", function () {
|
||||
var scroll = $($window).scrollTop();
|
||||
if (scroll < 150) {
|
||||
$("#sticky").removeClass("is-isticky");
|
||||
$("#sticky").addClass("main-index");
|
||||
} else {
|
||||
$("#sticky").addClass("is-isticky");
|
||||
$("#sticky").removeClass("main-index");
|
||||
}
|
||||
|
||||
var value = $(this).scrollTop();
|
||||
if ($('body').attr("data-page") != "product") {
|
||||
if (value > 100) {
|
||||
$(".main-logo").attr("src", scrollSrc);
|
||||
$(".mobile-menu-toggle.theme1 svg path").css("stroke", "#000");
|
||||
} else {
|
||||
$(".main-logo").attr("src", initialSrc);
|
||||
$(".mobile-menu-toggle.theme1 svg path").css("stroke", "#fff");
|
||||
}
|
||||
}
|
||||
});
|
||||
if ($('body').attr("data-page") == "product") {
|
||||
// console.log("working");
|
||||
$(".waves").removeClass("waves");
|
||||
$(".main-logo").attr("src", scrollSrc);
|
||||
$(".nav-products").addClass("active");
|
||||
}
|
||||
|
||||
/*---------------------------------
|
||||
Off Canvas toggler Function
|
||||
-----------------------------------*/
|
||||
const $offCanvasToggle = $(".offcanvas-toggle"),
|
||||
$offCanvas = $(".offcanvas"),
|
||||
$offCanvasOverlay = $(".offcanvas-overlay"),
|
||||
$mobileMenuToggle = $(".mobile-menu-toggle");
|
||||
$offCanvasToggle.on("click", function (e) {
|
||||
e.preventDefault();
|
||||
const $this = $(this),
|
||||
$target = $this.attr("href");
|
||||
$body.addClass("offcanvas-open");
|
||||
$($target).addClass("offcanvas-open");
|
||||
$offCanvasOverlay.fadeIn();
|
||||
if ($this.parent().hasClass("mobile-menu-toggle")) {
|
||||
$this.addClass("close");
|
||||
}
|
||||
});
|
||||
|
||||
$(".offcanvas-close, .offcanvas-overlay").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
$body.removeClass("offcanvas-open");
|
||||
$offCanvas.removeClass("offcanvas-open");
|
||||
$offCanvasOverlay.fadeOut();
|
||||
$mobileMenuToggle.find("a").removeClass("close");
|
||||
});
|
||||
|
||||
/*----------------------------------
|
||||
Off Canvas Menu
|
||||
-----------------------------------*/
|
||||
function mobileOffCanvasMenu() {
|
||||
var $offCanvasNav = $(".offcanvas-menu, .overlay-menu"),
|
||||
$offCanvasNavSubMenu = $offCanvasNav.find(".offcanvas-submenu");
|
||||
|
||||
/*Add Toggle Button With Off Canvas Sub Menu*/
|
||||
$offCanvasNavSubMenu.parent().prepend('<span class="menu-expand"></span>');
|
||||
|
||||
/*Category Sub Menu Toggle*/
|
||||
$offCanvasNav.on("click", "li a, .menu-expand", function (e) {
|
||||
var $this = $(this);
|
||||
if ($this.attr("href") === "#" || $this.hasClass("menu-expand")) {
|
||||
e.preventDefault();
|
||||
if ($this.siblings("ul:visible").length) {
|
||||
$this.parent("li").removeClass("active");
|
||||
$this.siblings("ul").slideUp();
|
||||
$this.parent("li").find("li").removeClass("active");
|
||||
$this.parent("li").find("ul:visible").slideUp();
|
||||
} else {
|
||||
$this.parent("li").addClass("active");
|
||||
$this
|
||||
.closest("li")
|
||||
.siblings("li")
|
||||
.removeClass("active")
|
||||
.find("li")
|
||||
.removeClass("active");
|
||||
$this.closest("li").siblings("li").find("ul:visible").slideUp();
|
||||
$this.siblings("ul").slideDown();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
mobileOffCanvasMenu();
|
||||
|
||||
$(".close").on("click", function () {
|
||||
$("body").removeClass("open");
|
||||
});
|
||||
|
||||
$("#custom-selects").on('change', function (e) {
|
||||
let previousCurrency = localStorage.getItem('currency');
|
||||
localStorage.setItem('currency', e.target.value.toUpperCase());
|
||||
updatePrices(previousCurrency, e.target.value.toUpperCase());
|
||||
|
||||
updatePrices(rates[usercurency]);
|
||||
})
|
||||
|
||||
|
||||
|
||||
});
|
||||
// $(".fade").addClass
|
||||
@@ -0,0 +1,465 @@
|
||||
$(function () {
|
||||
// configuration js
|
||||
const configCatgories = [
|
||||
{
|
||||
id: 1,
|
||||
title: "barebone",
|
||||
maxQty: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "processor",
|
||||
maxQty: 3,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "memory",
|
||||
maxQty: 1,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "m.2 drive",
|
||||
maxQty: 4,
|
||||
},
|
||||
];
|
||||
|
||||
const bareboneProducts = [
|
||||
{
|
||||
id: 1,
|
||||
title: `Anwi C252 Chipset - 1U - 2x SATA - 1x M.2 - Dual Anwi 1-Gigabit
|
||||
Ethernet (RJ45) - 350W Power Supply`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
];
|
||||
|
||||
const processorProducts = [
|
||||
{
|
||||
productcatid: 1,
|
||||
productcattitle: `Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2314 Processor 2.8GHz 8MB
|
||||
Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2334 Processor 3.4GHz 8MB Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `Eight-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2378 Processor 2.6GHz 16MB Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 2,
|
||||
productcattitle: `Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series with Anwi UHD P750 Graphics`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2324G Processor 3.1GHz
|
||||
8MB Cache (65W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2374G Processor 3.7GHz 8MB Cache (80W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `Six-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2356G Processor 3.2GHz 12MB Cache (80W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: `Six-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2386G Processor 3.5GHz 12MB Cache (95W)`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const memoryProducts = [
|
||||
{
|
||||
id: 1,
|
||||
title: `16GB PC4-25600 3200MHz DDR4 ECC UDIMM`,
|
||||
qty: 2,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `32GB PC4-25600 3200MHz DDR4 ECC UDIMM`,
|
||||
qty: 2,
|
||||
price: 220,
|
||||
},
|
||||
];
|
||||
|
||||
const m2driveProducts = [
|
||||
{
|
||||
productcatid: 1,
|
||||
productcattitle: `Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2314 Processor 2.8GHz 8MB
|
||||
Cache (65W)`,
|
||||
qty: 3,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2334 Processor 3.4GHz 8MB Cache (65W)`,
|
||||
qty: 2,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `Eight-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2378 Processor 2.6GHz 16MB Cache (65W)`,
|
||||
qty: 2,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 2,
|
||||
productcattitle: `Anwi DC P4801X M.2 PCIe 3.0 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `100GB Intel<sup>®</sup> Optane™ SSD DC P4801X Series M.2 PCIe 3.0 x4 NVMe
|
||||
Solid State Drive`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `200GB Intel<sup>®</sup> Optane™ SSD DC P4801X Series M.2 PCIe
|
||||
3.0 x4 NVMe Solid State Drive`,
|
||||
qty: 1,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `1.0TB Kioxia XG6 M.2 PCIe 3.1 x4 NVMe Solid State Drive`,
|
||||
qty: 1,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
productcatid: 3,
|
||||
productcattitle: `Micron 7400 PRO M.2 PCIe 4.0 x4 NVMe Solid State Drives`,
|
||||
products: [
|
||||
{
|
||||
id: 1,
|
||||
title: `480GB Micron 7400 PRO Series M.2 22x80 PCIe 4.0 x4 NVMe Solid
|
||||
State Drive`,
|
||||
qty: 1,
|
||||
price: 99,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: `960GB Micron 7400 PRO Series M.2 22x80 PCIe 4.0 x4
|
||||
NVMe Solid State Drive`,
|
||||
qty: 1,
|
||||
price: 149,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: `1.92TB Micron 7400 PRO Series M.2 22x110 PCIe 4.0 x4 NVMe Solid
|
||||
State Drive`,
|
||||
qty: 1,
|
||||
price: 269,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
//Bind Config Categories
|
||||
bindConfigurations();
|
||||
|
||||
function bindConfigurations() {
|
||||
let configCatHtml = "";
|
||||
$.each(configCatgories, function (i, cat) {
|
||||
const id = cat.id;
|
||||
let title = cat.title;
|
||||
let qty = cat.maxQty;
|
||||
let maxQtyHtml = "";
|
||||
if (title == "m.2 drive") {
|
||||
title = "m2-drive";
|
||||
}
|
||||
if (title == "m2-drive" || title == "processor") {
|
||||
let quantityHtml = "";
|
||||
if (title == "m2-drive") {
|
||||
let qtyProgressBarHtml = "";
|
||||
for (let i = 0; i < qty; i++) {
|
||||
qtyProgressBarHtml += `<span class="progress-bar progress-bar-${i}"></span>`;
|
||||
}
|
||||
quantityHtml = `<span>Quantity:</span><div class="max-qty-wrap ml-15"><div class="d-flex justify-content-between align-items-center"><div class="d-flex flex-column"><div class="qty-progress-bars d-flex align-items-center">${qtyProgressBarHtml}</div><div class="d-flex justify-content-between align-items-center mt-1"><span>Max Quantity: ${qty}</span><div><span class="selected-qty">0</span>/<span class="max-qty-span">${qty}</span></div></div></div></div></div>`;
|
||||
}
|
||||
maxQtyHtml = `<div class="text-white p-3 border-radius-custom float-lg-end d-flex align-items-center config-max-quantity">${quantityHtml}</div>`;
|
||||
}
|
||||
configCatHtml += `<div class="product-config-selector mb-20" id="config-${title}" data-maxqty='${qty}'>
|
||||
<div class="config-heading d-flex justify-content-between align-items-center">
|
||||
<h5 class="text-white p-3 border-radius-custom text-uppercase">${title}
|
||||
</h5>
|
||||
${maxQtyHtml}
|
||||
</div>
|
||||
<div class="config-content p-0"></div>
|
||||
</div>`;
|
||||
});
|
||||
$("#block-content-main").html(configCatHtml);
|
||||
bindAllConfigProducts();
|
||||
}
|
||||
|
||||
function bindAllConfigProducts() {
|
||||
bindBareboneAndMemoryProducts("barebone");
|
||||
bindBareboneAndMemoryProducts("memory");
|
||||
bindProcessorAndM2DriveProducts("processor");
|
||||
bindProcessorAndM2DriveProducts("m2-drive");
|
||||
bindEventListeners();
|
||||
}
|
||||
|
||||
function bindBareboneAndMemoryProducts(cat) {
|
||||
let productHtml = "";
|
||||
let productsArr = bareboneProducts;
|
||||
if (cat == "memory") {
|
||||
productsArr = memoryProducts;
|
||||
}
|
||||
$.each(productsArr, function (i, product) {
|
||||
productHtml += `<p class="provide-content product-item">
|
||||
<div
|
||||
class="name-of-config card-body row justify-content-between py-1 align-items-center config-product-item" data-id='${product.id}' data-cat='${cat}' data-price='${product.price}'>
|
||||
<div class="form-check mt-2 col-lg-7" id="form-check">
|
||||
<input class="form-check-input product-radio-btn" type="radio" name="radio-btns"
|
||||
value="${product.title}" for="Radio-btn-${i}" >
|
||||
<b>${product.title}</b>
|
||||
</label>
|
||||
</div>
|
||||
<div class="btn-group config-quantity-btn text-black col-lg-2">
|
||||
<select class="form-select fw-bold qty-selector">`;
|
||||
for (let i = 1; i <= product.qty; i++) {
|
||||
productHtml += `<option value="${i}">Qty: ${i}</option>`;
|
||||
}
|
||||
productHtml += `</select>
|
||||
</div>
|
||||
<div class="config-pricing col-lg-2">
|
||||
<span class="config-price-span p-2 border-radius-custom"><span class="total-price-amount">${product.price}</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</p>`;
|
||||
});
|
||||
$(`#config-${cat} .config-content`).html(productHtml);
|
||||
}
|
||||
|
||||
function bindProcessorAndM2DriveProducts(cat) {
|
||||
let productCatHtml = "";
|
||||
let productsArr = processorProducts;
|
||||
let accordion = "processorProductAccordion";
|
||||
let collapse = "processorProductcollapse";
|
||||
if (cat == "m2-drive") {
|
||||
productsArr = m2driveProducts;
|
||||
accordion = "m2DriveProductAccordion";
|
||||
collapse = "m2DriveProductcollapse";
|
||||
}
|
||||
$.each(productsArr, function (i, productcat) {
|
||||
const productcatid = productcat.productcatid;
|
||||
const productcattitle = productcat.productcattitle;
|
||||
productCatHtml += `<div class="accordion mt-4 border-radius-custom" id="${accordion}-${productcatid}">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" style="color:#4e4c7d; background-color: #e7e9f4;"
|
||||
type="button" data-bs-toggle="collapse" data-bs-target="#${collapse}-${productcatid}"
|
||||
aria-expanded="true" aria-controls="${collapse}-${productcatid}">
|
||||
<strong>${productcattitle}</strong>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="${collapse}-${productcatid}" class="accordion-collapse collapse show" data-bs-parent="#${accordion}-${productcatid}">
|
||||
<div class="accordion-body">`;
|
||||
let productHtml = "";
|
||||
|
||||
$.each(productcat.products, function (i, product) {
|
||||
productHtml += `
|
||||
<div class="name-of-config row justify-content-between py-1 align-items-center config-product-item" data-id='${
|
||||
product.id
|
||||
}' data-cat='${cat}' data-price='${
|
||||
product.price
|
||||
}' data-productcatid='${productcatid}'>
|
||||
<div class="form-check mt-2 col-lg-7" id="form-check">
|
||||
${appendProcessorAndM2DriveInput(cat, i, product.title)}
|
||||
</div>
|
||||
<div class="btn-group config-quantity-btn text-black col-lg-2">
|
||||
<select class="form-select fw-bold qty-selector">`;
|
||||
for (let i = 1; i <= product.qty; i++) {
|
||||
productHtml += `<option value="${i}">Qty: ${i}</option>`;
|
||||
}
|
||||
productHtml += `</select>
|
||||
</div>
|
||||
<div class="config-pricing col-lg-2">
|
||||
<span class="config-price-span p-2 border-radius-custom"><span class="processor-total-price total-price-amount"> ${product.price} </span> </span>
|
||||
</div>
|
||||
</div>`;
|
||||
});
|
||||
productCatHtml += productHtml;
|
||||
productCatHtml += `</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
});
|
||||
$(`#config-${cat} .config-content`).html(productCatHtml);
|
||||
}
|
||||
|
||||
function appendProcessorAndM2DriveInput(cat, id, title) {
|
||||
if (cat == "m2-drive") {
|
||||
return `<input class="form-check-input product-check-btn" type="checkbox" name="m2Drive-check-btns"
|
||||
id="Check-btn-${id}" value="${title}" >
|
||||
<label class="form-check-label" for="Check-btn-${id}">
|
||||
<strong>${title}</strong>
|
||||
</label>`;
|
||||
} else {
|
||||
return `<input class="form-check-input product-radio-btn" type="radio" name="processor-radio-btns"
|
||||
id="Radio-btn${id}" value="${title}" >
|
||||
<label class="form-check-label" for="Radio-btn${id}">
|
||||
<strong>${title}</strong>
|
||||
</label>`;
|
||||
}
|
||||
}
|
||||
|
||||
function bindEventListeners() {
|
||||
$(".product-radio-btn").click(function (e) {
|
||||
const radioEl = $(this);
|
||||
const parentEl = radioEl.parents(".config-product-item");
|
||||
const val = radioEl.val();
|
||||
const productCatId = parentEl.data("productcatid");
|
||||
const price = parentEl.data("price");
|
||||
const cat = parentEl.data("cat");
|
||||
const qty = parentEl.find(".qty-selector").val();
|
||||
const id = parentEl.data("id");
|
||||
const maxQty = $(`#config-${cat}`).data("maxqty");
|
||||
$(`#config-${cat}`).find(".config-price-span").removeClass("active");
|
||||
parentEl.find(".config-price-span").addClass("active");
|
||||
bindSelectedProduct(cat, val, qty, price, id, maxQty, productCatId);
|
||||
updateItemsCount();
|
||||
updateTotalCartPrice();
|
||||
});
|
||||
|
||||
$(".qty-selector").change(function () {
|
||||
const selectEl = $(this);
|
||||
const parentEl = selectEl.parents(".config-product-item");
|
||||
const val = selectEl.val();
|
||||
const price = parentEl.data("price");
|
||||
const cat = parentEl.data("cat");
|
||||
const id = parentEl.data("id");
|
||||
if (!parentEl.find("input").is(":checked")) {
|
||||
parentEl.find("input").trigger("click");
|
||||
parentEl.find(".config-price-span").addClass("active");
|
||||
}
|
||||
const selecedSummaryProduct = $(`.${cat}-cart-product-${id}`);
|
||||
selecedSummaryProduct.find(".summary-total-qty .qty-span").text(val);
|
||||
selecedSummaryProduct.find(".price-span").text(price * val);
|
||||
updateTotalCartPrice();
|
||||
});
|
||||
|
||||
$(".product-check-btn").click(function () {
|
||||
const checkEl = $(this);
|
||||
const parentEl = checkEl.parents(".config-product-item");
|
||||
const val = checkEl.val();
|
||||
const productCatId = parentEl.data("productcatid");
|
||||
const price = parentEl.data("price");
|
||||
const cat = parentEl.data("cat");
|
||||
const qty = parentEl.find(".qty-selector").val();
|
||||
const id = parentEl.data("id");
|
||||
const maxQty = $(`#config-${cat}`).data("maxqty");
|
||||
if ($(".product-check-btn:checked").length > maxQty) {
|
||||
alert("Max limit reached");
|
||||
return false;
|
||||
} else {
|
||||
parentEl.find(".config-price-span").toggleClass("active");
|
||||
bindSelectedProduct(cat, val, qty, price, id, maxQty, productCatId);
|
||||
updateItemsCount();
|
||||
updateTotalCartPrice();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function bindSelectedProduct(
|
||||
cat,
|
||||
val,
|
||||
qty,
|
||||
price,
|
||||
id,
|
||||
maxQty,
|
||||
productCatId = ""
|
||||
) {
|
||||
const summaryProductHtml = `<li class="w-100 my-1 d-flex align-items-center cart-product-item ${cat}-cart-product-${id}" data-productcatid='${productCatId}'><span class="summary-total-qty"><span class="qty-span">${qty}</span><i class="fa fa-times"></i></span>
|
||||
<div class="flex-grow-1 d-flex align-items-center"><span class="summary-product-val mr-2">${val}</span>
|
||||
<span class="order-price price-span ml-auto">${price}</span></div>
|
||||
</li>`;
|
||||
|
||||
if (cat == "m2-drive") {
|
||||
let checkedCount = $(".product-check-btn:checked").length;
|
||||
if (
|
||||
$(`.m2-drive-cart-product-${id}[data-productcatid = "${productCatId}"]`)
|
||||
.length
|
||||
) {
|
||||
$(
|
||||
`.m2-drive-cart-product-${id}[data-productcatid = "${productCatId}"]`
|
||||
).remove();
|
||||
$("#config-m2-drive .qty-progress-bars")
|
||||
.find(".progress-bar.active")
|
||||
.last()
|
||||
.removeClass("active");
|
||||
$("#config-m2-drive .max-qty-wrap")
|
||||
.find(".selected-qty")
|
||||
.text(checkedCount);
|
||||
} else {
|
||||
$("#config-m2-drive .qty-progress-bars")
|
||||
.find(".progress-bar")
|
||||
.not(".active")
|
||||
.first()
|
||||
.addClass("active");
|
||||
$("#config-m2-drive .max-qty-wrap")
|
||||
.find(".selected-qty")
|
||||
.text(checkedCount);
|
||||
$(`#${cat}-summary .summary-list`).append(summaryProductHtml);
|
||||
}
|
||||
} else {
|
||||
$(`#${cat}-summary .summary-list`).html(summaryProductHtml);
|
||||
}
|
||||
if ($(`#${cat}-summary .summary-list li`).length) {
|
||||
$(`#${cat}-summary`).removeClass("d-none");
|
||||
} else {
|
||||
$(`#${cat}-summary`).addClass("d-none");
|
||||
}
|
||||
}
|
||||
|
||||
function updateItemsCount() {
|
||||
const cartProductCount = $(
|
||||
"#productOrderSummary .cart-product-item"
|
||||
).length;
|
||||
$(".summery-head #items-count").text(cartProductCount);
|
||||
}
|
||||
|
||||
function updateTotalCartPrice() {
|
||||
let totalPrice = 0;
|
||||
$("#productOrderSummary .cart-product-item")
|
||||
.find(".price-span")
|
||||
.each(function (i, e) {
|
||||
totalPrice += Number($(e).text().trim());
|
||||
});
|
||||
$("#productOrderSummary #total-amount").text(totalPrice);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
$(function() {
|
||||
|
||||
// Get the form.
|
||||
var form = $('#contact-form');
|
||||
|
||||
// Get the messages div.
|
||||
var formMessages = $('.form-message');
|
||||
|
||||
// Set up an event listener for the contact form.
|
||||
$(form).submit(function(e) {
|
||||
// Stop the browser from submitting the form.
|
||||
e.preventDefault();
|
||||
|
||||
// Serialize the form data.
|
||||
var formData = $(form).serialize();
|
||||
|
||||
// Submit the form using AJAX.
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: $(form).attr('action'),
|
||||
data: formData
|
||||
})
|
||||
.done(function(response) {
|
||||
// Make sure that the formMessages div has the 'success' class.
|
||||
$(formMessages).removeClass('error');
|
||||
$(formMessages).addClass('success');
|
||||
|
||||
// Set the message text.
|
||||
$(formMessages).text(response);
|
||||
|
||||
// Clear the form.
|
||||
$('#contact-form input,#contact-form textarea').val('');
|
||||
})
|
||||
.fail(function(data) {
|
||||
// Make sure that the formMessages div has the 'error' class.
|
||||
$(formMessages).removeClass('success');
|
||||
$(formMessages).addClass('error');
|
||||
|
||||
// Set the message text.
|
||||
if (data.responseText !== '') {
|
||||
$(formMessages).text(data.responseText);
|
||||
} else {
|
||||
$(formMessages).text('Oops! An error occured and your message could not be sent.');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/*! jQuery UI - v1.12.1 - 2016-09-14
|
||||
* http://jqueryui.com
|
||||
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
|
||||
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||
|
||||
(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var h=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=l.call(arguments,1),o=0,a=n.length;a>Line truncated
|
||||
}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();var f=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},h=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),h&&h.css(t.effects.clipToBox(r)),r.clip=a),h&&h.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,h="hide"===r,l="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),l&&(n={opacity:1},n[m]=o,a.css("opacity",0).css(m,_?2*-u:2*u).animate(n,f,g)),h&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=h?2*u:u/2;h&&(s={opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e.direction||"vertical",r="both"===a,h=r||"horizontal"===a,l=r||"vertical"===a;s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direction||"left",h="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0)/2,u[h]=l+s,a&&(n.css(u),u[h]=c+s,u.opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}var o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*v,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,l=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:r+(g?l*_:0),top:h+(g?c*v:0),opacity:g?0:1}).animate({left:r+(g?0:l*_),top:h+(g?0:c*v),opacLine truncated
|
||||
this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pendinLine truncated
|
||||
}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7))Line truncated
|
||||
},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalPageX),"x"===a.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.eleLine truncated
|
||||
},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(o).appendTo(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:functionLine truncated
|
||||
},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),h=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.valuLine truncated
|
||||
this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinnLine truncated
|
||||
@@ -0,0 +1,40 @@
|
||||
// Avoid `console` errors in browsers that lack a console.
|
||||
!function(){for(var e,n=function(){},o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],i=o.length,r=window.console=window.console||{};i--;)r[e=o[i]]||(r[e]=n)}();
|
||||
|
||||
/*!
|
||||
* The Final Countdown for jQuery v2.1.0 (http://hilios.github.io/jQuery.countdown/)
|
||||
* Copyright (c) 2015 Edson Hilios
|
||||
*/
|
||||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;g>f;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&10>m&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),1===Math.abs(b)?d:c}var f=[],g=[],h={precision:100,elapse:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",w:"weeks",d:"daysToWeek",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&0>b?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});
|
||||
|
||||
|
||||
|
||||
|
||||
// slick js
|
||||
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(fuLine truncated
|
||||
|
||||
|
||||
/*
|
||||
slick-animation.js
|
||||
|
||||
Version: 0.3.3 Beta
|
||||
Author: Marvin Hübner
|
||||
Docs: https://github.com/marvinhuebner/slick-animation
|
||||
Repo: https://github.com/marvinhuebner/slick-animation
|
||||
*/
|
||||
!function(a){a.fn.slickAnimation=function(){function n(a,n,t,i,o){o="undefined"!=typeof o?o:!1,1==n.opacity?(a.addClass(t),a.addClass(i)):(a.removeClass(t),a.removeClass(i)),o&&a.css(n)}function t(a,n){return a?1e3*a+1e3:n?1e3*n:a||n?1e3*a+1e3*n:1e3}function i(a,n,t){var i=["animation-"+n,"-webkit-animation-"+n,"-moz-animation-"+n,"-o-animation-"+n,"-ms-animation-"+n],o={}
|
||||
i.forEach(function(a){o[a]=t+"s"}),a.css(o)}var o=a(this),e=o.find(".slick-list .slick-track > div"),s=o.find('[data-slick-index="0"]'),r="animated",c={opacity:"1"},d={opacity:"0"}
|
||||
return e.each(function(){var e=a(this)
|
||||
e.find("[data-animation-in]").each(function(){var u=a(this)
|
||||
u.css(d)
|
||||
var l=u.attr("data-animation-in"),f=u.attr("data-animation-out"),h=u.attr("data-delay-in"),m=u.attr("data-duration-in"),y=u.attr("data-delay-out"),C=u.attr("data-duration-out")
|
||||
f?(s.length>0&&e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m),setTimeout(function(){n(u,d,l,r),n(u,c,f,r),y&&i(u,"delay",y),C&&i(u,"duration",C)},t(h,m))),o.on("afterChange",function(a,o,s){e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m),setTimeout(function(){n(u,d,l,r),n(u,c,f,r),y&&i(u,"delay",y),C&&i(u,"duration",C)},t(h,m)))}),o.on("beforeChange",function(a,t,i){n(u,d,f,r,!0)})):(s.length>0&&e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m)),o.on("afterChange",function(a,t,o){e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m))}),o.on("beforeChange",function(a,t,i){n(u,d,l,r,!0)}))})}),this}}(jQuery)
|
||||
|
||||
|
||||
/*!
|
||||
* scrollup v2.4.1
|
||||
* Url: http://markgoodyear.com/labs/scrollup/
|
||||
* Copyright (c) Mark Goodyear — @markgdyr — http://markgoodyear.com
|
||||
* License: MIT
|
||||
*/
|
||||
!function(l,o,e){"use strict";l.fn.scrollUp=function(o){l.data(e.body,"scrollUp")||(l.data(e.body,"scrollUp",!0),l.fn.scrollUp.init(o))},l.fn.scrollUp.init=function(r){var s,t,c,i,n,a,d,p=l.fn.scrollUp.settings=l.extend({},l.fn.scrollUp.defaults,r),f=!1;switch(d=p.scrollTrigger?l(p.scrollTrigger):l("<a/>",{id:p.scrollName,href:"#top"}),p.scrollTitle&&d.attr("title",p.scrollTitle),d.appendTo("body"),p.scrollImg||p.scrollTrigger||d.html(p.scrollText),d.css({display:"none",position:"fixed",zIndex:p.zIndex}),p.activeOverlay&&l("<div/>",{id:p.scrollName+"-active"}).css({position:"absolute",top:p.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+p.activeOverlay,zIndex:p.zIndex}).appendTo("body"),p.animation){case"fade":s="fadeIn",t="fadeOut",c=p.animationSpeed;break;case"slide":s="slideDown",t="slideUp",c=p.animationSpeed;break;default:s="show",t="hide",c=0}i="top"===p.scrollFrom?p.scrollDistance:l(e).height()-l(o).height()-p.scrollDistance,n=l(o).scroll(function(){l(o).scrollTop()>i?f||(d[s](c),f=!0):f&&(d[t](c),f=!1)}),p.scrollTarget?"number"==typeof p.scrollTarget?a=p.scrollTarget:"string"==typeof p.scrollTarget&&(a=Math.floor(l(p.scrollTarget).offset().top)):a=0,d.click(function(o){o.preventDefault(),l("html, body").animate({scrollTop:a},p.scrollSpeed,p.easingType)})},l.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},l.fn.scrollUp.destroy=function(r){l.removeData(e.body,"scrollUp"),l("#"+l.fn.scrollUp.settings.scrollName).remove(),l("#"+l.fn.scrollUp.settings.scrollName+"-active").remove(),l.fn.jquery.split(".")[1]>=7?l(o).off("scroll",r):l(o).unbind("scroll",r)},l.scrollUp=l.fn.scrollUp}(jQuery,window,document);
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
// Avoid `console` errors in browsers that lack a console.
|
||||
!function(){for(var e,n=function(){},o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],i=o.length,r=window.console=window.console||{};i--;)r[e=o[i]]||(r[e]=n)}();
|
||||
|
||||
/*!
|
||||
* The Final Countdown for jQuery v2.1.0 (http://hilios.github.io/jQuery.countdown/)
|
||||
* Copyright (c) 2015 Edson Hilios
|
||||
*/
|
||||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;g>f;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&10>m&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),1===Math.abs(b)?d:c}var f=[],g=[],h={precision:100,elapse:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",w:"weeks",d:"daysToWeek",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&0>b?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});
|
||||
|
||||
|
||||
|
||||
|
||||
// slick js
|
||||
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(fuLine truncated
|
||||
|
||||
|
||||
/*
|
||||
slick-animation.js
|
||||
|
||||
Version: 0.3.3 Beta
|
||||
Author: Marvin Hübner
|
||||
Docs: https://github.com/marvinhuebner/slick-animation
|
||||
Repo: https://github.com/marvinhuebner/slick-animation
|
||||
*/
|
||||
!function(a){a.fn.slickAnimation=function(){function n(a,n,t,i,o){o="undefined"!=typeof o?o:!1,1==n.opacity?(a.addClass(t),a.addClass(i)):(a.removeClass(t),a.removeClass(i)),o&&a.css(n)}function t(a,n){return a?1e3*a+1e3:n?1e3*n:a||n?1e3*a+1e3*n:1e3}function i(a,n,t){var i=["animation-"+n,"-webkit-animation-"+n,"-moz-animation-"+n,"-o-animation-"+n,"-ms-animation-"+n],o={}
|
||||
i.forEach(function(a){o[a]=t+"s"}),a.css(o)}var o=a(this),e=o.find(".slick-list .slick-track > div"),s=o.find('[data-slick-index="0"]'),r="animated",c={opacity:"1"},d={opacity:"0"}
|
||||
return e.each(function(){var e=a(this)
|
||||
e.find("[data-animation-in]").each(function(){var u=a(this)
|
||||
u.css(d)
|
||||
var l=u.attr("data-animation-in"),f=u.attr("data-animation-out"),h=u.attr("data-delay-in"),m=u.attr("data-duration-in"),y=u.attr("data-delay-out"),C=u.attr("data-duration-out")
|
||||
f?(s.length>0&&e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m),setTimeout(function(){n(u,d,l,r),n(u,c,f,r),y&&i(u,"delay",y),C&&i(u,"duration",C)},t(h,m))),o.on("afterChange",function(a,o,s){e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m),setTimeout(function(){n(u,d,l,r),n(u,c,f,r),y&&i(u,"delay",y),C&&i(u,"duration",C)},t(h,m)))}),o.on("beforeChange",function(a,t,i){n(u,d,f,r,!0)})):(s.length>0&&e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m)),o.on("afterChange",function(a,t,o){e.hasClass("slick-current")&&(n(u,c,l,r,!0),h&&i(u,"delay",h),m&&i(u,"duration",m))}),o.on("beforeChange",function(a,t,i){n(u,d,l,r,!0)}))})}),this}}(jQuery)
|
||||
|
||||
|
||||
/*!
|
||||
* scrollup v2.4.1
|
||||
* Url: http://markgoodyear.com/labs/scrollup/
|
||||
* Copyright (c) Mark Goodyear — @markgdyr — http://markgoodyear.com
|
||||
* License: MIT
|
||||
*/
|
||||
!function(l,o,e){"use strict";l.fn.scrollUp=function(o){l.data(e.body,"scrollUp")||(l.data(e.body,"scrollUp",!0),l.fn.scrollUp.init(o))},l.fn.scrollUp.init=function(r){var s,t,c,i,n,a,d,p=l.fn.scrollUp.settings=l.extend({},l.fn.scrollUp.defaults,r),f=!1;switch(d=p.scrollTrigger?l(p.scrollTrigger):l("<a/>",{id:p.scrollName,href:"#top"}),p.scrollTitle&&d.attr("title",p.scrollTitle),d.appendTo("body"),p.scrollImg||p.scrollTrigger||d.html(p.scrollText),d.css({display:"none",position:"fixed",zIndex:p.zIndex}),p.activeOverlay&&l("<div/>",{id:p.scrollName+"-active"}).css({position:"absolute",top:p.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+p.activeOverlay,zIndex:p.zIndex}).appendTo("body"),p.animation){case"fade":s="fadeIn",t="fadeOut",c=p.animationSpeed;break;case"slide":s="slideDown",t="slideUp",c=p.animationSpeed;break;default:s="show",t="hide",c=0}i="top"===p.scrollFrom?p.scrollDistance:l(e).height()-l(o).height()-p.scrollDistance,n=l(o).scroll(function(){l(o).scrollTop()>i?f||(d[s](c),f=!0):f&&(d[t](c),f=!1)}),p.scrollTarget?"number"==typeof p.scrollTarget?a=p.scrollTarget:"string"==typeof p.scrollTarget&&(a=Math.floor(l(p.scrollTarget).offset().top)):a=0,d.click(function(o){o.preventDefault(),l("html, body").animate({scrollTop:a},p.scrollSpeed,p.easingType)})},l.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},l.fn.scrollUp.destroy=function(r){l.removeData(e.body,"scrollUp"),l("#"+l.fn.scrollUp.settings.scrollName).remove(),l("#"+l.fn.scrollUp.settings.scrollName+"-active").remove(),l.fn.jquery.split(".")[1]>=7?l(o).off("scroll",r):l(o).unbind("scroll",r)},l.scrollUp=l.fn.scrollUp}(jQuery,window,document);
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
const ele = document.querySelector('.scroll-400g');
|
||||
const ele1 = document.querySelector('.scroll-100g');
|
||||
const ele2 = document.querySelector('.scroll-40g');
|
||||
const ele3 = document.querySelector('.scroll-25g');
|
||||
const ele4 = document.querySelector('.scroll-10g');
|
||||
$('.data-400g').click(function() {
|
||||
ele.scrollIntoView();
|
||||
});
|
||||
$('.data-100g').click(function() {
|
||||
ele1.scrollIntoView();
|
||||
});
|
||||
$('.data-40g').click(function() {
|
||||
ele2.scrollIntoView();
|
||||
});
|
||||
$('.data-25g').click(function() {
|
||||
ele3.scrollIntoView();
|
||||
});
|
||||
$('.data-10g').click(function() {
|
||||
ele4.scrollIntoView();
|
||||
});
|
||||
|
||||
//Adding product to cart
|
||||
|
||||
|
||||
item_count()
|
||||
|
||||
})
|
||||
|
||||
function single_cart(issinglecart,e){
|
||||
|
||||
let img,title,price
|
||||
|
||||
if(issinglecart){
|
||||
img= $($(e)[0].currentTarget).parents("#singlecart").find("img").attr("src");
|
||||
title=$($(e)[0].currentTarget).parents("#singlecart").find(".title").text();
|
||||
price=$($(e)[0].currentTarget).parents("#singlecart").find(".single_cart_price").text();
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
img=$($(e)[0].currentTarget).parents(".card-body").find("img").attr("src");
|
||||
title=$($(e)[0].currentTarget).parents(".card-body").find(".title").text();
|
||||
price=$($(e)[0].currentTarget).parents(".card-body").find(".product-price").text();
|
||||
|
||||
let cart = $("#cart-product-list");
|
||||
let imgtodrag = $($(e)[0].currentTarget).parents(".card-body").find("img").eq(0);
|
||||
console.log(imgtodrag)
|
||||
if (imgtodrag) {
|
||||
let imgclone = imgtodrag.clone().offset({
|
||||
top: imgtodrag.offset().top,
|
||||
left: imgtodrag.offset().left
|
||||
})
|
||||
.css({
|
||||
opacity: "0.5",
|
||||
position: "absolute",
|
||||
height: "50px",
|
||||
width: "50px",
|
||||
"z-index": "1000",
|
||||
"border-radius":"35px",
|
||||
"transition":".9s"
|
||||
})
|
||||
.appendTo($("body"))
|
||||
.animate({
|
||||
top: cart.offset().top + 10,
|
||||
left: cart.offset().left + 10,
|
||||
width: 75,
|
||||
height: 75
|
||||
},
|
||||
1200,
|
||||
"easeInOutExpo"
|
||||
);
|
||||
|
||||
imgclone.animate({
|
||||
width: 0,
|
||||
height: 0
|
||||
},
|
||||
function() {
|
||||
$(this).detach();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let items =[]
|
||||
if( JSON.parse(localStorage.getItem('item'))){
|
||||
|
||||
|
||||
var storeditems = JSON.parse(localStorage.getItem('item'))
|
||||
// console.log(storeditems)
|
||||
items = [...storeditems]
|
||||
if(storeditems.length > 0){
|
||||
items[storeditems.length] = {img,title,price}
|
||||
}
|
||||
else{
|
||||
items[0] = {img,title,price}
|
||||
}
|
||||
}else{
|
||||
items[0] = {img,title,price}
|
||||
}
|
||||
localStorage.setItem('item',JSON.stringify(items))
|
||||
item_count()
|
||||
|
||||
|
||||
}
|
||||
function item_count(e){
|
||||
let res= JSON.parse(localStorage.getItem('item'))
|
||||
$("#cart_item_count").text(res?.length);
|
||||
$("#cart_item_count1").text(res?.length);
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
let components = [
|
||||
{
|
||||
name: "BAREBONE",
|
||||
items: [
|
||||
{
|
||||
name: "Anwi C252 Chipset - 1U - 2x SATA - 1x M.2 - Dual Anwi 1-Gigabit Ethernet (RJ45 - 350W Power Supply",
|
||||
price: 99,
|
||||
quantity: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "PROCESSOR",
|
||||
serises: [
|
||||
{
|
||||
name: "Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series",
|
||||
|
||||
items: [
|
||||
{
|
||||
name: "Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2314 Processor 2.8GHz 8MB Cache (65W)",
|
||||
price: 99,
|
||||
quantity: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Intel<sup>®</sup> Xeon<sup>®</sup> E-2300 Processor Series",
|
||||
items: [
|
||||
{
|
||||
name: "Quad-Core Intel<sup>®</sup> Xeon<sup>®</sup> E-2334 Processor 3.4GHz 8MB Cache (65W)",
|
||||
price: 99,
|
||||
quantity: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Memory",
|
||||
items: [
|
||||
{
|
||||
name: "16GB PC4-25600 3200MHz DDR4 ECC UDIMM",
|
||||
price: 99,
|
||||
quantity: 1,
|
||||
},
|
||||
{
|
||||
name: "32GB PC4-25600 3200MHz DDR4 ECC UDIMM",
|
||||
price: 99,
|
||||
quantity: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
$("input:checkbox[name=driver-check-btns]")
|
||||
.unbind("change")
|
||||
.change(function () {
|
||||
if (
|
||||
$(this).prop("checked") &&
|
||||
$(this)[0].classList[0] == "form-check-input"
|
||||
) {
|
||||
let drivetext = $(this).siblings("label").children().text();
|
||||
let qty = parseInt(
|
||||
$(this).parent().parent().find(".form-select option:selected").val()
|
||||
);
|
||||
let value = $(this).parent().parent().find(".wish-list-price").text();
|
||||
let html =
|
||||
'<li class="row my-1 align-items-center"> <span class="col-md-2" id="driver-qty"></span> <span class="order-middle-left col-md-8" id="driver-name">' +
|
||||
drivetext +
|
||||
'</span><span class="order-price col-md-1"><span id="driver-price" class="price-span "> ' +
|
||||
value +
|
||||
"</span></span></li>";
|
||||
$("#m-2-drive").append(html);
|
||||
//$("#driver-name").text($(this).val());
|
||||
//$("#driver-price").text('$99.00');
|
||||
}
|
||||
$(":checkbox").on("change", function () {
|
||||
var $list = $("#m-2-drive").empty();
|
||||
var name = $(":checkbox:checked")
|
||||
.map(function () {
|
||||
var title = $(this).next("label").text();
|
||||
let value = $(this).parent().parent().find(".wish-list-price").text();
|
||||
$(
|
||||
`<li class="row my-1 align-items-center"> <span class="col-md-2" id="driver-qty"></span> <span class="order-middle-left col-md-8" id="driver-name"> ${title} </span><span class="order-price col-md-1"><span id="driver-price" class="price-span ">${value}</span></span></li>'`
|
||||
).appendTo($list);
|
||||
return title;
|
||||
})
|
||||
.get();
|
||||
console.log(name);
|
||||
});
|
||||
updateItems();
|
||||
});
|
||||
|
||||
// driver-config-section
|
||||
$(this)
|
||||
.find(".drivers-1-select")
|
||||
.on("change", function () {
|
||||
let blockInp = parseInt($(this).val());
|
||||
data.driversOne = 99 * blockInp;
|
||||
$("#driver-qty").text(blockInp + "X");
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversOne-total-price")
|
||||
.text(parseFloat(data.driversOne).toFixed(2));
|
||||
$("#driver-price").text(parseFloat(data.driversOne).toFixed(2));
|
||||
$(driversCheckBox).prop("checked", true);
|
||||
$("#driver-name").text($(driversCheckBox).val());
|
||||
$("#driver-price").text(
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversOne-total-price")
|
||||
.html()
|
||||
);
|
||||
updateItems();
|
||||
});
|
||||
$(this)
|
||||
.find(".drivers-2-select")
|
||||
.on("change", function () {
|
||||
let blockInp = parseInt($(this).val());
|
||||
data.driversTwo = 149 * blockInp;
|
||||
$("#driver-qty").text(blockInp + "X");
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversTwo-total-price")
|
||||
.text(parseFloat(data.driversTwo).toFixed(2));
|
||||
$("#driver-price").text(parseFloat(data.driversTwo).toFixed(2));
|
||||
$(driversCheckBox).prop("checked", true);
|
||||
$("#driver-name").text($(driversCheckBox).val());
|
||||
$("#driver-price").text(
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversTwo-total-price")
|
||||
.html()
|
||||
);
|
||||
updateItems();
|
||||
});
|
||||
|
||||
$(this)
|
||||
.find(".drivers-3-select")
|
||||
.on("change", function () {
|
||||
let blockInp = parseInt($(this).val());
|
||||
data.driversThree = 269 * blockInp;
|
||||
$("#driver-qty").text(blockInp + "X");
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversThree-total-price")
|
||||
.text(parseFloat(data.driversThree).toFixed(2));
|
||||
$("#driver-price").text(parseFloat(data.driversThree).toFixed(2));
|
||||
$(driversCheckBox).prop("checked", true);
|
||||
$("#driver-name").text($(driversCheckBox).val());
|
||||
$("#driver-price").text(
|
||||
$(this)
|
||||
.parent()
|
||||
.siblings(".confi-pricing")
|
||||
.find(".driversThree-total-price")
|
||||
.html()
|
||||
);
|
||||
updateItems();
|
||||
});
|
||||
$(":checkbox").on("change", function () {
|
||||
// if($('#check-btn2[type="checkbox"]').prop("checked")){ // true
|
||||
// $('#check-btn2[type="checkbox"]').prop("checked", false)
|
||||
// }else{
|
||||
// $('#check-btn2[type="checkbox"]').prop("checked", true)
|
||||
// }
|
||||
var $list = $("#m-2-drive").empty();
|
||||
var name = $(":checkbox:checked")
|
||||
.map(function () {
|
||||
var title = $(this).next("label").text();
|
||||
let value = $(this).parent().parent().find(".wish-list-price").text();
|
||||
$(
|
||||
`<li class="row my-1 align-items-center"> <span class="col-md-2" id="driver-qty"></span> <span class="order-middle-left col-md-8" id="driver-name"> ${title} </span><span class="order-price col-md-1"><span id="driver-price" class="price-span ">${value}</span></span></li>'`
|
||||
).appendTo($list);
|
||||
return title;
|
||||
})
|
||||
.get();
|
||||
console.log(name);
|
||||
});
|
||||
@@ -0,0 +1,627 @@
|
||||
// js Document
|
||||
|
||||
// Created on : 28/2/2022.
|
||||
// Theme Name : Event & Software HTML Template
|
||||
|
||||
(function ($) {
|
||||
"use strict";
|
||||
|
||||
// ------------------------ Company Logo Slider
|
||||
if ($(".companies-logo-slider").length) {
|
||||
$('.companies-logo-slider').slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 7,
|
||||
prevArrow: $('.prev'),
|
||||
nextArrow: $('.next'),
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 991,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
slidesToShow: 5
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
arrows: true,
|
||||
centerMode: true,
|
||||
slidesToShow: 2
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Company Logo Slider
|
||||
if ($(".partnerSliderTwo").length) {
|
||||
$('.partnerSliderTwo').slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
arrows: false,
|
||||
slidesToShow: 5,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
centerMode: true,
|
||||
slidesToShow: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
centerMode: true,
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
centerMode: true,
|
||||
slidesToShow: 2
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Client Feedback Slider One
|
||||
if ($(".clientSliderOne").length) {
|
||||
$('.clientSliderOne').slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 1,
|
||||
prevArrow: $('.prev_c'),
|
||||
nextArrow: $('.next_c'),
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Image Slick Slider
|
||||
if ($(".img-slick-slider").length) {
|
||||
$('.img-slick-slider').slick({
|
||||
dots: true,
|
||||
arrows: false,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 1,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ------------------------ Client Feedback Slider Two
|
||||
if ($(".clientSliderTwo").length) {
|
||||
$('.clientSliderTwo').slick({
|
||||
dots: true,
|
||||
arrows: false,
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 3,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Team Slider One
|
||||
if ($(".teamSliderOne").length) {
|
||||
$('.teamSliderOne').slick({
|
||||
dots: false,
|
||||
arrows: true,
|
||||
prevArrow: $('.prev_c'),
|
||||
nextArrow: $('.next_c'),
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 4,
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Client Feedback Slider Three
|
||||
if ($(".clientSliderThree").length) {
|
||||
$('.clientSliderThree').slick({
|
||||
dots: false,
|
||||
arrows: true,
|
||||
prevArrow: $('.prevT'),
|
||||
nextArrow: $('.nextT'),
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 3000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Client Feedback Slider Four
|
||||
if ($(".clientSliderFour").length) {
|
||||
$('.clientSliderFour').slick({
|
||||
dots: true,
|
||||
arrows: false,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 3,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 2,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Client Feedback Slider Five
|
||||
if ($(".clientSliderFive").length) {
|
||||
$('.clientSliderFive').slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 1,
|
||||
prevArrow: $('.prev_f'),
|
||||
nextArrow: $('.next_f'),
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Client Feedback Slider Six
|
||||
if ($(".clientSliderSix").length) {
|
||||
$('.clientSliderSix').slick({
|
||||
dots: true,
|
||||
arrows: false,
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 3,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 1200,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 2,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Client Feedback Slider Seven
|
||||
if ($(".clientSliderSeven").length) {
|
||||
$('.clientSliderSeven').slick({
|
||||
centerMode: true,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 1,
|
||||
prevArrow: $('.prev_cs1'),
|
||||
nextArrow: $('.next_cs1'),
|
||||
autoplay: true,
|
||||
fade: true,
|
||||
autoplaySpeed: 6000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ App Screen Preview
|
||||
if ($(".app-preview-slider-one").length) {
|
||||
$('.app-preview-slider-one').slick({
|
||||
dots: false,
|
||||
arrows: false,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
centerMode: true,
|
||||
slidesToScroll: 1,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
centerMode: false,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ App Screen Preview Two
|
||||
if ($(".app-preview-slider-two").length) {
|
||||
$('.app-preview-slider-two').slick({
|
||||
dots: false,
|
||||
arrows: false,
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 5,
|
||||
centerMode: true,
|
||||
slidesToScroll: 1,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------ Portfolio Slider One
|
||||
if ($(".portfolio_slider_one").length) {
|
||||
$('.portfolio_slider_one').slick({
|
||||
dots: false,
|
||||
arrows: true,
|
||||
prevArrow: $('.prev_case1'),
|
||||
nextArrow: $('.next_case1'),
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
centerMode: true,
|
||||
autoplaySpeed: 3000,
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Portfolio Slider Two
|
||||
if ($(".portfolio_slider_two").length) {
|
||||
$('.portfolio_slider_two').slick({
|
||||
dots: false,
|
||||
arrows: true,
|
||||
prevArrow: $('.prev_case2'),
|
||||
nextArrow: $('.next_case2'),
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
centerMode: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 768,
|
||||
settings: {
|
||||
slidesToShow: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------ Portfolio Three
|
||||
if ($(".portfolio_slider_three").length) {
|
||||
$('.portfolio_slider_three').slick({
|
||||
dots: false,
|
||||
arrows: true,
|
||||
prevArrow: $('.prev_c'),
|
||||
nextArrow: $('.next_c'),
|
||||
centerPadding: '0px',
|
||||
slidesToShow: 4,
|
||||
slidesToScroll: 1,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
responsive: [{
|
||||
breakpoint: 992,
|
||||
settings: {
|
||||
slidesToShow: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 576,
|
||||
settings: {
|
||||
slidesToShow: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
// -------------------- Remove Placeholder When Focus Or Click
|
||||
$("input,textarea").each(function () {
|
||||
$(this).data('holder', $(this).attr('placeholder'));
|
||||
$(this).on('focusin', function () {
|
||||
$(this).attr('placeholder', '');
|
||||
});
|
||||
$(this).on('focusout', function () {
|
||||
$(this).attr('placeholder', $(this).data('holder'));
|
||||
});
|
||||
});
|
||||
|
||||
// -------------------------- Doc Sidebar
|
||||
var subMenu = $(".doc-sidebar ul li.dropdown-holder>h4"),
|
||||
secSubMenu = $(".doc-sidebar .sec-menu"),
|
||||
expender = $(".doc-sidebar ul li.dropdown-holder .expander");
|
||||
subMenu.on("click", function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
subMenu.append(function () {
|
||||
return '<span class="expander"><i class="fa fa-chevron-down" aria-hidden="true"></i></span>';
|
||||
});
|
||||
|
||||
subMenu.on('click', function () {
|
||||
if ($(this).parent('li').children('ul').hasClass('show')) {
|
||||
$(this).parent('li').children('ul').removeClass('show');
|
||||
} else {
|
||||
$('.sub-menu.show').removeClass('show');
|
||||
$(this).parent('li').children('ul').addClass('show');
|
||||
};
|
||||
});
|
||||
|
||||
secSubMenu.on('click', function () {
|
||||
if ($(this).parent('li').children('ul').hasClass('open')) {
|
||||
$(this).parent('li').children('ul').removeClass('open');
|
||||
} else {
|
||||
$('.sub-menu.open').removeClass('open');
|
||||
$(this).parent('li').children('ul').addClass('open');
|
||||
};
|
||||
});
|
||||
|
||||
// -------------------------- Accordion
|
||||
var subMenu = $(".card .card-header");
|
||||
subMenu.on("click", function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
subMenu.on('click', function () {
|
||||
if ($(this).parent('.card').children('.collapse').hasClass('show')) {
|
||||
$(this).parent('.card').children('.collapse').removeClass('show');
|
||||
} else {
|
||||
$('.collapse.show').removeClass('show');
|
||||
$(this).parent('.card').children('.collapse').addClass('show');
|
||||
};
|
||||
});
|
||||
// -------------------------- scroll animate
|
||||
if ($(".main-side-nav").length) {
|
||||
$('.main-side-nav a').on('click', function () {
|
||||
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
|
||||
var target = $(this.hash);
|
||||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
||||
if (target.length) {
|
||||
$('html, body').animate({
|
||||
scrollTop: (target.offset().top - 100)
|
||||
}, 800);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// -------------------------- Mobile Nav
|
||||
if ($(".theme-main-menu").length) {
|
||||
$('.theme-main-menu .navbar-toggler').on('click', function () {
|
||||
$(".navbar-collapse").toggleClass("show");
|
||||
$(this).toggleClass("open");
|
||||
});
|
||||
$('.dropdown-menu .dropdown-toggle').on('click', function (e) {
|
||||
if (!$(this).next().hasClass('show')) {
|
||||
$(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
|
||||
}
|
||||
$(this).next(".dropdown-menu").toggleClass('show');
|
||||
return false;
|
||||
});
|
||||
}
|
||||
// ----------------------- Closes responsive menu when a scroll trigger link is clicked
|
||||
$('#one-page-nav .nav-link').on('click', function () {
|
||||
$('.navbar-collapse').removeClass('show');
|
||||
$('.navbar-toggler').removeClass("open");
|
||||
})
|
||||
|
||||
// -------------------------- Mobile Doc Side Nav
|
||||
if ($(".doc-sidebar").length) {
|
||||
$('.doc-sidebar .btn').on('click', function () {
|
||||
$(".doc-links").toggleClass("show");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// -------------------------- JS tilt Effect
|
||||
if ($(".js-tilt").length) {
|
||||
$('.js-tilt').tilt({
|
||||
glare: true,
|
||||
maxGlare: .3
|
||||
})
|
||||
}
|
||||
|
||||
// --------------------------------- Contact Form
|
||||
// init the validator
|
||||
// validator files are included in the download package
|
||||
// otherwise download from http://1000hz.github.io/bootstrap-validator
|
||||
|
||||
if ($("#contact-form").length) {
|
||||
$('#contact-form').validator();
|
||||
// when the form is submitted
|
||||
$('#contact-form').on('submit', function (e) {
|
||||
|
||||
// if the validator does not prevent form submit
|
||||
if (!e.isDefaultPrevented()) {
|
||||
var url = "inc/contact.php";
|
||||
|
||||
// POST values in the background the the script URL
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: $(this).serialize(),
|
||||
success: function (data) {
|
||||
// data = JSON object that contact.php returns
|
||||
|
||||
// we recieve the type of the message: success x danger and apply it to the
|
||||
var messageAlert = 'alert-' + data.type;
|
||||
var messageText = data.message;
|
||||
|
||||
// let's compose Bootstrap alert box HTML
|
||||
var alertBox = '<div class="alert ' + messageAlert + ' alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' + messageText + '</div>';
|
||||
|
||||
// If we have messageAlert and messageText
|
||||
if (messageAlert && messageText) {
|
||||
// inject the alert to .messages div in our form
|
||||
$('#contact-form').find('.messages').html(alertBox);
|
||||
// empty the form
|
||||
$('#contact-form')[0].reset();
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(window).on('load', function () { // makes sure the whole site is loaded
|
||||
|
||||
// -------------------- Site Preloader
|
||||
$('#ctn-preloader').fadeOut(); // will first fade out the loading animation
|
||||
$('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
|
||||
$('body').delay(350).css({
|
||||
'overflow': 'visible'
|
||||
});
|
||||
|
||||
|
||||
|
||||
// ------------------------------- AOS Animation
|
||||
if ($("[data-aos]").length) {
|
||||
AOS.init({
|
||||
duration: 1000,
|
||||
mirror: true
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------------------- Fancybox
|
||||
var fancy = $(".fancybox");
|
||||
if (fancy.length) {
|
||||
fancy.fancybox({
|
||||
arrows: true,
|
||||
buttons: [
|
||||
"zoom",
|
||||
//"share",
|
||||
"slideShow",
|
||||
//"fullScreen",
|
||||
//"download",
|
||||
"thumbs",
|
||||
"close"
|
||||
],
|
||||
animationEffect: "zoom-in-out",
|
||||
transitionEffect: "zoom-in-out",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------- AOS Animation
|
||||
if ($(".map-canvas").length) {
|
||||
var map = new google.maps.Map($(".map-canvas")[0], {
|
||||
zoom: 14,
|
||||
center: new google.maps.LatLng(40.72, -74),
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
clickableIcons: false
|
||||
});
|
||||
|
||||
var marker = new google.maps.Marker({
|
||||
map: map,
|
||||
draggable: true,
|
||||
position: new google.maps.LatLng(40.72, -74),
|
||||
visible: true
|
||||
});
|
||||
}
|
||||
|
||||
}); //End On Load Function
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"Line truncated
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! modernizr 3.7.1 (Custom Build) | MIT *
|
||||
* https://modernizr.com/download/?-cssanimations-csscolumns-customelements-flexbox-history-picture-pointerevents-postmessage-sizes-srcset-webgl-websockets-webworkers-addtest-domprefixes-hasevent-mq-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/
|
||||
!function(e,t,n){function r(e,t){return typeof e===t}function o(e){var t=b.className,n=Modernizr._config.classPrefix||"";if(S&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),S?b.className.baseVal=t:b.className=t)}function i(e,t){if("object"==typeof e)for(var n in e)E(e,n)&&i(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),s=Modernizr[r[0]];if(2===r.length&&(s=s[r[1]]),void 0!==s)return Modernizr;t="function"==typeof t?t():t,1===r.length?Modernizr[r[0]]=t:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=t),o([(t&&!1!==t?"":"no-")+r.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):S?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function a(){var e=t.body;return e||(e=s(S?"svg":"body"),e.fake=!0),e}function l(e,n,r,o){var i,l,u,f,c="modernizr",d=s("div"),p=a();if(parseInt(r,10))for(;r--;)u=s("div"),u.id=o?o[r]:c+(r+1),d.appendChild(u);return i=s("style"),i.type="text/css",i.id="s"+c,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),l=n(d,e),p.fake?(p.parentNode.removeChild(p),b.style.overflow=f,b.offsetHeight):d.parentNode.removeChild(d),!!l}function u(e,t){return!!~(""+e).indexOf(t)}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function c(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var i=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function d(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(f(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+f(t[o])+":"+r+")");return i=i.join(" or "),l("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"===c(e,null,"position")})}return n}function p(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,o,i){function a(){f&&(delete L.style,delete L.modElem)}if(i=!r(i,"undefined")&&i,!r(o,"undefined")){var l=d(e,o);if(!r(l,"undefined"))return l}for(var f,c,m,h,v,A=["modernizr","tspan","samp"];!L.style&&A.length;)f=!0,L.modElem=s(A.shift()),L.style=L.modElem.style;for(m=e.length,c=0;c<m;c++)if(h=e[c],v=L.style[h],u(h,"-")&&(h=p(h)),L.style[h]!==n){if(i||r(o,"undefined"))return a(),"pfx"!==t||h;try{L.style[h]=o}catch(e){}if(L.style[h]!==v)return a(),"pfx"!==t||h}return a(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function v(e,t,n){var o;for(var i in e)if(e[i]in t)return!1===n?e[i]:(o=t[e[i]],r(o,"function")?h(o,n||t):o);return!1}function A(e,t,n,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+z.join(s+" ")+s).split(" ");return r(t,"string")||r(t,"undefined")?m(a,t,o,i):(a=(e+" "+x.join(s+" ")+s).split(" "),v(a,t,n))}function g(e,t,r){return A(e,n,n,t,r)}var y=[],w={_version:"3.7.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){y.push({name:e,fn:t,options:n})},addAsyncTest:function(e){y.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr;var C=[],b=t.documentElement,S="svg"===b.nodeName.toLowerCase(),_="Moz O ms Webkit",x=w._config.usePrefixes?_.toLowerCase().split(" "):[];w._domPrefixes=x;var T=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=T;var E;!function(){var e={}.hasOwnProperty;E=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),w._l={},w.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},w._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){w.addTest=i});var P=function(){function e(e,r){var o;return!!e&&(r&&"string"!=typeof r||(r=s(r||"div")),e="on"+e,o=e in r,!o&&t&&(r.setAttribute||(r=s("div")),r.setAttribute(e,""),o="function"==typeof r[e],r[e]!==n&&(r[e]=n),r.removeAttribute(e)),o)}var t=!("onblur"in b);return e}();w.hasEvent=P;var k=function(){var t=e.matchMedia||e.msMatchMedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:functiLine truncated
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||
|
||||
|
||||
/*! modernizr 3.7.1 (Custom Build) | MIT *
|
||||
* https://modernizr.com/download/?-cssanimations-csscolumns-customelements-flexbox-history-picture-pointerevents-postmessage-sizes-srcset-webgl-websockets-webworkers-addtest-domprefixes-hasevent-mq-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/
|
||||
!function(e,t,n){function r(e,t){return typeof e===t}function o(e){var t=b.className,n=Modernizr._config.classPrefix||"";if(S&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),S?b.className.baseVal=t:b.className=t)}function i(e,t){if("object"==typeof e)for(var n in e)E(e,n)&&i(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),s=Modernizr[r[0]];if(2===r.length&&(s=s[r[1]]),void 0!==s)return Modernizr;t="function"==typeof t?t():t,1===r.length?Modernizr[r[0]]=t:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=t),o([(t&&!1!==t?"":"no-")+r.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):S?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function a(){var e=t.body;return e||(e=s(S?"svg":"body"),e.fake=!0),e}function l(e,n,r,o){var i,l,u,f,c="modernizr",d=s("div"),p=a();if(parseInt(r,10))for(;r--;)u=s("div"),u.id=o?o[r]:c+(r+1),d.appendChild(u);return i=s("style"),i.type="text/css",i.id="s"+c,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),l=n(d,e),p.fake?(p.parentNode.removeChild(p),b.style.overflow=f,b.offsetHeight):d.parentNode.removeChild(d),!!l}function u(e,t){return!!~(""+e).indexOf(t)}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function c(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var i=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function d(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(f(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+f(t[o])+":"+r+")");return i=i.join(" or "),l("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"===c(e,null,"position")})}return n}function p(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,o,i){function a(){f&&(delete L.style,delete L.modElem)}if(i=!r(i,"undefined")&&i,!r(o,"undefined")){var l=d(e,o);if(!r(l,"undefined"))return l}for(var f,c,m,h,v,A=["modernizr","tspan","samp"];!L.style&&A.length;)f=!0,L.modElem=s(A.shift()),L.style=L.modElem.style;for(m=e.length,c=0;c<m;c++)if(h=e[c],v=L.style[h],u(h,"-")&&(h=p(h)),L.style[h]!==n){if(i||r(o,"undefined"))return a(),"pfx"!==t||h;try{L.style[h]=o}catch(e){}if(L.style[h]!==v)return a(),"pfx"!==t||h}return a(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function v(e,t,n){var o;for(var i in e)if(e[i]in t)return!1===n?e[i]:(o=t[e[i]],r(o,"function")?h(o,n||t):o);return!1}function A(e,t,n,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+z.join(s+" ")+s).split(" ");return r(t,"string")||r(t,"undefined")?m(a,t,o,i):(a=(e+" "+x.join(s+" ")+s).split(" "),v(a,t,n))}function g(e,t,r){return A(e,n,n,t,r)}var y=[],w={_version:"3.7.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){y.push({name:e,fn:t,options:n})},addAsyncTest:function(e){y.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr;var C=[],b=t.documentElement,S="svg"===b.nodeName.toLowerCase(),_="Moz O ms Webkit",x=w._config.usePrefixes?_.toLowerCase().split(" "):[];w._domPrefixes=x;var T=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=T;var E;!function(){var e={}.hasOwnProperty;E=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),w._l={},w.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},w._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){w.addTest=i});var P=function(){function e(e,r){var o;return!!e&&(r&&"string"!=typeof r||(r=s(r||"div")),e="on"+e,o=e in r,!o&&t&&(r.setAttribute||(r=s("div")),r.setAttribute(e,""),o="function"==typeof r[e],r[e]!==n&&(r[e]=n),r.removeAttribute(e)),o)}var t=!("onblur"in b);return e}();w.hasEvent=P;var k=function(){var t=e.matchMedia||e.msMatchMedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:functiLine truncated
|
||||
|
||||
/*
|
||||
Copyright (C) Federico Zivolo 2019
|
||||
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
|
||||
*/(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+n+'Width'],10)}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.width,a=s.height||e.clientHeight||p.height,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth,10),c=parseFloat(m.borderLeftWidth,10);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop,10),y=parseFloat(m.marginLeft,10);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,r,p){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],d={top:0,left:0},l=s?E(e):a(e,i(t));if('viewport'===p)d=w(l,s);else{var f;'scrollParent'===p?(f=n(o(t)),'BODY'===f.nodeName&&(f=e.ownerDocument.documentElement)):'window'===p?f=e.ownerDocument.documentElement:f=p;var m=b(f,l,s);if('HTML'===f.nodeName&&!y(l)){var h=c(e.ownerDocument),g=h.height,u=h.width;d.top+=m.top-m.marginTop,d.bottom=g+m.top,d.left+=m.left-m.marginLeft,d.right=u+m.left}else d=m}r=r||0;var v='number'==typeof r;return d.left+=v?r:r.left||0,d.top+=v?r:r.top||0,d.right-=v?r:r.right||0,d.bottom-=v?r:r.bottom||Line truncated
|
||||
//# sourceMappingURL=popper.min.js.map
|
||||
|
||||
|
||||
|
||||
/*! jQuery UI - v1.12.1 - 2016-09-14
|
||||
* http://jqueryui.com
|
||||
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
|
||||
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
||||
|
||||
(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var h=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=l.call(arguments,1),o=0,a=n.length;a>Line truncated
|
||||
}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();var f=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},h=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),h&&h.css(t.effects.clipToBox(r)),r.clip=a),h&&h.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,h="hide"===r,l="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),l&&(n={opacity:1},n[m]=o,a.css("opacity",0).css(m,_?2*-u:2*u).animate(n,f,g)),h&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=h?2*u:u/2;h&&(s={opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e.direction||"vertical",r="both"===a,h=r||"horizontal"===a,l=r||"vertical"===a;s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direction||"left",h="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0)/2,u[h]=l+s,a&&(n.css(u),u[h]=c+s,u.opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}var o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*v,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,l=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:r+(g?l*_:0),top:h+(g?c*v:0),opacity:g?0:1}).animate({left:r+(g?0:l*_),top:h+(g?0:c*v),opacLine truncated
|
||||
this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pendinLine truncated
|
||||
}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7))Line truncated
|
||||
},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalPageX),"x"===a.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.eleLine truncated
|
||||
},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(o).appendTo(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:functionLine truncated
|
||||
},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),h=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.valuLine truncated
|
||||
this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinnLine truncated
|
||||
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
* Bootstrap v5.0.2 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},e=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#"+i.split("#")[1]),e=i&&"#"!==i?i.trim():null}return e},n=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},s=t=>{const e=i(t);return e?document.querySelector(e):null},o=t=>{t.dispatchEvent(new Event("transitionend"))},r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?t.findOne(e):null,l=(t,e,i)=>{Object.keys(i).forEach(n=>{const s=i[n],o=e[n],a=o&&r(o)?"element":null==(l=o)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)})},c=t=>!(!r(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},f=t=>t.offsetHeight,p=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},m=[],g=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=p();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{m.forEach(t=>t())}),m.push(e)):e()},b=t=>{"function"==typeof t&&t()},v=(t,e,i=!0)=>{if(!i)return void b(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const r=({target:i})=>{i===e&&(s=!0,e.removeEventListener("transitionend",r),b(t))};e.addEventListener("transitionend",r),setTimeout(()=>{s||o(e)},n)},y=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,T={};let O=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},k=/^(mouseenter|mouseleave)/i,L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function x(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function D(t){const e=x(t);return t.uidEvent=e,T[e]=T[e]||{},T[e]}function S(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function I(t,e,i){const n="string"==typeof e,s=n?i:e;let o=M(t);return L.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),k.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=I(e,i,n),l=D(t),c=l[a]||(l[a]={}),h=S(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=x(r,e.replace(w,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parLine truncated
|
||||
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||
Reference in new issue
Block a user