A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 12 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 12 година
пре 12 година
пре 12 година
пре 13 година
пре 11 година
пре 13 година
12345678910111213141516171819202122232425262728293031323334
  1. <%page args="environ, cookies, title, slug=None, add_css=(), add_js=()"/>\
  2. <%namespace module="copyvios.background" import="set_background"/>\
  3. <%!
  4. from os import path
  5. %>\
  6. <%
  7. root = path.dirname(environ["SCRIPT_NAME"])
  8. this = environ["PATH_INFO"]
  9. pretty = path.split(root)[0]
  10. if not slug:
  11. slug = path.split(this)[1]
  12. if slug.endswith(".fcgi"):
  13. slug = slug[:-5]
  14. %>\
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  16. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
  17. <head>
  18. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  19. <title>${title}</title>
  20. <link rel="stylesheet" href="${root}/static/style.css" type="text/css" />
  21. <script src="${root}/static/script.js" type="text/javascript"></script>
  22. </head>
  23. <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\
  24. % if selected == "plain":
  25. <body style="background-image: url('${root}/static/background.png');">
  26. % else:
  27. <% bg_url = set_background(cookies, selected) %>\
  28. <body onload="update_screen_size()" style="background-image: url('${bg_url | h}'); background-size: cover;">
  29. % endif
  30. <div id="header">
  31. <p id="heading"><a class="dark" href="${pretty}">Earwig's Copyvio Detector</a></p>
  32. <p id="links"><a class="mid" href="${pretty}/settings">Settings</a></p>
  33. </div>
  34. <div id="container">