SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pageSettings={
  2.   red: 200,
  3.   green: 200,
  4.   blue: 200,
  5.   background: ['https://pictures.s3.yandex.net/background.jpg', 'https://pictures.s3.yandex.net/cover-color.jpg', 'https://pictures.s3.yandex.net/cover-grid.jpg', 'https://pictures.s3.yandex.net/cover-typo.jpg', 'https://pictures.s3.yandex.net/cover-wall.jpg']
  6. };
  7. var bgColor="rgb(" + pageSettings.red + ',' + pageSettings.green + ',' + pageSettings.blue + ')';
  8. document.body.style.backgroundColor=bgColor;
  9. var header=document.getElementById('main-header');
  10. console.log(header);
  11. header.style.backgroundImage='url('+pageSettings.background[2]+')';
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