forked from kunjgit/GameZone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
673 changed files
with
36,588 additions
and
14,430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
# name: Assign on Comment | ||
# on: | ||
# issue_comment: | ||
# types: | ||
# - created | ||
name: Assign on Comment | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
# jobs: | ||
# assign: | ||
# runs-on: ubuntu-latest | ||
jobs: | ||
assign: | ||
runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check if /assign command is present | ||
# id: check_command | ||
# uses: actions/github-script@v4 | ||
# with: | ||
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
# script: | | ||
# const commentBody = context.payload.comment.body; | ||
# const assignCommand = '/assign'; | ||
# const isCommandPresent = commentBody.includes(assignCommand); | ||
# console.log(`Command present: ${isCommandPresent}`); | ||
# console.log(`Comment: ${commentBody}`); | ||
# console.log(`Issue Number: ${context.payload.issue.number}`); | ||
# console.log(`Issue State: ${context.payload.issue.state}`); | ||
# console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); | ||
# console.log(`Issue URL: ${context.payload.issue.html_url}`); | ||
# console.log(`Comment URL: ${context.payload.comment.html_url}`); | ||
# console.log(`Comment Author: ${context.payload.comment.user.login}`); | ||
# console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); | ||
# console.log(`Repository URL: ${context.payload.repository.html_url}`); | ||
# console.log(`Repository Full Name: ${context.payload.repository.full_name}`); | ||
# console.log(`Repository Name: ${context.payload.repository.name}`); | ||
# console.log(`Repository Owner: ${context.payload.repository.owner.login}`); | ||
# console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); | ||
# console.log(`Event Name: ${context.eventName}`); | ||
steps: | ||
- name: Check if /assign command is present | ||
id: check_command | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
script: | | ||
const commentBody = context.payload.comment.body; | ||
const assignCommand = '/assign'; | ||
const isCommandPresent = commentBody.includes(assignCommand); | ||
console.log(`Command present: ${isCommandPresent}`); | ||
console.log(`Comment: ${commentBody}`); | ||
console.log(`Issue Number: ${context.payload.issue.number}`); | ||
console.log(`Issue State: ${context.payload.issue.state}`); | ||
console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); | ||
console.log(`Issue URL: ${context.payload.issue.html_url}`); | ||
console.log(`Comment URL: ${context.payload.comment.html_url}`); | ||
console.log(`Comment Author: ${context.payload.comment.user.login}`); | ||
console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); | ||
console.log(`Repository URL: ${context.payload.repository.html_url}`); | ||
console.log(`Repository Full Name: ${context.payload.repository.full_name}`); | ||
console.log(`Repository Name: ${context.payload.repository.name}`); | ||
console.log(`Repository Owner: ${context.payload.repository.owner.login}`); | ||
console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); | ||
console.log(`Event Name: ${context.eventName}`); | ||
# const commentAuthor = context.payload.comment.user.login; | ||
# core.setOutput('comment_author', commentAuthor); | ||
const commentAuthor = context.payload.comment.user.login; | ||
core.setOutput('comment_author', commentAuthor); | ||
# const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; | ||
# core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); | ||
const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; | ||
core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); | ||
# const isAlreadyAssigned = context.payload.issue.assignees.length > 0; | ||
# core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); | ||
const isAlreadyAssigned = context.payload.issue.assignees.length > 0; | ||
core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); | ||
# if (isCommandPresent && isGreetingFromOwner) { | ||
# console.log('Skipping assigning issue: Greeting from repository owner.'); | ||
# console.log(`::set-output name=assign_issue::false`); | ||
# } else if (isCommandPresent && isAlreadyAssigned) { | ||
# const { owner, repo, number } = context.issue; | ||
# const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); | ||
# const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. 💗 \n You can work on other issues 🚀 \n If there is anything wrong you can contact us on [Discord🕹️](https://discord.gg/fgwk4XZfxG)👀`; | ||
# await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | ||
# console.log(`Commented on the issue: ${commentBody}.`); | ||
# console.log(`::set-output name=assign_issue::false`); | ||
# } else if (isCommandPresent) { | ||
# console.log(`::set-output name=assign_issue::true`); | ||
# } else { | ||
# console.log(`::set-output name=assign_issue::false`); | ||
# } | ||
if (isCommandPresent && isGreetingFromOwner) { | ||
console.log('Skipping assigning issue: Greeting from repository owner.'); | ||
console.log(`::set-output name=assign_issue::false`); | ||
} else if (isCommandPresent && isAlreadyAssigned) { | ||
const { owner, repo, number } = context.issue; | ||
const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); | ||
const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. 💗 \n You can work on other issues 🚀 \n If there is anything wrong you can contact us on [Discord🕹️](https://discord.gg/fgwk4XZfxG)👀`; | ||
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | ||
console.log(`Commented on the issue: ${commentBody}.`); | ||
console.log(`::set-output name=assign_issue::false`); | ||
} else if (isCommandPresent) { | ||
console.log(`::set-output name=assign_issue::true`); | ||
} else { | ||
console.log(`::set-output name=assign_issue::false`); | ||
} | ||
# - name: Assign the issue | ||
# if: steps.check_command.outputs.assign_issue == 'true' | ||
# id: assign_issue | ||
# uses: actions/github-script@v4 | ||
# with: | ||
# github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
# script: | | ||
# const { owner, repo, number } = context.issue; | ||
# const assignee = context.payload.comment.user.login; | ||
# await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); | ||
# console.log(`Assigned the issue to ${assignee}.`); | ||
- name: Assign the issue | ||
if: steps.check_command.outputs.assign_issue == 'true' | ||
id: assign_issue | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
script: | | ||
const { owner, repo, number } = context.issue; | ||
const assignee = context.payload.comment.user.login; | ||
await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); | ||
console.log(`Assigned the issue to ${assignee}.`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ body { | |
#6284ff 50%, | ||
#ff0000 100% | ||
); | ||
overflow:hidden; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
h1 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Child Learning Game | ||
|
||
### Type Any English Alphabet and Hear the Word for that | ||
|
||
### __ScreenShots:__ | ||
![Child Game](https://github.com/Samriddhi15/GameZone/assets/106501626/08628882-3a78-454e-8f38-3d8d5a8162a3) | ||
|
||
### __Video:__ | ||
![169116099-401b10ea-b7bf-4d3c-aaa0-8993f4358e27](https://github.com/Samriddhi15/GameZone/assets/106501626/3400df6e-e5b7-4a91-9c5b-974361a3bd18) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Child Learning Game</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" /> | ||
</head> | ||
<body> | ||
<!-- partial:index.partial.html --> | ||
<audio preload="auto"> | ||
<source id="oggSource" src="sounds/ogg/like-glass.ogg" type="audio/ogg"> | ||
<source id="mp3Source" src="sounds/mp3/like-glass.mp3" type="audio/mp3"> | ||
Oops! Looks like you're using an old browser, try using a modern browser like Google Chrome, Firefox or even Safari. | ||
</audio> | ||
|
||
<div class="main-cont"> | ||
<div style="text-align: left; margin-left: 20px; | ||
margin-top: 10px; | ||
font-size: 30px; "><a href="/index.html"><i style="color:white;" class="fas fa-home home-icon"></i></a></div> | ||
<div id="about-cont"> | ||
<div class="content-wrapper"> | ||
<div class="about-white-bg"> | ||
<h2 class="about-title">A simple game to teach kids the English alphabets</h2> | ||
<div class="about-image"></div> | ||
<p class="about-text text-sounds-source"> | ||
Alphabet sounds from <a href="http://www.theblog.ca/mp3-audio-files-alphabet" target="_blank">Peter's Useful Crap</a> | ||
</p> | ||
<button id="hide-button" type="button" name="button">Hide</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="char-cont"> | ||
<p id="big-char" class="char animationHabibi"> | ||
Type any letter | ||
</p> | ||
</div> | ||
<footer> | ||
<button id="mute-button" class="habibi-button" type="button" name="button">Mute Sounds</button> | ||
<button id="about-button" class="habibi-button" type="button" name="button">About</button> | ||
</footer> | ||
</div> | ||
<!-- partial --> | ||
<script src="./script.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.