Skip to content

Commit

Permalink
Add simple footer (issue #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Nov 4, 2016
1 parent 26ea19e commit c4f222a
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
18 changes: 18 additions & 0 deletions jawanndenn/static/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,21 @@ var onChangeVoterName = function(inputElem) {
// on access in Chromium.
setTimeout( syncSaveButton, 1 );
};

var createFooterHtml = function() {
return '\
<p>\
<span style="font-size: 150%; position: relative; top: 3px;">&#x2605;</span> \
<a href="https://github.com/hartwork/jawanndenn/">jawanndenn</a>\
is <a href="https://www.gnu.org/philosophy/free-sw.en.html">libre software</a>\
developed by <a href="https://blog.hartwork.org/">Sebastian Pipping</a>,\
licensed under the <a href="https://www.gnu.org/licenses/agpl.en.html">Affero GPL license</a>.\
Please <a href="https://github.com/hartwork/jawanndenn/issues">report bugs</a>\
and let me know\
if you <a href="mailto:sebastian@pipping.org">like</a> it.\
</p>'
}

$( document ).ready(function() {
$( 'footer' ).html( createFooterHtml() );
});
1 change: 1 addition & 0 deletions jawanndenn/static/poll.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ Licensed under GPL v3 or later
<div id='live'>
<div id='poll' />
</div>
<footer />
</body>
</html>
1 change: 1 addition & 0 deletions jawanndenn/static/setup.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ Licensed under GPL v3 or later
</div>
</div>
</div>
<footer />
</body>
</html>
43 changes: 42 additions & 1 deletion jawanndenn/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
*/
body {
margin: 0px;
padding: 10px;
background-color: #fcfcfc;
}

#stage, #live {
margin: 10px;
}

.optionLabel {
text-align: center;
}
Expand Down Expand Up @@ -207,3 +210,41 @@ tt, .monospace-text {
/* fallback */
monospace;
}


footer {
margin: 0;
}
@media screen and (max-width:767px) {
footer {
position: absolute;
margin-top: 4%;
width: 100%;
}
}
@media screen and (min-width:768px) {
footer {
z-index: 1;
position: fixed;
bottom: 0%;
left: 0%;
right: 0%;
}
}
footer {
background-color: #848484;
}
footer * {
color: #ccc;
}
footer p {
margin: 0;
text-align: center;
}
footer {
padding: 6px 20px 24px 20px;
}
footer a {
color: #ddd;
font-weight: bold;
}

0 comments on commit c4f222a

Please sign in to comment.