Ind.ie is now Small Technology Foundation.
...
 
Commits (3)
......@@ -5,6 +5,7 @@ body
font-family: "Avenir Next";
padding-left:24px;
padding-right: 24px;
color: #4d4d4d;
}
h1
......@@ -37,6 +38,11 @@ img
max-width:100%;
}
video
{
max-width:100%;
}
.timestamp
{
font-size:10px;
......@@ -86,6 +92,27 @@ img
vertical-align: middle;
}
/* Add a folder graphic before attachments to hint that clicking the
link will open the attachment in Finder. */
.attachment:before
{
content: "";
display: block;
float: left;
position: relative;
width: 18px;
height: 18px;
background-image: url('/images/folder@2x.png');
background-size: 18px 18px;
margin-right: 5px;
}
a.attachment
{
color: #4d4d4d;
text-decoration: none;
}
#notice
{
max-width: 520px;
......
......@@ -276,30 +276,6 @@ window.addEventListener('load', function(){
messageRepeater.parentNode.removeChild(messageRepeater);
}
//
// Listen for mutations on messages so that we can intelligently respond to them.
// e.g., scroll to show a message when one arrives.
//
var mutationObserver = new MutationObserver(function(mutations){
mutations.forEach(function(mutation){
if(mutation.type == "childList") {
var addedNodes = mutation.addedNodes;
var forEach = Array.prototype.forEach;
forEach.call(addedNodes, function(node){
// Scroll the added node into view.
zenscroll.intoView(node, 750);
});
}
});
});
// Currently, we only care when the child list changes.
var mutationObserverOptions = {childList: true};
var messages = document.getElementById('messages');
mutationObserver.observe(messages, mutationObserverOptions);
//
// Poll every two seconds for new messages.
//
......
......@@ -12,8 +12,6 @@ function insertAfter(parentNode, referenceNode, newNode) {
parentNode.insertBefore(newNode, nodeToInsertBefore);
}
var topmostElementBeforeLoadingOlderMessages = null
function massageAssetURLsInMessages(messages){
// Massage the asset URLs
......@@ -32,6 +30,9 @@ function massageAssetURLsInMessages(messages){
return messages;
}
var topmostElementBeforeLoadingOlderMessages = null;
function getOlderMessages(){
console.log("Polling server for older messages…")
......