-
Notifications
You must be signed in to change notification settings - Fork 18
[2주차 BS] 김나윤 #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[2주차 BS] 김나윤 #22
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,111 @@ | ||
| <!doctype html> | ||
| <html lang="ko"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Calculator</title> | ||
| <link rel="stylesheet" href="main.css" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div class="calculator"> | ||
| <form name="forms"> | ||
| <input type="text" name="output" readonly /> | ||
| <input | ||
| type="button" | ||
| class="clear" | ||
| value="C" | ||
| onclick="document.forms.output.value = ''" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="operator" | ||
| value="/" | ||
| onclick="document.forms.output.value += '/'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="1" | ||
| onclick="document.forms.output.value += '1'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="2" | ||
| onclick="document.forms.output.value += '2'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="3" | ||
| onclick="document.forms.output.value += '3'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="operator" | ||
| value="*" | ||
| onclick="document.forms.output.value += '*'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="4" | ||
| onclick="document.forms.output.value += '4'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="5" | ||
| onclick="document.forms.output.value += '5'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="6" | ||
| onclick="document.forms.output.value += '6'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="operator" | ||
| value="+" | ||
| onclick="document.forms.output.value += '+'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="7" | ||
| onclick="document.forms.output.value += '7'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="8" | ||
| onclick="document.forms.output.value += '8'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="9" | ||
| onclick="document.forms.output.value += '9'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="operator" | ||
| value="-" | ||
| onclick="document.forms.output.value += '-'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="dot" | ||
| value="." | ||
| onclick="document.forms.output.value += '.'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| value="0" | ||
| onclick="document.forms.output.value += '0'" | ||
| /> | ||
| <input | ||
| type="button" | ||
| class="operator result" | ||
| value="=" | ||
| onclick=" | ||
| document.forms.output.value = eval(document.forms.output.value) | ||
| " | ||
| /> | ||
| </form> | ||
| </div> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,77 @@ | ||
|
|
||
| * { | ||
| margin:0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| background-color: white; | ||
| display: flex; | ||
| justify-content:center; | ||
| align-content:center; | ||
|
tjsl0607 marked this conversation as resolved.
Outdated
|
||
| height: 60vh; | ||
|
tjsl0607 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| .calculator { | ||
| width: 287px; | ||
| border-radius: 5px; | ||
| background-color: #f0f3fa; | ||
| padding: 20px 10px ; | ||
| box-shadow: 0px 5px 10px rgba(6, 15, 65, 0.4); | ||
|
|
||
| } | ||
|
|
||
| .calculator form { | ||
| display: grid; | ||
| grid-template-columns:repeat(4,1fr); | ||
| height: 55px; | ||
|
tjsl0607 marked this conversation as resolved.
Outdated
|
||
| gap: 10px; | ||
| } | ||
|
|
||
| .calculator form input { | ||
| cursor: pointer; | ||
| font-size: 19px; | ||
| border-radius:10px; | ||
| height: 55px; | ||
| border:none; | ||
| background-color: #d5deef; | ||
| box-shadow:3px 3px 6px rgba(0, 0, 0, 0.15); | ||
|
|
||
| transition: all 0.1s ease; | ||
|
tjsl0607 marked this conversation as resolved.
|
||
| outline:none; | ||
|
tjsl0607 marked this conversation as resolved.
|
||
| } | ||
|
|
||
| .calculator form input:hover { | ||
| box-shadow: 1px 1px 2px #696969; /* x축: 1px, y축: 1px, 퍼짐: 2px, 색상: 그림자 적용 */ | ||
| } | ||
|
|
||
| /* 버튼 색상 및 크기 설정 */ | ||
| .calculator form .clear { | ||
| color: #ed4848; | ||
| grid-column: span 3; /* `C` 버튼이 현재 위치에서 3개의 열을 차지하도록 설정 */ | ||
| } | ||
|
|
||
| .calculator form .operator { | ||
| background-color: #395886; | ||
| color: white; | ||
| } | ||
|
|
||
| .calculator form .dot { | ||
| background-color: #628ecb; | ||
| color: white; | ||
| } | ||
|
|
||
| .calculator form input[type="text"] { | ||
| grid-column:1 / span 4; | ||
| text-align: left; | ||
| padding:10px; | ||
| font-size:20px; | ||
| border-radius:6px; | ||
| border: 1px solid #bbb; | ||
| background-color: #f9f9f9; | ||
| } | ||
|
|
||
| .calculator form .result { | ||
| grid-column:span 2; | ||
| } | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.