Garðr is a library for embedding content from external sources such as advertisements or similar third party content. This project bundles together the host, ext and plugins needed for FINN.no, so we can use this in our different apps where we use Garðr.
$ npm install
$ npm run build
Debugging can be done by configuring logging to either the browser console or as an overlay inside the iframes rendered by Garðr.
You can turn on logging by adding an url-fragment with log level: #loglevel=4 By default it will display an overlay inside each banner with the log output. If the banner isn't visible, you can output to console by using: #loglevel=4&logto=console
NB! If the banner injects another iframe we have no good way of catching errors :(
- ES5-shim You do not need a sham (unsafe polyfills).