https://github.com/mozilla/inneractive
INACTIVE - http://mzl.la/ghe-archive - Simple to use implementation of Inneractive API for Firefox OS
https://github.com/mozilla/inneractive
inactive unmaintained
Last synced: 9 months ago
JSON representation
INACTIVE - http://mzl.la/ghe-archive - Simple to use implementation of Inneractive API for Firefox OS
- Host: GitHub
- URL: https://github.com/mozilla/inneractive
- Owner: mozilla
- Archived: true
- Created: 2013-05-08T04:33:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-03-28T04:15:15.000Z (over 7 years ago)
- Last Synced: 2025-09-22T06:39:59.260Z (10 months ago)
- Topics: inactive, unmaintained
- Language: JavaScript
- Homepage:
- Size: 267 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Inneractive Library
This library used the Inneractive platform to create an ad and place it in a webpage.
### Usage
#### Inneractive.createAd(options)
This method will create a new Ad instance based on the provided options.
~~~javascript
var ad = Inneractive.createAd({
APP_ID: "myAppId",
TYPE: "Banner" | "Rectangle" | "Interstitial",
REFRESH_RATE: 30
});
~~~
#### Options
- `APP_ID`: Application ID generated through the inneractive console.
- `REFRESH_RATE`: Time in seconds between rotating the ads. Should not be smaller than 15.
- `TYPE`: The type of the ad. Can be Banner, Rectangle, or Interstitial.
#### .placement(vertical, horizontal)
Place the ad at a fixed position on the webpage. Possible options for vertical are: `top`, `bottom` and `center`. Possible options for horizontal are `left`, `right` and `center`.
You may mix these two options or set one to `null` to leave as default.
~~~javascript
ad.placement("bottom", "center");
~~~
#### .addTo(node)
Append the ad to a DOM node in the tree. This is required for your ad to be visible. A simple use is to set the body of the webpage as the parent.
~~~javascript
ad.addTo(document.body);
~~~
#### .remove()
Removes the ad container from the parent.