0.3.19 • Published 4 years ago

wsq-api v0.3.19

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

wsq-api

An API for widesquare contentpages

Features

  • Forwards query params from campaigns
  • Fetches query
  • Enables custom tracking for all tags available in ./tracking/* currently supporting
    • bing

Setup

Options

  • Rewrites all URLs inside the given CSS selector
  • Will skip URLs which are noted in the blacklist

Add this code just before the </body> tag

!function(e,t,n,s,c,a,i){e.wsqApi=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,a=t.createElement(n),i=t.getElementsByTagName(n)[0],a.async=1,a.src="//cdn.jsdelivr.net/npm/wsq-api@latest/dist/wsq.js",i.parentNode.insertBefore(a,i)}(window,document,"script",0,"wsq"),wsq("init",{selector:"main a",adSelector:"main a *",blacklist:["www.example.com"]});

Full unminified example in the src/index.html file

Manual Deployment

  • Add changes to the project
  • npm run build
  • npm version (major|minor|patch)
  • npm publish

Manually purge cdn, ask: info@eele.nl for the command.

0.3.19

4 years ago

0.3.17

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.12

4 years ago

0.3.11

4 years ago

0.3.9

4 years ago

0.3.6

4 years ago

0.3.8

4 years ago

0.3.5

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago