Code Monkey home page Code Monkey logo

htmlbgchooser's Introduction

usage

Welcome to htmlBgChooser!

A short HTML/Javascript code to change the background colour.

Possible uses include testing web pages with certain backgrounds.

Installation

Simply paste wherever you need to test your colours!

Pro Tip

Notepad and Notepad++:

  1. Ctrl+H to find the instance of the colour. eg. (#e6261f)
  2. Type your hex (with '#') in "Replace".
  3. Hit "Replace All" to replace the template code with your own colours!

This may work in many text based editors

<span style="color:#e6261f;" onclick="document.body.style.backgroundColor='#e6261f';"></span>
<span style="color:#eb7532;" onclick="document.body.style.backgroundColor='#eb7532';"></span>
<span style="color:#f7d038;" onclick="document.body.style.backgroundColor='#f7d038';"></span>
<span style="color:#a3e048;" onclick="document.body.style.backgroundColor='#a3e048';"></span>
<span style="color:#49da9a;" onclick="document.body.style.backgroundColor='#49da9a';"></span>
<span style="color:#34bbe6;" onclick="document.body.style.backgroundColor='#34bbe6';"></span>
<span style="color:#4355db;" onclick="document.body.style.backgroundColor='#4355db';"></span>
<span style="color:#d23be7;" onclick="document.body.style.backgroundColor='#d23be7';"></span>
<span style="color:#fff;" onclick="document.body.style.backgroundColor='#fff';"></span>
<span style="color:#000;" onclick="document.body.style.backgroundColor='#000';"></span>
<span style="color:#ccc;" onclick="document.body.style.backgroundColor='#ccc';"></span>

This palette was found on Loading.io and includes black, white and grey.

Other notes

A rainbow is a meteorological phenomenon that is caused by reflection, refraction and dispersion of light in water droplets resulting in a spectrum of light appearing in the sky. It takes the form of a multicoloured circular arc. Rainbows caused by sunlight always appear in the section of sky directly opposite the sun.

— adopted from wikipedia, "Rainbow", available under CC BY-SA License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.