0.5.0 • Published 8 years ago

seopult-ad-block-checker v0.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

adBlockChecker

Module for check AdBlockPlus

Example: You can see example in ./docs/ (https://seopult-oss.github.io/adBlockChecker/)

Setup:

Install with npm

npm install seopult-ad-block-checker --save

Install with bower

bower install seopult-ad-block-checker --save

Usage:

add dependency

    angular.module('testApp',['adBlockModule'])

inject service

    controller: ['adBlockChecker', testController]

declare instance in controller

    var vm = this;
    vm.adBlockChecker = adBlockChecker;

after call

    vm.adBlockChecker.check(delay);

if delay > 0 - check will run function check() each delay ms.

adBlock status will be in isAdblockEnabled property

    vm.adBlockChecker.isAdblockEnabled
0.5.0

8 years ago

0.3.0

8 years ago

0.1.0

8 years ago