diff --git a/static/script.js b/static/script.js index ecdfc02..3bdc77f 100644 --- a/static/script.js +++ b/static/script.js @@ -106,10 +106,14 @@ $(document).ready(function() { $("#action-search").change(function() { $(".cv-search").prop("disabled", false); $(".cv-compare").prop("disabled", true); + $(".cv-search-oo-ui").addClass("oo-ui-widget-enabled").removeClass("oo-ui-widget-disabled"); + $(".cv-compare-oo-ui").addClass("oo-ui-widget-disabled").removeClass("oo-ui-widget-enabled"); }); $("#action-compare").change(function() { $(".cv-search").prop("disabled", true); $(".cv-compare").prop("disabled", false); + $(".cv-search-oo-ui").addClass("oo-ui-widget-disabled").removeClass("oo-ui-widget-enabled"); + $(".cv-compare-oo-ui").addClass("oo-ui-widget-enabled").removeClass("oo-ui-widget-disabled"); }); if ($("#action-search" ).is(":checked")) $("#action-search" ).change(); @@ -128,7 +132,10 @@ $(document).ready(function() { } $("#cv-form button[type='submit']") .prop("disabled", true) - .css("cursor", "progress"); + .css("cursor", "progress") + .parent() + .addClass("oo-ui-widget-disabled") + .removeClass("oo-ui-widget-enabled"); }); if ($("#cv-additional").length >= 0) { diff --git a/static/script.min.js b/static/script.min.js index 7302a27..e415611 100644 --- a/static/script.min.js +++ b/static/script.min.js @@ -1 +1 @@ -function update_screen_size(){var cache=cache_cookie(),data={width:window.screen.availWidth,height:window.screen.availHeight};cache&&cache.width==data.width&&cache.height==data.height||set_cookie("CopyviosScreenCache",JSON.stringify(data),1095)}function cache_cookie(){var cookie=get_cookie("CopyviosScreenCache");if(cookie)try{data=JSON.parse(cookie);var width=data.width,height=data.height;if(width&&height)return{width:width,height:height}}catch(SyntaxError){}return!1}function get_cookie(name){for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i",{id:"notice-collapse-trigger",href:"#",text:"[show]",click:function(){return toggle_notice(),!1}})),details.hide())}$(document).ready(function(){$("#action-search").change(function(){$(".cv-search").prop("disabled",!1),$(".cv-compare").prop("disabled",!0)}),$("#action-compare").change(function(){$(".cv-search").prop("disabled",!0),$(".cv-compare").prop("disabled",!1)}),$("#action-search").is(":checked")&&$("#action-search").change(),$("#action-compare").is(":checked")&&$("#action-compare").change(),$("#cv-form").submit(function(){$("#action-search").is(":checked")&&$.each([["engine","use_engine"],["links","use_links"],["turnitin","turnitin"]],function(i,val){$("#cv-cb-"+val[0]).is(":checked")&&$("#cv-form input[type='hidden'][name='"+val[1]+"']").prop("disabled",!0)}),$("#cv-form button[type='submit']").prop("disabled",!0).css("cursor","progress")}),0<=$("#cv-additional").length&&($("#cv-additional").css("display","block"),$(".source-default-hidden").css("display","none"),$("#show-additional-sources").click(function(){return $(".source-default-hidden").css("display",""),$("#cv-additional").css("display","none"),!1})),install_notice()}); \ No newline at end of file +function update_screen_size(){var cache=cache_cookie(),data={width:window.screen.availWidth,height:window.screen.availHeight};cache&&cache.width==data.width&&cache.height==data.height||set_cookie("CopyviosScreenCache",JSON.stringify(data),1095)}function cache_cookie(){var cookie=get_cookie("CopyviosScreenCache");if(cookie)try{data=JSON.parse(cookie);var width=data.width,height=data.height;if(width&&height)return{width:width,height:height}}catch(SyntaxError){}return!1}function get_cookie(name){for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i",{id:"notice-collapse-trigger",href:"#",text:"[show]",click:function(){return toggle_notice(),!1}})),details.hide())}$(document).ready(function(){$("#action-search").change(function(){$(".cv-search").prop("disabled",!1),$(".cv-compare").prop("disabled",!0),$(".cv-search-oo-ui").addClass("oo-ui-widget-enabled").removeClass("oo-ui-widget-disabled"),$(".cv-compare-oo-ui").addClass("oo-ui-widget-disabled").removeClass("oo-ui-widget-enabled")}),$("#action-compare").change(function(){$(".cv-search").prop("disabled",!0),$(".cv-compare").prop("disabled",!1),$(".cv-search-oo-ui").addClass("oo-ui-widget-disabled").removeClass("oo-ui-widget-enabled"),$(".cv-compare-oo-ui").addClass("oo-ui-widget-enabled").removeClass("oo-ui-widget-disabled")}),$("#action-search").is(":checked")&&$("#action-search").change(),$("#action-compare").is(":checked")&&$("#action-compare").change(),$("#cv-form").submit(function(){$("#action-search").is(":checked")&&$.each([["engine","use_engine"],["links","use_links"],["turnitin","turnitin"]],function(i,val){$("#cv-cb-"+val[0]).is(":checked")&&$("#cv-form input[type='hidden'][name='"+val[1]+"']").prop("disabled",!0)}),$("#cv-form button[type='submit']").prop("disabled",!0).css("cursor","progress").parent().addClass("oo-ui-widget-disabled").removeClass("oo-ui-widget-enabled")}),0<=$("#cv-additional").length&&($("#cv-additional").css("display","block"),$(".source-default-hidden").css("display","none"),$("#show-additional-sources").click(function(){return $(".source-default-hidden").css("display",""),$("#cv-additional").css("display","none"),!1})),install_notice()}); \ No newline at end of file diff --git a/static/style.css b/static/style.css index ae27d79..3c48d55 100644 --- a/static/style.css +++ b/static/style.css @@ -25,7 +25,19 @@ body { display: flex; flex-direction: column; justify-content: center; - max-width: 1600px; +} + +@media only screen and (min-width: 1200px) { + #container.splash { + min-width: 1200px; + max-width: 1600px; + } +} + +@media only screen and (max-width: 1200px) { + #container.splash { + width: 100%; + } } #container.splash > .padding { @@ -40,6 +52,18 @@ body { padding: 1em; } +@media only screen and (max-width: 1000px) { + #content { + margin: 1em 1em; + } +} + +@media only screen and (max-width: 400px) { + #content { + margin: 0; + } +} + header { background-color: #eaecf0; padding: 0.2em 1em; @@ -56,6 +80,12 @@ header h1 { margin: 0 1em 0 0; } +@media only screen and (max-width: 500px) { + header h1 { + font-size: 1.5em; + } +} + #settings-link::before { content: ' '; font-size: 0.85em; @@ -88,6 +118,10 @@ footer li:not(:last-child)::after { content: ' \00b7'; } +footer a { + white-space: nowrap; +} + ul, ol { line-height: 1.5; } @@ -96,13 +130,9 @@ h2 { margin-bottom: 0.2em; } -#notice-box { - padding: 10px; - margin: 10px 5px; -} - -#notice-box p { - margin: 0.25em 0; +#notice-box, #info-box { + padding: 0 1em; + margin: 1em 0; } #notice-box ul { @@ -110,74 +140,56 @@ h2 { margin: 0; } -#info-box { - padding: 0 10px; - margin: 10px 5px; -} - #cv-result { - padding: 5px; - margin: 10px 5px; + padding: 0.5em; + margin: 1em 0; } #attribution-warning { padding: 1em; - margin: 15px 5px 10px 5px; + margin: 1em 0; } #turnitin-container { - padding: 5px; - margin: 15px 5px 10px 5px; + padding: 0.5em 1em 1em; + margin: 1em 0; } #sources-container { - padding: 5px 10px; - margin: 15px 5px 10px 5px; + padding: 0.5em 1em 1em; + margin: 1em 0; background-color: #eee; border: 1px solid #bbb; } #turnitin-title, #sources-title { - margin-bottom: -5px; + margin-bottom: -0.5em; text-align: center; font-weight: bold; } -#turnitin-summary { - padding-bottom: 5px; - font-style: italic; -} - #cv-additional { display: none; } #generation-time { - margin-right: 5px; text-align: right; font-style: italic; } -#cv-chain-container { - margin: 0 4px; +@media only screen and (min-width: 600px) { + #generation-time { + margin-top: -1em; + } } #heading { width: 100%; } -#cv-form-outer { - width: 800px; -} - -#cv-form-inner { - width: 100%; - border-spacing: 0; -} - #cv-result-sources { width: 100%; - border-spacing: 0 4px; + border-spacing: 0 0.4em; table-layout: fixed; } @@ -222,6 +234,7 @@ h2 { #cv-result-head-table td:nth-child(2) div:nth-child(1) { font-weight: bold; + white-space: nowrap; } #cv-result-head-table td:nth-child(2) div:nth-child(2) { @@ -236,7 +249,6 @@ h2 { #cv-chain-table { width: 100%; - margin-bottom: 10px; border-spacing: 0; table-layout: fixed; } @@ -256,35 +268,6 @@ h2 { text-align: right; } -#cv-col1 { - width: 15%; -} - -#cv-col2 { - width: 55%; -} - -#cv-col3 { - width: 15%; - text-align: center; -} - -#cv-col4 { - width: 15%; -} - -#cv-inner-col1 { - width: 4%; -} - -#cv-inner-col2 { - width: 22%; -} - -#cv-inner-col3 { - width: 76%; -} - #cv-result-header { margin: 0; } @@ -310,10 +293,10 @@ h2 { #cv-cached span { display: none; position: absolute; - top: 20px; - left: -50px; - width: 500px; - padding: 5px; + top: 1.5em; + left: -5em; + width: 30em; + padding: 1em; z-index: 1; background: #f3f3f3; border: 1px solid #aaa; @@ -347,7 +330,7 @@ h2 { } .cv-source-footer { - padding-bottom: 5px; + padding-bottom: 0.5em; font-style: italic; } @@ -356,7 +339,7 @@ h2 { } .cv-chain-detail { - padding: 0 10px 0 10px; + padding: 0 1em; background-color: #fff; border: 1px solid #bbb; } @@ -367,11 +350,11 @@ h2 { } .cv-chain-cell:first-child { - padding-right: 5px; + padding-right: 0.5em; } .cv-chain-cell:last-child { - padding-left: 5px; + padding-left: 0.5em; } .turnitin-table-cell { @@ -383,19 +366,6 @@ h2 { line-height: 1.4; } -.cv-text { - width: 100%; -} - -.cv-search { - margin-left: 0; - margin-right: 5px; -} - -.cv-search ~ .cv-search { - margin-left: 20px; -} - .cv-hl { background: #faa; } @@ -452,3 +422,44 @@ header a:active { .source-url:visited { color: #357; } .source-url:hover { color: #035; } .source-url:active { color: #404; } + +.oo-ui-horizontalLayout > .oo-ui-textInputWidget, +.oo-ui-horizontalLayout > .oo-ui-dropdownInputWidget { + width: auto; +} + +.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline { + hyphens: initial; +} + +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header, +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { + width: 10%; +} + +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field, +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field { + width: 90%; +} + +.page-title.oo-ui-textInputWidget, .compare-url.oo-ui-textInputWidget { + width: 60%; +} + +.page-oldid.oo-ui-textInputWidget { + width: 10em; +} + +label.site, label.page { + min-width: 4em; +} + +label.action { + min-width: 10em; +} + +@media only screen and (max-width: 720px) { + .oo-ui-horizontalLayout > .oo-ui-widget { + width: 100%; + } +} diff --git a/static/style.min.css b/static/style.min.css index 1073736..56e876f 100644 --- a/static/style.min.css +++ b/static/style.min.css @@ -1 +1 @@ -body,html{height:100%;margin:0}body{display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:14px;color:#000;background-color:#eaecf0;background-attachment:fixed;background-position:50%;background-size:cover}#container{flex:auto;line-height:1.25;margin:0 auto}#container.splash{display:flex;flex-direction:column;justify-content:center;max-width:1600px}#container.splash>.padding{height:25%}#content{background-color:#fff;border:1px solid #c8ccd1;filter:drop-shadow(0 0 10px rgba(0,0,0,.25));margin:1.5em 3em;padding:1em}header{background-color:#eaecf0;padding:.2em 1em}header>*{vertical-align:middle;display:inline-block}header h1{font-size:2.25em;font-weight:400;margin:0 1em 0 0}#settings-link:before{content:" ";font-size:.85em;color:#000;opacity:.6;padding-left:1.67em;background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20'%3E%3Cg transform='translate(10 10)'%3E%3Cpath id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse transform='rotate(45)' xlink:href='%23a'/%3E%3Cuse transform='rotate(90)' xlink:href='%23a'/%3E%3Cuse transform='rotate(135)' xlink:href='%23a'/%3E%3C/g%3E%3Cpath d='M10 2.5a7.5 7.5 0 000 15 7.5 7.5 0 000-15v4a3.5 3.5 0 010 7 3.5 3.5 0 010-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain}footer{padding:1em;font-size:.9em;text-align:center;line-height:1.5;border-top:1px solid #c8ccd1;background:#fff}footer ul{margin:0}footer li{display:inline}footer li:not(:last-child):after{content:" \00b7"}ol,ul{line-height:1.5}h2{margin-bottom:.2em}#notice-box{padding:10px;margin:10px 5px}#notice-box p{margin:.25em 0}#notice-box ul{padding-left:1.5em;margin:0}#info-box{padding:0 10px;margin:10px 5px}#cv-result{padding:5px;margin:10px 5px}#attribution-warning{padding:1em;margin:15px 5px 10px}#turnitin-container{padding:5px;margin:15px 5px 10px}#sources-container{padding:5px 10px;margin:15px 5px 10px;background-color:#eee;border:1px solid #bbb}#sources-title,#turnitin-title{margin-bottom:-5px;text-align:center;font-weight:700}#turnitin-summary{padding-bottom:5px;font-style:italic}#cv-additional{display:none}#generation-time{margin-right:5px;text-align:right;font-style:italic}#cv-chain-container{margin:0 4px}#heading{width:100%}#cv-form-outer{width:800px}#cv-form-inner{width:100%;border-spacing:0}#cv-result-sources{width:100%;border-spacing:0 4px;table-layout:fixed}#cv-result-sources col:first-child{width:80%}#cv-result-sources col:nth-child(2),#cv-result-sources col:nth-child(3){width:10%}#cv-result-sources th{text-align:left}#cv-result-sources tr:nth-child(2n){background-color:#e0e0e0}#cv-result-sources td:first-child{overflow:hidden;word-wrap:break-word}#cv-result-head-table{width:100%;text-align:center;table-layout:fixed;border-spacing:0}#cv-result-head-table col:nth-child(odd){width:42.5%}#cv-result-head-table col:nth-child(2){width:15%}#cv-result-head-table td:nth-child(odd){font-size:1.25em;font-weight:700;overflow:hidden;word-wrap:break-word}#cv-result-head-table td:nth-child(2) div:first-child{font-weight:700}#cv-result-head-table td:nth-child(2) div:nth-child(2){font-size:2.5em;font-weight:700;line-height:1}#cv-result-head-table td:nth-child(2) div:nth-child(3){font-size:.8em}#cv-chain-table{margin-bottom:10px}#cv-chain-table,#turnitin-table{width:100%;border-spacing:0;table-layout:fixed}#turnitin-table{word-wrap:break-word}#source-row-selected{background-color:#cfcfcf!important}#head-settings{text-align:right}#cv-col1{width:15%}#cv-col2{width:55%}#cv-col3{text-align:center}#cv-col3,#cv-col4{width:15%}#cv-inner-col1{width:4%}#cv-inner-col2{width:22%}#cv-inner-col3{width:76%}#cv-result-header{margin:0}#redirected-from{font-size:.75em;font-weight:400}#redirected-from,#result-head-no-sources{font-style:italic}#source-selected{font-weight:700}#cv-cached{position:relative}#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:#000;font-style:normal;text-align:left}.green-box{background-color:#efe;border:1px solid #7f7}.yellow-box{background-color:#ffd;border:1px solid #ee5}.red-box{background-color:#fee;border:1px solid #f77}.gray-box{background-color:#eee;border:1px solid #aaa}.indentable{white-space:pre-wrap}.cv-source-footer{padding-bottom:5px;font-style:italic}.cv-source-footer a{font-style:normal}.cv-chain-detail{padding:0 10px;background-color:#fff;border:1px solid #bbb}.cv-chain-cell{vertical-align:top;word-wrap:break-word}.cv-chain-cell:first-child{padding-right:5px}.cv-chain-cell:last-child{padding-left:5px}.turnitin-table-cell{padding:.5em 0 .3em}.turnitin-table-cell ul{margin:.2em 0 0;line-height:1.4}.cv-text{width:100%}.cv-search{margin-left:0;margin-right:5px}.cv-search~.cv-search{margin-left:20px}.cv-hl{background:#faa}.cv-hl-in{background:#fcc;background:linear-gradient(270deg,#faa,#fff)}.cv-hl-out{background:#fcc;background:linear-gradient(90deg,#faa,#fff)}.mono{font-family:monospace}.light{color:#ccc}.medium{color:#aaa}.source-similarity{font-weight:700}.source-suspect{color:#900}.source-possible{color:#990}.source-novio{color:#090}.source-excluded,.source-skipped{font-style:italic}a:link,a:visited{color:#002bb8;text-decoration:none}a:hover{color:#002bb8}a:active,a:hover{text-decoration:underline}a:active{color:#404}header a:hover,header a:link,header a:visited{color:#54595d}header a:active{color:#333}#cv-cached:active{color:#040}#cv-cached:active,#cv-cached:hover{text-decoration:none}#cv-cached:hover span{display:block}.source-url:link,.source-url:visited{color:#357}.source-url:hover{color:#035}.source-url:active{color:#404} \ No newline at end of file +body,html{height:100%;margin:0}body{display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:14px;color:#000;background-color:#eaecf0;background-attachment:fixed;background-position:50%;background-size:cover}#container{flex:auto;line-height:1.25;margin:0 auto}#container.splash{display:flex;flex-direction:column;justify-content:center}@media only screen and (min-width:1200px){#container.splash{min-width:1200px;max-width:1600px}}@media only screen and (max-width:1200px){#container.splash{width:100%}}#container.splash>.padding{height:25%}#content{background-color:#fff;border:1px solid #c8ccd1;filter:drop-shadow(0 0 10px rgba(0,0,0,.25));margin:1.5em 3em;padding:1em}@media only screen and (max-width:1000px){#content{margin:1em}}@media only screen and (max-width:400px){#content{margin:0}}header{background-color:#eaecf0;padding:.2em 1em}header>*{vertical-align:middle;display:inline-block}header h1{font-size:2.25em;font-weight:400;margin:0 1em 0 0}@media only screen and (max-width:500px){header h1{font-size:1.5em}}#settings-link:before{content:" ";font-size:.85em;color:#000;opacity:.6;padding-left:1.67em;background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20'%3E%3Cg transform='translate(10 10)'%3E%3Cpath id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse transform='rotate(45)' xlink:href='%23a'/%3E%3Cuse transform='rotate(90)' xlink:href='%23a'/%3E%3Cuse transform='rotate(135)' xlink:href='%23a'/%3E%3C/g%3E%3Cpath d='M10 2.5a7.5 7.5 0 000 15 7.5 7.5 0 000-15v4a3.5 3.5 0 010 7 3.5 3.5 0 010-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain}footer{padding:1em;font-size:.9em;text-align:center;line-height:1.5;border-top:1px solid #c8ccd1;background:#fff}footer ul{margin:0}footer li{display:inline}footer li:not(:last-child):after{content:" \00b7"}footer a{white-space:nowrap}ol,ul{line-height:1.5}h2{margin-bottom:.2em}#info-box,#notice-box{padding:0 1em;margin:1em 0}#notice-box ul{padding-left:1.5em;margin:0}#cv-result{padding:.5em;margin:1em 0}#attribution-warning{padding:1em;margin:1em 0}#sources-container,#turnitin-container{padding:.5em 1em 1em;margin:1em 0}#sources-container{background-color:#eee;border:1px solid #bbb}#sources-title,#turnitin-title{margin-bottom:-.5em;text-align:center;font-weight:700}#cv-additional{display:none}#generation-time{text-align:right;font-style:italic}@media only screen and (min-width:600px){#generation-time{margin-top:-1em}}#heading{width:100%}#cv-result-sources{width:100%;border-spacing:0 .4em;table-layout:fixed}#cv-result-sources col:first-child{width:80%}#cv-result-sources col:nth-child(2),#cv-result-sources col:nth-child(3){width:10%}#cv-result-sources th{text-align:left}#cv-result-sources tr:nth-child(2n){background-color:#e0e0e0}#cv-result-sources td:first-child{overflow:hidden;word-wrap:break-word}#cv-result-head-table{width:100%;text-align:center;table-layout:fixed;border-spacing:0}#cv-result-head-table col:nth-child(odd){width:42.5%}#cv-result-head-table col:nth-child(2){width:15%}#cv-result-head-table td:nth-child(odd){font-size:1.25em;font-weight:700;overflow:hidden;word-wrap:break-word}#cv-result-head-table td:nth-child(2) div:first-child{font-weight:700;white-space:nowrap}#cv-result-head-table td:nth-child(2) div:nth-child(2){font-size:2.5em;font-weight:700;line-height:1}#cv-result-head-table td:nth-child(2) div:nth-child(3){font-size:.8em}#cv-chain-table,#turnitin-table{width:100%;border-spacing:0;table-layout:fixed}#turnitin-table{word-wrap:break-word}#source-row-selected{background-color:#cfcfcf!important}#head-settings{text-align:right}#cv-result-header{margin:0}#redirected-from{font-size:.75em;font-weight:400}#redirected-from,#result-head-no-sources{font-style:italic}#source-selected{font-weight:700}#cv-cached{position:relative}#cv-cached span{display:none;position:absolute;top:1.5em;left:-5em;width:30em;padding:1em;z-index:1;background:#f3f3f3;border:1px solid #aaa;color:#000;font-style:normal;text-align:left}.green-box{background-color:#efe;border:1px solid #7f7}.yellow-box{background-color:#ffd;border:1px solid #ee5}.red-box{background-color:#fee;border:1px solid #f77}.gray-box{background-color:#eee;border:1px solid #aaa}.indentable{white-space:pre-wrap}.cv-source-footer{padding-bottom:.5em;font-style:italic}.cv-source-footer a{font-style:normal}.cv-chain-detail{padding:0 1em;background-color:#fff;border:1px solid #bbb}.cv-chain-cell{vertical-align:top;word-wrap:break-word}.cv-chain-cell:first-child{padding-right:.5em}.cv-chain-cell:last-child{padding-left:.5em}.turnitin-table-cell{padding:.5em 0 .3em}.turnitin-table-cell ul{margin:.2em 0 0;line-height:1.4}.cv-hl{background:#faa}.cv-hl-in{background:#fcc;background:linear-gradient(270deg,#faa,#fff)}.cv-hl-out{background:#fcc;background:linear-gradient(90deg,#faa,#fff)}.mono{font-family:monospace}.light{color:#ccc}.medium{color:#aaa}.source-similarity{font-weight:700}.source-suspect{color:#900}.source-possible{color:#990}.source-novio{color:#090}.source-excluded,.source-skipped{font-style:italic}a:link,a:visited{color:#002bb8;text-decoration:none}a:hover{color:#002bb8}a:active,a:hover{text-decoration:underline}a:active{color:#404}header a:hover,header a:link,header a:visited{color:#54595d}header a:active{color:#333}#cv-cached:active{color:#040}#cv-cached:active,#cv-cached:hover{text-decoration:none}#cv-cached:hover span{display:block}.source-url:link,.source-url:visited{color:#357}.source-url:hover{color:#035}.source-url:active{color:#404}.oo-ui-horizontalLayout>.oo-ui-dropdownInputWidget,.oo-ui-horizontalLayout>.oo-ui-textInputWidget{width:auto}.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline{hyphens:manual}.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left>.oo-ui-fieldLayout-body>.oo-ui-fieldLayout-header,.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right>.oo-ui-fieldLayout-body>.oo-ui-fieldLayout-header{width:10%}.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left>.oo-ui-fieldLayout-body>.oo-ui-fieldLayout-field,.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right>.oo-ui-fieldLayout-body>.oo-ui-fieldLayout-field{width:90%}.compare-url.oo-ui-textInputWidget,.page-title.oo-ui-textInputWidget{width:60%}.page-oldid.oo-ui-textInputWidget{width:10em}label.page,label.site{min-width:4em}label.action{min-width:10em}@media only screen and (max-width:720px){.oo-ui-horizontalLayout>.oo-ui-widget{width:100%}} \ No newline at end of file diff --git a/templates/index.mako b/templates/index.mako index 4a2dca7..2e338d4 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -29,7 +29,7 @@ % elif query.error == "bad oldid": The revision ID ${query.oldid | h} is invalid. It should be an integer. % elif query.error == "no URL": - URL comparison mode requires a URL to be entered. Enter one in the text box below, or choose copyvio search mode to look for content similar to the article elsewhere on the web. + Compare mode requires a URL to be entered. Enter one in the text box below, or choose copyvio search mode to look for content similar to the article elsewhere on the web. % elif query.error == "bad URI": Unsupported URI scheme: ${query.url | h}. % elif query.error == "no data": @@ -56,118 +56,125 @@ % endif %endif -

This tool attempts to detect copyright violations in articles. In search mode, it will check for similar content elsewhere on the web using Google, external links present in the text of the page, or Turnitin (via EranBot), depending on which options are selected. In comparison mode, the tool will compare the article to a specific webpage without making additional searches, like the Duplication Detector.

+

This tool attempts to detect copyright violations in articles. In search mode, it will check for similar content elsewhere on the web using Google, external links present in the text of the page, or Turnitin (via EranBot), depending on which options are selected. In compare mode, the tool will compare the article to a specific webpage without making additional searches, like the Duplication Detector.

Running a full check can take up to a minute if other websites are slow or if the tool is under heavy use. Please be patient. If you get a timeout, wait a moment and refresh the page.

Be aware that other websites can copy from Wikipedia, so check the results carefully, especially for older or well-developed articles. Specific websites can be skipped by adding them to the excluded URL list.

- - - - - - - - - - - - - - - - % if query.nocache or (result and result.cached): - - - - - % endif - - - -
Site: - https:// - - . - - .org -
Page title: +
+ +
+ +
+
+ +
+
+
+ +
+ - % else: - + value="${query.page.title if query.page else query.title | h}" % endif -
or revision ID: + > + + +
+ - % else: - + value="${query.oldid | h}" % endif -
Action: - - - - - - - - - - - -
- - - - - + > + + +
+ + + + + + - - - + + + + + + + + - - - -
- - - -
-
- -
- -
+ + + + + + + + + + + + + + + + + + +
+ + + + + + +
+ +
+
+ % if query.nocache or (result and result.cached): +
+ + + + + +
+ % endif +
+ + + +
% if result:
Results - % if result.cached: - cachedTo save time (and money), this tool will retain the results of checks for up to 72 hours. This includes the URLs of the checked sources, but neither their content nor the content of the article. Future checks on the same page (assuming it remains unchanged) will not involve additional search queries, but a fresh comparison against the source URL will be made. If the page is modified, a new check will be run. from ${result.cache_age} ago. Originally - % endif + cachedTo save time (and money), this tool will retain the results of checks for up to 72 hours. This includes the URLs of the checked sources, but neither their content nor the content of the article. Future checks on the same page (assuming it remains unchanged) will not involve additional search queries, but a fresh comparison against the source URL will be made. If the page is modified, a new check will be run. from some time ago. Originally generated in ${round(result.time, 3)} % if query.action == "search": seconds using ${result.queries} quer${"y" if result.queries == 1 else "ies"}. @@ -198,13 +205,13 @@
% if result.confidence >= T_SUSPECT: - Violation Suspected + Violation suspected % elif result.confidence >= T_POSSIBLE: - Violation Possible + Violation possible % elif result.sources: - Violation Unlikely + Violation unlikely % else: - No Violation + No violation % endif
${round(result.confidence * 100, 1)}%
@@ -300,13 +307,11 @@ % endif
% endif -
- - - - - -
Article:

${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}

Source:

${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}

-
+ + + + + +
Article:

${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}

Source:

${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}

% endif <%include file="/support/footer.mako"/> diff --git a/templates/settings.mako b/templates/settings.mako index c502b39..0654007 100644 --- a/templates/settings.mako +++ b/templates/settings.mako @@ -9,103 +9,88 @@

${status}

% endif -

This page contains some configurable options for the copyvio detector. Settings are saved as cookies. You can view and delete all cookies generated by this site at the bottom of this page.

+

Settings

+

This page contains some configurable options for the copyvio detector. Settings are saved as cookies.

- - - - - - <% - background_options = [ - ("list", 'Randomly select from a subset of previous Wikimedia CommonsPictures of the Day that work well as widescreen backgrounds, refreshed daily (default).'), - ("potd", 'Use the current Commons Picture of the Day, unfiltered. Certain POTDs may be unsuitable as backgrounds due to their aspect ratio or subject matter.'), - ("plain", "Use a plain background."), - ] - selected = g.cookies["CopyviosBackground"].value if "CopyviosBackground" in g.cookies else "list" - %>\ - % for i, (value, desc) in enumerate(background_options): - - % if i == 0: - - % else: - - % endif - - - % endfor - - - -
Default site: - https:// - - . - + <% selected_lang = g.cookies["CopyviosDefaultLang"].value if "CopyviosDefaultLang" in g.cookies else default_lang %>\ + % for code, name in cache.langs: + % if code == selected_lang: + + % else: + + % endif + % endfor + + +
+ +
+ + + + + + +

Background

+ <% + background_options = [ + ("list", 'Randomly select from a subset of previous Wikimedia Commons Pictures of the Day that work well as widescreen backgrounds, refreshed daily (default).'), + ("potd", 'Use the current Commons Picture of the Day, unfiltered. Certain POTDs may be unsuitable as backgrounds due to their aspect ratio or subject matter.'), + ("plain", "Use a plain background."), + ] + selected = g.cookies["CopyviosBackground"].value if "CopyviosBackground" in g.cookies else "list" + %>\ +
+
+
+
+ % for value, desc in background_options: +
+
+ + + + + + + + +
+
% endfor - - .org -
Background:  - ${desc} -
- - -
+ + + + + + +
+
+ + + + + +
+
-

Cookies

-% if g.cookies: - - <% cookie_order = ["CopyviosDefaultProject", "CopyviosDefaultLang", "CopyviosBackground", "CopyviosScreenCache"] %>\ - % for key in [key for key in cookie_order if key in g.cookies]: - <% cookie = g.cookies[key] %>\ - - - % try: - <% lines = dumps(loads(cookie.value), indent=4).splitlines() %>\ - - % except ValueError: - - % endtry - - - % endfor - - - -
${key | h} - % for line in lines: -
${line | h}
- % endfor -
${cookie.value | h} -
- - - -
-
-
- - - -
-
-% else: -

No cookies!

-% endif <%include file="/support/footer.mako"/> diff --git a/templates/support/header.mako b/templates/support/header.mako index 40d0d75..d6e7a76 100644 --- a/templates/support/header.mako +++ b/templates/support/header.mako @@ -8,6 +8,9 @@ ${title | h} + + +