Spaces:
Running
Running
Hover a result to flip it to the source
Browse files46 unmodified lines4748495051525354555643 unmodified lines10010110210310410510667 unmodified lines17417517617217717817918018118218318418518618718818919019119219319446 unmodified lines.card { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 6px; min-width: 0; display: grid; gap: 6px; align-content: start }.card img { display: block; width: 100%; height: auto; border-radius: 4px; cursor: zoom-in }.card.src { border-style: dashed }.imgbox { position: relative }.peek { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; display: none; pointer-events: none }.imgbox.peeking .peek { display: block }.imgbox.peeking img { outline: 3px solid var(--mid); outline-offset: -3px }.card.best { border-color: var(--pick); background: var(--pick-soft) }.lab { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; padding: 0 2px }.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px }43 unmodified lines <li>每题有一张原图、一句修改指令、4 张修改结果 A–D。4 张来自 4 个不同方法,顺序每题随机打乱,看不出是谁做的。<br><span class="hint">Each task: a source image, an instruction, and 4 edited results from 4 different methods in random order.</span></li> <li><b>每张结果点一个:</b>「对」= 指令要求的都做到了,没要求改的地方也没变;「部分」= 大体对但有明显毛病(量不对、位置偏、别处有小损坏);「错」= 没改、改错了,或者画面坏了。<br><span class="hint">Rate each result: Success / Partial / Fail.</span></li> <li><b>再点「最好」:</b>选出最好的那张;几张一样好可以多选(算并列);4 张都不行就点「都不行」。<br><span class="hint">Then mark the best one(s); several = tie; "None" if all fail.</span></li> <li><b>鼠标放在结果图上会临时变回原图,移开再变回结果</b>(手机上按住不放)。来回切几次,就能看出改了哪里、有没有改到别处。<br><span class="hint">Hover over a result to flip it to the source image (press and hold on a phone).</span></li> <li>点图片可以把它和原图并排放大看。← → 键翻题。进度自动存在这个浏览器里,可以随时关掉页面,下次用同一个浏览器接着做。</li> <li><b>做完后点右上角「下载结果」,把文件发给组织者。</b><br><span class="hint">When finished, click "下载结果" (Download) at the top right and send the file to the organizer.</span></li> </ul>67 unmodified lines const c = document.createElement("div"); const isBest = v.best.includes(x); c.className = "card" + (isBest ? " best" : ""); c.innerHTML = `<img alt="结果 ${x}" src="img/${pad(cur)}_${x}.jpg"> c.innerHTML = `<div class="imgbox"><img alt="结果 ${x}" src="img/${pad(cur)}_${x}.jpg"><span class="peek">原图 source</span></div> <div class="lab"><b>${x}</b><button type="button" class="bestbtn${isBest ? " on" : ""}" aria-pressed="${isBest}">${isBest ? "✓ 最好 best" : "最好 best"}</button></div> <div class="seg" role="group" aria-label="结果 ${x} 打分"></div>`; c.querySelector("img").onclick = () => openLB(x); { // hover (or press and hold on a phone): show the source in place, to see what changed const box = c.querySelector(".imgbox"), im = box.querySelector("img"); const resSrc = im.getAttribute("src"), srcSrc = `img/${pad(cur)}_src.jpg`; const on = () => { im.setAttribute("src", srcSrc); box.classList.add("peeking") }; const off = () => { im.setAttribute("src", resSrc); box.classList.remove("peeking") }; box.addEventListener("mouseenter", on); box.addEventListener("mouseleave", off); box.addEventListener("touchstart", on, { passive: true }); box.addEventListener("touchend", off); box.addEventListener("touchcancel", off); } c.querySelector(".bestbtn").onclick = () => toggleBest(x); const seg = c.querySelector(".seg"); RATE.forEach(([k, lab]) => {index.html+17-1