Skip to content

Instantly share code, notes, and snippets.

@trevorstarick
Last active June 15, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevorstarick/4af695125268ef22596b6228f1dc9a46 to your computer and use it in GitHub Desktop.
Save trevorstarick/4af695125268ef22596b6228f1dc9a46 to your computer and use it in GitHub Desktop.
<!-- Paste this script where you want the map to be shown -->
<script id="stay22-script">
document.addEventListener("DOMContentLoaded", function(e) {
// 1. Edit widget size
var settings22 = {
width: '100%', // set the width in px or %
height: '375px' // set the height in px or %
};
// 2. Fill out your config here and the rest should work
// Docs: https://www.stay22.com/embed/
var s22obj = {
aid: 'worldtattooevents', // your affiliate id for tracking
address: 'Gouverneur Verwilghensingel 70 3500 Hasselt, Belgiume' , // full street address or venue name + city
checkin: '06/29/2018', // checkin date for their stay in MM/DD/YYYY
checkout: '07/01/2018',
hidebrandlogo: true
};
// Leave this part intact
var params22=''; for (var key in s22obj){if (params22){params22 +='&';}params22 +=key + '=' + encodeURIComponent(s22obj[key]);}var div22=document.getElementById('stay22-script'); div22.insertAdjacentHTML('afterend', '<iframe id="stay22-widget" width="' + settings22.width + '" height="' + settings22.height + '" src="' + 'https://www.stay22.com/embed/gm?' + params22 + '" frameborder="0"></iframe>');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment