Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- window.onload = function() {
- initCalendar()
- initTimetable()
- }
- /* FIXES ONLY */
- if (window.isMobileDevice() && typeof (window.mobileOverlay) === typeof (Function)) {
- window.mobileOverlay()
- }
- // It's not really Amenitiz that did my website now, is it?
- const footer = window.isMobileDevice() ? document.querySelector('.footer__by-amenitiz-mobile') : document.querySelector('.footer__by-amenitiz-desktop')
- if (footer) {
- footer.firstElementChild.style.display = 'none'
- }
- // debug horizontal scroll / Laurent Chervet
- let element = document.querySelector('.room-model-3__container')
- if (element) {
- /*element.style.width = '95%'
- element.style.margin = '0 auto'*/
- element.style.overflow = 'hidden'
- }
- elements = document.querySelectorAll('.rooms-model-4__card')
- elements.forEach(el => {
- /*el.style.width = '95%'
- el.style.margin = '0 auto'*/
- el.style.overflow = 'hidden'
- })
- // Let's fix the mobile header menu mess
- const header = document.querySelector('#header')
- if (header) {
- header.style.backgroundColor = '#272727'
- element = header.querySelector('#builder_mobile_image_283595')
- if (element) {
- element.style.display = 'none'
- }
- }
- document.querySelectorAll('.column-with-overlay__item').forEach(el => {
- el.querySelectorAll('.inner-text').forEach(subel => {
- subel.style.justifyContent = 'flex-start'
- })
- })
- // Fix cancellation and breakfast icon descriptions
- document.querySelectorAll('.icon-cancellable').forEach(el => {
- el.parentElement.style.color = 'black'
- el.parentElement.style.textTransform = 'capitalize'
- })
- document.querySelectorAll('.payment__tos-validation').forEach(el => {
- el.parentElement.style.color = 'black'
- })
- //document.body.innerHTML = document.body.innerHTML.replace('100% du total 0 jours avant l\'arrivée', '100% du total le matin du jour de l\'arrivée')
- //document.body.innerHTML = document.body.innerHTML.replace('le site hotel-restaurant-cave-bel-air.amenitiz.io', 'le site bel-air.swiss')
- // Fix GDPR banner
- element = document.querySelector('.cookies-eu')
- if (element) {
- element.style.backgroundColor = '#2e2e2e'
- }
- // fix text color for equipment
- document.querySelectorAll('.room__amenities--half-list > .j-block-text:nth-child(odd)').forEach(el => {
- el.style.color = 'black'
- })
- // fix text color for dates
- document.querySelectorAll('.informations__header > h3').forEach(el => {
- el.style.color = 'black'
- })
- // Make check in and out blink a few times
- function blink(el, i = 0) {
- if (el.style.visibility === 'hidden') {
- el.style.visibility = 'visible'
- i++
- if (i < 6) {
- setTimeout(blink, 500, el, i)
- }
- } else {
- el.style.visibility = 'hidden'
- setTimeout(blink, 500, el, i)
- }
- }
- document.querySelectorAll('.size4').forEach(el => {
- if (el.innerHTML === '15:00') {
- el.style.transition = 'ease 200ms'
- blink(el)
- } else if (el.innerHTML === '10:00') {
- el.style.transition = 'ease 200ms'
- blink(el)
- }
- })
- </script>
- <style>
- .dropdown-menu>li>a:focus,
- .dropdown-menu>li>a:hover {
- background-color: unset;
- }
- .site__navbar-model-1 .nav__menu .menu--navigation .dropdown-menu--custom li:hover {
- background-color: #5a5a5a;
- }
- table tr:hover td {
- background-color: #2e2e2e;
- }
- .menuLine:hover {
- background-color: unset;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement