depot 17h34
This commit is contained in:
18
TD4/js/main.js
Normal file
18
TD4/js/main.js
Normal file
@ -0,0 +1,18 @@
|
||||
console.log("Chargement...");
|
||||
|
||||
function init() {
|
||||
console.log("Initialisation...");
|
||||
}
|
||||
|
||||
function selectionRSS(site) {
|
||||
document.getElementById("retour").innerHTML = "";
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
document.getElementById("retour").innerHTML = this.responseText;
|
||||
}
|
||||
};
|
||||
console.log(site);
|
||||
xhttp.open("GET", site, true);
|
||||
xhttp.send();
|
||||
}
|
Reference in New Issue
Block a user