Skip to content

Latest commit

 

History

History
148 lines (93 loc) · 4.87 KB

README.md

File metadata and controls

148 lines (93 loc) · 4.87 KB

Tech-Quiz

An online Tech quiz Website

Welcome to Hacktoberfest #10 2023

Hacktoberfest Banner

⭐ This repository is made for beginners who are looking for a beginner-friendly repository to start open source contributions!

⭐ Feel free to use this project to make your first contribution to an open-source project on GitHub.

⭐ Star this repository for a better reach!

What is Hacktoberfest? 🤔

A month-long celebration from October 1st to October 31st presented by Digital Ocean and DEV Community collaborated with GitHub to get people involved in Open Source.

https://hacktoberfest.com/

A BIG Thanks To Our Contributors 🤝 🤝]

Note 🔥

  1. To qualify for digital rewards by Hacktoberfest, you must register for the event and make four Pull Requests (PRs) between October 1-31, 2023 (in any time zone).

  2. Pull requests can be made in any GitHub or GitLab hosted project that’s participating in Hacktoberfest (look for the “hacktoberfest” topic).

  3. The first 50,000 participants to have their first PR/MR accepted will have a tree planted in their name through Tree Nation

How to Contribute

To contribute to our Tech-Quiz:

  1. Fork the Repository: Click the "Fork" button at the top right of this repository to create a copy in your GitHub account. 🍴

  2. Clone Your Fork: Clone the forked repository to your local machine using Git. 🖥️

    git clone https://github.com/yourusername/Tech-Quiz.git
    
  3. Create a Branch: Create a new branch for your contribution under the respective folder. 🌿

    git checkout -b add-new-question
    

Contribution Rules 🤍

⭐ Follow these steps to add your question.

  1. Go to index.html
  2. Copy paste the question template code to modify it.
  3. Before add your question please check the last updated file then add question no. accordingly.
  4. Add any question related to js or WebDev > set only four options

'''

    <!-- Copy and paste the following template for each new quiz question -->
    <!--next Question -->
    <!-- add your question according to the given format and also options are set accordingly-->
    
    
    <div class="question">
        <p>6. ----insert your Question here -----</p>
        <div class="option">
            <input type="radio" name="q6" id="q6A" value="A">
            <label for="q6A">your_option1</label>
        </div>
        <div class="option">
            <input type="radio" name="q6" id="q6B" value="B">
            <label for="q6B">your_option2</label>
        </div>
        <div class="option">
            <input type="radio" name="q6" id="q6C" value="C">
            <label for="q6C">your_option3</label>
        </div>
        <div class="option">
            <input type="radio" name="q6" id="q6D" value="D">
            <label for="q6D">your_option4</label>
        </div>

        <div class="option" hidden>
            <input type="radio" name="q6" id="q6E" value="E" checked>
            <label for="q6E">Hidden</label>
        </div>
    </div>

'''

  1. Save the index.html file.
  2. Now goto script.js file
  3. just do one change add the correct option in the first line of script.js file

'''

  const correctAnswer = ["D", "B", "C", "B", "D", "A","add-your-correct-option"];

'''

7.save the js file & you all done!

  1. Commit Your Changes: Commit your changes with a descriptive commit message. 💬

    git commit -m "Added new quiz-question"
    
  2. Push to Your Fork: Push your changes to your GitHub fork. 🚀

    git push origin add-new-question
    

⭐️You are done go aheaed and make your pull request.

  1. Open a Pull Request: Submit a Pull Request (PR) to the main repository under the respective category. Include a clear title and description of your changes. 🎯

  2. Review and Merge: We will review your PR, and if it meets our guidelines, it will be merged into the main repo. 🤝

Like the Repository! ⭐️

As a first step, please consider giving our repository a ⭐️ to show your support! 🌟

+ Follow Me : } Quick Approval of Pull Request

'''
To get approval of the pull request much quicker and faster (`Follow Me`)🚀
'''

Happy contributing and all the best for hacktoberfest! 💻📚🚗

⭐️Don't make any other changes in the code! If you find any bug or have a feature suggestion, feel free to raise an issue.


Md Tajuddin