test
Hotel:
Scripts:
<style>
.desktop-menu-container {
width: 90% !important;
height: 90% !important;
}
/*Floating Back-To-Top Button*/
#myBtn {
z-index:999999;
position: fixed;
bottom: 10px;
float: right;
right: 10%;
left: 90%;
max-width: 50px;
width: 100%;
font-size: 16px;
border-color: rgba(85, 85, 85, 0.2);
background-color: rgb(100,100,100);
padding: .5px;
border-radius: 4px;
}
/*On Hover Color Change*/
#myBtn:hover {
background-color: #7dbbf1;
}
@media (max-width: 767px) {
.tablemobile
{
width: 90% !important;
margin-top: 10% !important;
}
.tablemobiledining
{
width: 90% !important;
margin-top: -130% !important;
}
.tablemobiledec
{
width: 88% !important;
text-align: justify !important;
}
}
.comp-booknow-only-btn
{
display:none!important;
}
@media only screen and (min-width: 480px){
.special-notice-wrapper
{
max-height: 520px !important;
z-index:99999 !important;
}
}
@media only screen and (min-width: 480px){
.special-notice-wrapper .title-notice
{
top: 184px !important;
}
}
@media only screen and (max-width: 481px){
.con
{
padding-top: 61px !important;
}
}
@media only screen and (min-width: 480px){
.special-notice-wrapper .notice-content .con {
width: calc(121% - 134px);
text-align: justify;
line-height: 25px;
}
}
#cookiebanner
{
background-color: #4c4747 !important;
}
#cookiebanner p.c-message
{
color: #fff !important;
}
#cookiebanner .c-header
{
color:#fff !important;
}
a.manage-button
{
color: #fff !important;
}
@media (max-width: 767px){
a.manage-button {
padding: 12px 60px !important;
margin-bottom: 2px !important;
width: 97% !important;
}
}
</style>
<button id="myBtn"><a href="#top" style="color: white">↑</a></button>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
try{
document.getElementsByClassName("title-notice")[0].innerHTML = "NOTICE";
//document.getElementsByClassName("lazyImg")[0].style.display='none';
document.getElementsByClassName("title-notice")[0].style.display='none';
document.getElementsByClassName("con")[0].innerHTML = " <span><strong>GO GREEN & BE REWARDED</strong><br><br>There’s no better time than the present to start making environmentally-friendly changes. Support Berjaya Makati Hotel’s sustainability efforts by choosing our <a href='https://www.berjayahotel.com/makati/go-green-be-rewarded.html'><strong>ECO-FRIENDLY STAY PLAN</strong></a>.<br><br>It’s simple. Just decline daily change of bed linens and towels in your room, and you will be rewarded with <strong>PHP100 ECO-FRIENDLY CREDIT</strong> per night to be used in the hotel.<br><br>Reusing your bed linens and towels can help to reduce water waste and environmental impact. Act now! Your eco-conscious effort can contribute to a more sustainable future.<br><br>To join this effort, please inform our Reception upon check-in or dial '0’ from your in-room telephone to contact our Reception.<br><br><i>Terms & conditions apply</i>.</span>";
}catch(e){}
HideBRG();
});
</script>
<div class="myheadercss" id="myHeader" style="display:none">
<span class="closebtn mobile" onclick="this.parentElement.style.display='none';">×</span>
<h3><span style="font-size:22px;">COVID-19 Updates:</span> <u><a href="https://www.berjayahotel.com/clean-and-safe.html" target="_blank" style="color:#fff;">Our Clean & Safe Commitment</a></u></h3>
</div>
<style>
body {
margin:0 !important;
}
.myheadercss{
z-index: 9999 !important;
position: static;
margin-top:40px;
padding: 1px 16px;
background: #000;
color: #f1f1f1;
}
.content {
padding: 16px;
}
.sticky {
position: fixed;
top: 57px;
width: 40% !important;
}
.sticky + .content {
padding-top: 102px;
margin-top:0px;
}
.closebtn {
float: right;
color: white;
font-weight: 500;
font-size: 40px;
line-height: 59px;
cursor: pointer;
transition: 0.3s;
}
@media only screen and (max-device-width: 768px) {
.closebtn.mobile{
width: 100% !important;
color: white;
font-weight: 500;
font-size: 40px;
line-height: 59px;
cursor: pointer;
transition: 0.3s;
position: static;
margin-left: 98% !important;
}
.sticky {
position: fixed;
top: 11px;
width: 100% !important;
}
h3{
margin-top: -41px !important;
font-size: 18px;
}
.closebtn
{
float:none !important;
}
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
.closebtn.mobile
{
color: white;
font-weight: 500;
font-size: 40px;
line-height: 59px;
cursor: pointer;
transition: 0.3s;
position: fixed;
margin-left:60% !important;
}
h3
{
margin-top:19px !important;
}
.sticky
{
67% !important;
}
}
@media only screen
and (min-device-width: 1024px)
and (max-device-width: 1366px)
and (-webkit-min-device-pixel-ratio: 2)
{
.sticky
{
width: 50%;
}
}
a:hover
{
color:#521b43;
}
</style>
<script>
//window.onload = function() {document.getElementsByClassName('title-notice')[0].click();};
//window.onload = function() {header.classList.add("sticky");};
//window.onscroll = function() {myFunction()};
var header = document.getElementById("myHeader");
var sticky = header.offsetTop;
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
function HideBRG(){
try{
document.getElementsByClassName('best-rate-guarenty-link')[0].style.display='none';
}catch(e){}
try{
document.getElementsByClassName('text-best-rate-wrapper')[0].style.display='none';
document.getElementsByClassName('svg-icon')[0].style.display='none';
}catch(e){}
try{
document.getElementsByClassName("notice-content")[0].classList.add('open');
}catch(e){}
}
InitVCode();
function InitVCode(){
try{
const params = new URLSearchParams(window.location.search);
var myCode = document.getElementById("iataNumber");
myCode.value=params.get('identifier');
}catch(e){}
}
ClickPromo();
function ClickPromo(){
try{
var myDiv = document.querySelector("div[data-desktopimg$='new-year-eve-countdown-1920x1080.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/new-year's-eve-countdown.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='New-Year-Eve-Countdown-800x800.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/new-year's-eve-countdown.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='go-green-be-rewarded-1920x1080.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/go-green-be-rewarded.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='go-green-be-rewarded-800x800.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/go-green-be-rewarded.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='bwh-book-direct-1920x1080.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/book-direct.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='bwh-book-direct-800x800_1.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/book-direct.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='member-deals-1920x1080.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/member-deals.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='MEMBER%20DEALS_800x800.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/member-deals.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='plan-ahead-1920x1080.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/plan-ahead.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg$='Plan-Ahead-800x800.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/plan-ahead.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg*='BMH_Holiday-Delights_website_800-x-800.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/holiday-delights.html';});
}catch(e){}
try{
var myImg= document.querySelector("div[data-desktopimg*='bmh-holiday-delights-website-1920-x-1080.jpg']");
myImg.style.cursor="pointer";
myImg.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/holiday-delights.html';});
}catch(e){}
try{
var myDiv = document.querySelector("div[data-desktopimg*='BMH_Returning%20Overseas%20Filipinos_website_800%20x%20800_image%20slider_mobile.jpg']");
myDiv.style.cursor="pointer";
myDiv.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/special-package-returning-overseas-filipinos.html';});
}catch(e){}
try{
var myImg= document.querySelector("div[data-desktopimg*='bmh-returning-overseas-filipinos-website-1920-x-1080-image-slider-desktop-image.jpg']");
myImg.style.cursor="pointer";
myImg.addEventListener('click', function(){location.href='https://www.berjayahotel.com/makati/offers/special-package-returning-overseas-filipinos.html';});
}catch(e){}
}
const myFAQTimeout= setTimeout(AddFAQOption, 100);
function AddFAQOption(){
try{
if(window.location.href.includes("makati")){
var linkFAQ=document.querySelectorAll("a[href*='https://www.berjayahotel.com/bhr/frequently-asked-questions.html']");
var i;
for(i = 0; i < linkFAQ.length; i++){
linkFAQ[i].style.cursor="pointer";
linkFAQ[i].href='https://www.berjayahotel.com/makati/frequently-asked-questions.html';
}
}
}catch(e){}
clearTimeout(myFAQTimeout);
}
const myContactUsTimeout= setTimeout(AddContactUsOption, 100);
function AddContactUsOption(){
try{
if(window.location.href.includes("makati")){
document.querySelectorAll('a[href="/contact-us.html"]').forEach(function($el)
{
$el.setAttribute('href','/makati/contact-us.html');
});
}
}catch(e){}
clearTimeout(AddContactUsOption);
}
//removeTollFreeLine
if(window.location.href.indexOf("contact-us.html") > -1) {
try {
document.getElementsByClassName('col-xs-2')[3].style.display="none";
}
catch(e){}
}
if(window.location.href.indexOf("contact-us.html") > -1) {
try {
document.getElementsByClassName('col-xs-10')[3].style.display="none";
}
catch(e){}
}
//Remove Best Rate Guaranteed
if(window.location.href.indexOf("https://www.berjayahotel.com/makati") > -1) {
try {
document.getElementsByClassName('txt-best-rate')[0].style.display="none";
}
catch(e){}
}
</script>