diff --git a/src/helpers.js b/src/helpers.js index eff9f51..ebc48f0 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -3,3 +3,19 @@ class Helper { return Math.floor((Math.random() * max) + min); } } + +class DOMNode { + constructor(node) { + this.node = node; + } + + node() { + return this.node; + } +} + +class DOM { + static s(selector) { + return new DOMNode(document.querySelector(selector)); + } +} diff --git a/src/index.html b/src/index.html index 4988194..a68a811 100644 --- a/src/index.html +++ b/src/index.html @@ -11,13 +11,20 @@
Time wasted on this ateroid: 0 hours
+