Desktop Commit

This commit is contained in:
Harry Bomrah authored and Christophe Vilayphiou committed 2012-04-06 17:47:02 +08:00
1 parent da7b415ad8
commit 77b2919d8c
43 files changed
+793 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// 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);
};
};