diff options
Diffstat (limited to 'www/wiki/extensions/WfextStyle/templates/print-footer.html')
-rw-r--r-- | www/wiki/extensions/WfextStyle/templates/print-footer.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/www/wiki/extensions/WfextStyle/templates/print-footer.html b/www/wiki/extensions/WfextStyle/templates/print-footer.html new file mode 100644 index 00000000..0b311b5b --- /dev/null +++ b/www/wiki/extensions/WfextStyle/templates/print-footer.html @@ -0,0 +1,36 @@ +<!doctype html> +<html> +<head><script> +function subst() { + var vars={}; + var x=document.location.search.substring(1).split('&'); + for (var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} + var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; + for (var i in x) { + var y = document.getElementsByClassName(x[i]); + for (var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; + } + + var notonfirstpage = document.getElementsByClassName('not-on-first-page'); + for (var j=0; j<notonfirstpage.length; ++j) { + if(vars['page'] == 1) { + notonfirstpage[j].parentNode.removeChild(notonfirstpage[j]); + } + } +} +</script> + <meta charset="utf-8"> + <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600,800,400italic,600italic,700italic,800italic,300,300italic' rel='stylesheet' type='text/css'> + </head> + <body id="pdf-footer" onload="subst()" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;"> + <footer> + <div style="width:100%;border-bottom:1px solid #eeeeee;margin-bottom:0.5em;"></div> + <table style="width:100%"> + <tr> + <td>wikifab.org</td> + <td style="text-align:right;">Page <span class="page"></span> / <span class="topage"></span></td> + </tr> + </table> + </footer> + </body> +</html>
\ No newline at end of file |