Coder Social home page Coder Social logo

jsoop_practice2's Introduction

JS OOP Prototype

Featureset 1 - Modal dom/code object

  • use the file exercise/modal.js
  • modify the Modal class
  • complete the properties and methods included in the class
  • should be able to:
    • attach to an existing modal body / shadow
    • change the content of the modal
    • show the modal
    • hide the modal
    • initialize the object with the init function
  • test the class in the output in index.html

Featureset 2 - Input dom/code object

  • use the file exercise/input.js
  • modify the Input class
  • complete the properties and methods included in the class
  • should be able to:
    • attach an input dom element to the object via the constructor
    • take in a regex pattern to test against (explained inside file)
    • take in an optional min and max values
    • test the value and return true/false
    • show an error via a created dom element that appears right below the input
    • hide/destroy the error message that was created in show
  • test the class in the output in index.html

Featureset 3 - Color Square code object

  • use the file exercise/colorsquare.js
  • modify the ColorSquare class
  • complete the properties and methods included in the class
  • should be able to:
    • get and set the neighbor of the element via getters/setters (explained in file)
    • verify if the set neighbor is a color square
    • dom generate an element and return it for use with parent functions
    • handle clicks on the element
    • change color of the element on click
    • communicate with neighbors about the click
  • test the class in the output in index.html

jsoop_practice2's People

Contributors

dpaschal-lf avatar joedeirossi 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.