GithubHelp home page GithubHelp logo

trivia_app's Introduction

Trivia App

This is a fairly simple trivia app using the Open Trivia DB API.

App Description

The app loads questions categories from the API on load and then requests and displays questions on cards. The cards turn over once an answer is selected and will be displayed along with an image indicating a correct or incorrect selection. Once all questions are answered, a modal is displayed to inform the user of their score and offer to reset the round or be dismissed to allow for review.

Concepts learned

  • The IIFE used as part of a Revealing Module Pattern
  • API requests and ajax.
  • Asynchronous functions and Promises
  • DOM maniputlation with JS and jQuery
  • Event Listeners and Handlers
  • Bootsrap basics
  • More advanced CSS techniques
  • Character Encoding

Technologies

The version on the main branch is built in vanilla JS, HTML, and CSS. It is hosted at trivia.nickplamb.com.

The version on the bootstrap_conversion branch is built with jQuery, Bootstrap, HTML, and CSS. It is hosted at nickplamb.github.io/trivia-app/

Future Development

  • Implement Session Token
    • API allows a session token to be used in order to prevent repeat questions from being sent.
  • Snarky Responses
    • Randomly display a snarky response on the back of each card after a user selects and answer.
  • Refactor vanilla js version
    • Create the bulk of the back of card elements on card creation to simplify event handling.
  • Clean up appearance
    • Work on improving the design and color scheme of the app.
    • Fix card header issue in Bootstrap Version.
  • Display question cards one at a time in a carousel
  • Implement templates
    • Use a template system to create the question cards instead of creating dynamically.
  • Implement back-end with login and score keeping capabilities

trivia_app's People

Contributors

nickplamb avatar ttury avatar

Watchers

James Cloos avatar  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.