A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Thanks to http://www.quirksmode.org/js/cookies.html for the cookie code.
  2. function get_cookie(name) {
  3. var nameEQ = name + "=";
  4. var ca = document.cookie.split(";");
  5. for (var i = 0; i < ca.length; i++) {
  6. var c = ca[i];
  7. while (c.charAt(0) == " ") {
  8. c = c.substring(1, c.length);
  9. }
  10. if (c.indexOf(nameEQ) == 0) {
  11. return c.substring(nameEQ.length, c.length);
  12. }
  13. }
  14. return null;
  15. }
  16. function set_cookie(name, value, days) {
  17. var path = window.location.pathname.split("/", 2)[1];
  18. if (days) {
  19. var date = new Date();
  20. date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  21. var expires = "; expires=" + date.toGMTString();
  22. }
  23. else {
  24. var expires = "";
  25. }
  26. document.cookie = name + "=" + value + expires + "; path=/" + path;
  27. }
  28. function delete_cookie(name) {
  29. set_cookie(name, "", -1);
  30. }
  31. function copyvio_toggle_details(details) {
  32. link = document.getElementById("cv-result-detail-link");
  33. details = document.getElementById("cv-result-detail");
  34. if (link.innerHTML == "Show details:") {
  35. details.style.display = "block";
  36. link.innerHTML = "Hide details:";
  37. set_cookie("EarwigCVShowDetails", "True", 180);
  38. } else {
  39. details.style.display = "none";
  40. link.innerHTML = "Show details:";
  41. if (get_cookie("EarwigCVShowDetails")) {
  42. delete_cookie("EarwigCVShowDetails");
  43. }
  44. }
  45. }