Giter Site home page Giter Site logo

dom-ii's Introduction

DOM II

Project Description

Fun Bus wants you to make their site more interactive. They are relying on you to provide 10 unique events to enhance their site. Explore the many events available to you by using the MDN events reference.

Git Setup

  • Create a forked copy of this project.
  • Clone your OWN version of the repository.
  • Implement the project on the main branch, committing changes regularly.
  • Push commits: git push origin main.

Running the project

This project uses Webpack and Babel. Inside src/index.html you will notice there is no script tag linking the JavaScript, nor a link tag linking the styles. When the project starts, Webpack transcompiles the LESS into CSS, and injects the JavaScript and the styles into the HTML.

Do not move or rename any files in this project. The website's source files live inside the src folder. Do not make changes to any files outside of the src folder, unless it's new dependecies declared in the package.json due to installing NPM libraries (E.G. npm i lodash).

  • Run npm install to download the project's dependencies.
  • Run npm start to launch the website on http://localhost:3000.

MVP

Create listeners of 10 types of events

  • Using your index.js file, create event listeners of at least 10 different types. You must Use your creativity to make the Fun Bus site more interactive. For example you could change colors, animate objects, add DOM elements, remove them, etc.

  • Here are some event types you could try to use:

    • mouseover
    • keydown
    • wheel
    • load
    • focus
    • resize
    • scroll
    • select
    • dblclick
    • drag / drop

Note: Drag and drop is a bit more advanced than the others. It's not actually a single type of event but several types that need to work together.

Use preventDefault

  • Find a usecase for preventDefault. For example, you could prevent a link from navigating when clicked, or to navigate somewhere surprising.

Submission Format

  • Submit link to your github repo in canvas.

dom-ii's People

Contributors

ladrillo avatar bigknell avatar tetondan avatar ivanmora avatar williamgregorio avatar crharding avatar zoelud avatar brityhemming avatar justsml avatar mixelpixel avatar rodrigograca31 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.