html.extension
Version:
This is a custom element that extends existing window object. Providing convenient functions to window.Math, window.NodeList and so on.
20 lines (16 loc) • 542 B
Markdown
# window.Math
```javascript
window.Math.randomRange(min, max);
window.Number.prototype.toRad();
window.Math.calculateDistance(lat1, lon1, lat2, lon2);
```
# window.NodeList
```javascript
window.NodeList.prototype.addEventListener(eventName, handler);
window.NodeList.prototype.remove();
window.NodeList.prototype.exec(callback);
window.NodeList.prototype.setAttribute(key, value);
window.NodeList.prototype.removeAttribute(key);
window.NodeList.prototype.addClass(name);
window.NodeList.prototype.removeClass(name);
```