Skip to content

Conversation

@tinchoaranda05
Copy link
Owner

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

@@ -0,0 +1,100 @@
var Q = require('q');

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() {

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

const data= document.getElementById('excercise7');
const url= 'http://api.icndb.com/jokes/random';

fetch( url )

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

fetch( url )
.then(function(responsetext) {
return responsetext.json();
}).then(function(json){

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.

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??

/* 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();

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)

//this.responseText;
}
};
xhttp.open("GET", " https://api.github.com/search/repositories", true);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants