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 @@