Skip to content

Commit 30a39c2

Browse files
committed
Change stylesheet for telescuff because why not
1 parent d426b83 commit 30a39c2

File tree

4 files changed

+47
-47
lines changed

4 files changed

+47
-47
lines changed

body.ejs

+32-32
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<link rel="icon" href="/favicon.ico" />
8-
<title>Telescuff - <%= headerTitle %></title>
9-
<link
10-
rel='stylesheet'
11-
href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css' />
8+
<title>Telescuff - <%= headerTitle %></title>
9+
<link
10+
rel='stylesheet'
11+
href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/united/bootstrap.min.css' />
1212
<script src='https://code.jquery.com/jquery-3.1.1.slim.min.js'></script>
1313
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
14-
<script
14+
<script
1515
src='https://cdnjs.cloudflare.com/ajax/libs/localforage/1.5.0/localforage.min.js'
1616
></script>
1717
<style>
1818
body {
1919
font-size: 15px;
20-
background-color: #f3f3f3;
20+
/* background-color: #f3f3f3;*/
2121
}
2222
h1 > div > span {
2323
vertical-align: middle;
@@ -26,70 +26,70 @@
2626
margin: 5px;
2727
width: auto;
2828
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
29-
border-radius: 3px;
30-
background-color: #fff;
31-
}
29+
border-radius: 3px;
30+
/* background-color: #fff;*/
31+
}
3232
span.label {
3333
padding: .2em .6em;
3434
margin-left: 1em;
3535
vertical-align: middle;
3636
border-radius: 1em;
37-
}
37+
}
3838
</style>
39-
39+
4040
<script>
4141
$(document).ready(function () {
4242
localforage.getItem("<%= page %>links").then(function decorate (prevLinks) {
43-
43+
4444
if (prevLinks === null) {
4545
prevLinks = [];
4646
}
47-
47+
4848
var currLinks = [];
4949
$("td > a").each(function () {
50-
var $el = $(this),
50+
var $el = $(this),
5151
link = $el.text().trim();
5252
currLinks.push(link);
53-
54-
if (prevLinks.indexOf(link) == -1) {
55-
$el.parent().parent().prev().find('th').first().append(
53+
54+
if (prevLinks.indexOf(link) === -1) {
55+
$el.closest("tr").prev().find('th').first().append(
5656
$('<span class="label label-primary">NEW</span>')
5757
);
5858
}
59-
});
60-
59+
});
60+
6161
localforage.setItem("<%= page %>links", currLinks);
6262
});
6363
});
64-
</script>
64+
</script>
6565
</head>
66-
<body>
66+
<body>
6767
<nav class='navbar navbar-default'>
6868
<div class='container-fluid'>
6969
<div class='navbar-header'>
70-
<button
70+
<button
7171
type="button" class="navbar-toggle collapsed"
7272
data-toggle="collapse" data-target="#navbar-links"
7373
aria-expanded="false"
7474
>
75-
<span class="icon-bar"></span>
76-
<span class="icon-bar"></span>
75+
<span class="icon-bar"></span>
76+
<span class="icon-bar"></span>
7777
<span class="icon-bar"></span>
7878
</button>
79-
<a class='navbar-brand' href='index.html'>Telescuff
79+
<a class='navbar-brand' href='index.html'>Telescuff
8080
<small class="hidden-xs hidden-sm">
8181
- TV & movie data scraped from the web</small></a>
8282
</div>
83-
83+
8484
<div class='collapse navbar-collapse' id='navbar-links'>
8585
<ul class='nav navbar-nav'>
8686
<li <% if (page === "tvshows") { %>class='active'<% } %>><a
8787
href='tvshows.html'>TV Shows</a></li>
8888
<li <% if (page === "movierentals") { %>class='active'<% } %>><a
8989
href='movierentals.html'>Movie Rentals</a></li>
9090
</ul>
91-
92-
<p class='navbar-text navbar-right'>Updated
91+
92+
<p class='navbar-text navbar-right'>Updated
9393
<%= (new Date()).toUTCString() %>
9494
</p>
9595
</div>
@@ -99,14 +99,14 @@
9999
<div class="container">
100100
<h1 class="text-center">
101101
<div>
102-
<span class='glyphicon glyphicon-<%= icon %>'></span>
102+
<span class='glyphicon glyphicon-<%= icon %>'></span>
103103
<span><%= headerTitle %></span>
104104
</div>
105105
<small><%= headerSubtitle %></small>
106106
</h1>
107107
</div>
108-
</div>
109-
<table class='table table-striped'>
108+
</div>
109+
<table class='table'>
110110
<%= tableContent %>
111111
</table>
112112

