Timed Shim
Whereas my shim links work as I intended I want to extend the operation such that they use a timed modal so that the visitor doesn't have to click an OK button to dismiss the message.
The theory here is that having attempted to click on an external link and read the message that I have posted the visitor is more likely to leave the website than press OK (or Return to page). Also the HShim() function was designed for the history pages and makes reference to geneological websites and that is not always relevant. The regShim() needs to be re-written.
Code that needs to be added.changed
The Bootstrap, jQuery libraries and and the Bootstrap stylesheet.
The Bootstrap button needs padding
Notes - on usage
The hyperlinks react differently using Bootstrap.
There are also things I need to learn about jQuery (the preceeding word is a link).
The $( document ).ready() construct (see also the page on conflicts)
The conflict with the hyperlinks comes from the use of Bootstrap. The Bootstrap library redefines the styling to configure the buttons (and possibly more). To make the links look more like they were I could re-redefine them.
The code
The code for the timed pop-up has a modal definition and a controlling function:
- The modal here has an id="exampleModal"
- The "anonymous" function references "exampleModal"
- The button has an id="modal" - I want to involk the modal from a hyperlink.
My theory is that a "named" function could be used.