文件操作 - 1125.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/rokpaw/public_html/wp-content/uploads/custom-css-js/1125.js
编辑文件内容
<!-- start Simple Custom CSS and JS --> <script type="text/javascript"> /* Default comment here */ function isZipValid(event) { event.preventDefault(); const zipInput = document.querySelector(".zip-code-form input[name='postal']"); const zipCodes = [ 80002, 80003, 80004, 80005, 80007, 80010, 80011, 80012, 80013, 80014, 80015, 80016, 80017, 80018, 80019, 80020, 80021, 80022, 80023, 80024, 80027, 80030, 80031, 80033, 80045, 80104, 80108, 80109, 80110, 80111, 80112, 80113, 80116, 80120, 80121, 80122, 80123, 80124, 80125, 80126, 80127, 80128, 80129, 80130, 80131, 80134, 80138, 80202, 80203, 80204, 80205, 80206, 80207, 80209, 80210, 80211, 80212, 80214, 80215, 80216, 80218, 80219, 80220, 80221, 80222, 80223, 80224, 80226, 80227, 80228, 80229, 80230, 80231, 80232, 80233, 80234, 80235, 80236, 80237, 80238, 80239, 80241, 80246, 80247, 80249, 80260, 80264, 80293, 80294, 80419, 80465, 80602, 80640 ]; if (zipInput.value.length) { if (zipCodes.indexOf(+zipInput.value) === -1) { const zipCodeError = document.querySelector('.zip-code-error'); zipCodeError.innerHTML = `Oh no! You're not in a location we currently service. Please <a href="/contact-us">Contact Us</a> to see how we may be able to help!`; zipCodeError.classList.remove('hidden'); } else { const availabilitySection = document.querySelector('#check-availability-section'); availabilitySection.classList.add('hidden'); const appointmentForm = document.querySelector('#appointment-form-section'); const successMessage = appointmentForm.querySelector(".success-message"); successMessage.textContent = `Success! You’re in our coverage area!`; successMessage.classList.remove('hidden'); appointmentForm.classList.remove('hidden'); } } }</script> <!-- end Simple Custom CSS and JS -->
修改文件时间
将文件时间修改为当前时间的前一年
删除文件