summaryrefslogtreecommitdiff
path: root/Cydia.app/menes
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-08-19 11:24:01 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:24 +0000
commit7d2ac47f3369cf198f78970363f0f31bd3cd44ee (patch)
tree440a777ee279b5055ba4714942a1352217bf68f9 /Cydia.app/menes
parenta954357579aa1fc2d03610d97d30a09156af7276 (diff)
Added custom depictions and better webview support.
Diffstat (limited to 'Cydia.app/menes')
-rw-r--r--Cydia.app/menes/menes.js16
-rw-r--r--Cydia.app/menes/style.css8
2 files changed, 19 insertions, 5 deletions
diff --git a/Cydia.app/menes/menes.js b/Cydia.app/menes/menes.js
index 64ec5d0..f0070bc 100644
--- a/Cydia.app/menes/menes.js
+++ b/Cydia.app/menes/menes.js
@@ -27,9 +27,10 @@ var $ = function (arg, doc) {
if (arg.charAt(0) == '#') {
var node = doc.getElementById(arg.substring(1));
return $(node == null ? [] : [node]);
- } else if (arg.charAt(0) == '.')
- return new $(doc.getElementsByClassName(arg.substring(1)));
- else
+ } else if (arg.charAt(0) == '.') {
+ var nodes = doc.getElementsByClassName(arg.substring(1));
+ return $(nodes == null ? [] : nodes);
+ } else
return $([doc]).descendants(arg);
} else {
_assert(doc == undefined);
@@ -184,6 +185,15 @@ $.inject = function (a, b) {
};
$.inject({
+ display: {
+ get: function (node) {
+ return node.style.display;
+ },
+ set: function (node, value) {
+ node.style.display = value;
+ }
+ },
+
html: {
get: function (node) {
return node.innerHTML;
diff --git a/Cydia.app/menes/style.css b/Cydia.app/menes/style.css
index ffae721..e5e2264 100644
--- a/Cydia.app/menes/style.css
+++ b/Cydia.app/menes/style.css
@@ -44,7 +44,7 @@ body {
}
hr {
- margin-top: 10px;
+ margin: 0;
}
.dialog > .panel {
@@ -155,7 +155,7 @@ strong {
}
.dialog > .panel > fieldset > div > p {
- margin-top: .5em;
+ margin: 11px 0;
text-align: center;
}
@@ -163,6 +163,10 @@ strong {
margin-top: 0;
}
+.dialog > .panel > fieldset > div > p:last-child {
+ margin-bottom: 0;
+}
+
.dialog > .panel > fieldset > a {
background: 275px 11px no-repeat url(listArrow.png);
color: inherit;