Moves Downloads to line up with News.
div#latestVersion {
position: absolute;
- top: 12.4em;
+ top: 16em;
+ right: 0;
+ width: 12em;
+ text-align: center;
+ border-left: 1px solid #5b7f64;
+}
+
+div#wildCardBox {
+ position: absolute;
+ top: 0.0em;
right: 0;
width: 12em;
text-align: center;
margin: 0;
}
+#wildCardBox .subheading {
+ background: #5b7f64;
+ color: #fff;
+ text-align: center;
+ padding: 0 0.5em;
+ margin: 0;
+}
+
/* this might not work in certain browsers */
a[name="Stable"] + h4 {
background: #bdee9d url(../pictures/color1-bg.png) repeat-x top left;
@ifclear web_version
@c do nothing
@end ifclear
+@ifset web_version
+ @c make the box:
+@divId{wildCardBox}
+@subheading Pondings
+@divId{wildCardText}
+
+@divEnd
+@divEnd
+@end ifset
+
+@html
+
+<script language="JavaScript" type="text/javascript">
+ function loadXMLDoc(dname)
+ {
+ if (window.XMLHttpRequest)
+ {
+ xhttp=new XMLHttpRequest();
+ }
+ else
+ {
+ xhttp=new ActiveXObject("Microsoft.XMLHTTP");
+ }
+ xhttp.open("GET",dname,false);
+ xhttp.send();
+ return xhttp.responseXML;
+ }
+
+ var xmlDoc = loadXMLDoc("tweets.xml");
+ var tweets = xmlDoc.getElementsByTagName("tweet");
+ var index = Math.floor(Math.random() * tweets.length);
+ var tweet = tweets[index];
+ var text = tweet.childNodes[0];
+ document.getElementById("wildCardText").innerHTML = text.nodeValue;
+</script>
+
+@end html
+
@ifset web_version
@c make the box:
@divId{latestVersion}
--- /dev/null
+<tweets>
+<tweet>
+The Ensemble 101 is going on a European tour where they'll sing music
+typeset using LilyPond. Click <a target="_blank"
+href="http://www.kickstarter.com/projects/751757415/ensemble-101"
+>here</a> to learn more!
+</tweet>
+</tweets>
\ No newline at end of file
root-files = $(OUT)/.htaccess \
$(OUT)/website/.htaccess \
$(OUT)/website/favicon.ico \
+ $(OUT)/website/tweets.xml \
$(OUT)/website/robots.txt
texinfo-files = $(OUT)/index.html $(WEB_LANGS:%=$(OUT)/%/index.html)
$(OUT)/website/robots.txt: $(SERVER_FILES)/robots.txt
cp $< $@
+$(OUT)/website/tweets.xml: $(SERVER_FILES)/tweets.xml
+ cp $< $@
+
$(OUT)/.htaccess: $(top-htaccess)
cp $< $@