mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
new
This commit is contained in:
parent
d2ce4fc4dc
commit
2e1524a40f
BIN
tools/leaky/close-over.gif
Normal file
BIN
tools/leaky/close-over.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 B |
BIN
tools/leaky/close.gif
Normal file
BIN
tools/leaky/close.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 B |
51
tools/leaky/leaky.css
Normal file
51
tools/leaky/leaky.css
Normal file
@ -0,0 +1,51 @@
|
||||
root {
|
||||
display: block;
|
||||
margin: 1em 1em;
|
||||
line-height: 1.1;
|
||||
font-size: 10pt;
|
||||
font-family: "Arial", "Times New Roman", "Times Roman", serif;
|
||||
}
|
||||
|
||||
root > n, root > n > n, root > n > n > n {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body > .n, body > .n > .n, body > .n > .n > .n {
|
||||
display: block;
|
||||
}
|
||||
|
||||
key, .key {
|
||||
display: block;
|
||||
margin: 1em;
|
||||
border: 2px solid green;
|
||||
font-size: 130%;
|
||||
}
|
||||
key b, key k, .key .b, .key .d { margin: 0 0 0 2em; padding: 0; }
|
||||
|
||||
n, .n {
|
||||
display: none;
|
||||
margin: 0 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
n.e, .n.e {
|
||||
background-color: orange;
|
||||
}
|
||||
|
||||
s, .s {
|
||||
display: inline;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
b, .b {
|
||||
display: inline;
|
||||
background-color: yellow;
|
||||
margin: 0 1em;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
k, .d {
|
||||
display: inline;
|
||||
background-color: khaki;
|
||||
padding: 0 1em;
|
||||
}
|
38
tools/leaky/leaky.js
Normal file
38
tools/leaky/leaky.js
Normal file
@ -0,0 +1,38 @@
|
||||
var lastIn;
|
||||
function I(event) {
|
||||
var it = event.target;
|
||||
if (it) {
|
||||
var s = it.src;
|
||||
var s1 = s.replace(".gif", "-over.gif");
|
||||
it.src = s1;
|
||||
lastIn = it;
|
||||
}
|
||||
}
|
||||
function O(event) {
|
||||
var it = lastIn;
|
||||
if (it) {
|
||||
var s = it.src;
|
||||
var s1 = s.replace("-over", "");
|
||||
it.src = s1;
|
||||
lastIn = null;
|
||||
}
|
||||
}
|
||||
function C(event) {
|
||||
var it = event.target;
|
||||
if (!it) return;
|
||||
var kids = it.parentNode.childNodes;
|
||||
if (!kids) return;
|
||||
for (var i = 0; i < kids.length; i++) {
|
||||
var kid = kids[i];
|
||||
if ((kid.nodeType == Node.ELEMENT_NODE) && (kid.tagName == "DIV")) {
|
||||
var d = kid.style.display;
|
||||
if ((d == "") || (d == null) || (d == "none")) {
|
||||
it.src = it.src.replace("close", "open");
|
||||
kid.style.display = "block";
|
||||
} else {
|
||||
kid.style.display = "none";
|
||||
it.src = it.src.replace("open", "close");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
tools/leaky/open-over.gif
Normal file
BIN
tools/leaky/open-over.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
BIN
tools/leaky/open.gif
Normal file
BIN
tools/leaky/open.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
Loading…
x
Reference in New Issue
Block a user