Sha256: 4220f83105f1405cf47c4d3b7664dcc09812f8b09813f481c5114bb43d366819
Contents?: true
Size: 1.86 KB
Versions: 4
Compression:
Stored size: 1.86 KB
Contents
module PanicBoardData class SingleValue def initialize heading, value @heading, @value = heading, value end def to_html <<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf8" /> <meta http-equiv="Cache-control" content="no-cache" /> <style type="text/css"> @font-face { font-family: "Roadgeek2005SeriesD"; src: url("http://panic.com/fonts/Roadgeek 2005 Series D/Roadgeek 2005 Series D.otf"); } body, * {} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin: 0; padding: 0; } fieldset,img { border: 0; } html, body, #main { overflow: hidden; } body { color: white; font-family: 'Roadgeek2005SeriesD', sans-serif; font-size: 20px; line-height: 24px; } body, html, #main { background: transparent !important; } #Container { text-align: center; } #Container * { font-weight: normal; } h1 { font-size: 120px; line-height: 120px; margin-top: 15px; margin-bottom: 0px; color: white; text-shadow:0px -2px 0px black; text-transform: uppercase; } h2 { margin: 0px auto; padding-top: 20px; font-size: 16px; line-height: 18px; color: #7e7e7e; text-transform: uppercase; } </style> <script type="text/javascript"> function init() { if (document.location.href.indexOf('desktop') > -1) document.getElementById('Container').style.backgroundColor = 'black'; } </script> </head> <body onload="init()"> <div id="main"> <div id="Container"> <h2>#{@heading}</h2> <h1 id="howmany">#{@value}</h1> </div> </div> </body> </html> EOF end end end
Version data entries
4 entries across 4 versions & 1 rubygems