Advertisement
Psychokiller1888

footer

Dec 16th, 2022 (edited)
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     window.onload = function() {
  3.         initCalendar()
  4.         initTimetable()
  5.     }
  6.     /* FIXES ONLY */
  7.  
  8.     if (window.isMobileDevice() && typeof (window.mobileOverlay) === typeof (Function)) {
  9.         window.mobileOverlay()
  10.     }
  11.  
  12.     // It's not really Amenitiz that did my website now, is it?
  13.     const footer = window.isMobileDevice() ? document.querySelector('.footer__by-amenitiz-mobile') : document.querySelector('.footer__by-amenitiz-desktop')
  14.     if (footer) {
  15.         footer.firstElementChild.style.display = 'none'
  16.     }
  17.  
  18.     // debug horizontal scroll / Laurent Chervet
  19.     let element = document.querySelector('.room-model-3__container')
  20.     if (element) {
  21.         /*element.style.width = '95%'
  22.         element.style.margin = '0 auto'*/
  23.         element.style.overflow = 'hidden'
  24.     }
  25.     elements = document.querySelectorAll('.rooms-model-4__card')
  26.     elements.forEach(el => {
  27.         /*el.style.width = '95%'
  28.         el.style.margin = '0 auto'*/
  29.         el.style.overflow = 'hidden'
  30.     })
  31.  
  32.     // Let's fix the mobile header menu mess
  33.     const header = document.querySelector('#header')
  34.     if (header) {
  35.         header.style.backgroundColor = '#272727'
  36.         element = header.querySelector('#builder_mobile_image_283595')
  37.         if (element) {
  38.             element.style.display = 'none'
  39.         }
  40.     }
  41.  
  42.     document.querySelectorAll('.column-with-overlay__item').forEach(el => {
  43.         el.querySelectorAll('.inner-text').forEach(subel => {
  44.             subel.style.justifyContent = 'flex-start'
  45.         })
  46.     })
  47.  
  48.     // Fix cancellation and breakfast icon descriptions
  49.     document.querySelectorAll('.icon-cancellable').forEach(el => {
  50.         el.parentElement.style.color = 'black'
  51.         el.parentElement.style.textTransform = 'capitalize'
  52.     })
  53.  
  54.     document.querySelectorAll('.payment__tos-validation').forEach(el => {
  55.         el.parentElement.style.color = 'black'
  56.     })
  57.  
  58.     //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')
  59.     //document.body.innerHTML = document.body.innerHTML.replace('le site hotel-restaurant-cave-bel-air.amenitiz.io', 'le site bel-air.swiss')
  60.  
  61.     // Fix GDPR banner
  62.     element = document.querySelector('.cookies-eu')
  63.     if (element) {
  64.         element.style.backgroundColor = '#2e2e2e'
  65.     }
  66.  
  67.  
  68.     // fix text color for equipment
  69.     document.querySelectorAll('.room__amenities--half-list > .j-block-text:nth-child(odd)').forEach(el => {
  70.         el.style.color = 'black'
  71.     })
  72.  
  73.     // fix text color for dates
  74.     document.querySelectorAll('.informations__header > h3').forEach(el => {
  75.         el.style.color = 'black'
  76.     })
  77.  
  78.     // Make check in and out blink a few times
  79.     function blink(el, i = 0) {
  80.         if (el.style.visibility === 'hidden') {
  81.             el.style.visibility = 'visible'
  82.             i++
  83.             if (i < 6) {
  84.                 setTimeout(blink, 500, el, i)
  85.             }
  86.         } else {
  87.             el.style.visibility = 'hidden'
  88.             setTimeout(blink, 500, el, i)
  89.         }
  90.     }
  91.  
  92.     document.querySelectorAll('.size4').forEach(el => {
  93.         if (el.innerHTML === '15:00') {
  94.             el.style.transition = 'ease 200ms'
  95.             blink(el)
  96.         } else if (el.innerHTML === '10:00') {
  97.             el.style.transition = 'ease 200ms'
  98.             blink(el)
  99.         }
  100.     })
  101. </script>
  102.  
  103. <style>
  104.     .dropdown-menu>li>a:focus,
  105.     .dropdown-menu>li>a:hover {
  106.         background-color: unset;
  107.     }
  108.  
  109.     .site__navbar-model-1 .nav__menu .menu--navigation .dropdown-menu--custom li:hover {
  110.         background-color: #5a5a5a;
  111.     }
  112.  
  113.     table tr:hover td {
  114.         background-color: #2e2e2e;
  115.     }
  116.  
  117.     .menuLine:hover {
  118.         background-color: unset;
  119.     }
  120. </style>
  121.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement