Git Product home page Git Product logo

javascript-challenge's Introduction

Gust Developer/Designer Challenge

We’d like you to use our simple, fake javascript framework to create a widget that handles some linked checkboxes. You'll find examples of other widgets in this repo, which you may use to guide you and to figure out how the framework functions.

Requirements

Create a 'linked checkbox' that allows a user to check or uncheck all of the related checkboxes simultaneously.

  • The controlling checkbox will have three states: a checked state, an unchecked state, and an intermediary state.
  • When controlling checkbox is unchecked:
    • if the user clicks on a related checkbox, that checkbox becomes checked, and the controlling checkbox remains unchecked.
    • if the user clicks on the controlling checkbox, it becomes checked and related checkboxes become checked.
  • When the controlling checkbox is checked:
    • if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked.
    • if the user clicks on a related checkbox, that checkbox becomes unchecked, and the controlling checkbox enters the intermediary state.
  • When the controlling checkbox is in the intermediary state:
    • if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked.
    • if the user clicks on a checked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more checked related boxes, in which case it returns to the unchecked state.
    • if the user clicks on an unchecked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more unchecked related boxes, in which case it returns to the checked state.
  • for an example of this behavior, check out a gmail inbox

What we’re looking for:

We want to see the way you approach learning about a new codebase, asking questions, solving problems, and communicating your intent. The javascript framework is very rough, has poor cross-browser compatibility, and is generally silly, but we don't want you to focus on those details, instead try to show us how you tackle a new problem.

Technical setup

k.js and the widgets we wrote with it are written in es6, but have no other dependencies. Jquery is available in the head of the html page, but you certainly don't need to use it to complete the challenge satisfactorily.

Submission

Please clone this repo, implement your design, push it to a new private repo in your GitHub account, then add [email protected] as a collaborator to that repo and we'll check it out.

Happy Coding!

javascript-challenge's People

Contributors

beavz avatar gustnash avatar pdswan 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.