-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
popup.html
100 lines (89 loc) · 3.66 KB
/
popup.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon">
<title>Tradingworks+</title>
<script src="./assets/scripts/popup.js" ></script>
<script src="./assets/scripts/popupHelper.js" ></script>
<script src="./assets/scripts/loadExtension.js" ></script>
<script src="./assets/scripts/application.js" ></script>
<link rel="stylesheet" href="./assets/styles/root.css">
<link rel="stylesheet" href="./assets/styles/popup.css">
</head>
<body>
<header>
<div class="header--logo">
<img src="./assets/favicon32.png" alt="logo TradingWorks" width="25" height="25">
<a href="https://app.tradingworks.net/Default.aspx" target="_blank">
<h1 class="header--title">TradingWorks+</h1>
</a>
</div>
<div>
<label class="toggle" for="extension-status">
<input class="toggle--input" name="extension-status" type="checkbox" id="extension-status" checked="">
<div class="toggle--fill"></div>
</label>
<button class="header--btn-config" id="button-config">
<img src="./assets/icons/gear-solid.svg" width="18" height="18" alt="gear icon">
</button>
</div>
</header>
<main>
<section id='loading-screen'>
<div class="lds-ripple">
<div></div>
<div></div>
</div>
<span>Carregando..</span>
</section>
<section id='not-started-screen' style="display: none;">
<p>Acesse o <strong>dashboard</strong> na engrenagem acima para iniciarmos! 💚</p>
<!-- <a href="https://app.tradingworks.net/" target="_blank">Acessar</a> -->
</section>
<section id='not-logged-screen' style="display: none;">
<p>Você não está logado. Inicie uma sessão (em <b>app.tradingworks.net</b>) clicando no botão abaixo! 💚</p>
<a href="https://app.tradingworks.net/" target="_blank">Acessar</a>
</section>
<section id='disabled-screen' style="display: none;">
<p>Você me desabilitou! 😢💚</p>
</section>
<section id='started-screen' style="display: none;">
<div class="table">
<div class="table--header">
<div class="table--title">Início</div>
<div class="table--title">Término</div>
<div class="table--title">Duração</div>
</div>
<div class="table--body" id="table-body-times">
<div class="table--row">
</div>
</div>
</div>
<span id="last-update">Última atualização em 00 de junho às 00:00:00</span>
<span id="current-date"></span>
<div class="totals">
<div class="totals-item">
<div class="totals-item--value" id="total-worked-hours">00:00 h</div>
<small class="totals-item--title">Trabalhando</small>
</div>
<div class="totals-item">
<div class="totals-item--value" id="total-break-hours">00:00 h</div>
<small class="totals-item--title">Em pausa</small>
</div>
</div>
<span id="hours-balance-container">Saldo no banco de Horas: <span id="hours-balance">00:00 h</span></span>
<p class="message" id="msg">Eai, vamos trabalhar hoje ou não? 🤔</p>
<span id="estimated-output-hour"></span>
</section>
</main>
<footer>
<span id="current-year">2024</span> |
<img src="../assets/icons/github-green.svg" width="16" height="16" alt="GitHub icon">
<a target="_blank" href="https://github.com/ErnaneJ/tradingworks-plus">TradingWorks+</a>
</footer>
<script src="./assets/scripts/initialize.js" ></script>
</body>
</html>