// $.ajax({
// url:"https://prod-lazyone.enterpriseapplicationdevelopers.com/index.php/getActivePromotion",
// type: "GET",
// success: function(response) {
// console.log("Data retrieved successfully:", response);
// variables=response;
// },
// error: function(xhr, status, error) {
// console.log("Error:", error);
// }
// });
// url:"http://laravel.local/lazy-one-promo-app/public/index.php/getActivePromotion",
// variables=response;
// variables=response.getData;
const startDateTime = response.startDate; // Start time (09:00 AM in New York)
const endDateTime = response.endDate; // End time (05:00 PM in New York)
// setInterval(() => {
// }, 1000);
// Get the current date and time in the specified time zone
// Convert to Date objects
// alert(endTime2);//
// Check if the current time is within the range
// Place your code here
// alert("Running code within the time range!");
// Split the "values" string by commas and convert to numbers
// Check if the target number exists in the array
// console.log("ex",exitems);
console.log("Found key:", result.percentage); // Output: Found key: 2
// return percentage;
// return finalNprice;