forked from Anadee11/WebArena
-
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
18 changed files
with
28,098 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title> Pure CSS calculator</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="wrap"> | ||
<fieldset class="container"> | ||
<form name="calculator"> | ||
|
||
<input id="display" type="text" name="display" readonly> | ||
|
||
<input class="button digits" type="button" value="7" onclick="calculator.display.value += '7'"> | ||
<input class="button digits" type="button" value="8" onclick="calculator.display.value += '8'"> | ||
<input class="button digits" type="button" value="9" onclick="calculator.display.value += '9'"> | ||
<input class="button mathButtons" type="button" value="+" onclick="calculator.display.value += ' + '"> | ||
<br> | ||
<input class="button digits" type="button" value="4" onclick="calculator.display.value += '4'"> | ||
<input class="button digits" type="button" value="5" onclick="calculator.display.value += '5'"> | ||
<input class="button digits" type="button" value="6" onclick="calculator.display.value += '6'"> | ||
<input class="button mathButtons" type="button" value="-" onclick="calculator.display.value += ' - '"> | ||
<br> | ||
<input class="button digits" type="button" value="1" onclick="calculator.display.value += '1'"> | ||
<input class="button digits" type="button" value="2" onclick="calculator.display.value += '2'"> | ||
<input class="button digits" type="button" value="3" onclick="calculator.display.value += '3'"> | ||
<input class="button mathButtons" type="button" value="x" onclick="calculator.display.value += ' * '"> | ||
<br> | ||
<input id="clearButton" class="button" type="button" value="C" onclick="calculator.display.value = ''"> | ||
<input class="button digits" type="button" value="0" onclick="calculator.display.value += '0'"> | ||
<input class="button mathButtons" type="button" value="=" onclick="calculator.display.value = eval(calculator.display.value)"> | ||
<input class="button mathButtons" type="button" value="/" onclick="calculator.display.value += ' / '"> | ||
</form> | ||
</fieldset> | ||
</div> | ||
</body> | ||
</html> |
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,10 @@ | ||
# Calculator | ||
This is a very basic calculator developed in HTML, CSS and JavaScript. | ||
The website was made by me for Frontend practice in my initial phase with the help of tutorials. | ||
|
||
Making it a brilliant project for revisiting the basics. For all beginners, this project surely is a bliss. | ||
|
||
## Snapshot | ||
<img width="707" alt="Screenshot 2022-10-04 at 3 03 06 PM" src="https://user-images.githubusercontent.com/73078636/193786099-5ff2d4b4-849c-464d-82d1-ff2bd04f23a3.png"> | ||
|
||
# [](https://forthebadge.com) [](https://forthebadge.com) |
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,92 @@ | ||
body { | ||
background-color: #262626; | ||
} | ||
.container { | ||
top:50%; | ||
left:50%; | ||
position:absolute; | ||
transform:translate(-50%,-50%); | ||
width: 250px; | ||
padding: 8px 8px 20px 8px; | ||
margin: 20px auto; | ||
background-color: #ABABAB; | ||
border-radius: 4px; | ||
border-top: 2px solid #FFF; | ||
border-right: 2px solid #FFF; | ||
border-bottom: 2px solid #C1C1C1; | ||
border-left: 2px solid #C1C1C1; | ||
box-shadow: -3px 3px 7px rgba(0, 0, 0, .6); | ||
} | ||
#display { | ||
display: block; | ||
margin: 15px auto; | ||
height: 50px; | ||
width: 300px; | ||
padding: 0 10px; | ||
border-radius: 4px; | ||
border-top: 2px solid #C1C1C1; | ||
border-right: 2px solid #C1C1C1; | ||
border-bottom: 2px solid #FFF; | ||
border-left: 2px solid #FFF; | ||
background-color: #FFF; | ||
box-shadow: inset 0px 0px 10px #030303; | ||
font-size: 28px; | ||
color: #000; | ||
text-align: right; | ||
font-weight:bold; | ||
font-family: Orbitron; | ||
} | ||
.button { | ||
display: inline-block; | ||
margin: 3px; | ||
width: 60px; | ||
height: 60px; | ||
font-size: 25px; | ||
font-weight: bold; | ||
border-radius: 4px; | ||
box-sizing:border-box; | ||
font-family: Orbitron; | ||
} | ||
.mathButtons { | ||
margin: 2px 2px 6px 2px; | ||
color: #FFF; | ||
text-shadow: -1px -1px 0px #44006F; | ||
background-color: #434343; | ||
border-top: 2px solid #C1C1C1; | ||
border-right: 2px solid #C1C1C1; | ||
border-bottom: 2px solid #181818; | ||
border-left: 2px solid #181818; | ||
box-shadow: 0px 0px 2px #030303; | ||
} | ||
.digits { | ||
color: #181818; | ||
text-shadow: 1px 1px 0px #FFF; | ||
background-color: #EBEBEB; | ||
border-top: 2px solid #FFF; | ||
border-right: 2px solid #FFF; | ||
border-bottom: 2px solid #C1C1C1; | ||
border-left: 2px solid #C1C1C1; | ||
border-radius: 4px; | ||
box-shadow: 0px 0px 2px #030303; | ||
} | ||
.digits:hover, | ||
.mathButtons:hover, | ||
#clearButton:hover { | ||
background-color: #FFBA75; | ||
box-shadow: 0px 0px 2px #FFBA75, inset 0px -20px 1px #FF8000; | ||
border-top: 2px solid #FFF; | ||
border-right: 2px solid #FFF; | ||
border-bottom: 2px solid #AE5700; | ||
border-left: 2px solid #AE5700; | ||
} | ||
|
||
#clearButton { | ||
color: #FFF; | ||
text-shadow: -1px -1px 0px #44006F; | ||
background-color: #D20000; | ||
border-top: 2px solid #FF8484; | ||
border-right: 2px solid #FF8484; | ||
border-bottom: 2px solid #800000; | ||
border-left: 2px solid #800000; | ||
box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #B00000; | ||
} |
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,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,73 @@ | ||
## Season Detector | ||
- A very basic project which tells you the current Season by taking access of your location. | ||
- It makes use of the GeoLocation API to get hold of your location. | ||
|
||
## Snapshot | ||
<img width="1425" alt="Screenshot 2022-10-04 at 4 46 21 AM" src="https://user-images.githubusercontent.com/73078636/193702433-cce1993d-0400-4a02-91dd-3c4ec418cf2f.png"> | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can't go back!** | ||
|
||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. | ||
|
||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
|
||
### Deployment | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
Oops, something went wrong.