Malcolms Resy Widget JS
by Charles Butler
HTML
<script src="https://widgets.resy.com/embed.js"></script>
<script src="https://fonts.googleapis.com/css?family=Montserrat"></script>
<link rel="stylesheet" href="https://www.otbbets.net/resy.css">
<header id="page-header" class="default"> <a href="./" class="logo">Resy</a></header>
<div class="hero-message">
<h1><strong>RESY</strong> GRAB A SEAT</h1>
<div class="secondary">The best booking experience and reservation selection anywhere.</div>
<div class="secondary">
<p> </p>
</div>
</div>
<div id="popresy" class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-round vc_btn3-style-flat vc_btn3-color-primary">Pop it!</div>
CSS
#popresy {
text-align: center;
margin-left: 100px;
}
.vc_btn3.vc_btn3-color-primary, .vc_btn3.vc_btn3-color-primary.vc_btn3-style-flat {
color: #FFF;
background-color: #08c;
}
.vc_btn3.vc_btn3-size-md {
font-size: 14px;
padding: 14px 20px;
}
.vc_btn3.vc_btn3-shape-round {
border-radius: 2em;
}
.vc_general.vc_btn3 {
display: inline-block;
margin-bottom: 0;
text-align: center;
vertical-align: middle;
cursor: pointer;
background-image: none;
background-color: transparent;
color: #5472D2;
border: 1px solid transparent;
box-sizing: border-box;
word-wrap: break-word;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
top: 0;
-webkit-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
line-height: normal;
font-size: 14px;
padding: 14px 20px;
}
.vc_general.vc_btn3, .wpb_button:hover, a.wpb_button_a, a.wpb_button_a:hover {
text-decoration: none;
}
JavaScript
document.getElementById("popresy").addEventListener("click", callResy);
function callResy() {
resyWidget.openModal({
"venueId": 1985,
"apiKey": "Q3A9AHaDy8i2AIXw4J5WqopE0osb6aUi",
"replace": true
});
}