22 lines
617 B
JavaScript
22 lines
617 B
JavaScript
|
// JavaScript Document
|
||
|
$.extend($.expr[':'], {
|
||
|
'containsi': function (elem, i, match, array) {
|
||
|
return (elem.textContent || elem.innerText || '').toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
|
||
|
}
|
||
|
});
|
||
|
$.fn.sort = function(c) {
|
||
|
return this.pushStack([].sort.apply(this, arguments), []);
|
||
|
};
|
||
|
var sortAscending = function(a, b) {
|
||
|
return $(a).find("h1").text() > $(b).find("h1").text() ? 1 : -1;
|
||
|
};
|
||
|
var sortDescending = function(a, b) {
|
||
|
return $(a).find("h1").text() < $(b).find("h1").text() ? 1 : -1;
|
||
|
};
|
||
|
var orbitDesktopAPI = function(){
|
||
|
o = this;
|
||
|
this.notify = function(msg){
|
||
|
alert(msg);
|
||
|
};
|
||
|
|
||
|
};
|