]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
makevision.in
/
public_html
/
paystorepe
/
vendor
/
Upload FileeE
HOME
$('[name=tab]').each(function(i,d){ var p = $(this).prop('checked'); // console.log(p); if(p){ $('article').eq(i) .addClass('on'); } }); $('[name=tab]').on('change', function(){ var p = $(this).prop('checked'); // $(type).index(this) == nth-of-type var i = $('[name=tab]').index(this); $('article').removeClass('on'); $('article').eq(i).addClass('on'); }); // Inspiration: https://tympanus.net/codrops/2012/10/04/custom-drop-down-list-styling/ function DropDown(el) { this.dd = el; this.placeholder = this.dd.children('span'); this.opts = this.dd.find('ul.drop li'); this.val = ''; this.index = -1; this.initEvents(); } DropDown.prototype = { initEvents: function () { var obj = this; obj.dd.on('click', function (e) { e.preventDefault(); e.stopPropagation(); $(this).toggleClass('active'); }); obj.opts.on('click', function () { var opt = $(this); obj.val = opt.text(); obj.index = opt.index(); obj.placeholder.text(obj.val); opt.siblings().removeClass('selected'); opt.filter(':contains("' + obj.val + '")').addClass('selected'); }).change(); }, getValue: function () { return this.val; }, getIndex: function () { return this.index; } }; $(function () { // create new variable for each menu var dd1 = new DropDown($('#noble-gases')); // var dd2 = new DropDown($('#other-gases')); $(document).click(function () { // close menu on document click $('.wrap-drop').removeClass('active'); }); }); $(function () { // create new variable for each menu var dd1 = new DropDown($('#nobles-act')); // var dd2 = new DropDown($('#other-gases')); $(document).click(function () { // close menu on document click $('.wrap-drop').removeClass('active'); }); }); $(function () { // create new variable for each menu var dd1 = new DropDown($('#travels')); // var dd2 = new DropDown($('#other-gases')); $(document).click(function () { // close menu on document click $('.wrap-drop').removeClass('active'); }); }); const daysContainer = document.getElementById("daysContainer"); const prevBtn = document.getElementById("prevBtn"); const nextBtn = document.getElementById("nextBtn"); const monthYear = document.getElementById("monthYear"); const dateInput = document.getElementById("dateInput"); const calendar = document.getElementById("calendar"); let currentDate = new Date(); let selectedDate = null; function handleDayClick(day) { selectedDate = new Date( currentDate.getFullYear(), currentDate.getMonth(), day ); dateInput.value = selectedDate.toLocaleDateString("en-US"); calendar.style.display = "none"; renderCalendar(); } function createDayElement(day) { const date = new Date(currentDate.getFullYear(), currentDate.getMonth(), day); const dayElement = document.createElement("div"); dayElement.classList.add("day"); if (date.toDateString() === new Date().toDateString()) { dayElement.classList.add("current"); } if (selectedDate && date.toDateString() === selectedDate.toDateString()) { dayElement.classList.add("selected"); } dayElement.textContent = day; dayElement.addEventListener("click", () => { handleDayClick(day); }); daysContainer.appendChild(dayElement); } function renderCalendar() { daysContainer.innerHTML = ""; const firstDay = new Date( currentDate.getFullYear(), currentDate.getMonth(), 1 ); const lastDay = new Date( currentDate.getFullYear(), currentDate.getMonth() + 1, 0 ); monthYear.textContent = `${currentDate.toLocaleString("default", { month: "long" })} ${currentDate.getFullYear()}`; for (let day = 1; day <= lastDay.getDate(); day++) { createDayElement(day); } } prevBtn.addEventListener("click", () => { currentDate.setMonth(currentDate.getMonth() - 1); renderCalendar(); }); nextBtn.addEventListener("click", () => { currentDate.setMonth(currentDate.getMonth() + 1); renderCalendar(); }); dateInput.addEventListener("click", () => { calendar.style.display = "block"; positionCalendar(); }); document.addEventListener("click", (event) => { if (!dateInput.contains(event.target) && !calendar.contains(event.target)) { calendar.style.display = "none"; } }); function positionCalendar() { const inputRect = dateInput.getBoundingClientRect(); calendar.style.top = inputRect.bottom + "px"; calendar.style.left = inputRect.left + "px"; } window.addEventListener("resize", positionCalendar); renderCalendar();