-
Notifications
You must be signed in to change notification settings - Fork 0
How to Integrate the Selector into a Web Page
Petr Matousek edited this page Jan 24, 2021
·
8 revisions
- Decide where within the page
<body>the selector should appear and insert the following HTML code there:
<div id="ums-mast-selector"></div>
- Put the following HTML code inside the page
<head>:
<link rel="stylesheet" href="https://mat127.github.io/ums/ums.css">
<script src="https://mat127.github.io/ums/ums.js"></script>
<script>MastSelector.register("ums-mast-selector");</script>
Note that "ums-mast-selector" id can be replaced with any other id (e.g. in case of conflict with id already existing within the page). But do not forget to update both the <div> and the MastSelector.build() call within the inline <script> put in the <head> section.
In case that design changes are necessary (font, colors, etc.) replace the
<link rel="stylesheet" href="https://mat127.github.io/ums/ums.css">
with your own style definitions.
- Decide where within the page
<body>the selector should appear and insert the following HTML code there:
<iframe frameborder="0" width="300" height="300" src="https://mat127.github.io/ums/if-src.html"></iframe>
Select the size and other attributes according to page design.