README english
This commit is contained in:
parent
26b609f905
commit
91acec498b
|
@ -14,7 +14,7 @@ and then add the following lines to your [`crontab`][cron]:
|
||||||
```
|
```
|
||||||
3. Copy the code in [`hack-news-widget.html`](src/hack-news-widget.html) to where you want your news widget on your webpage.
|
3. Copy the code in [`hack-news-widget.html`](src/hack-news-widget.html) to where you want your news widget on your webpage.
|
||||||
## How it works
|
## How it works
|
||||||
The [`xml-download.py`](src/ef/xml-download.py) file downloads the RSS feed from the provided endpoint. Theoretically this hardcoded endpoint, but this is specifically designed for [Hacker News][hn]. The reason this isn't just placed in the webpage code is to prevent CORS errors and vulnerabilities.
|
The [`xml-download.py`](src/ef/xml-download.py) file downloads the RSS feed from the provided endpoint. Theoretically this hardcoded endpoint could be replaced with any RSS URL, but this is specifically designed for [Hacker News][hn]. The reason this isn't just placed in the webpage code is to prevent CORS errors and vulnerabilities.
|
||||||
|
|
||||||
The Python 3.8 code downloads the RSS feed into the [`src/ef/feed.xml`](src/ef/feed.xml) file. It then takes that feed and translates it into a pretty HTML template. The template includes references to the following files:
|
The Python 3.8 code downloads the RSS feed into the [`src/ef/feed.xml`](src/ef/feed.xml) file. It then takes that feed and translates it into a pretty HTML template. The template includes references to the following files:
|
||||||
* [`news_scroll.js`](src/ef/news_scroll.js), which controls the scrolling animation.
|
* [`news_scroll.js`](src/ef/news_scroll.js), which controls the scrolling animation.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user