summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-15 22:59:13 -0600
committerDan McGee <dan@archlinux.org>2013-01-15 23:17:40 -0600
commit131d238ae38034c3df0ab1dbc307773ac6a38442 (patch)
tree5ac6a206c449b4c6524720ac00dcadb6eaa3f956 /templates
parent8eaa63b2976e697cd2e6adca43f5d6d9cf7a8eda (diff)
downloadarchweb-131d238ae38034c3df0ab1dbc307773ac6a38442.tar.gz
archweb-131d238ae38034c3df0ab1dbc307773ac6a38442.zip
Add a little easter egg for people to find
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html1
-rw-r--r--templates/public/index.html16
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index a7ebc7d3..c6aa3f17 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -68,6 +68,7 @@
{% block content_right %}{% endblock %}
</div>
{% endblock %}
+ {% block content_after %}{% endblock %}
<div id="footer">
<p>Copyright &copy; 2002-{% now "Y" %} <a href="mailto:jvinet@zeroflux.org"
title="Contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org"
diff --git a/templates/public/index.html b/templates/public/index.html
index 0be4f18c..abf16afd 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -211,9 +211,14 @@
</a>
</div>
{% endcache %}
+{% endblock %}
+
+{% block content_after %}
+<div id="konami" style="display:none;"></div>
{% load cdn %}{% jquery %}
<script type="text/javascript" src="{% static "bootstrap-typeahead.min.js" %}"></script>
+<script type="text/javascript" src="{% static "konami.pack.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#pkgsearch-field').typeahead({
@@ -228,5 +233,16 @@ $(document).ready(function() {
items: 10
}).attr('autocomplete', 'off');
});
+$(document).ready(function() {
+ var konami = new Konami();
+ konami.code = function() {
+ $('#konami').html('<img src="{% static "vector_tux.png" %}" alt=""/>');
+ setTimeout(function() {
+ $('#konami').fadeIn(500);
+ }, 500);
+ };
+ konami.iphone.code = konami.code;
+ konami.load();
+});
</script>
{% endblock %}