diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index 2bafd2708..e69de29bb 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -1,32 +0,0 @@ -(function() { - Danbooru.Layout = {}; - - Danbooru.Layout.initialize = function() { - if ($("#c-posts").length && $("#a-index").length) { - $(window).resize(Danbooru.Layout.restyle_content); - Danbooru.Layout.restyle_content(); - } - } - - Danbooru.Layout.restyle_content = function() { - if ($(window).width() > 1100) { - $("#content").css("width", "50em"); - } - - if ($(window).width() > 1300) { - $("#content").css("width", "60em"); - } - - if ($(window).width() > 1500) { - $("#content").css("width", "70em"); - } - - if ($(window).width() < 1000) { - $("#content").css("width", "40em"); - } - } -})(); - -$(document).ready(function() { - Danbooru.Layout.initialize(); -});