From 4c411e7d9c4fddd8465253b7d2e9a3ccc6eb7bb9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 25 Aug 2013 22:57:00 -0400 Subject: [PATCH] Update/merge CSS, JS, images. --- copyvios/checker.py | 2 +- static/css/copyvios.css | 93 ----------------------------------- static/images/earwig-button.png | Bin 5229 -> 0 bytes static/images/toolserver-button.png | Bin 1552 -> 0 bytes static/js/cookies.js | 46 ------------------ static/js/copyvios.js | 16 ------ static/js/potd.js | 26 ---------- static/script.js | 90 ++++++++++++++++++++++++++++++++++ static/{css/main.css => style.css} | 94 ++++++++++++++++++++++++++++++++++++ 9 files changed, 185 insertions(+), 182 deletions(-) delete mode 100644 static/css/copyvios.css delete mode 100644 static/images/earwig-button.png delete mode 100644 static/images/toolserver-button.png delete mode 100644 static/js/cookies.js delete mode 100644 static/js/copyvios.js delete mode 100644 static/js/potd.js create mode 100644 static/script.js rename static/{css/main.css => style.css} (56%) diff --git a/copyvios/checker.py b/copyvios/checker.py index 3f68693..ae95c6b 100644 --- a/copyvios/checker.py +++ b/copyvios/checker.py @@ -21,7 +21,7 @@ def get_results(bot, site, query): result = page.copyvio_compare(query.url) result.cached = False else: - conn = open_sql_connection(bot, "copyvioCache") + conn = open_sql_connection(bot, "cache") if not query.nocache: result = _get_cached_results(page, conn) if query.nocache or not result: diff --git a/static/css/copyvios.css b/static/css/copyvios.css deleted file mode 100644 index e6299bd..0000000 --- a/static/css/copyvios.css +++ /dev/null @@ -1,93 +0,0 @@ -div#cv-result-yes { - padding: 5px 10px 0 10px; - margin: 0 5px 10px 5px; - background-color: #FEE; - border: 1px solid #F77; -} - -div#cv-result-no { - padding: 5px 10px 0 10px; - margin: 0 5px 10px 5px; - background-color: #EFE; - border: 1px solid #7F7; -} - -div#cv-result-detail { - padding: 0 10px 0 10px; - margin: 10px 10px 20px 10px; - background-color: #F3F3F3; - border: 1px solid #AAA; -} - -table#cv-chain-table { - width: 100%; - border-spacing: 10px; -} - -h2#cv-result-header { - margin-bottom: 0; -} - -ul#cv-result-list { - margin-top: 0.5em; -} - -ul#cv-result-detail-list { - margin-bottom: 0; -} - -a#cv-cached { - position: relative; -} - -a#cv-cached span { - display: none; - position: absolute; - top: 20px; - left: -50px; - width: 500px; - padding: 5px; - z-index: 1; - background: #F3F3F3; - border: 1px solid #AAA; - color: black; -} - -a:active#cv-cached { color: #040; text-decoration: none; } -a:hover#cv-cached { text-decoration: none; } -a:hover#cv-cached span { display: block; } - -div.cv-chain-detail { - padding: 0 10px 0 10px; - background-color: #FFF; - border: 1px solid #BBB; -} - -td.cv-chain-cell { - width: 50%; - vertical-align: top; -} - -span.cv-hl { - background: #FAA; -} - -span.cv-hl-in { - background: #FCC; - background: -webkit-gradient(linear, 0% 0%, 100% 0%, from(#FFF), to(#FAA)); /* Chrome, Safari 4+ */ - background: -webkit-linear-gradient(left, #FFF, #FAA); /* Chrome 10+, Safari 5+ */ - background: -moz-linear-gradient(left, #FFF, #FAA); /* Firefox 3.6+ */ - background: -ms-linear-gradient(left, #FFF, #FAA); /* IE 10+ */ - background: -o-linear-gradient(left, #FFF, #FAA); /* Opera 11.10+ */ - background: linear-gradient(left, #FFF, #FAA); -} - -span.cv-hl-out { - background: #FCC; - background: -webkit-gradient(linear, 0% 0%, 100% 0%, from(#FAA), to(#FFF)); /* Chrome, Safari 4+ */ - background: -webkit-linear-gradient(left, #FAA, #FFF); /* Chrome 10+, Safari 5+ */ - background: -moz-linear-gradient(left, #FAA, #FFF); /* Firefox 3.6+ */ - background: -ms-linear-gradient(left, #FAA, #FFF); /* IE 10+ */ - background: -o-linear-gradient(left, #FAA, #FFF); /* Opera 11.10+ */ - background: linear-gradient(left, #FAA, #FFF); -} diff --git a/static/images/earwig-button.png b/static/images/earwig-button.png deleted file mode 100644 index 3c5c406247f5ec182b6d2699a4399f22754b1009..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5229 zcmV-z6q4(SP)4Tx04R}-lubw!VHn5%vyBL$L1ZRE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