Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

Commit

Permalink
hide inline images for now, for less hoffing
Browse files Browse the repository at this point in the history
  • Loading branch information
phaedryx committed Oct 25, 2010
1 parent c85790c commit 34e627e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion mosey.css
Expand Up @@ -96,7 +96,11 @@ body.normal .sender {
.sender[type=normal] {
color: #679F41;
}

.inlineimage {
padding: 0;
margin: 0.5em 0;
display: none;
}
body.console {
font-family: "Meslo", "Menlo", "Courier", monospace;
padding: 0px 12px;
Expand Down
15 changes: 8 additions & 7 deletions mosey.js
Expand Up @@ -31,12 +31,8 @@ function markTopicEvent(node) {

function toggleEvents() {
var elements = document.getElementsByClassName("event");
for(i in elements) {
if(elements[i].style.display == "none")
elements[i].style.display = "block";
else
elements[i].style.display = "none";
}
for(i in elements)
elements[i].style.display = (elements[i].style.display != 'none' ? 'none' : 'block');
}

function createTopic() {
Expand All @@ -58,13 +54,18 @@ function doTopic(node) {
}
}

function doInlineImages() {
//TODO: better handling of inline images
}

function processNode(ev) {
// TODO: fix topic bugs
var inserted_node = ev.target;
if(document.body.className.includes("normal")) {
markDuplicateTimestamp(inserted_node);
doTopic(inserted_node);
doInlineImages();
}
}

document.addEventListener("DOMNodeInserted", processNode, false);
document.addEventListener("DOMNodeInserted", processNode, false);

0 comments on commit 34e627e

Please sign in to comment.