GithubHelp home page GithubHelp logo

js-tp-drum-kit's Introduction

Drum Kit 🎶

JS exercise given at HEPL


js-tp-drum-kit is an educational project, which will be used for JS courses.

Note: the school where the course is given, the HEPL from Liège, Belgium, is a french-speaking school. From this point, the instruction will be in french. Sorry.


Lors de vos cours de web, vous allez découvrir le langage JavaScript et le mettre en pratique pour apprendre à rendre vos pages web interactives.


Vous pouvez consulter une version finale du projet ici.

Énoncé

readme

Bim bam boom 🎶 🎵, le tout avec des couleurs. Dans le cadre de cet exercice, nous vous demandons de jouer un son particulier quand l'utiliser presse les touches visibles à l'écran. De plus, la couleur de fond change pendant un bref instant.

Aides

Quand l'utilisateur presse une touche :

  1. Il faut vérifier si cette touche est connue.
  2. SI oui, alors il faut jouer l'audio associé. Attention d'assurer une cohérence quand l'utilisateur presse une seconde fois la touche alors que l'audio précédent n'est pas encore complètement joué.
  3. De plus, il faut ajouter la classe playing à l'élément .key qu'il faudra retirer quand la transition css se termine. Cf. transitionend
  4. Changer la couleur de fond de l'élément body en ajoutant la classe qui porte le nom de la touche. Ex: si l'on presse la touche s alors il faut ajouter la classe s à l'élément body.
  5. Permettre la même chose mais au click.

Quelques ressources 👌

keycode.info

keyCode ⚠️ à lire !

data-*

currentTime

play()

Source

JavaScript30 de Wes Bos

js-tp-drum-kit's People

Contributors

danielschreurs 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.