Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.8k
Fix HTML and JavaScript syntax errors for issue #1851#1855
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
Kurva-Pravalika wants to merge2 commits intoTheAlgorithms:masterChoose a base branch fromKurva-Pravalika:fix-html-issue-1851
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
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,184 @@ | ||
| <!doctype html> | ||
| <html lang="tr"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Sana Bir Sorum Var!</title> | ||
| <style> | ||
| body { | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 100vh; | ||
| margin: 0; | ||
| background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); | ||
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
| text-align: center; | ||
| overflow: hidden; | ||
| } | ||
| #soru { | ||
| font-size: 2.5em; | ||
| margin-bottom: 40px; | ||
| color: #444; | ||
| text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); | ||
| z-index: 1; | ||
| } | ||
| .cevap-butonu { | ||
| padding: 15px 30px; | ||
| margin: 10px; | ||
| font-size: 1.3em; | ||
| cursor: pointer; | ||
| border: 2px solid #fff; | ||
| border-radius: 50px; | ||
| transition: all 0.3s ease; | ||
| font-weight: bold; | ||
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); | ||
| z-index: 100; | ||
| } | ||
| #evetBtn { | ||
| background-color: #00b894; | ||
| color: white; | ||
| } | ||
| #evetBtn:hover { | ||
| transform: scale(1.05); | ||
| background-color: #00a082; | ||
| } | ||
| #hayirBtn { | ||
| background-color: #ff6b6b; | ||
| color: white; | ||
| position: absolute; | ||
| transition: transform 0.1s ease-out; | ||
| } | ||
| #mesaj-alani { | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| width: 95%; | ||
| height: 100%; | ||
| display: none; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| background-color: rgba(255, 255, 255, 0.95); | ||
| z-index: 999; | ||
| } | ||
| #sonMesaj { | ||
| font-size: 3em; | ||
| color: #e84393; | ||
| text-align: center; | ||
| padding: 20px; | ||
| border-radius: 15px; | ||
| background-color: #fff; | ||
| box-shadow: 0 0 30px rgba(255, 105, 180, 0.6); | ||
| animation: bounceIn 1s forwards; | ||
| } | ||
| .kalp { | ||
| position: absolute; | ||
| font-size: 4em; | ||
| color: #ff6b6b; | ||
| animation: float 4s ease-in forwards; | ||
| opacity: 0; | ||
| } | ||
| @keyframes bounceIn { | ||
| 0% { | ||
| transform: scale(0.5); | ||
| opacity: 0; | ||
| } | ||
| 95% { | ||
| transform: scale(1); | ||
| opacity: 1; | ||
| } | ||
| } | ||
| @keyframes float { | ||
| 0% { | ||
| transform: translateY(0) rotate(0deg); | ||
| opacity: 1; | ||
| } | ||
| 100% { | ||
| transform: translateY(-500px) rotate(30deg); | ||
| opacity: 0; | ||
| } | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div id="soru">Benimle date'e çıkar mısın 👉👈?</div> | ||
| <div | ||
| id="butonlar" | ||
| style=" | ||
| position: relative; | ||
| width: 80vw; | ||
| height: 100px; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| " | ||
| > | ||
| <button id="evetBtn" class="cevap-butonu" onclick="evetCevabi()"> | ||
| EVET | ||
| </button> | ||
| <button id="hayirBtn" class="cevap-butonu" onclick="hayirCevabi()"> | ||
| HAYIR | ||
| </button> | ||
| </div> | ||
| <div id="mesaj-alani"> | ||
| <div id="sonMesaj"></div> | ||
| </div> | ||
| <script> | ||
| const hayirBtn = document.getElementById('hayirBtn') | ||
| const evetBtn = document.getElementById('evetBtn') | ||
| const mesajAlani = document.getElementById('mesaj-alani') | ||
| const sonMesajDiv = document.getElementById('sonMesaj') | ||
| const butonlarDiv = document.getElementById('butonlar') | ||
| function hayirCevabi() { | ||
| const containerRect = butonlarDiv.getBoundingClientRect() | ||
| const btnRect = hayirBtn.getBoundingClientRect() | ||
| const maxX = containerRect.width - btnRect.width | ||
| const maxY = containerRect.height - btnRect.height | ||
| const newX = Math.random() * maxX | ||
| const newY = Math.random() * maxY | ||
| hayirBtn.style.transform = `translate(${newX}px, ${newY}px)` | ||
| } | ||
| function kalpOlustur(sayi) { | ||
| for (let i = 0; i < sayi; i++) { | ||
| const kalp = document.createElement('div') | ||
| kalp.textContent = '🫶' | ||
| kalp.className = 'kalp' | ||
| kalp.style.left = Math.random() * 100 + 'vw' | ||
| kalp.style.bottom = '-50px' | ||
| kalp.style.animationDelay = Math.random() * 1 + 's' | ||
| mesajAlani.appendChild(kalp) | ||
| } | ||
| } | ||
| function evetCevabi() { | ||
| evetBtn.style.display = 'none' | ||
| hayirBtn.style.display = 'none' | ||
| document.getElementById('soru').style.display = 'none' | ||
| mesajAlani.style.display = 'flex' | ||
| kalpOlustur(20) | ||
| sonMesajDiv.innerHTML = | ||
| 'Ufak bir şaka yapmak istedim gül diye 🌹🥰<br><br>(Anlayışın için teşekkür ederim 😉)' | ||
| setTimeout(() => {}, 3000) | ||
| } | ||
| </script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.