forked from andrewcmyers/civs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcivs_hdr.js
15 lines (15 loc) · 862 Bytes
/
civs_hdr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// requires ezdom.js
function create_header(title) {
return div({className: "banner"},
div({className: "bannerpart", id: "bannericon"}, img({width: 113, src: "@CIVSURL@/images/check-civs.png",
style: "border: none"})),
div({className: "bannerpart"}, h1("Condorcet Internet Voting Service")),
div({className: "bannerpart", id: "bannermenu"},
a({href: "@CIVSHOME@"}, "About CIVS"), br(),
a({href: "@CIVSURL@/publicized_polls.html"}, "Public polls"), br(),
a({href: "@CIVSURL@/civs_create.html"}, "Create new poll"), br(),
a({href: "@CIVSURL@/sec_priv.html"}, "Security and privacy"), br(),
a({href: "@CIVSURL@/faq.html"}, "FAQ"), br()
), br(),
div(h2({textAlign: "center"}, title)))
}