This commit is contained in:
2023-04-28 15:43:17 +05:30
förälder 4943d7fc15
incheckning b8d88b9cc5
24 ändrade filer med 223 tillägg och 93 borttagningar
+12 -7
Visa fil
@@ -1,10 +1,15 @@
//let SERVERNAME = 'https://anwi.bizgaze.app'; //let SERVERNAME = 'https://anwi.bizgaze.app';
let SERVERNAME = 'http://beta.bizgaze.com'; //let SERVERNAME = 'http://beta.bizgaze.com';
const STAT = 'b276960fddf84e8cb63de6e32d31529b'; let SERVERNAME = 'http://localhost:3088';
//template
const STAT = '8041f78ba55b4847bc4aacaeae9d24ef';
//live
//const STAT = '0c7ef2b000ca431290065753dfda56fe';
function imgServerNameBuild(path){ function imgServerNameBuild(path){
return `${SERVERNAME}/${path}`; return `https://appassets.bizgaze.app/${path}`;
} }
@@ -54,10 +59,10 @@ async function postAPIService(url,data={}){
url:`${SERVERNAME}/${url}`, url:`${SERVERNAME}/${url}`,
method:'post', method:'post',
data:data, data:data,
headers: { // headers: {
'Authorization': `Basic b67607dd-283e-478e-b2cf-35736e8bad69`, // 'Authorization': `Basic b67607dd-283e-478e-b2cf-35736e8bad69`,
'Content-Type': 'application/json' // 'Content-Type': 'application/json'
}, // },
} }
let response = await axios(config); let response = await axios(config);
+2
Visa fil
@@ -107,6 +107,8 @@ function initLogin() {
$('.error_msg').show(); $('.error_msg').show();
$('.error_msg .error_msg_res').html(`User doesn't exists with the email, <a href="#" class="alert-link register_sectionbtn" id="register_sectionbtn">Sign Up </a>`); $('.error_msg .error_msg_res').html(`User doesn't exists with the email, <a href="#" class="alert-link register_sectionbtn" id="register_sectionbtn">Sign Up </a>`);
$(".register_sectionbtn").click(function(){ $(".register_sectionbtn").click(function(){
$(".login_section").css("display","none"); $(".login_section").css("display","none");
$(".register_section").css("display","block"); $(".register_section").css("display","block");
$(".login_section").find("#User_Email").removeClass("is-invalid"); $(".login_section").find("#User_Email").removeClass("is-invalid");
+4 -4
Visa fil
@@ -19,10 +19,10 @@ template.innerHTML = `
.loader{ .loader{
transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out;
border:10px solid #ebebeb; border:5px solid #ebebeb;
border-bottom-color:#26B8BF; border-bottom-color:black;
width: 100px; width: 20px;
height: 100px; height: 20px;
border-radius:50%; border-radius:50%;
-webkit-font-smoothing: antialiased !important; -webkit-font-smoothing: antialiased !important;
margin:30px 0px; margin:30px 0px;
+6 -6
Visa fil
@@ -12,7 +12,7 @@ async function addressDetails() {
console.log(cookieRes); console.log(cookieRes);
const { errorMsg, isError, response } = const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService( await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}` `apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
); );
let res = JSON.parse(response.result); let res = JSON.parse(response.result);
debugger; debugger;
@@ -138,7 +138,7 @@ async function addressDetails() {
}); });
async function getCountryStateCurrency() { async function getCountryStateCurrency() {
const countryRes = await API_SERVICES_ACTIONS.getAPIService( const countryRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcountry" "apis/v4/bizgaze/integrations/anwiauth/getcountry"
); );
if (countryRes.isError) { if (countryRes.isError) {
alert("something went wrong"); alert("something went wrong");
@@ -157,7 +157,7 @@ async function addressDetails() {
} }
} }
const stateRes = await API_SERVICES_ACTIONS.getAPIService( const stateRes = await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getcities/countryid/${countryID}` `apis/v4/bizgaze/integrations/anwiauth/getcities/countryid/${countryID}`
); );
if (stateRes.isError) { if (stateRes.isError) {
@@ -186,7 +186,7 @@ async function addressDetails() {
}); });
const currencyRes = await API_SERVICES_ACTIONS.getAPIService( const currencyRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcurrencies" "apis/v4/bizgaze/integrations/anwiauth/getcurrencies"
); );
if (currencyRes.isError) { if (currencyRes.isError) {
@@ -209,7 +209,7 @@ async function addressDetails() {
async function getCountryId() { async function getCountryId() {
const countryRes = await API_SERVICES_ACTIONS.getAPIService( const countryRes = await API_SERVICES_ACTIONS.getAPIService(
"apis/v4/bizgaze/integrations/products/getcountry" "apis/v4/bizgaze/integrations/anwiauth/getcountry"
); );
if (countryRes.isError) { if (countryRes.isError) {
@@ -280,7 +280,7 @@ async function addressDetails() {
let { userId, name } = cookieRes; let { userId, name } = cookieRes;
const { errorMsg, isError, response } = const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService( await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}` `apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
); );
let resAnwi = JSON.parse(response.result); let resAnwi = JSON.parse(response.result);
console.log(resAnwi, "befores"); console.log(resAnwi, "befores");
+2 -2
Visa fil
@@ -5,7 +5,7 @@ function myProfile() {
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
console.log(cookieRes); console.log(cookieRes);
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService( const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}` `apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
); );
let res = JSON.parse(response.result); let res = JSON.parse(response.result);
debugger; debugger;
@@ -134,7 +134,7 @@ function myProfile() {
let { userId, name } = cookieRes; let { userId, name } = cookieRes;
const { errorMsg, isError, response } = const { errorMsg, isError, response } =
await API_SERVICES_ACTIONS.getAPIService( await API_SERVICES_ACTIONS.getAPIService(
`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}` `apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`
); );
let resAnwi = JSON.parse(response.result); let resAnwi = JSON.parse(response.result);
console.log(resAnwi, "previous profilesave"); console.log(resAnwi, "previous profilesave");
+1 -1
Visa fil
@@ -21,7 +21,7 @@ $('.warranty_serialNumber_submit').click(async function () {
debugger debugger
let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`; let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`;
console.log(url); console.log(url);
const STAT = `05b2f2ca510344968c65e1ebf49a5595` // const STAT = `05b2f2ca510344968c65e1ebf49a5595`
const config = { const config = {
url, url,
method: "get", method: "get",
+5 -3
Visa fil
@@ -4,16 +4,18 @@ async function bindOrderDetails() {
debugger debugger
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
let { userId} = cookieRes; let { userId} = cookieRes;
// let userId = '106631380000095'; //let userId = '106631380000048';
let port = "https://anwi.bizgaze.app"; debugger;
let port = SERVERNAME;
// let port = "http://localhost:3088"; // let port = "http://localhost:3088";
let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`; let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`;
// /apis/v4/bizgaze/integrations/products/salesorderdetailsbyorgid/phonenumber/
// https://anwi.bizgaze.app/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/{organizationid} // https://anwi.bizgaze.app/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/{organizationid}
const config = { const config = {
url, url,
method: "get", method: "get",
headers: { headers: {
'Authorization': `stat 05b2f2ca510344968c65e1ebf49a5595 `, 'Authorization': `stat ${STAT} `,
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
}; };
+5 -2
Visa fil
@@ -1,7 +1,10 @@
navINIT(); navINIT();
function navINIT() { function navINIT() {
if(!window.location.href.includes('orderconfirmation')){
loadCart(); loadCart();
}
function loadHelper(src = './dist/js/utils/helpers.js'){ function loadHelper(src = './dist/js/utils/helpers.js'){
if ($(`script[src="${src}"]`).length > 0) { if ($(`script[src="${src}"]`).length > 0) {
return new Promise((resolve) => resolve()); return new Promise((resolve) => resolve());
@@ -59,7 +62,7 @@ function navINIT() {
<nav> <nav>
<ul class="mb-0 p-0"> <ul class="mb-0 p-0">
<li><a href="./storageproducts.html" class="satoshi_font">STORAGE</a></li> <li><a href="./storageproducts.html" class="satoshi_font">STORAGE</a></li>
<li><a href="./ramproducts.html" class="satoshi_font">MEMORIES</a></li> <li><a href="./ramproducts.html" class="satoshi_font">MEMORY</a></li>
<li><a href="./support.html" class="satoshi_font">SUPPORT</a></li> <li><a href="./support.html" class="satoshi_font">SUPPORT</a></li>
<li><a href="./press.html" class="satoshi_font">PRESS</a></li> <li><a href="./press.html" class="satoshi_font">PRESS</a></li>
<li><a href="./index1.html" class="satoshi_font">COMING SOON</a></li> <li><a href="./index1.html" class="satoshi_font">COMING SOON</a></li>
@@ -75,7 +78,7 @@ function navINIT() {
</div> </div>
<div class="same-style header-cart"> <div class="same-style header-cart">
<a class="cart-active1 position-relative" href="./shopping-cart.html"><i class="fa-solid fa-cart-shopping"></i> <a class="cart-active1 position-relative" href="./shopping-cart.html"><i class="fa-solid fa-cart-shopping"></i>
<span class="position-absolute cartnumcount d-none" style="top:-15%;right:-115%">0</span> <span class="position-absolute cartnumcount d-none" >0</span>
</a> </a>
</div> </div>
</div> </div>
+3 -3
Visa fil
@@ -3,8 +3,8 @@ let current_orderSerialDate =window.localStorage.getItem('orderSerialno');
// let user_number =window.localStorage.getItem('Userphonenumber'); // let user_number =window.localStorage.getItem('Userphonenumber');
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
let { userId} = cookieRes; let { userId} = cookieRes;
// let userId = '106631380000095'; // let userId = '106631380000048';
let port = "https://anwi.bizgaze.app"; let port = SERVERNAME;
// let port = "http://localhost:3088"; // let port = "http://localhost:3088";
// let url = `${port}/apis/v4/bizgaze/integrations/products/salesorderdetailsbyphonenumber/phonenumber/${user_number}`; // let url = `${port}/apis/v4/bizgaze/integrations/products/salesorderdetailsbyphonenumber/phonenumber/${user_number}`;
let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`; let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`;
@@ -12,7 +12,7 @@ let port = "https://anwi.bizgaze.app";
url, url,
method: "get", method: "get",
headers: { headers: {
'Authorization': `stat 05b2f2ca510344968c65e1ebf49a5595 `, 'Authorization': `stat ${STAT} `,
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
}; };
+19 -1
Visa fil
@@ -13,9 +13,21 @@ function startDetails(){
let group = {}; let group = {};
let loadingActions = {
addLoader(){
$('.loadingCall').removeClass('d-none');
$('.mainContanierProduct').addClass('d-none');
},
removeLoader(){
$('.loadingCall').addClass('d-none');
$('.mainContanierProduct').removeClass('d-none');
}
}
let currentClick = null; let currentClick = null;
debugger; debugger;
if(productId){ if(productId){
loadingActions.addLoader();
updateProductId(productId); updateProductId(productId);
getProductDetails(productId); getProductDetails(productId);
appendSpecs(productId) appendSpecs(productId)
@@ -324,6 +336,7 @@ debugger;
let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`,true); let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`,true);
if(resData.isError){ if(resData.isError){
loadingActions.removeLoader();
alert(resData.errorMsg.message); alert(resData.errorMsg.message);
return; return;
} }
@@ -333,7 +346,10 @@ debugger;
res = JSON.parse(res.result); res = JSON.parse(res.result);
// console.log(res); // console.log(res);
if(!res) return; if(!res) {
loadingActions.removeLoader();
return;
};
@@ -489,7 +505,9 @@ debugger;
// } // }
$('#spec-container-details').children().slice(1).find('.specsmallcard').removeClass('specsmallcard'); $('#spec-container-details').children().slice(1).find('.specsmallcard').removeClass('specsmallcard');
addeventlisteners(); addeventlisteners();
loadingActions.removeLoader();
return; return;
// let resTwo = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/itemtagscombination/productid/${id}`); // let resTwo = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/itemtagscombination/productid/${id}`);
+23
Visa fil
@@ -80,6 +80,29 @@ debugger;
let gb = tags[tags.length-1]; let gb = tags[tags.length-1];
const [currencySymbol,amount] = getCurrencySymbol(pricelist); const [currencySymbol,amount] = getCurrencySymbol(pricelist);
let priceAmt = `${currencySymbol} ${amount}`; let priceAmt = `${currencySymbol} ${amount}`;
return `<div class="col-lg-4 col-md-6 mb-4 col-md-6 ram_card cursor-pointer">
<div class="card border bg-gray-3 rounded-3 p-1 h-100">
<img src="${img}" alt="${itemname}" class="w-100 h-100"></a>
<div class="card-body">
<h5 class="card-title satoshi_font mb-0">${itemname}</h5>
</div>
<ul class="border-0 d-flex h-100 justify-content-between px-md-3 px-4 list-group-flush p-0 text-secondary" style="list-style: none;">
<li class="border-0 py-0">
<span class="satoshi_font"> <h6>${gb}</h6> <h6>${ramTech}</h6></span>
</li>
<li class="border-0 py-0">
<span class="satoshi_font"><h6>${priceAmt}</h6></span>
</li>
</ul>
<div class="card-body text-center">
<a href="/productdetails.html?productId=${RAM_ID}#itemid=${itemid}" class="btn bg-white font-1-2 px-5 w-100">Details
</a>
</div>
</div>
</div>`;
//abhi anna design
return ` return `
<!--desktop---> <!--desktop--->
+1 -1
Visa fil
@@ -194,7 +194,7 @@ debugger;
addToCartFun(); addToCartFun();
debugger; debugger;
toasterHelper('success',"Item added to cart"); toasterHelper('success',"Item added to cart","toast-top-right");
$('#addtocart').html('Go to cart'); $('#addtocart').html('Go to cart');
}); });
+7 -7
Visa fil
@@ -130,7 +130,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
async function appendFormDetails(){ async function appendFormDetails(){
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
console.log(cookieRes); console.log(cookieRes);
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`); const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
let res = JSON.parse(response.result)[0]; let res = JSON.parse(response.result)[0];
debugger; debugger;
const {cityid, lobid,organizationname,addressline,cityname,phonenumber,zipcode,name } =res; const {cityid, lobid,organizationname,addressline,cityname,phonenumber,zipcode,name } =res;
@@ -152,7 +152,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
async function getAddressRes() { async function getAddressRes() {
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
console.log(cookieRes); console.log(cookieRes);
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`); const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
let res = JSON.parse(response.result); let res = JSON.parse(response.result);
console.log(res, 'befores'); console.log(res, 'befores');
@@ -285,7 +285,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
let { userId, name } = cookieRes; let { userId, name } = cookieRes;
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`); const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
let resAnwi = JSON.parse(response.result); let resAnwi = JSON.parse(response.result);
console.log(resAnwi, 'befores'); console.log(resAnwi, 'befores');
@@ -521,7 +521,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
} }
async function getCountryId(){ async function getCountryId(){
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcountry');; const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcountry');;
if (countryRes.isError) { if (countryRes.isError) {
alert("something went wrong"); alert("something went wrong");
@@ -564,7 +564,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
} }
async function getCountryStateCurrency() { async function getCountryStateCurrency() {
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcountry');; const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcountry');;
if (countryRes.isError) { if (countryRes.isError) {
alert("something went wrong"); alert("something went wrong");
@@ -585,7 +585,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
} }
} }
const stateRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getcities/countryid/${countryID}`); const stateRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getcities/countryid/${countryID}`);
if (stateRes.isError) { if (stateRes.isError) {
alert("something went wrong"); alert("something went wrong");
@@ -607,7 +607,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
const currencyRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcurrencies'); const currencyRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcurrencies');
if(currencyRes.isError){ if(currencyRes.isError){
alert("something went wrong"); alert("something went wrong");
+4 -4
Visa fil
@@ -38,19 +38,19 @@ function getCurrencySymbol(value=0) {
} }
} }
function toasterHelper(type,message){ function toasterHelper(type,message,align='toast-top-center'){
// toasterOpts() // toasterOpts()
debugger; debugger;
toasterOpts(); toasterOpts(align);
Command: toastr[type](message); Command: toastr[type](message);
function toasterOpts(){ function toasterOpts(align){
toastr.options = { toastr.options = {
"closeButton": true, "closeButton": true,
"debug": false, "debug": false,
"newestOnTop": true, "newestOnTop": true,
"progressBar": true, "progressBar": true,
"positionClass": "toast-top-center", "positionClass": align,
"preventDuplicates": true, "preventDuplicates": true,
"onclick": null, "onclick": null,
"showDuration": "300", "showDuration": "300",
+4 -4
Visa fil
@@ -15,11 +15,11 @@ function wattantyFunction() {
$(".error_phonenumber").addClass("d-none"); $(".error_phonenumber").addClass("d-none");
$("#Add_serial_number_inp").removeClass("border-danger"); $("#Add_serial_number_inp").removeClass("border-danger");
$("#Add_phonenumber_inp").removeClass("border-danger"); $("#Add_phonenumber_inp").removeClass("border-danger");
let port = "https://anwi.bizgaze.app"; let port = SERVERNAME;
debugger; debugger;
let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`; let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`;
console.log(url); console.log(url);
const STAT = `05b2f2ca510344968c65e1ebf49a5595`; //const STAT = `05b2f2ca510344968c65e1ebf49a5595`;
const config = { const config = {
url, url,
method: "get", method: "get",
@@ -80,11 +80,11 @@ function wattantyFunction() {
if (serial_no_inp != "") { if (serial_no_inp != "") {
$(".error_serial_num").addClass("d-none"); $(".error_serial_num").addClass("d-none");
$("#Add_serial_number_inp").removeClass("border-danger"); $("#Add_serial_number_inp").removeClass("border-danger");
let port = "https://anwi.bizgaze.app"; let port = SERVERNAME;
debugger; debugger;
let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`; let url = `${port}/apis/v4/Bizgaze/integrations/products/warrantyservice/serialno/${serial_no_inp}`;
console.log(url); console.log(url);
const STAT = `05b2f2ca510344968c65e1ebf49a5595`; // const STAT = `05b2f2ca510344968c65e1ebf49a5595`;
const config = { const config = {
url, url,
method: "get", method: "get",
+53
Visa fil
@@ -2324,6 +2324,10 @@ textarea:focus {
background-color: #FCF9F2; background-color: #FCF9F2;
} }
.h-40p{
height:40px;
}
.gradient-bg-1 { .gradient-bg-1 {
background: -webkit-gradient(linear, left top, left bottom, from(#12126a), to(#360fbb)); background: -webkit-gradient(linear, left top, left bottom, from(#12126a), to(#360fbb));
background: -webkit-linear-gradient(top, #12126a 0%, #360fbb 100%); background: -webkit-linear-gradient(top, #12126a 0%, #360fbb 100%);
@@ -31764,3 +31768,52 @@ input[type=number]::-webkit-outer-spin-button {
.addr_phone{ .addr_phone{
cursor: not-allowed; cursor: not-allowed;
} }
.toast-top-right {
top: 47px !important;
right: 12px !important;
}
.cartnumcount{
white-space: nowrap;
text-align: center;
line-height: 18px;
padding: 0 6px;
height: 18px;
background: #6a59d3;
position: absolute;
border-radius: 50%;
font-size: 12px;
color: #fff;
left: 22px;
top: -8px;
}
.loadingCall{
position: sticky;
top: 0px;
left: 0px;
width: 100vw;
height: 100vh;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
}
.checkoutbtn{
width:180px;
height:40px;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.checkoutbtn .spinner-border{
height: 15px;
width: 15px;
margin-top: 4px;
}
+1 -1
Visa fil
@@ -412,7 +412,7 @@
<script src="./dist/js/plugins/jquery-ui.js"></script> <script src="./dist/js/plugins/jquery-ui.js"></script>
<script src="./dist/js/plugins/magnific-popup.js"></script> --> <script src="./dist/js/plugins/magnific-popup.js"></script> -->
<!-- Main JS --> <!-- Main JS -->
<script src="./dist/js/utils/helpers.js"></script>
<script src="./dist/js/main.js"></script> <script src="./dist/js/main.js"></script>
<script src="./dist/js/index/index.js"></script> <script src="./dist/js/index/index.js"></script>
+6 -1
Visa fil
@@ -474,7 +474,7 @@
<span class="loader"></span> <span class="loader"></span>
</div> </div>
<a href="#" class="btn bg-gradient-anwi text-white w-100 fw-500" <a href="#" class="btn bg-gradient-anwi text-white w-100 fw-500"
id="register_btn" type="submit">REGISTER</a> id="register_btn" type="submit">Sign Up</a>
</div> </div>
</div> </div>
<div class="my-3 mt-4"> <div class="my-3 mt-4">
@@ -591,6 +591,9 @@
<script src="./dist/js/main.js"></script> <script src="./dist/js/main.js"></script>
<script> <script>
$(".register_sectionbtn").click(function(){ $(".register_sectionbtn").click(function(){
debugger;
$('#User_Email').val('');
$('#User_password').val('');
$(".login_section").css("display","none"); $(".login_section").css("display","none");
$(".register_section").css("display","block"); $(".register_section").css("display","block");
$(".login_section").find("#User_Email").removeClass("is-invalid"); $(".login_section").find("#User_Email").removeClass("is-invalid");
@@ -600,6 +603,8 @@
$('.error_msg').hide(); $('.error_msg').hide();
}); });
$("#login_sectionbtn").click(function(){ $("#login_sectionbtn").click(function(){
$("#register_form").find('#User_Email').val('');
$("#register_form").find('#User_password').val('');
$(".login_section").css("display","block"); $(".login_section").css("display","block");
$(".register_section").css("display","none"); $(".register_section").css("display","none");
$(".register_section").find("#User_Email").removeClass("is-invalid"); $(".register_section").find("#User_Email").removeClass("is-invalid");
+8 -3
Visa fil
@@ -443,7 +443,7 @@
totalCount = ele.closest('.image-list').find('.image-item').length; totalCount = ele.closest('.image-list').find('.image-item').length;
eleIndex = ele.index() + 1; eleIndex = ele.index() + 1;
eleImgSrc = ele.find('img').attr('src'); eleImgSrc = ele.find('img').attr('src');
console.log(ele) // console.log(ele)
let ele_con = ele.find('p').text(); let ele_con = ele.find('p').text();
$('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3"><img src="'+eleImgSrc+'" alt="'+ele_con+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+ele_con+'"</p></li>'); $('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3"><img src="'+eleImgSrc+'" alt="'+ele_con+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+ele_con+'"</p></li>');
for (var i = 1; i <= totalCount; i++) { for (var i = 1; i <= totalCount; i++) {
@@ -470,9 +470,9 @@
$('.image-slider-modal .thumbnail-list li').removeClass('show'); $('.image-slider-modal .thumbnail-list li').removeClass('show');
$('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ')').addClass('show'); $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ')').addClass('show');
eleImgSrc = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ') img').attr('src'); eleImgSrc = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ') img').attr('src');
console.log(eleImgSrc); // console.log(eleImgSrc);
let eleCon1 = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex + 1) + ') p').text(); let eleCon1 = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex + 1) + ') p').text();
console.log(eleCon1) //console.log(eleCon1)
$('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3 text-center"><img src="'+eleImgSrc+'" alt="'+eleCon1+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+eleCon1+'"</p></li>'); $('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3 text-center"><img src="'+eleImgSrc+'" alt="'+eleCon1+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+eleCon1+'"</p></li>');
} }
} }
@@ -502,6 +502,11 @@
$('.bg-overlay, .image-slider-modal').removeClass('show'); $('.bg-overlay, .image-slider-modal').removeClass('show');
} }
// document.querySelector('body','onbeforeunload',(e)=>{
// localStorage.removeItem('Isloggedin');
// });
</script> </script>
</body> </body>
+20 -6
Visa fil
@@ -55,7 +55,12 @@
</div> </div>
</div> </div>
</section> </section>
<div class="container mainContanierProduct"> <div class="loadingCall">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div class="container mainContanierProduct d-none">
<div class="row"> <div class="row">
<div class="col-xl-7 "> <div class="col-xl-7 ">
<div class=" bgproductDGen border-0 "> <div class=" bgproductDGen border-0 ">
@@ -90,8 +95,7 @@
<div class="col-xl-12" type="button" data-toggle="modal" data-target="#exampleModal"> <div class="col-xl-12" type="button" data-toggle="modal" data-target="#exampleModal">
<div <div
class=" productDetailsShadow productDetailsMain card border-0 box-shodow d-flex justify-content-center align-items-center"> class=" productDetailsShadow productDetailsMain card border-0 box-shodow d-flex justify-content-center align-items-center">
<img src="./dist/assets/imgs/nophoto.png" alt="" <img src="./dist/assets/imgs/nophoto.png" alt="" class="card-img img-fluid">
class="card-img img-fluid">
</div> </div>
</div> </div>
@@ -286,10 +290,18 @@
<option value="2">2</option> <option value="2">2</option>
<option value="3">3</option> <option value="3">3</option>
<option value="4">4</option> <option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select> </select>
</div> </div>
<div class="text-danger pt-2 insufficientqty d-none">Insufficient quantity</div> <div class="text-danger pt-2 insufficientqty d-none">Insufficient quantity</div>
<div class=" d-flex gap-2"> <div class=" d-flex gap-2 mt-2">
<button id="addtocart" class="w-100 btn bg-black text-white" style="border-radius: 5px;"> <button id="addtocart" class="w-100 btn bg-black text-white" style="border-radius: 5px;">
Add to cart Add to cart
</button> </button>
@@ -308,10 +320,12 @@
<div class="row tabsContainer"> <div class="row tabsContainer">
<div class="col-lg-12 "> <div class="col-lg-12 ">
<div class="dec-review-topbar no-transition nav mb-65 productdetailstabs d-flex gap-4" role="tablist"> <div class="dec-review-topbar no-transition nav mb-65 productdetailstabs d-flex gap-4"
role="tablist">
<!-- <a class="active font-1-5 no-transition" data-bs-toggle="tab" href="#des-details1" aria-selected="true" role="tab">Description</a> --> <!-- <a class="active font-1-5 no-transition" data-bs-toggle="tab" href="#des-details1" aria-selected="true" role="tab">Description</a> -->
<a data-bs-toggle="tab" href="#des-details2" aria-selected="false" role="tab" class="active font-1-5 no-transition" tabindex="-1">Specification</a> <a data-bs-toggle="tab" href="#des-details2" aria-selected="false" role="tab"
class="active font-1-5 no-transition" tabindex="-1">Specification</a>
</div> </div>
<div class="tab-content dec-review-bottom"> <div class="tab-content dec-review-bottom">
+5 -5
Visa fil
@@ -29,20 +29,20 @@
<link rel="stylesheet" href="./dist/css/fontawesome.min.css"> <link rel="stylesheet" href="./dist/css/fontawesome.min.css">
<title>Ram | Anwi</title> <title>Ram | Anwi</title>
<style> <style>
.card:hover{ /* .card:hover{
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
} }
.card:hover img{ .card:hover img{
transform: scale(1.1); transform: scale(1.1);
/* rotate: 10deg; */
} } */
.card:hover .btn{ /* .card:hover .btn{
background-color: #000 !important; background-color: #000 !important;
color:#ffff !important; color:#ffff !important;
} }
.card-title{ .card-title{
font-size: 1.2rem; font-size: 1.2rem;
} } */
</style> </style>
</head> </head>
+1 -1
Visa fil
@@ -192,7 +192,7 @@
</div> </div>
</div> </div>
<div class="pb-3 d-none d-flex justify-content-end"> <div class="pb-3 d-none d-flex justify-content-end">
<a class="text-uppercase detailsAddressBtn ordernowbtn bg-gradient-anwi btn btn-sm mt-3 text-white px-4">Order Now</a> <a class="text-uppercase detailsAddressBtn ordernowbtn bg-gradient-anwi btn btn-sm mt-3 text-white px-4 h-40p d-flex justify-content-center align-items-center">Order Now</a>
</div> </div>
</div> </div>
</div> </div>
+3 -2
Visa fil
@@ -29,6 +29,7 @@
<link rel="stylesheet" href="./dist/css/fontawesome.all.min.css"> <link rel="stylesheet" href="./dist/css/fontawesome.all.min.css">
<link rel="stylesheet" href="./dist/css/fontawesome.min.css"> <link rel="stylesheet" href="./dist/css/fontawesome.min.css">
<title>Anwi</title> <title>Anwi</title>
</head> </head>
<body> <body>
@@ -63,7 +64,7 @@
</div> </div>
</div> </div>
</section> </section>
<div class="shopping-cart-details py-5 bg-gradient-violet "> <div class="shopping-cart-details py-5 bg-gradient-violet h-100">
<div class="container pt-4"> <div class="container pt-4">
<div class="row align-items-center bg-white border-radius-top py-1 d-none d-md-flex shopping-cart-details-row-1 border-bottom"> <div class="row align-items-center bg-white border-radius-top py-1 d-none d-md-flex shopping-cart-details-row-1 border-bottom">
<div class="col-md-2"> <div class="col-md-2">
@@ -94,7 +95,7 @@
</div> </div>
</div> </div>
<div class="d-flex justify-content-end align-items-center pt-4"> <div class="d-flex justify-content-end align-items-center pt-4">
<div class="btn btn-dark button_dark checkoutbtn"><div class="spinner-border d-none" role="status"> <div class=" checkoutbtn bg-gradient-anwi btn btn-sm mt-3 text-white px-4"><div class="spinner-border d-none" role="status">
</div><span>Check out</span></div> </div><span>Check out</span></div>
</div> </div>
+4 -5
Visa fil
@@ -30,20 +30,19 @@
<link rel="stylesheet" href="./dist/css/fontawesome.min.css"> <link rel="stylesheet" href="./dist/css/fontawesome.min.css">
<title>Storage | Anwi</title> <title>Storage | Anwi</title>
<style> <style>
.card:hover{ /* .card:hover{
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
} }
.card:hover img{ .card:hover img{
transform: scale(1.1); transform: scale(1.1);
/* rotate: 10deg; */ } */
} /* .card:hover .btn{
.card:hover .btn{
background-color: #000 !important; background-color: #000 !important;
color:#ffff !important; color:#ffff !important;
} }
.card-title{ .card-title{
font-size: 1.2rem; font-size: 1.2rem;
} } */
</style> </style>
</head> </head>