Skip to content

Commit b9b6d6c

Browse files
committed
Merge branch 'master' of https://github.com/Dr-N0/Jumpstart into develop
2 parents 7b0e97e + c176c0a commit b9b6d6c

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ This project uses [Python](http://nodejs.org), [Flask](https://npmjs.com), SQL,
1111

1212
1. Download the zip file and open the code.
1313
2. Navigate into the folder.
14-
3. Run `flask install -r requirements.txt`
14+
3. Run `pip install -r requirements.txt`
1515
4. Run `flask run`
16-
5. Results
16+
5. DM @drno in CSH slack, or email for secrets package
17+
- The secrets package follows the directory structure:
18+
src/
19+
secrets/
20+
client_secrets.json
21+
6. Results
1722

1823
## Usage
1924

jumpstart/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
db.create_all()
5555

5656
# Initializes the database for Files
57-
file = File(title="Jumpstart.exe")
57+
file = File(title="drno")
5858
db.session.query(File).delete()
5959
db.session.commit()
6060
db.session.add(file)
@@ -183,7 +183,7 @@ def showerthoughts():
183183
randompost = random.randint(1, 20)
184184
url = requests.get(
185185
'https://www.reddit.com/r/showerthoughts/top.json',
186-
headers={'User-agent':'Showerthoughtbot 0.1'},
186+
headers={'User-agent':'Showerthoughtbot 0.1'},
187187
)
188188
reddit = json.loads(url.text)
189189
shower_thoughts = textwrap.fill((reddit['data']['children'][randompost]['data']['title']), 50)
849 KB
Loading

jumpstart/static/css/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ body{
33
}
44

55
.panel-primary{
6+
background: #34495e;
67
border: 8px #34495e solid ;
78
border-radius: 10px;
89
}
@@ -34,7 +35,7 @@ body{
3435
}
3536

3637
.timewidget{
37-
width: 400px;
38+
width: 800px;
3839
height: 53px;
3940
}
4041

@@ -286,4 +287,4 @@ body{
286287
.announcements{
287288
padding-top: 77%;
288289
}
289-
}
290+
}

jumpstart/templates/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<div class="row d-flex" id="top-bar">
2020
<iframe class="timewidget" id="timewidget-fake" style="padding: 17px 10px 0; float: left;" src="https://freesecure.timeanddate.com/clock/i6zogrqs/n179/fn8/fs20/fcfcf6fa/tct/pct/ahl/ftb/tt0/tm3/th2/ts1/tb1" frameborder="0" width="447" height="25" allowTransparency="true"></iframe>
2121
<div class="mr-auto">
22-
<iframe class="timewidget" id="timewidget-real" style="padding: 17px 10px 0; float: left;" src="https://freesecure.timeanddate.com/clock/i6zogrqs/n179/fn8/fs20/fcfcf6fa/tct/pct/ahl/ftb/tt0/tm3/th2/ts1/tb1" frameborder="0" allowTransparency="true"></iframe>
22+
<iframe class="timewidget" id="timewidget-real" style="padding: 8px 10px 0; float: left;" src="https://free.timeanddate.com/clock/i7yyk735/n421/fn8/fs32/fcfff/tct/pct/ahl/ftb/pl10/pr0/pt0/pb0/tt0/tm3/ts1" frameborder="0" width="985" height="50" allowTransparency="true"></iframe>
2323
</div>
24-
<!-- <div class="file-title" style="padding: 6px 10px 0 10px;">
24+
<div class="file-title" style="padding: 6px 10px 0 10px;">
2525
<b>Harold: <span id="harold-file-name"></span></b>
26-
</div> -->
26+
</div>
2727
<div class="js-title" style="padding: 6px 10px 0 10px;">
2828
<b>jumpstart.csh.rit.edu</b>
2929
</div>
@@ -80,9 +80,11 @@
8080

8181
if (date.getMonth()+1 == 2 && (date.getDate() == 12 || date.getDate() == 13 || date.getDate() == 14) ){
8282
$("body").css("background-image", "url(../static/css/valentinemode.png)");
83+
}else if (date.getMonth()+1 == 3 && (date.getDate() == 13) ){
84+
$("body").css("background-image", "url(../static/css/jumpstartbang.png)");
8385
}else if (date.getMonth()+1 == 10 && (date.getDate() == 29 || date.getDate() == 30 || date.getDate() == 31) ){
8486
$("body").css("background-image", "url(../static/css/spookymode.png)");
85-
}else if(date.getMonth()+1 == 11 && (date.getDate() == 2)){
87+
}else if(date.getMonth()+1 == 11 && date.getDate() == 2){
8688
$("body").css("background-image", "url(../static/css/duckymode2.png)");
8789
}else if(date.getMonth()+1 == 11 || date.getMonth()+1 == 12){
8890
$("body").css("background-image", "url(../static/css/wintermode.png)");
@@ -188,4 +190,4 @@
188190
setInterval('__weatherwidget_init()', 1800000)
189191
</script>
190192
</body>
191-
</html>
193+
</html>

0 commit comments

Comments
 (0)