SHARE
TWEET

Untitled

Nazukai Dec 3rd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function funcComments() {
  2.   var x = document.getElementById("text");
  3.   var y = document.getElementById("note");
  4.   if (x.style.display === "block") {
  5.     x.style.display = "none";
  6.   }
  7.   else if (y.style.display === "block") {
  8.     y.style.display = "none";
  9.     x.style.display = "block";
  10.   }
  11.   else {
  12.     x.style.display = "block";
  13.   }
  14. }
  15.  
  16. function funcRate() {
  17.   var x = document.getElementById("note");
  18.   var y = document.getElementById("text");
  19.   if (x.style.display === "block") {
  20.     x.style.display = "none";
  21.   }
  22.   else if (y.style.display === "block") {
  23.     y.style.display = "none";
  24.     x.style.display = "block";
  25.   }
  26.   else {
  27.     x.style.display = "block";
  28.   }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top