mirror of
https://github.com/tanrax/RSSPAPER.git
synced 2025-11-27 04:46:58 -05:00
Add statics
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ title }}</title>
|
||||
<link rel="manifest" href="manifest.json" />
|
||||
<link rel="icon" type="image/png" href="img/icons/default.png">
|
||||
<link rel="manifest" href="static/manifest.json" />
|
||||
<link rel="icon" type="image/png" href="static/img/icons/default.png">
|
||||
<meta name="theme-color" content="#3c790a">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
|
||||
<meta name="author" content="Tu nombre">
|
||||
@@ -283,9 +283,6 @@
|
||||
<h2 class="article__feed"><a target="_blank" href="{{ article.feed.link }}">{{ article.feed.title }}</a> <span class="article__date">{{ article.published-date-formatter }}</span></h2>
|
||||
</div>
|
||||
</header>
|
||||
<main class="container article__main">
|
||||
{{ article.description.value|safe }}
|
||||
</main>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
@@ -296,21 +293,5 @@
|
||||
Generated with <a class="footer__link" href="https://github.com/tanrax/RSSpaper">RSSpaper</a> and a lot of <span class="footer__heard">❤️</span>️
|
||||
</p>
|
||||
</footer>
|
||||
<script defer>
|
||||
|
||||
function getRandomNumber(min, max) {
|
||||
return Math.random() * (max - min) + min;
|
||||
}
|
||||
|
||||
function getRandomHexColor() {
|
||||
return '#'.concat(Math.floor(Math.random() * 16777215).toString(16));
|
||||
}
|
||||
|
||||
// Random background
|
||||
document.querySelectorAll('.article__random-background').forEach((canvas) => {
|
||||
canvas.style.backgroundImage = `linear-gradient(${getRandomNumber(0, 360)}deg, ${getRandomHexColor()}, ${getRandomHexColor()})`;
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user