added asd
This commit is contained in:
parent
1784bc7fee
commit
262a940747
BIN
24_11_12/24_11_12 - Frontend.pptx
Normal file
BIN
24_11_12/24_11_12 - Frontend.pptx
Normal file
Binary file not shown.
3
24_11_12/Nagy Diakteszt linkek.txt
Normal file
3
24_11_12/Nagy Diakteszt linkek.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
https://nagydiaktesztek.hu/agrarteszt4/kviz
|
||||
https://nagydiaktesztek.hu/banktudosteszt2/kviz
|
||||
https://nagydiaktesztek.hu/filmteszt8/kviz
|
1
24_11_12/Weboldal link - Otthoni elérés.txt
Normal file
1
24_11_12/Weboldal link - Otthoni elérés.txt
Normal file
|
@ -0,0 +1 @@
|
|||
https://sites.google.com/view/bzoktatas/kezd%C5%91lap
|
11
24_11_12/index.html
Normal file
11
24_11_12/index.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="xmlhttprequest.js" defer></script>
|
||||
</body>
|
||||
</html>
|
24
24_11_12/xmlhttprequest.js
Normal file
24
24_11_12/xmlhttprequest.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
const url = "https://jsonplaceholder.typicode.com/posts";
|
||||
async function main() {
|
||||
let xhttp = new XMLHttpRequest();
|
||||
xhttp.open("GET", url, true);
|
||||
|
||||
xhttp.onreadystatechange = async function(){
|
||||
if (xhttp.readyState === 4){
|
||||
if (xhttp.status === 200){
|
||||
let sol = await xhttp.responseText;
|
||||
//let sol = await JSON.parse(JSON.stringify(xhttp.responseText));
|
||||
console.log(`Sikeres kérés: ${sol}`);
|
||||
} else if(xhttp.status === 404){
|
||||
console.log("Az erőforrás nem található - 404 hibakód");
|
||||
} else{
|
||||
console.error(`Hiba történt, státuszkód: ${xhttp.status}`);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
xhttp.send();
|
||||
}
|
||||
|
||||
main();
|
||||
|
Loading…
Reference in New Issue
Block a user