Added a README

This commit is contained in:
kapypara 2023-12-16 17:40:47 +03:00
parent 31a2eeaaad
commit 450512cf80
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,27 @@
# CloneWars
CloneWars is a JavaScript project that utilizes the HackerNews API to display the latest posts, jobs, and polls. The project aims to provide a straightforward way to access and explore the most recent content from HackerNews.
## Getting Started
To explore CloneWars, follow these simple steps:
1. Clone or download the project to your local machine.
```bash
git clone https://learn.reboot01.com/git/ahelal/clonernews
```
2. Open the `index.html` file in your preferred browser.
you should be able to view the latest top posts in chronological order directly in your browser.
## Testing
To ensure that CloneWars is functioning as expected, consider checking out the following queries:
- Job Post: [?id=38663636](index.html?id=38663636)
- Poll Post: [?id=30055031](index.html?id=30055031)
- Story Post [?id=38659529](index.html?id=38659529)
Feel free to click on these links and navigate through the project to ensure a seamless experience.

View File

View File

@ -149,7 +149,7 @@ function makeItemListing(itemObj) {
</div>
`
const item = document.createElement('a')
item.href = (itemObj.type != itemType.job) ? "index.html?id=" + id : url
item.href = "index.html?id=" + id
item.time = time
item.innerHTML = element_string