From 4a45570f40ee0bcbe892307b6e1de355130bb604 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Mon, 11 Feb 2013 12:10:40 +0100 Subject: [PATCH] =?UTF-8?q?make=20more=20use=20of=20the=20empty=20space=20?= =?UTF-8?q?below=20the=20sidebar=20now=20that=20there=E2=80=99s=20a=20map?= =?UTF-8?q?=20rendered=20behind=20it=20all=20the=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/boot.js | 4 ++-- code/request_handling.js | 2 +- main.js | 11 +++++------ style.css | 12 ++++++------ 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/code/boot.js b/code/boot.js index 246d6c1f..dbd9b265 100644 --- a/code/boot.js +++ b/code/boot.js @@ -33,11 +33,11 @@ window.setupStyles = function() { '#chatcontrols { bottom: '+(CHAT_SHRINKED+24)+'px; }', '#chat { height: '+CHAT_SHRINKED+'px; } ', '.leaflet-right { margin-right: '+(SIDEBAR_WIDTH+1)+'px } ', - '#updatestatus { width:'+(SIDEBAR_WIDTH-2*4)+'px; } ', + '#updatestatus { width:'+(SIDEBAR_WIDTH-2*4+1)+'px; } ', '#sidebar { width:'+(SIDEBAR_WIDTH + HIDDEN_SCROLLBAR_ASSUMED_WIDTH + 1 /*border*/)+'px; } ', '#sidebartoggle { right:'+SIDEBAR_WIDTH+'px; } ', '#scrollwrapper { width:'+(SIDEBAR_WIDTH + 2*HIDDEN_SCROLLBAR_ASSUMED_WIDTH)+'px; right:-'+(2*HIDDEN_SCROLLBAR_ASSUMED_WIDTH-2)+'px } ', - '#sidebar input, h2, #updatestatus { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ', + '#sidebar input, h2 { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ', '#sidebar > *, #gamestat span, .imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n") + ''); } diff --git a/code/request_handling.js b/code/request_handling.js index 60aa00f6..042fc397 100644 --- a/code/request_handling.js +++ b/code/request_handling.js @@ -50,7 +50,7 @@ window.renderUpdateStatus = function() { t += ' RENDER LIMIT ' if(window.failedRequestCount > 0) - t += ' ' + window.failedRequestCount + ' requests failed.' + t += ' ' + window.failedRequestCount + ' failed.' t += '
('; var minlvl = getMinPortalLevel(); diff --git a/main.js b/main.js index 6f722903..a9242ec3 100644 --- a/main.js +++ b/main.js @@ -49,14 +49,13 @@ for(var i = 0; i < d.length; i++) { // player information is now available in a hash like this: // window.PLAYER = {"ap": "123", "energy": 123, "available_invites": 123, "nickname": "somenick", "team": "ALIENS||RESISTANCE"}; - // remove complete page. We only wanted the user-data and the page’s // security context so we can access the API easily. Setup as much as // possible without requiring scripts. document.getElementsByTagName('head')[0].innerHTML = '' - //~ + '' + + '' + 'Ingress Intel Map' - + '' + //~ + '' + '' + ''; @@ -81,9 +80,9 @@ document.getElementsByTagName('body')[0].innerHTML = '' + ' ' + '
permalink
' + '
' - + '
' - + ' '; - + ''; + + ' ' + + '' + + '
'; // putting everything in a wrapper function that in turn is placed in a // script tag on the website allows us to execute in the site’s context diff --git a/style.css b/style.css index 3f79011c..f23b7799 100644 --- a/style.css +++ b/style.css @@ -11,22 +11,22 @@ body { } #scrollwrapper { - height: 100%; overflow: hidden; position: fixed; right: -38px; top: 0; width: 340px; + bottom: 45px; } #sidebar { background-color: rgba(8, 48, 78, 0.9); border-left: 1px solid #20A8B1; color: #888; - height: 100%; position: relative; left: 0; top: 0; + max-height: 100%; overflow-y:scroll; overflow-x:hidden; z-index: 3000; @@ -523,16 +523,14 @@ aside:nth-child(odd) span { } #spacer { - /* cheap hack to prevent sidebar content being overlayed by the map - * status box */ - height: 55px; + height: 10px; } /* a common portal display takes this much space (prevents moving * content when first selecting a portal) */ #portaldetails { - min-height: 532px; + min-height: 553px; } @@ -541,12 +539,14 @@ aside:nth-child(odd) span { background-color: rgba(8, 48, 78, 1); border-bottom: 0; border-top: 1px solid #20A8B1; + border-left: 1px solid #20A8B1; bottom: 0; color: #ffce00; font-size:13px; padding: 4px; position: fixed; right: 0; + z-index:3002; }