xeats-sdk(booking seats)

A demo to use xeats-sdk for booking seats.

by Po-Jung Chen

HTML

<script src="https://unpkg.com/xeats-sdk"></script>
<div class="rwd-container">
  <div id="seat-map"></div>
</div>

JavaScript

// This is a demo to use xeats-sdk for booking seats.
// For more information, check on npm: https://www.npmjs.com/package/xeats-sdk
(function() {
  var xeat = new Xeats.UserMap({
    endPoint: 'https://xeats.io/v1.0',
    el: '#seat-map',
    accessKey: 'ff5c1d60-ef8d-4284-82c1-35e8be350e34',
    seatsKey: 'sandbox',
    // zoomMax: 4,
    // zoomMin: 0.5,
    disableWheel: true,
    width: 'auto', // For responsive set value to `auto`
    height: 800, // Height can not set to auto
    amountMax: 4, // Limit selection amount
    limitCategory: {
      'Free': {
        amountMax: 2
      },
      'Normal': {
        amountMax: 3
      },
      'Early Bird': {
        amountMax: 6
      }
    },
  })
})()