-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (66 loc) · 3.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Webpack App</title>
</head>
<body>
<main class="flex-grow-1">
<section class="container-fluid bg-dark p-5">
<div class="row">
<div class="col-md-10 col-lg-8 mx-auto text-white">
<h1 class="display-3 mb-0">RSS агрегатор</h1>
<p class="lead">Начните читать RSS сегодня! Это легко, это красиво.</p>
<form action="" class="rss-form text-body">
<div class="row">
<div class="col">
<div class="form-floating"><input id="url-input" autofocus="" name="url" aria-label="url" class="form-control w-100" placeholder="ссылка RSS" autocomplete="off"> <label for="url-input">Ссылка RSS</label></div>
</div>
<div class="col-auto"><button type="submit" aria-label="add" class="h-100 btn btn-lg btn-primary px-sm-5">Добавить</button></div>
</div>
</form>
<p class="mt-2 mb-0 text-muted">Пример: https://ru.hexlet.io/lessons.rss</p>
<p class="feedback m-0 position-absolute small text-danger"></p>
</div>
</div>
</section>
<section class="container-fluid container-xxl p-5">
<div class="row">
<div class="col-md-10 col-lg-8 order-1 mx-auto posts"></div>
<div class="col-md-10 col-lg-4 mx-auto order-0 order-lg-1 feeds"></div>
</div>
</section>
</main>
<!-- Modal -->
<div class="modal fade" id="modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary read">Читать полностью</a>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
</div>
</div>
</div>
</div>
</body>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("service-worker.js")
.then((registration) => {
console.log("Service Worker registered: ", registration);
})
.catch((registrationError) => {
console.error("Service Worker registration failed: ", registrationError);
});
});
}
</script>
</html>