@rimiti/abm

1.0.0 • Public • Published

abm

MIT License PRs Welcome

Description

Adblock modal blocker.

Install

$ yarn add @rimiti/abm

Demo

Live demo

How it works?

  1. 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" />
  1. 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 <script> command.

clean - remove temporary files
build - compile source files
build:dev - compile source files for development

License

MIT © Dimitri DO BAIRRO

Package Sidebar

Install

npm i @rimiti/abm

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

36.2 kB

Total Files

17

Last publish

Collaborators

  • rimiti