JustPark EventPass Widget
Embed the JustPark EventPass Widget to display live event listings with pre-purchase parking directly on your website. This guide outlines two integration methods:
Recommended: Loader Script Integration (dynamic and responsive)
Alternative: Static iFrame Integration
01. Recommended Setup – Loader Script
This approach mounts the widget dynamically and automatically adjusts its height for responsiveness across devices.
HTML & Script Snippet
<div id="jp-eventpass-container"></div>
<script src="https://eventpass.justpark.com/jp-eventpass-loader.js?version=0.0.1"></script>
<script>
mountJPEventPass({
src: "https://eventpass.justpark.com/{{CLIENT_URL}}/listings/events",
title: "Book Your Parking Pass"
});
</script>Your unique {{CLIENT_URL}} will be provided by your Customer Success Manager.
Loader Configuration Options (Optional)
This approach mounts the widget dynamically and automatically adjusts its height for responsiveness across devices.
mountJPEventPass({
src: "https://eventpass.justpark.com/{{CLIENT_URL}}/listings/events", // Required
title: "Book Your Parking Pass", // Optional iframe title
allowDynamicHeight: true, // Enables auto-resizing (default: true)
minHeight: "1000px", // Required if allowDynamicHeight is false
maxHeight: "100%", // Max height when dynamic height is enabled
mountNodeId: "jp-eventpass-container", // Default container ID
iframeOptions: {
"aria-label": "EventPass Booking",
loading: "lazy"
}
});To Remove the Widget
Use the following script to clean up the widget instance:
<script>
cleanupJPEventPass();
</script>02. Alternative – Static iFrame Integration
Use this method if loader script integration is not feasible. Note that it requires a fixed height and may result in scroll or layout issues.
Static iFrame Snippet
<iframe
src="https://eventpass.justpark.com/{{CLIENT_URL}}/listings/events?iframe=true"
width="100%"
height="1080"
title="Book Your Parking Pass"
loading="lazy"
>
<p>Your browser does not support iframes.</p>
</iframe>03. Best Practices Summary
Use this method if loader script integration is not feasible. Note that it requires a fixed height and may result in scroll or layout issues.
Category | Recommendations |
Security | Use HTTPS, apply |
Accessibility | Add a |
Performance | Use |
Responsive Embed | Wrap iframe as below: |
<div style="position:relative;width:100%;padding-bottom:56.25%">
<iframe style="position:absolute;width:100%;height:100%"></iframe>
</div>Want to See It in Action?
You can preview the widget by plugging in this demo link:
https://eventpass.justpark.com/pledge-demosite/listings/events