From d73afb5275b80e2beaa6714aad800eb44f25c1a3 Mon Sep 17 00:00:00 2001 From: AmaN Date: Sat, 19 Oct 2024 21:07:10 +0530 Subject: [PATCH] Fixed Bugs #46 - remove extra script - added check --- messages.js | 18 +++++++++--------- profile.html | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/messages.js b/messages.js index 47e81d2..6c38a0d 100644 --- a/messages.js +++ b/messages.js @@ -1,13 +1,13 @@ -var up_button=document.getElementById('img_messages2'); +var up_button = document.getElementById("img_messages2"); -var down_button=document.getElementById('img_messages3'); +var down_button = document.getElementById("img_messages3"); -var messages=document.getElementById('messages'); +var messages = document.getElementById("messages"); // var form1=document.getElementById('form1'); - -messages.onclick=function(){ - - messages.style.position='relative'; - messages.style.top='43%'; -} \ No newline at end of file +if (messages) { + messages.onclick = function () { + messages.style.position = "relative"; + messages.style.top = "43%"; + }; +} diff --git a/profile.html b/profile.html index 55f7a06..08d2dd2 100644 --- a/profile.html +++ b/profile.html @@ -53,6 +53,5 @@

User Profile

-