Compare commits
No commits in common. "622b6327736189846d7ad4666448079d69f7e420" and "bb0cf871ec841122f8950584d8f93c13c990cca9" have entirely different histories.
622b632773
...
bb0cf871ec
6 changed files with 0 additions and 34 deletions
|
@ -87,7 +87,6 @@ TEMPLATES = [
|
||||||
'header_fotky.context_processors.vzhled',
|
'header_fotky.context_processors.vzhled',
|
||||||
'various.context_processors.rozliseni',
|
'various.context_processors.rozliseni',
|
||||||
'various.context_processors.april',
|
'various.context_processors.april',
|
||||||
'various.context_processors.halloween',
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,13 +8,6 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'GhoulFace';
|
|
||||||
src: url("../fonts/ghoul/ghoulheadline.ttf"),
|
|
||||||
url("../fonts/ghoul/ghoul.woff");
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: 'OpenSans';
|
font-family: 'OpenSans';
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -78,16 +78,3 @@
|
||||||
walkText(document.body);
|
walkText(document.body);
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if halloween == 2024 %}
|
|
||||||
<script>
|
|
||||||
function printHalloween() {
|
|
||||||
console.log("Halloween 2024");
|
|
||||||
body = document.getElementsByTagName('body')[0];
|
|
||||||
body.style.fontFamily = 'GhoulFace';
|
|
||||||
}
|
|
||||||
window.onload = printHalloween;
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -15,19 +15,6 @@ def april(req):
|
||||||
return {'april': today.year}
|
return {'april': today.year}
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def halloween(req):
|
|
||||||
if 'X-Halloween' in req.headers:
|
|
||||||
try:
|
|
||||||
year = int(req.headers['X-Halloween'])
|
|
||||||
return {'halloween': year}
|
|
||||||
except:
|
|
||||||
pass # Fall-back to regular behaviour
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
today = datetime.date.today()
|
|
||||||
if today.month == 10 and today.day >= 25:
|
|
||||||
return {'halloween': today.year}
|
|
||||||
return {}
|
|
||||||
|
|
||||||
def rozliseni(request):
|
def rozliseni(request):
|
||||||
ltp = settings.LOCAL_TEST_PROD
|
ltp = settings.LOCAL_TEST_PROD
|
||||||
|
|
Loading…
Reference in a new issue