@@ -11,14 +11,15 @@ import Initialize
11import CompileToJS
11import CompileToJS
12import ExtractNoscript
12import ExtractNoscript
14+css = H.style ! A.type_ "text/css" $ preEscapedToMarkup
14−css = "* { padding:0; margin:0; \
15+ ("* { padding:0; margin:0; \
15− \hyphens: auto; -moz-hyphens: auto;\
16+ \hyphens: auto; -moz-hyphens: auto;\
16− \ -webkit-hyphens: auto; -ms-hyphens: auto; }\
17+ \ -webkit-hyphens: auto; -ms-hyphens: auto; }\
17− \body { font-family: Arial; }\
18+ \body { font-family: Arial; }\
18− \a:link {text-decoration: none}\
19+ \a:link {text-decoration: none}\
19− \a:visited {text-decoration: none}\
20+ \a:visited {text-decoration: none}\
20− \a:active {text-decoration: none}\
21+ \a:active {text-decoration: none}\
21− \a:hover {text-decoration: underline; color: #ff8f12;}"
22+ \a:hover {text-decoration: underline; color: #ff8f12;}" :: String)
23makeScript :: String -> H.Html
24makeScript :: String -> H.Html
24makeScript s = H.script ! A.type_ "text/javascript" ! A.src (H.toValue s) $ ""
25makeScript s = H.script ! A.type_ "text/javascript" ! A.src (H.toValue s) $ ""
@@ -43,7 +44,7 @@ generateHtml libLoc title source =
43 H.title . H.toHtml $ title
44 H.title . H.toHtml $ title
44 makeScript libLoc
45 makeScript libLoc
45 H.script ! A.type_ "text/javascript" $ preEscapedToMarkup js
46 H.script ! A.type_ "text/javascript" $ preEscapedToMarkup js
46− H.style ! A.type_ "text/css" $ preEscapedToMarkup (css :: String)
47+ css
47 H.body $ body noscript
48 H.body $ body noscript
49body noscript = do
50body noscript = do