-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
175 lines (155 loc) · 6.87 KB
/
index.html
File metadata and controls
175 lines (155 loc) · 6.87 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles/main.css">
<link rel="icon" type="image/x-icon" href="assets/icon.svg">
<link rel="stylesheet" href="styles/IconFont.css">
<link rel="stylesheet" type="text/css" href="styles/bootstrap.css">
<script src="scripts/jquery.min.js"></script>
<script src="scripts/sweetalert.min.js"></script>
<title> - Self-Destructing Tabs</title>
<meta name="title" content="Take a Break - Self-Destructing Tabs">
<meta name="description" content="Tackle procrastination by using self-destructing tabs and boost your productivity.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://github.com/Codeweavers1610/Take-a-Break">
<meta property="og:title" content="Take a Break - Self-Destructing Tabs">
<meta property="og:description" content="Tackle procrastination by using self-destructing tabs and boost your productivity.">
<meta property="og:image" content="assets/banner.png">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://github.com/Codeweavers1610/Take-a-Break">
<meta property="twitter:title" content="Take a Break - Self-Destructing Tabs">
<meta property="twitter:description" content="Tackle procrastination by using self-destructing tabs and boost your productivity.">
<meta property="twitter:image" content="assets/banner.png">
</head>
<body class="main">
<div class="top">
<a id="aboutcorner" style="cursor: pointer;margin-left: 1.5rem;">
<img src="assets/about.svg" width="35rem" height="35rem">
</a>
<a class="dropbtn" onmouseover="inside2()" onmouseleave="outside2()" onclick="btnClick()">
<img src="assets/settings.svg" width="35rem" height="35rem">
</a><br>
<div class="list" id="list2" onmouseover="inside2()" onmouseleave="outside2()">
<p id="show"></p>
<label class="switch" id="switch1">
<input type="checkbox" id="notification">
<span onclick="Notif_Click()">Notifications</span>
</label>
<br>
<label class="switch" id="switch2">
<input type="checkbox" id="audioAlert">
<span onclick="Audio_Click()">Audio Alerts</span>
</label>
</div>
</div>
<div>
<audio id="audio1" src="assets/male50.mp3" controls style="display: none;"></audio>
<audio id="audio2" src="assets/male90.mp3" controls style="display: none;"></audio>
</div>
<div class="logo-parent">
<div class="logo-child">
<img src="assets/logo.svg" alt="icon" id="logo-img">
</div>
</div>
<h1 id="header">Take a Break</h1>
<div class="circular-container">
<div class="container">
<div class="text-container">
<h3 class="min">00</h3>
<h3 class="dot">:</h3>
<h3 class="sec">00</h3>
</div>
</div>
</div>
<h2 id="subHeader">Select a time to start your break</h2>
<div class="extra-btn">
<button class="pause-btn">Pause</button>
<button class="stop-btn">Stop</button>
</div>
<div id="time" style="display: none"></div>
<div class="buttons" id="buttons">
<ul>
<li><a class="time-button glow-on-hover" id="btn_front" onclick="choice(this, 5)">5 min</a></li>
<li><a class="time-button glow-on-hover" id="btn_midL" onclick="choice(this, 10)">10 min</a ></li>
<li><a class="time-button glow-on-hover" id="btn_midR" onclick="choice(this, 15)">15 min</a></li>
<li><a class="time-button glow-on-hover" id="btn_end" onclick="Custom(this)">Custom</a></li>
</ul>
</div>
<div class="content" style="display: none">
<div class="custom-url">
<h3 id="content-label">Enter website URL</h3>
<div class="enterUrlDiv">
<input id="enterUrl" pattern="https?://.+"
class="form-control ui-autocomplete-input" placeholder="https://abc.com" name="keywords" type="url"
autocomplete="off" style="background: #353535;">
<a id="urlClick" class="iconfont icon-arrow-right"></a>
</div>
</div>
<h3 id="content-label">Or choose from out favourites</h3>
<div class="website_grid">
<ul class="rig columns-6 websites" id="grid">
</ul>
</div>
</div>
<div class="buttons" id="takeAnotherButton" style="display: none">
<ul>
<li><a class="takeAnother" id="takeAnother" href="index.html">Take another break?</a></li>
</ul>
</div>
<footer>
<div id="author" class="footer-part">Copyright Codeweavers</div>
<div id="social_icons">
<li>
<a href="https://github.com/Codeweavers1610/" target="_blank" title="Website">
<span class="iconfont icon-web">
</span>
</a>
</li>
<li>
<a href="https://github.com/Codeweavers1610/Take-a-Break" target="_blank " title="GitHub">
<span class="iconfont icon-github" style="padding-left: 15px;">
</span>
</a>
</li>
</div>
</footer>
<script src="scripts/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="scripts/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="scripts/bootstrap.min.js"></script>
<script>
// Define the choice function here
function choice(element, minutes) {
// Your logic here
console.log("Choice function called with " + minutes + " minutes");
}
function Custom(element) {
// Your logic here
console.log("Custom function called");
}
function Notif_Click() {
// Your logic here
console.log("Notification clicked");
}
function Audio_Click() {
// Your logic here
console.log("Audio clicked");
}
function inside2() {
// Your logic here
console.log("Inside 2");
}
function outside2() {
// Your logic here
console.log("Outside 2");
}
function btnClick() {
// Your logic here
console.log("Button clicked");
}
window.onbeforeunload = function () {
closeChildren();
};
</script>
</body>
</html>