diff options
Diffstat (limited to 'web/static')
-rw-r--r-- | web/static/css/base.ccss | 7 | ||||
-rw-r--r-- | web/static/js/common.js | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/web/static/css/base.ccss b/web/static/css/base.ccss index d8218bd..13b92e6 100644 --- a/web/static/css/base.ccss +++ b/web/static/css/base.ccss @@ -76,3 +76,10 @@ footer: width: 900px margin: 50px auto text-align: center + +.error: + padding: 50px + text-align: center + font-size: 14pt + font-weight: bold + color: #e42 diff --git a/web/static/js/common.js b/web/static/js/common.js index c987242..9d1451f 100644 --- a/web/static/js/common.js +++ b/web/static/js/common.js @@ -10,6 +10,13 @@ new Request.JSON({ 'url': ykill.api_host + path, 'onSuccess': cb, + 'onFailure': function(xhr) { + $('wrapper').empty().grab(new Element('div', { + 'class': 'error', + 'html': 'as you pass through the wormhole you realize that it collapses behind you.' + + '<br>have you become trapped?' + })); + }, }).get(); }, |