Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8db4d5afed | ||
|
|
f45e289ed8 |
@@ -24,6 +24,7 @@ SECRET_KEY = os.getenv("SECRET_KEY")
|
|||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True if os.getenv("DEBUG") == "True" else False
|
DEBUG = True if os.getenv("DEBUG") == "True" else False
|
||||||
|
LOGGING_CONFIG = None
|
||||||
|
|
||||||
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "localhost").split(",")
|
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "localhost").split(",")
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
animation-fill-mode: forwards;
|
animation-fill-mode: forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.achievements-list {
|
.achievment-column {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -24,6 +24,12 @@
|
|||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.achievment-column {
|
||||||
|
height: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes moveup {
|
@keyframes moveup {
|
||||||
from {bottom: 0px;}
|
from {bottom: 0px;}
|
||||||
to {bottom: 200px; color: white;}
|
to {bottom: 200px; color: white;}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.columns {
|
.columns {
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,6 +20,13 @@ html, body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.button-column {
|
||||||
|
height: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.button-container {
|
.button-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,8 @@ const button = document.getElementById("BUTTON");
|
|||||||
const count = document.getElementById("COUNT");
|
const count = document.getElementById("COUNT");
|
||||||
const button_container = document.getElementById("button-container");
|
const button_container = document.getElementById("button-container");
|
||||||
const achievement = document.getElementById("achievement");
|
const achievement = document.getElementById("achievement");
|
||||||
const achievement_list = document.getElementById("achievement-list")
|
const achievement_list = document.getElementById("achievement-list");
|
||||||
|
const achievement_column = document.getElementById("achievement-column");
|
||||||
|
|
||||||
function add_achievement(text) {
|
function add_achievement(text) {
|
||||||
if (text != undefined) {
|
if (text != undefined) {
|
||||||
@@ -16,7 +17,7 @@ function add_achievement(text) {
|
|||||||
elem.innerText = text;
|
elem.innerText = text;
|
||||||
achievement_list.appendChild(elem);
|
achievement_list.appendChild(elem);
|
||||||
|
|
||||||
achievement_list.scrollTo(0, achievement_list.scrollHeight);
|
achievement_column.scrollTo(0, achievement_list.scrollHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
The Button
|
The Button
|
||||||
</h1>
|
</h1>
|
||||||
<button class="button is-primary" id="BUTTON">Press</button>
|
<button class="button is-danger" id="BUTTON">Press</button>
|
||||||
</div>
|
</div>
|
||||||
<div><br></div>
|
<div><br></div>
|
||||||
<div>
|
<div>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column achievment-column">
|
<div class="column achievment-column" id = "achievement-column">
|
||||||
<div class="achievements-list" id="achievement-list">
|
<div class="achievements-list" id="achievement-list">
|
||||||
<h1 class="title">Achievements</h1>
|
<h1 class="title">Achievements</h1>
|
||||||
{% for key,value in achievement.items %}
|
{% for key,value in achievement.items %}
|
||||||
|
|||||||
Reference in New Issue
Block a user