-
Notifications
You must be signed in to change notification settings - Fork 0
/
newtab.html
109 lines (82 loc) · 3.6 KB
/
newtab.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
<!-- Google Fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Playball|Open+Sans+Condensed:300,700" />
<link rel="stylesheet" href="newtab.css">
</head>
<body background="https://source.unsplash.com/random">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div id="content">
<p id="header">Good Morning Emily!</p>
<p id="subheader">Start your day efficiently with listing todo's</p>
<hr>
<!-- <button class="btn btn-default btn-lg"><i class="fas fa-paw"></i> Get Started</button> -->
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<!-- <div class="thumbnail">
<img src= "https://images.unsplash.com/photo-1435771112039-1e5b2bcad966?dpr=2&fit=crop&fm=jpg&h=825&q=50&w=1450">
</div> -->
<div id="myDIV" class="header">
<h2>To Do Or Not To Do</h2>
<input type="text" id="myInput" placeholder="Title...">
<span onclick="newElement()" class="addBtn">Add</span>
</div>
<ul id="myUL">
<li>Hit the gym</li>
<li class="checked">Pay bills</li>
<li>Go find Chris</li>
<li>Buy eggs</li>
</ul>
</div>
<!-- check this link to store todo's in local storage
http://archive.oreilly.com/oreillyschool/courses/javascript2/TodoAppWithLocalStorage.html -->
<!-- you have to save the newly created html some where on persistent storage like file, database, local storage, session. -->
<!-- https://stackoverflow.com/questions/16206322/how-to-get-js-variable-to-retain-value-after-page-refresh -->
<div class="col-lg-4 col-md-6">
<h1 id="curtime"></h1>
</div>
<!-- <div class="col-lg-4 col-md-6">
<div class="thumbnail">
<img src= "https://images.unsplash.com/photo-1435771112039-1e5b2bcad966?dpr=2&fit=crop&fm=jpg&h=825&q=50&w=1450">
</div>
</div> -->
<div class="col-lg-4 col-md-6" id="weather">
<h2 id="location"></h2>
<h4 id="time"></h4>
<div class="row">
<div class="col-lg-3">
<button type="button" class="btn btn-default" id="prev">prev</button>
</div>
<div class="col-lg-6">
<p id="date"></p>
<p id="temp"><span id="low"></span>℃ to <span id="high"></span> ℃</p>
<p id="text"></p>
</div>
<div class="col-lg-3">
<button type="button" class="btn btn-default" id="next">next</button>
</div>
</div>
</div>
</div>
</div>
<!-- the js script must be put at the end -->
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script type="text/javascript" src="newtab.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>