Skip to content

Commit

Permalink
Removed client side scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
LordKa0S committed Jul 18, 2021
1 parent 806bd01 commit 97f8fe3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 52 deletions.
8 changes: 1 addition & 7 deletions handlebars/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

<div id="index-placeholder"></div>

<script>
const responsePromise = fetch('index.md');
const script = document.getElementById('helpers');
script.addEventListener('load', () => {
transformMarkdownAndReplaceId(responsePromise, 'index-placeholder');
});
</script>
{{> gen/index}}

{{> partials/footer}}
8 changes: 1 addition & 7 deletions handlebars/news.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
{{!-- earlier news still retain its original format --}}
{{> partials/old_news}}

<script>
const responsePromise = fetch('news.md');
const script = document.getElementById('helpers');
script.addEventListener('load', () => {
transformMarkdownAndReplaceId(responsePromise, 'news-placeholder');
});
</script>
{{> gen/news}}

{{> partials/footer}}
2 changes: 0 additions & 2 deletions handlebars/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<link rel="dns-prefetch" href="http://bugs.qbittorrent.org">
<link rel="dns-prefetch" href="http://wiki.qbittorrent.org">
<link rel="dns-prefetch" href="http://forum.qbittorrent.org">
<script defer src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script defer src="lib/helpers.js" id="helpers"></script>
</head>
<body>
<span id="forkongithub">
Expand Down
36 changes: 0 additions & 36 deletions lib/helpers.js

This file was deleted.

0 comments on commit 97f8fe3

Please sign in to comment.