@rimiti/abm
v1.0.0
Published
Detects AdBlockers and display an unclosable modal.
Downloads
6
Maintainers
Readme
abm
Description
Adblock modal blocker.
Install
$ yarn add @rimiti/abm
Demo
How it works?
- Add these rows into the head block:
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rimiti/abm@latest/dist/index.js"></script>
<link rel="stylesheet" media="all" href="https://cdn.jsdelivr.net/npm/@rimiti/abm@latest/dist/style.css" />
- Add this HTML block into the body:
<div id="abm">
<div class="abm-position">
<div class="abm-container">
<h3 class="abm-title">Adblock detected</h3>
<p class="abm-text">Please, <strong>turn off</strong> your ad blocker in order to continue browsing.</p>
<a class="abm-reload" onclick="window.location.reload()" href="#">Refresh the page</a>
</div>
</div>
</div>
Scripts
Run using yarn command.
clean - remove temporary files
build - compile source files
build:dev - compile source files for development
License
MIT © Dimitri DO BAIRRO