From 595c903ff98d34d9d2345e8a481713d209aee235 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 30 Sep 2010 06:11:36 +0000 Subject: [PATCH] Popup menus improved --- static/js/machichara/simple.js | 4 ++-- static/js/modern.js | 30 ++++++++++++++++++++++-------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/static/js/machichara/simple.js b/static/js/machichara/simple.js index 9ea800a..84a98a1 100644 --- a/static/js/machichara/simple.js +++ b/static/js/machichara/simple.js @@ -7,8 +7,8 @@ function simpleMachicharaUpdater(element) { function simpleMachicharaUpdate(element) { clearTimeout(element.interval); - element.style.top = Math.floor(Math.random()*90) + "%"; - element.style.left = Math.floor(Math.random()*90) + "%"; + element.style.top = 5 + Math.floor(Math.random()*80) + "%"; + element.style.left = 5 + Math.floor(Math.random()*80) + "%"; element.interval = window.setTimeout(simpleMachicharaUpdater(element), 5000+Math.floor(Math.random()*25000)); } diff --git a/static/js/modern.js b/static/js/modern.js index 8856c5a..9b0c0e2 100644 --- a/static/js/modern.js +++ b/static/js/modern.js @@ -1,15 +1,29 @@ -function showChildren(elem) { - for(var i=0; i