Add to Home
Demo
How it works?
The component detects the operating system of the device used by the user and shows the appropriate modal.
How to use it?
Prepare

Don't forget to paste the html codes of modals on the html page you want to use.

Show everytime

You can show with AddtoHome(); javascript code.

Show after a delay

You can set the delay to show the modal. AddtoHome("3000");
This code shows the modal after 3 seconds. Change according to what you want.

Show only once

Show the modal only once to users. AddtoHome(3000, "once");
This code shows the modal after 3 seconds. it works only once, does not disturb users. Note: you must define the delay, otherwise It will not work.

5