1.0.0 • Published 4 years ago

@rimiti/abm v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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 command.

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

License

MIT © Dimitri DO BAIRRO