]> gitweb.factorcode.org Git - factor.git/commitdiff
hacker-news: Clickable banner.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 24 Sep 2012 20:48:01 +0000 (13:48 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 24 Sep 2012 20:48:01 +0000 (13:48 -0700)
extra/hacker-news/hacker-news.factor

index 01d6c40631f5683bfd42220caf9d642b924e00f7..1358a12ca8a105009cdc61561fdd2add5cabdf1e 100644 (file)
@@ -75,11 +75,12 @@ PRIVATE>
 
 : banner. ( -- )
     "Hacker News"
+    "http://news.ycombinator.com" >url presented associate
     H{
         { font-size 20 }
         { font-style bold }
         { background HEXCOLOR: ff6600 }
-    } format nl ;
+    } assoc-union format nl ;
 
 : hacker-news. ( -- )
     hacker-news-items banner.