Skip to content

Commit

Permalink
Template improvements (#19)
Browse files Browse the repository at this point in the history
* Don't create elements through JavaScript
* Update nodemon
* Better naming
* Hide and unhide methods
  • Loading branch information
KevinNovak authored Dec 1, 2019
1 parent 1c45306 commit 0ee0934
Show file tree
Hide file tree
Showing 5 changed files with 232 additions and 74 deletions.
113 changes: 109 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"request-promise": "4.2.4"
},
"devDependencies": {
"nodemon": "^1.19.4"
"nodemon": "^2.0.1"
},
"homepage": "https://github.com/KevinNovak/vrgamedeals-Tools#readme",
"repository": {
Expand Down
57 changes: 43 additions & 14 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,19 @@ <h5>
>
from a Steam app page.
</h5>
<label for="steam-app-url"><b>Steam App URL</b></label>
<label for="steam-app-url-input"
><b>Steam App URL</b></label
>
<div class="input-group mb-3">
<input
id="steam-app-url"
id="steam-app-url-input"
type="url"
class="form-control"
placeholder="https://store.steampowered.com/app/450390/The_Lab/"
/>
<div class="input-group-append">
<button
id="retrieve-steam-app-title"
id="steam-app-btn"
class="btn btn-outline-secondary"
type="button"
onclick="retrieveSteamAppTitle()"
Expand All @@ -171,9 +173,15 @@ <h5>
</button>
</div>
</div>
<div id="page-results">
<span>No results.</span>
</div>
<span id="steam-app-info-span" class="hidden"
>No results.</span
>
<a
id="steam-app-result-link"
href="#"
target="_blank"
class="hidden"
></a>
</div>

<hr />
Expand Down Expand Up @@ -208,23 +216,30 @@ <h5>
>Search: All VR Deals</a
>
</p>
<label for="steam-search-url" class="mr-3"
<label for="steam-search-url-input" class="mr-3"
><b>Steam Search URL</b></label
>
<input type="checkbox" value="" id="search-all-pages" />
<label class="form-check-label" for="search-all-pages">
<input
type="checkbox"
value=""
id="steam-search-all-pages-input"
/>
<label
class="form-check-label"
for="steam-search-all-pages-input"
>
Search all pages
</label>
<div class="input-group mb-3">
<input
id="steam-search-url"
id="steam-search-url-input"
type="url"
class="form-control"
placeholder="https://store.steampowered.com/search/?vrsupport=402&filter=weeklongdeals"
/>
<div class="input-group-append">
<button
id="retrieve-steam-search-table"
id="steam-search-btn"
class="btn btn-outline-secondary"
type="button"
onclick="retrieveSteamSearchTable()"
Expand All @@ -233,9 +248,23 @@ <h5>
</button>
</div>
</div>
<div id="search-results">
<span>No results.</span>
</div>

<span id="steam-search-info-span" class="hidden"
>No results.</span
>
<textarea
id="steam-search-result-textarea"
class="hidden form-control search-result"
wrap="off"
readonly
></textarea>
<a
id="steam-search-download-link"
href="#"
target="_blank"
class="hidden"
>Download Raw Data as CSV</a
>
</div>

<hr />
Expand Down
Loading

0 comments on commit 0ee0934

Please sign in to comment.