Skip to content

Webcomponent based widget for CampgroundBooking.com availablity

Notifications You must be signed in to change notification settings

campgroundbooking/availability-widget

Repository files navigation

CampgroundBooking Availability Widget

Widget to check the availability of a campsite/campground through CampgroundBooking.com.

Installation

npm i @campgroundbooking/availability-widget

Usage

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CampgroundBooking availability</title>
  <script src="campgroundbooking-widget.js"></script>
</head>
<body>
  <campgroundbooking-widget theme="blue"></campgroundbooking-widget>
</body>
</html>

Options

  • theme - A theme to load (e.g. green, red, blue, gold)
  • client-id - Your campground booking client id
  • campground - The id of the campground to check
  • site (optional) - The id of a site to check, if no site given checks the whole campground
  • server (optional) - The campground booking server to connect to (default https://app.campgorundbooking.com)

License

MIT

About

Webcomponent based widget for CampgroundBooking.com availablity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published