diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 4b71d69..31b72b6 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -67,7 +67,10 @@ if ($pr_flag) { margin: 0; padding: 48px 18px 16px; overflow: auto; - background: transparent; + background: #ffffff; + border: 1px solid #d8e2f0; + border-radius: 12px; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75); } .sample-box code { @@ -334,6 +337,9 @@ if ($pr_flag) { $showSampleIndex = count($samplePairs) > 1; $singleSampleInput = trim_sample_chunk($sampleInputText); $singleSampleOutput = trim_sample_chunk($sampleOutputText); + $sampleCopyLabel = $MSG_COPY; + $sampleCopySuccessLabel = $MSG_COPY . $MSG_SUCCESS . '!'; + $sampleCopyFailLabel = $MSG_COPY . $MSG_FAIL . '!'; ?> $samplePair) { ?> @@ -342,7 +348,8 @@ if ($pr_flag) {

+ data-copy-label="" + data-clipboard-text="">
@@ -353,7 +360,8 @@ if ($pr_flag) {

+ data-copy-label="" + data-clipboard-text="">
@@ -367,7 +375,8 @@ if ($pr_flag) {

+ data-copy-label="" + data-clipboard-text="">
@@ -380,7 +389,8 @@ if ($pr_flag) {

+ data-copy-label="" + data-clipboard-text="">
@@ -764,19 +774,27 @@ if ($pr_flag) {