VueJS lekcja 1
This commit is contained in:
1 parent
11eb98f6b7
commit
e66b5ebc22
602 files changed
+63992
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>VueJS 1A</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
fetch("/page_list").then(r => r.json())
|
||||
.then(function (data) {
|
||||
console.log(data);
|
||||
|
||||
data.lessons.forEach(lesson => {
|
||||
document.querySelector("body").innerHTML += `<a href="/${lesson}" target="_blank">${lesson}</a>`;
|
||||
});
|
||||
})
|
||||
.catch(e => { console.log(e); });
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user