projects
/
labelle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New theme.
[labelle.git]
/
acnl-outfit.js
diff --git
a/acnl-outfit.js
b/acnl-outfit.js
index
018fe03
..
d9ef316
100644
(file)
--- a/
acnl-outfit.js
+++ b/
acnl-outfit.js
@@
-124,17
+124,24
@@
function litanize (names, link) {
return names.join(names.length == 2 ? " " : ", ");
}
return names.join(names.length == 2 ? " " : ", ");
}
-function
litanizeElement (eid, tid, ev
) {
+function
update (
) {
var o = outfit();
var o = outfit();
- document.getElementById(eid).innerHTML = litanize(o, true) + "?";
+ var wearing = document.getElementById('wearing');
+ wearing.innerHTML = litanize(o, true) + "?";
// TODO: This often generates > 140 characters. Do I care?
// Maybe pick shorter prefixes if it would help.
// TODO: This often generates > 140 characters. Do I care?
// Maybe pick shorter prefixes if it would help.
- var t
= document.getElementById(tid
);
- t
.href = t
.href.replace(
+ var t
witter = document.getElementById('twitter'
);
+ t
witter.href = twitter
.href.replace(
/&text=[^&]+/, "&text=" + encodeURIComponent(
choice(["Going out in ",
"Labelle suggested ",
"I'll wear "]) + litanize(o, false) + "."));
/&text=[^&]+/, "&text=" + encodeURIComponent(
choice(["Going out in ",
"Labelle suggested ",
"I'll wear "]) + litanize(o, false) + "."));
- if (ev)
- ev.preventDefault();
+
+ buttons = document.getElementById("buttons");
+ buttons.className = "";
+ setTimeout(function () {
+ buttons.className = "open";
+ }, 300);
+
+
}
}