-
Notifications
You must be signed in to change notification settings - Fork 1
Topic01 #4
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
base: master
Are you sure you want to change the base?
Topic01 #4
Conversation
images, but I’m missing the hover thing. Need that and I’m all set.
boxes as I want it to be.
box in the whole image as well but instead I left the new box in the top as the exercise required it.
in order to finish it with all we talked in classes last monda.
01-JS-DOM-APIs/funciones.js
Outdated
| @@ -0,0 +1,100 @@ | |||
| var Q = require('q'); | |||
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 está definido en ningún lado y falla ni bien cargas la página
| @@ -0,0 +1,100 @@ | |||
| var Q = require('q'); | |||
|
|
|||
| function fadein() { | |||
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.
No es la intención del ejercicio, se busca usar javascript para registrar un handler, browser events y CSS3
01-JS-DOM-APIs/funciones.js
Outdated
| const data= document.getElementById('excercise7'); | ||
| const url= 'http://api.icndb.com/jokes/random'; | ||
|
|
||
| fetch( url ) |
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.
No le estamos pasando el parámetro de configuración y la idea es usar la promesa, no un wrapper de más alto nivel
01-JS-DOM-APIs/funciones.js
Outdated
| fetch( url ) | ||
| .then(function(responsetext) { | ||
| return responsetext.json(); | ||
| }).then(function(json){ |
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.
then duplicado?
| } | ||
|
|
||
|
|
||
| // Exercise 7. I think it's pretty accurate of what you spect. |
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 el ejemplo que hicimos??
01-JS-DOM-APIs/funciones.js
Outdated
| /* I don't know what I'm doing anymore. I'm gonna sleep. | ||
| then read javascript's books or die trying. :) */ | ||
| function loadXMLDoc2() { | ||
| let deferred = Q.defer(); |
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 funciona porque Q no se carga en ningún lugar (porque falla el require de arriba del todo)
01-JS-DOM-APIs/funciones.js
Outdated
| //this.responseText; | ||
| } | ||
| }; | ||
| xhttp.open("GET", " https://api.github.com/search/repositories", true); |
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.
Tampoco estamos pasando como sufijo el parámetro q=... donde le pasamos a github qué estamos buscando
search without refreshing the page.
cause I didn’t understand exactly how implement what it asked.
This is what i had before last monday. I'm working again since exercise one to make it more accurate of what you want as a solution