Added a README
This commit is contained in:
parent
31a2eeaaad
commit
450512cf80
27
README.md
27
README.md
|
@ -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.
|
|
@ -149,7 +149,7 @@ function makeItemListing(itemObj) {
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
const item = document.createElement('a')
|
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.time = time
|
||||||
item.innerHTML = element_string
|
item.innerHTML = element_string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue