Skip to content

Commit

Permalink
link powered
Browse files Browse the repository at this point in the history
  • Loading branch information
oshanshrestha committed May 2, 2018
1 parent 62ae63c commit 04d9860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var manager = {
links.forEach(url => {
url = url.toString().substr(url.indexOf("/" + filterData.code) + 1)
if (filter.year(url, filterData.year)) {
validLinks.push(url)
validLinks.push("https://papers.gceguide.com/A Levels/" + subID + "/" + url)
}
})
links = validLinks
Expand All @@ -47,7 +47,7 @@ var manager = {
links.forEach(url => {
url = url.toString().substr(url.indexOf("/" + filterData.code) + 1)
if (filter.session(url, filterData.session)) {
validLinks.push(url)
validLinks.push("https://papers.gceguide.com/A Levels/" + subID + "/" + url)
}
})
links = validLinks
Expand All @@ -57,7 +57,7 @@ var manager = {
links.forEach(url => {
url = url.toString().substr(url.indexOf("/" + filterData.code) + 1)
if (filter.ptype(url, filterData.type)) {
validLinks.push(url)
validLinks.push("https://papers.gceguide.com/A Levels/" + subID + "/" + url)
}
})
links = validLinks
Expand All @@ -67,7 +67,7 @@ var manager = {
links.forEach(url => {
url = url.toString().substr(url.indexOf("/" + filterData.code) + 1)
if (filter.paper(url, filterData.num)) {
validLinks.push(url)
validLinks.push("https://papers.gceguide.com/A Levels/" + subID + "/" + url)
}
})
links = validLinks
Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<option value="ms">Mark Scheme</option>
</select>
<label for="num" class="sr-only">Paper Number</label>
<input type="number" id="num" class="form-control" placeholder="Paper Number" maxlength="1">
<input type="number" id="num" class="form-control" placeholder="Paper Number" max="7">

<button class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
</form>
Expand Down

0 comments on commit 04d9860

Please sign in to comment.