From: Gabriel Dunne Date: Sat, 23 Mar 2013 01:40:50 +0000 (-0700) Subject: Cleaning up CSS X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=c09a8e2034456d0a48f67589d107d39f7628c1ac;p=visual-archive.git Cleaning up CSS --- diff --git a/public/script.js b/public/script.js index f0967d5..585d4db 100644 --- a/public/script.js +++ b/public/script.js @@ -23,20 +23,26 @@ $(document).ready(function() { link.click(function() { scrim(1, function() { $('#subcontent .container').empty(); - $('#subcontent').fadeIn(100); + var offset = 150; + $('#subcontent').css({ + width : window.innerWidth - offset + "px", + height : window.innerHeight - offset + "px", + top : offset / 2, + left : offset / 2 + }) + .fadeIn(100); - //console.log(thumbs_url); + $('#subcontent .container').text("loading..."); $.getJSON('/thumbs/?url=' + thumbs_url, function(data) { - var destElem = '#subcontent .container'; + $('#subcontent .container').empty(); - console.log(data); - var items = []; + var destElem = '#subcontent .container'; $('
', { 'class' : 'desc', - html : ' ' + data.url + ' ' + html : '

' + data.url + '

' }).appendTo(destElem); $('