-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fabiola #25
base: master
Are you sure you want to change the base?
Fabiola #25
Conversation
second try to merge with master
Merging changes
first page almost complete
modal styling
graphic in every indicator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy bien el repo, de los mejores, eviten el español a toda costa, eviten camelCase en CSS y sean más descriptivas con los commits, también en ingles. Felicidades por el gran trabajo, se nota el trabajo progresivo y en equipo.
src/indicators.html
Outdated
@@ -67,32 +67,3 @@ <h3></h3> | |||
<script type="module" src="indicators.js"></script> | |||
</body> | |||
</html> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bien por borrar comentarios y código sobrante
@@ -154,12 +154,18 @@ const oneGraphic = () => { | |||
}); | |||
} | |||
|
|||
const removeGraphic = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bien los nombres en ingles y el camelCase
let graphicModal = document.getElementById("graphicModal"); | ||
let eraseChild = graphicModal.lastChild; | ||
graphicModal.removeChild(eraseChild); | ||
} | ||
|
||
const showGraphic = (indicator) => { | ||
let toggleButtonFlag = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esta variable nunca se usó
let graphicModal = document.getElementById("graphicModal"); | ||
let eraseChild = graphicModal.lastChild; | ||
graphicModal.removeChild(eraseChild); | ||
} | ||
|
||
// When the user clicks (x) of the modal, close it | ||
span.onclick = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
De preferencia usar addEventListener
@@ -207,8 +203,7 @@ div, header, footer, section{ | |||
padding: 0; | |||
/* border: 1px solid #888;*/ | |||
width: 60%; | |||
|
|||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); | |||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4),0 10px 22px 0 rgba(0,0,0,0.25); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bien
|
||
describe('example', () => { | ||
describe('bankData', () => { | ||
|
||
it('debería ser una función', () => { | ||
expect(typeof example).toBe('function'); | ||
expect(typeof bankData).toBe('function'); | ||
}); | ||
|
||
describe('example', () => { | ||
//describe('example', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muy bien por agregr tests
@@ -56,18 +49,14 @@ for (let i=0; i< indicatorName.length; i ++){ | |||
aTwitter.setAttribute("href","https://twitter.com/share?url=<URL>&text=<TEXT>via=<USERNAME>"); | |||
aFacebook.setAttribute("href","https://www.facebook.com/sharer/sharer.php?u=<URL>"); | |||
aMail.setAttribute("href","mailto:?subject=<SUBJECT>&body=<BODY>"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
podrian intentar usar más `` para dibujar el html y mejorar la lectura
let graphicModal = document.getElementById("graphicModal"); | ||
|
||
let graphic = document.createElement("canvas"); | ||
graphic.setAttribute("id","myChart"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
muy bien
data:{ | ||
labels:Object.keys(indicatorData), | ||
datasets:[{ | ||
label:'PER', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bien el uso de graficas
let graphicModal = document.getElementById("graphicModal"); | ||
let eraseChild = graphicModal.lastChild; | ||
graphicModal.removeChild(eraseChild); | ||
removeGraphic(); | ||
} | ||
|
||
// When the user clicks anywhere outside of the modal, close it | ||
window.onclick = function(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto no es necesario si el script está al final de la etiueta body
Project name: Bars & Dots
Developers: Eliza Olmedo y Fabiola González