-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.html
161 lines (150 loc) · 4.7 KB
/
report.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
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
<html lang="ko">
<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="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="style.css">
<script src="./index.js"></script>
<title>Document</title>
<style>
.nkd {
position: absolute;
top: 58%;
left: 50%;
transform: translate(-50%, 0%);
width: 50%;
height: 12%;
font-weight: 600;
font-size: 1.2rem;
background-color: #83e468;
border-radius: 10px;
border: none;
}
.nkd1 {
position: absolute;
top: 77.5%;
left: 50%;
transform: translate(-50%, 0%);
width: 50%;
height: 12%;
font-weight: 600;
font-size: 1.2rem;
background-color: #83e468;
border-radius: 10px;
border: none;
}
.al {
position: relative;
margin-left: 50%;
margin-bottom: 100px;
transform: translate(-49.5%, 0%);
margin-top: 1.2rem;
font-size: 30px;
width: 87%;
height: 60%;
min-height: 300px;
border-radius: 10px;
color: black;
background-color:#c6ffb1;
}
.money {
position: absolute;
top: 10%;
line-height: 2.3rem;
width: 100%;
text-align: center;
font-size: 0.8em;
}
.ik {
position: absolute;
top: 35%;
line-height: 2.3rem;
text-align: center;
width: 100%;
font-size: 0.8em;
}
.shere {
display: none;
width: 65%;
min-width: 100px;
height: 27%;
min-height: 50px;
border-color: aqua;
border-radius: 15px;
background-color: lightgreen;
position: absolute;
left: 50%;
top: 35%;
transform: translate(-50%, -50%);
}
.commit {
width: 30%;
height: 25px;
position: absolute;
left: 36.5%;
top: 65%;
border-radius: 10px;
background-color: #83e468;
}
h4 {
font-size: 1.2rem;
position: absolute;
left: 50%;
top: 40%;
transform: translate(-50%, -50%);
width: 100%;
text-align: center;
}
</style>
</head>
<body>
<span class="title">전력 사용 리포트</span>
<div class="al">
<b class="money">오늘은 총 ~~~원을 <br>
절약하였습니다.</b>
<b class="ik">절약 대기전력 : ~~W</b>
<button class="nkd" onclick="clip();">
<span>공유하기</span>
</button>
<button class="nkd1" onclick="location.href='./jasehi.html'">
<span>자세히보기</span>
</button>
</div>
<div id="head-menu" role="navigation" style="height: 50px;">
<div class="material-symbols-outlined a" onclick="location.href ='./index.html'">
home
</div>
<div class="material-symbols-outlined a" onclick="location.href ='./plus.html'">
add
</div>
<div class="material-symbols-outlined a" onclick="location.href ='./report.html'">
compost
</div>
<div class="material-symbols-outlined a" onclick="location.href ='./one.html'">
settings
</div>
</div>
<div class="shere">
<h4>URL이 복사되었습니다.</h4>
<button class="commit" onclick="back()">취소</button>
</div>
<script>
function clip() {
var url;
var textarea = document.createElement("textarea");
document.body.appendChild(textarea);
url = window.document.location.href;
textarea.value = url;
textarea.select();
document.execCommand("copy");
document.body.removeChild(textarea);
document.querySelector('.shere').style.display = 'block';
}
function back() {
document.querySelector('.shere').style.display = 'none';
}
</script>
</body>
</html>