To ensure the modal only displays on the home page (http://leisureworld.lk/) and not on other pages, you can check the full URL in the JavaScript. Here’s how you can do it:
Step-by-Step Guide
HTML: Create the modal structure.
CSS: Ensure Bootstrap CSS is included.
JavaScript: Use local storage to control the modal display and check if the user is on the specific URL.
HTML
Ensure the following structure for your HTML:
html
Copy code
Modal Example
Notice
Please note that our waterside activities will be closed until Saturday. We apologize for the inconvenience.