SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const changeColor = e => {
  2.     const lightOrange = "rgb(221, 238, 255)"
  3.     const lightBlue = "rgb(255, 238, 221)"
  4.     const {style} = document.body
  5.     style.backgroundColor = style.backgroundColor === lightOrange
  6.         ? lightBlue
  7.         : lightOrange
  8. }
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