A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

29 行
1.3 KiB

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