mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
sort
This commit is contained in:
parent
b2af477752
commit
546af3c236
@ -36,8 +36,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var $ = function(s, e){ return (e || document).querySelector(s) } // make native look like jQuery.
|
var $ = function(s, e){ return (e || document).querySelector(s) } // make native look like jQuery.
|
||||||
$.text = document.body.textContent? 'textContent' : 'innerText'; // because browsers are stupid.
|
|
||||||
$.sort = function(when, e){ return (when > ($('.sort', e)[$.text] || 0))? e : $.sort(when, e.previousSibling) }
|
$.sort = function(when, e){ return (when > ($('.sort', e)[$.text] || 0))? e : $.sort(when, e.previousSibling) }
|
||||||
|
$.text = document.body.textContent? 'textContent' : 'innerText'; // because browsers are stupid.
|
||||||
($.model = $('ul li').cloneNode(true)).removeAttribute('class');
|
($.model = $('ul li').cloneNode(true)).removeAttribute('class');
|
||||||
|
|
||||||
$('.who', $('form')).value = document.cookie;
|
$('.who', $('form')).value = document.cookie;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user