index.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<link rel="icon" href="/favicon.ico" />
88
<title>Telescuff - Top TV Shows and Movie Rentals</title>
9-
<link
10-
rel='stylesheet'
11-
href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/paper/bootstrap.min.css'>
9+
<link
10+
rel='stylesheet'
11+
href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/united/bootstrap.min.css'>
1212
<style>
1313
h4 {
1414
line-height: 2;
1515
}
16-
</style>
16+
</style>
1717
</head>
1818
<body>
1919
<div class="jumbotron">
2020
<div class="container">
2121
<h1>Telescuff</h1>
2222
<p>Top movie rental and TV show data scraped from the web</p>
2323
<div class="panel panel-default">
24-
<div class="panel-body"><h4><a
24+
<div class="panel-body"><h4><a
2525
class="btn btn-primary btn-lg" href="movierentals.html" role="button"
2626
><span class='glyphicon glyphicon-film'></span> Movie Rentals</a>
2727
&nbsp; scraped from <a href="http://www.officialcharts.com">officialcharts.com</a>
28-
and furnished with information from <a href="http://www.imdb.com">IMDB</a>.</h4>
28+
and furnished with information from <a href="http://www.imdb.com">IMDB</a>.</h4>
2929
</div>
3030
</div>
3131
<div class="panel panel-default">
32-
<div class="panel-body"><h4><a
32+
<div class="panel-body"><h4><a
3333
class="btn btn-primary btn-lg" href="tvshows.html" role="button"
34-
><span class='glyphicon glyphicon-blackboard'></span> TV Shows</a>
35-
&nbsp; scraped from <a href="https://eztv.ag">EZTV</a> and furnished with
34+
><span class='glyphicon glyphicon-blackboard'></span> TV Shows</a>
35+
&nbsp; scraped from <a href="https://eztv.ag">EZTV</a> and furnished with
3636
information from <a href="http://www.imdb.com">IMDB</a>.</h4>
3737
</div>
3838
</div>
39-
<small>Source code available on <a
39+
<small>Source code available on <a
4040
href="https://github.com/feltech/Scraper"
4141
>GitHub</a></small>
4242
</div>

telescuff

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WEEKS=8
88
# Minimum rating of movies.
99
RATING=6
1010
# Number of eztv pages to scrape.
11-
EZTV=4
11+
EZTV=5
1212
# Email address to send failures to.
1313
EMAIL=""
1414
# Neocities username.
@@ -100,7 +100,7 @@ if [ $MOVIERENTALS -eq 1 ]; then
100100
# Email if failure
101101
if [ $? -ne 0 -a "$EMAIL" != "" ]; then
102102
echo "Emailing failure to $EMAIL";
103-
echo "Failed at $(date)" | mail -a "Message-ID:<scripts>" -s "CasperJS rentals script failed" $EMAIL;
103+
echo "Failed at $(date)" | mail -a "Message-ID:<scripts@telescuff>" -s "CasperJS rentals script failed" $EMAIL;
104104

105105
elif [ "$USER" != "" ]; then
106106
echo "Uploading movierentals to Neocities";
@@ -116,7 +116,7 @@ if [ $TVSHOWS -eq 1 ]; then
116116
# Email if failure
117117
if [ $? -ne 0 -a "$EMAIL" != "" ]; then
118118
echo "Emailing failure to $EMAIL";
119-
echo "Failed at $(date)" | mail -a "Message-ID:<scripts>" -s "CasperJS tvshows script failed" $EMAIL;
119+
echo "Failed at $(date)" | mail -a "Message-ID:<scripts@telescuff>" -s "CasperJS tvshows script failed" $EMAIL;
120120

121121
elif [ "$USER" != "" ]; then
122122
echo "Uploading tvshows to Neocities";

tvshows.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Casper = require("casper"),
1212
}
1313
},
1414
casper = Casper.create(options),
15-
numPages = parseInt(casper.cli.args[0] || "3", 10),
15+
numPages = parseInt(casper.cli.args[0] || "5", 10),
1616
logger,
1717
shows,
1818
scrapeShows,

0 commit comments

Comments
 (0)