|
12345678910111213141516171819202122232425262728 |
- <%page args="environ, cookies, title"/>\
- <%namespace module="copyvios.background" import="set_background"/>\
- <%!
- from os import path
- %>\
- <%
- root = path.dirname(environ["SCRIPT_NAME"])
- %>\
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>${title}</title>
- <link rel="stylesheet" href="${root}/static/style.css" type="text/css" />
- <script src="${root}/static/script.js" type="text/javascript"></script>
- </head>
- <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\
- % if selected == "plain":
- <body style="background-image: url('${root}/static/background.png');">
- % else:
- <% bg_url = set_background(cookies, selected) %>\
- <body onload="update_screen_size()" style="background-image: url('${bg_url | h}'); background-size: cover;">
- % endif
- <div id="header">
- <p id="heading"><a class="dark" href="${root}">Earwig's Copyvio Detector</a></p>
- <p id="links"><a class="mid" href="${root}/settings">Settings</a></p>
- </div>
- <div id="container">
|