Giter Site home page Giter Site logo

sanjindedic / aitrivia Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 61.05 MB

This is a web-based Science and Tech Trivia Quiz game with GPT-4 generated questions and Stable Diffusion generated images

Home Page: https://aitrivia.live/

CSS 20.34% HTML 25.35% JavaScript 52.11% Python 2.20%
gpt-4 quiz-app stable-diffusion

aitrivia's Introduction

Science and Tech Trivia

This is a web-based Science and Tech Trivia Quiz game built using HTML, CSS, and JavaScript. Users can compete with each other by answering multiple-choice or short-answer questions related to science and technology. The ranking table displays the real-time ranking of teams based on their scores. Live Site: https://aitrivia.live/

Project Structure

├── css
│   ├── main.css
│   └── rankings.css
├── js
│   ├── main.js
│   └── rankings.js
├── pages
│   ├── about.html
│   └── rankings.html
├── index.html
└── README.md

index.html

The main HTML file for the Science and Tech Trivia game. It includes the login form, navigation bar, and quiz container. The quiz container contains questions, answer options, and a countdown timer. The file also links to the necessary CSS and JavaScript files.

pages/rankings.html

This HTML file displays the ranking table, showing the real-time scores and rankings of all participating teams. It includes the navigation bar and links to the necessary CSS and JavaScript files.

css/main.css

This file contains the primary CSS styles for the index.html page.

css/rankings.css

This file contains the CSS styles specifically for the rankings.html page.

js/main.js

The main JavaScript file containing the core functionality of the game, including fetching questions, displaying questions, submitting answers, and managing the countdown timer. It also includes the login function for user authentication.

js/rankings.js

This JavaScript file is responsible for fetching the team rankings from the server and updating the ranking table on the rankings.html page.

Usage

To play the game, open the index.html file in a web browser. Enter your team name and click the "Login" button. Once logged in, you will be presented with a series of questions. Answer the questions within the given time limit. At the end of the quiz, you will be redirected to the rankings.html page, where you can view your team's ranking.

License

This project is licensed under the MIT Licence.

aitrivia's People

Contributors

sanjindedic avatar

Stargazers

 avatar Muhammad Dawood avatar

Watchers

 avatar Kostas Georgiou 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.