Skip to content

Commit

Permalink
add index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana-js committed Jun 2, 2024
1 parent 6bb2ed3 commit b652b03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RSS-agregator</title>
<script defer="defer" src="src/index.js"></script>
<script defer type="module" src="src/index.js"></script>
</head>
<body class="d-flex flex-column min-vh-100">
<main class="flex-grow-1">
Expand All @@ -26,7 +26,7 @@ <h1 class="display-3 mb-0">RSS агрегатор</h1>
</div>
</div>
</form>
<p class="mt-2 mb-0 text-body-secondary example">Пример: https://lorem-rss.hexlet.app/feed</p>
<p class="mt-2 mb-0 text-secondary example">Пример: https://lorem-rss.hexlet.app/feed</p>
<p class="feedback m-0 position-absolute small text-danger"></p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import i18next from 'i18next';
import 'bootstrap';
import * as yup from 'yup';
import axios from 'axios';
import validate, { createLink } from './utils.js';
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './styles.scss';
import 'bootstrap';
import app from './app.js';

app();
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const createLink = (url) => {
const originsUrl = new URL('https://allorigins.hexlet.app/get?');
originsUrl.searchParams.set('disableCache', 'true');
originsUrl.searchParams.set('url', url);
return originsUrl;
return originsUrl.toString();
};
export default validate;

0 comments on commit b652b03

Please sign in to comment.