From: vincent@cubedesigners.com Date: Mon, 7 Nov 2016 13:19:16 +0000 (+0000) Subject: done #934 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=18aae9dcb21f37470132757e6544e89033c07b4f;p=fluidbook-v3.git done #934 @1 --- diff --git a/js/504-e404.js b/js/504-e404.js index e69de29..5581cd0 100644 --- a/js/504-e404.js +++ b/js/504-e404.js @@ -0,0 +1,13 @@ +registerLoader(load_e404, true); +function load_e404() { + resize_e404(); + $(window).on('fluidbookresize', resize_e404); +} + +function resize_e404() { + var wh = getWindowHeight() / zoom; + $('#error').css('height', wh); + + var c = $("#error .dotclear"); + $(c).css({paddingTop: $("#h").height() + (wh - $("#h").height() - $(c).outerHeight()) / 2}) +} \ No newline at end of file