Skip to content

Commit 9c53e38

Browse files
committed
tweaked css to align some elements
1 parent 7032eb6 commit 9c53e38

File tree

5 files changed

+25
-15
lines changed

5 files changed

+25
-15
lines changed

css/index.css

+17-12
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ body {
4646

4747
.bordered{
4848
border:solid 3px #ffffff;
49+
padding:8px;
4950
}
5051

5152
div.title{
@@ -220,10 +221,9 @@ div.torrents {
220221
position: absolute;
221222
top: 140px;
222223
left: 20px;
223-
max-width:560px;
224+
max-width:570px;
224225
max-height:420px;
225226
transform: translate(-1%,-1%);
226-
padding: 5px;
227227
font-family: 'Cousine', monospace;
228228
font-size: 12px;
229229
font-weight: bold;
@@ -234,11 +234,13 @@ div.torrents {
234234
#collection{
235235
position:absolute;
236236
bottom:20px;
237-
left: 510px;
237+
left: 610px;
238238
text-align: center;
239-
padding: 8px;
239+
//padding: 8px;
240240
line-height: 2.5;
241241
height: 130px;
242+
width:140px;
243+
font-size:12px;
242244
}
243245

244246
.green-week{
@@ -270,16 +272,19 @@ div.weatherpane {
270272
bottom: 20px;
271273
left: 20px;
272274
transform: translate(-1%,-1%);
273-
padding: 5px;
274-
//width:560px;
275+
//padding: 8px;
276+
width:570px;
275277
height: 130px;
276278
}
277279

278-
div.weather {
279-
width:100%;
280-
padding-left:5px;
281-
padding-right:5px;
280+
#weather {
281+
//width:100%;
282+
//padding-left:5px;
283+
//padding-right:5px;
282284
display:inline-block;
285+
286+
287+
283288
margin: 0 auto;
284289
font-size: 10px;
285290
font-weight: bold;
@@ -295,7 +300,7 @@ div.weatherbox{
295300
padding-left: 5px;
296301
margin-left: 10px;
297302
margin-right: 10px;
298-
303+
font-size: 10px;
299304
}
300305

301306
p.temp{
@@ -312,7 +317,7 @@ div.dateAndClock {
312317
bottom: 20px;
313318
right: 20px;
314319
transform: translate(-1%,-1%);
315-
padding: 8px;
320+
//padding: 8px;
316321
height: 130px;
317322
}
318323

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<body>
1515
<script src="js/GetAccuweatherKeys.js"> </script>
16-
<script src="js/getweatherAccu.js"> </script>
16+
1717
<script src="js/GetTransportKeys.js"> </script>
1818
<div class="busnorthbox bordered">
1919
<p class="tittle">Buses to Colchester:</p>
@@ -44,6 +44,7 @@
4444
<div id="weather" class="weather">
4545

4646
</div>
47+
<script src="js/getweatherAccu.js"> </script>
4748
</div>
4849
<!-- <script src="js/getweather.js"> </script> -->
4950

js/CollectionDay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function displayCollection(){
7373
//odd is blue, even is green
7474
if (day == 2 || day == 3){
7575
PrintCollection(date,Week)
76-
console.log("print")
76+
//console.log("print")
7777
}
7878

7979
else {

js/SongKickAPI.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function printEvent(artist,venue,date){
5858
}
5959

6060
function printDate(date){
61-
console.log(date);
61+
//console.log(date);
6262
//var textDate= new Date(date).toString().split(" ");
6363
var textDate=date.split("-")[2];
6464
textDate+=" "+getMonthName(date.split("-")[1]);

js/getweatherAccu.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
function Getweather() {
22
GetWeatherCredentials(function() {
33
var element = document.getElementById("weather");
4+
if(element==null){
5+
console.log("couldnt get weather element by Id")
6+
return -1;
7+
}
48
element.innerHTML = "";
59

610
var xmlhttp = new XMLHttpRequest();

0 commit comments

Comments
 (0)