go-again/public/ajquery.js

14 lines
294 B
JavaScript
Raw Normal View History

2019-06-22 19:28:03 +00:00
'use strict';
var $ = function(sel, el) {
return (el || window.document).querySelector(sel);
};
$.create = function(html) {
var div = document.createElement('div');
div.innerHTML = html;
return div;
};
var $$ = function(sel, el) {
return (el || window.document).querySelectorAll(sel);
};