Git Product home page Git Product logo

cmd_ctr's Introduction

CMD CTR

In this project, we will continue to work with Javascript and HTML but also include manipulating the CSS.

Objective

Create a simple web application using HTML, Javascript (js) and CSS to create interactive boxes. You will apply the two js events previously researched and change the background color of the boxes.

Requirements

  • Sublime Text
  • Chrome
  • Terminal

Desired Outcome

At the end of this exercise you should understand:

  • HTML elements and classes
  • JS event handling
  • JS methods for CSS
Your Challenge
  1. Fork this repo
  2. Create a sub folder inside your root folder named cmd_ctr
  3. Create an index.html
  4. Create a js folder with an app.js file inside
  5. Create a css folder with a style.js file inside
  6. Create your HTML structure.
  7. Link your style.css and app.js files

HTML structure: for each event example

  • Create a div with a class container
  • Create one box with the id box
  • Add your js event

Javascript

  • Create a global variable that gets the element with the box id
  • Create a function named red that changes the background color of the box to red.

CSS

  • Style your box(es)
  • Hint the size should be atleast 100x100
Extra Credit (2)
  • Create two more boxes and change their colors.
  • Or you can choose two more events
Resources

cmd_ctr's People

Contributors

jmt75200 avatar cutiegirl526 avatar

Watchers

James Cloos avatar

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.