Skip to content

Commit

Permalink
mew upd
Browse files Browse the repository at this point in the history
  • Loading branch information
rlfx committed Oct 4, 2022
1 parent 5f5d6df commit dbbfc36
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
dist-ssr
certs
*.local
public/sample.rss

# Editor directories and files
.vscode/*
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module" src="./src/main.js"></script>
</body>
</html>
3 changes: 0 additions & 3 deletions src/assets/svelte.svg

This file was deleted.

8 changes: 8 additions & 0 deletions src/lib/feed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@

<div class="root">
<h1><strong>{RSSurl}</strong></h1>
<div class="spacer">
<hr>
</div>
<div id="contentDiv">
<h1>Loading content...</h1>
<br>
Expand All @@ -55,4 +58,9 @@
padding: 0;
}
div.spacer {
margin-top: 5vh;
margin-bottom: 5vh;
}
</style>
11 changes: 6 additions & 5 deletions src/lib/form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@
function HandleURL(event) {
let url = event.target.elements.URLinput.value;
window.location.assign(window.location.protocol + '//' + window.location.host + '/?URL=' + url);
window.location.assign(window.location.protocol + '//' + window.location.host + window.location.pathname + '?URL=' + url);
}
</script>

<div class="root">
<div>
<!-- Classname says what mode the user prefers, -->
<!-- Image suffix says what color the image hero is. -->
<!-- Classname says what mode the user prefers, -->
<!-- Image suffix says what color the image hero is. -->
<img class="logo-dark hero" src="./[email protected]" alt="rx-//RSS">
<img class="logo-light hero" src="./[email protected]" alt="rx-//RSS">
<img class="logo-light hero" src="./[email protected]" alt="rx-//RSS">
</div>
<h1>Welcome to my RSS client, Add an RSS URL below.</h1>
<form on:submit|preventDefault={HandleURL}>
<input type="url" id="URLinput" placeholder="https://example.com/index.php?show=rss">
<input type="url" id="URLinput" placeholder="https://example.com/feed.rss">
<button type="submit">See the feed from URL</button>
</form>
<br>
Expand Down

0 comments on commit dbbfc36

Please sign in to comment.