-
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.
make mobile ready and fix logic issues
- Loading branch information
1 parent
e472275
commit ae56daf
Showing
9 changed files
with
119 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="UTF-8"> | ||
<title>Contexto Armónico</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
|
@@ -10,14 +13,35 @@ | |
<script src="https://surikov.github.io/webaudiofontdata/sound/0000_Aspirin_sf2_file.js"></script> | ||
<script src="index.js"></script> | ||
<style> | ||
.circle { | ||
.ratio1 { | ||
display: inline-block; | ||
aspect-ratio: 1; | ||
border-radius: 50%; | ||
} | ||
|
||
.btn { | ||
&:hover { | ||
background-color: var(--bs-btn-bg); | ||
color: var(--bs-btn-color); | ||
} | ||
|
||
&:focus { | ||
background-color: var(--bs-btn-bg); | ||
color: var(--bs-btn-color); | ||
} | ||
|
||
&.active { | ||
&:hover { | ||
background-color: var(--bs-btn-active-bg); | ||
color: var(--bs-btn-active-color); | ||
} | ||
|
||
&:focus { | ||
background-color: var(--bs-btn-active-bg); | ||
color: var(--bs-btn-active-color); | ||
} | ||
} | ||
} | ||
</style> | ||
<meta charset="UTF-8"> | ||
<title>Contexto Armónico</title> | ||
</head> | ||
<body> | ||
<div class="container text-center mt-5"> | ||
|
@@ -40,37 +64,29 @@ <h5>by iakanoe</h5> | |
</div> | ||
</div> | ||
</div> | ||
<div class="container-sm border rounded text-center mt-5" style="padding: 1rem; max-width: 40rem;"> | ||
<div class="row"> | ||
<div class="col"> | ||
<h3>Contexto Armónico</h3> | ||
Puntaje: <span id="score">0</span> de <span id="played">0</span> | ||
</div> | ||
<div class="container-sm border rounded mt-5 d-flex flex-column gap-5 align-items-center p-4"> | ||
<div class="text-center"> | ||
<h3>Contexto Armónico</h3> | ||
Puntaje: <span id="score">0</span> de <span id="played">0</span> | ||
</div> | ||
<div class="row align-items-center" style="margin-top: 1rem;"> | ||
<div class="col"> | ||
<div class="border text-bg-primary align-content-center circle" style="padding: 1rem;"> | ||
<h5>Tonalidad:</h5> | ||
<h2 id="key">F</h2> | ||
</div> | ||
<div class="d-flex flex-row justify-content-evenly align-items-center gap-5"> | ||
<div class="border text-bg-primary text-center align-content-center rounded-circle ratio1 p-4"> | ||
<h5>Tonalidad:</h5> | ||
<h2 id="key">F</h2> | ||
</div> | ||
<div class="col"> | ||
<div class="text-center"> | ||
<button type="button" class="btn btn-secondary" onclick="play()">Escuchar</button> | ||
<div style="margin-top: 1rem;">Veces escuchado: <span id="times">0</span></div> | ||
<div class="mt-3">Veces escuchado: <span id="times">0</span></div> | ||
</div> | ||
</div> | ||
<div class="row mt-5"> | ||
<div class="col"> | ||
<div class="d-flex gap-4 justify-content-center"> | ||
<button id="btn-grade0" type="button" class="btn btn-outline-dark" onclick="guess(0)">Do</button> | ||
<button id="btn-grade1" type="button" class="btn btn-outline-dark" onclick="guess(1)">Re</button> | ||
<button id="btn-grade2" type="button" class="btn btn-outline-dark" onclick="guess(2)">Mi</button> | ||
<button id="btn-grade3" type="button" class="btn btn-outline-dark" onclick="guess(3)">Fa</button> | ||
<button id="btn-grade4" type="button" class="btn btn-outline-dark" onclick="guess(4)">Sol</button> | ||
<button id="btn-grade5" type="button" class="btn btn-outline-dark" onclick="guess(5)">La</button> | ||
<button id="btn-grade6" type="button" class="btn btn-outline-dark" onclick="guess(6)">Ti</button> | ||
</div> | ||
</div> | ||
<div class="d-flex flex-row justify-content-evenly flex-wrap column-gap-3 row-gap-2"> | ||
<button id="btn-grade0" type="button" class="btn btn-outline-dark" onclick="guess(0)">Do</button> | ||
<button id="btn-grade1" type="button" class="btn btn-outline-dark" onclick="guess(1)">Re</button> | ||
<button id="btn-grade2" type="button" class="btn btn-outline-dark" onclick="guess(2)">Mi</button> | ||
<button id="btn-grade3" type="button" class="btn btn-outline-dark" onclick="guess(3)">Fa</button> | ||
<button id="btn-grade4" type="button" class="btn btn-outline-dark" onclick="guess(4)">Sol</button> | ||
<button id="btn-grade5" type="button" class="btn btn-outline-dark" onclick="guess(5)">La</button> | ||
<button id="btn-grade6" type="button" class="btn btn-outline-dark" onclick="guess(6)">Ti</button> | ||
</div> | ||
</div> | ||
</body> | ||
|
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="UTF-8"> | ||
<title>INA2 Coach</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
crossorigin="anonymous"></script> | ||
<meta charset="UTF-8"> | ||
<title>INA2 Coach</title> | ||
</head> | ||
<body> | ||
<div class="container text-center" style="margin-top: 5rem;"> | ||
|