-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdietQuery.min.js
More file actions
1 lines (1 loc) · 798 Bytes
/
dietQuery.min.js
File metadata and controls
1 lines (1 loc) · 798 Bytes
1
function dq(t){return $dq.constructor(t)}var _httpLoad=function(t,n){var e=new XMLHttpRequest;e.onreadystatechange=function(){4===e.readyState&&200===e.status&&n.html(e.responseText)},e.open("GET",t,!0),e.send(null)},$dq={nodeList:[],constructor:function(t){var n;try{n=document.querySelectorAll(t)}catch(t){n=[]}finally{this.nodeList=n}return this},style:function(t,n){for(var e=0;e<this.nodeList.length;e++)this.nodeList[e].style[t]=n;return this},html:function(t){for(var n=0;n<this.nodeList.length;n++)this.nodeList[n].innerHTML=t;return this},on:function(t,n){for(var e=0;e<this.nodeList.length;e++)this.nodeList[e].addEventListener(t,n);return this},attr:function(t,n){for(var e=0;e<this.nodeList.length;e++)this.nodeList[e][t]=n;return this},load:function(t){return _httpLoad(t,this),this}};