From e3671e8249fdb0031567e29a77b5b5bea899d6c7 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 28 Mar 2015 16:41:20 -0700 Subject: [PATCH] Clean up code for use outside example page --- css/main.css | 4 ---- css/page.css | 7 +++++++ js/context.js | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/css/main.css b/css/main.css index 05883146..f9d80680 100755 --- a/css/main.css +++ b/css/main.css @@ -3,10 +3,6 @@ position: absolute; height: 116px; width: 275px; - margin-top: -58px; - margin-left: -137px; - top: 40%; - left: 50%; cursor:url('../cursors/MAINMENU.PNG?inline'), auto; /* Ask the browser to scale showing large pixels if possible */ image-rendering: -moz-crisp-edges; /* Firefox */ diff --git a/css/page.css b/css/page.css index 5bde1ec1..05236bee 100644 --- a/css/page.css +++ b/css/page.css @@ -17,6 +17,13 @@ body { text-align: center; } +#main-window { + margin-top: -58px; + margin-left: -137px; + top: 40%; + left: 50%; +} + .about { position: absolute; bottom: 0; diff --git a/js/context.js b/js/context.js index 99faa1d4..358385fe 100644 --- a/js/context.js +++ b/js/context.js @@ -1,9 +1,9 @@ Context = { - // The Option button - option: document.getElementById('option'), - init: function(winamp) { this.winamp = winamp; + + // The Option button + this.option = document.getElementById('option'); var self = this; document.onclick = function() {