內容簡介
ARJAM - Just a Modal 外掛旨在提供一個簡單的彈出視窗,當用戶首次訪問您的網站時顯示。此外掛無需第三方依賴,且不包含付費功能,專注於輕量化和快速加載。
【主要功能】
• 顯示可自訂的標題、圖片和文字
• 可設定延遲時間後顯示彈出視窗
• 可從管理區域使瀏覽器快取失效
• 響應式佈局,適應各種裝置
• 無 PRO 功能,完全免費
外掛標籤
開發者團隊
原文外掛簡介
This plugin is meant to deliver one thing and that’s a simple modal that renders whenever a user visits your site for the first time. It has no third-party dependencies, no paid features, nothing.
The minimal JavaScript code is written in vanilla JS without jQuery for a faster and lighter experience. Code is meant to load all modal assets (including the image) only when necessary, to avoid burdening your pages with unneeded requests.
It uses the browser’s local storage to store a hash that will hide the modal after the first visit. This hash can be invalidated from the admin section to force a re-render of the modal. Useful for when you want to push a new message/information.
Features
Set a title, an image and text (all optional fields, so you can mix and match them).
Modal can be shown after a delay.
Invalidate browsers cache to re-render the modal.
Responsive layout.
No PRO features!
Style override
You can easily override the plugin’s style by using the following IDs in your custom css file:
* arjam-modal-title – Title of the modal window.
* arjam-modal-image – Image of the modal window.
* arjam-modal-richtext – Text of the modal window.
* arjam-modal-background – Dark background behind the modal window.
* arjam-modal-content – The modal window itself.
* arjam-modal-close – Close button of the modal window.
Cookies and local storage
This plugin stores on the visitor browser the hash that is meant to check whether the user has seen the current modal or not. This hash is stored in a key in the local storage called arjam_hash.
Besides that, no other cookie or local storage entry is created.
