Skip to content

Topic01#4

Open
tinchoaranda05 wants to merge 14 commits into
masterfrom
Topic01
Open

Topic01#4
tinchoaranda05 wants to merge 14 commits into
masterfrom
Topic01

Conversation

@tinchoaranda05
Copy link
Copy Markdown
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

Comment thread 01-JS-DOM-APIs/funciones.js Outdated
@@ -0,0 +1,100 @@
var Q = require('q');
Copy link
Copy Markdown

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() {
Copy link
Copy Markdown

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

Comment thread 01-JS-DOM-APIs/funciones.js Outdated
const data= document.getElementById('excercise7');
const url= 'http://api.icndb.com/jokes/random';

fetch( url )
Copy link
Copy Markdown

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

Comment thread 01-JS-DOM-APIs/funciones.js Outdated
fetch( url )
.then(function(responsetext) {
return responsetext.json();
}).then(function(json){
Copy link
Copy Markdown

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.
Copy link
Copy Markdown

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

Comment thread 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();
Copy link
Copy Markdown

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)

Comment thread 01-JS-DOM-APIs/funciones.js Outdated
//this.responseText;
}
};
xhttp.open("GET", " https://api.github.com/search/repositories", true);
Copy link
Copy Markdown

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.

2 participants