responsive app menu
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
/* $ NAVIGATION */
|
||||
|
||||
window.navigateTo = function(url) {
|
||||
window.history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
/* $ SELECTOR */
|
||||
|
||||
HTMLElement.prototype.$ = function(selector) {
|
||||
@@ -761,6 +767,5 @@ HTMLElement.prototype.attr = function(attributes) {
|
||||
for (const [key, value] of Object.entries(attributes)) {
|
||||
this.setAttribute(key, value);
|
||||
}
|
||||
console.log(this)
|
||||
return this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user