Restaurance
A package to send elements to the Heroes of the Storm.
Installation
In a browser
via NPM
; //ES6const restaurance = ; //CommonJS, ES6var restaurance = ; //CommonJS//etc...
Documentation
restaurance([hotsImage : Object[, elems : Array[, duration : Number]]])
Kidnap elements into the Heroes of the Storm
and show advertisement of the Heroes of the Storm
.
Arguments
hotsImage
An object which contains data of hots image.
default:
width: 150 height: 150 x: windowinnerWidth - width / 2 y: windowinnerHeight - width / 2
elems
An array which contains selectors or elements which will be kidnapped into the Heroes of the Storm
.
default: All elements which don't have any children.
duration
The duration(seconds) of the kidnapping animation. It should be more than 2s.
default:
30