|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<title>Experiment Completed</title> |
|
<style> |
|
body { |
|
font-family: 'Roboto', sans-serif; |
|
background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); |
|
margin: 0; |
|
padding: 0; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
min-height: 100vh; |
|
} |
|
.container { |
|
background-color: rgba(255, 255, 255, 0.95); |
|
border-radius: 20px; |
|
padding: 40px; |
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); |
|
text-align: center; |
|
max-width: 800px; |
|
width: 90%; |
|
margin: 20px; |
|
} |
|
h1 { |
|
color: #2c3e50; |
|
font-size: 36px; |
|
margin-bottom: 30px; |
|
animation: bounce 1s ease; |
|
} |
|
.rankings-container { |
|
display: flex; |
|
flex-direction: column; |
|
gap: 20px; |
|
margin: 30px 0; |
|
} |
|
.method-card { |
|
background-color: white; |
|
border-radius: 15px; |
|
padding: 20px; |
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
transition: transform 0.3s ease; |
|
} |
|
.method-card:hover { |
|
transform: translateY(-3px); |
|
} |
|
.method-name { |
|
font-size: 1.2em; |
|
font-weight: bold; |
|
color: #2c3e50; |
|
} |
|
.average-rank { |
|
font-size: 1.5em; |
|
font-weight: bold; |
|
color: #3498db; |
|
background: #f8f9fa; |
|
padding: 10px 20px; |
|
border-radius: 25px; |
|
} |
|
.rank-label { |
|
font-size: 0.9em; |
|
color: #7f8c8d; |
|
margin-top: 5px; |
|
} |
|
.button-container { |
|
margin-top: 30px; |
|
} |
|
.home-button { |
|
background-color: #3498db; |
|
color: white; |
|
border: none; |
|
padding: 15px 30px; |
|
font-size: 18px; |
|
border-radius: 50px; |
|
cursor: pointer; |
|
text-decoration: none; |
|
display: inline-block; |
|
transition: background-color 0.3s ease, transform 0.3s ease; |
|
} |
|
.home-button:hover { |
|
background-color: #2980b9; |
|
transform: scale(1.05); |
|
} |
|
.summary { |
|
background-color: #f8f9fa; |
|
padding: 20px; |
|
border-radius: 10px; |
|
margin-bottom: 30px; |
|
text-align: left; |
|
} |
|
.summary h2 { |
|
color: #2c3e50; |
|
margin-top: 0; |
|
} |
|
@keyframes bounce { |
|
0%, 20%, 50%, 80%, 100% {transform: translateY(0);} |
|
40% {transform: translateY(-30px);} |
|
60% {transform: translateY(-15px);} |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<div class="container"> |
|
<h1>Thank You!</h1> |
|
<p>You've successfully completed all 10 samples. Here are the average rankings for each explanation method:</p> |
|
|
|
<div class="summary"> |
|
<h2>Ranking Summary</h2> |
|
<p>Lower numbers indicate better rankings (1 = best, 4 = worst)</p> |
|
</div> |
|
|
|
<div class="rankings-container"> |
|
{% for method, rank in sorted_methods %} |
|
<div class="method-card"> |
|
<div class="method-info"> |
|
<div class="method-name">{{ method }}</div> |
|
<div class="rank-label">Average Ranking</div> |
|
</div> |
|
<div class="average-rank">{{ "%.2f"|format(rank) }}</div> |
|
</div> |
|
{% endfor %} |
|
</div> |
|
|
|
<div class="button-container"> |
|
<a href="/" class="home-button">Back to Home</a> |
|
</div> |
|
</div> |
|
|
|
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.5.1/dist/confetti.browser.min.js"></script> |
|
<script> |
|
|
|
confetti({ |
|
particleCount: 100, |
|
spread: 70, |
|
origin: { y: 0.6 } |
|
}); |
|
</script> |
|
</body> |
|
</html> |