This repository was archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (49 loc) · 1.43 KB
/
index.html
File metadata and controls
56 lines (49 loc) · 1.43 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
<!--
Author: Vinh Srl
Source: https://github.com/VinhSrl/HTML-CoverImage
-->
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cover Images | Vinh</title>
<style>
#img-source {
box-sizing: border-box;
width: 25ch;
background-color: #fff;
border: 1px solid #aaa;
/* display: none; */
}
#canvas-source {
box-sizing: border-box;
border: 1px solid #aaa;
}
#result {
font-family: 'Courier New', Courier, monospace, consolas;
font-size: .9em;
line-height: .9ch;
background-color: #ddd;
margin: auto;
padding: 1em;
border: 1px solid #000;
}
</style>
</head>
<body>
<input id="file-anh" type="file"><br>
<input id="do-phuc-tap" type="number" value="185" placeholder="185" /> : Độ phức tạp ảnh (px) <br>
<input onclick="setValue()" type="button" value="Tạo ảnh" />
<hr />
<img id="img-source" src="/images/megumin2.png" />
<canvas id="canvas-source">
Xin lỗi, Trình duyện của bạn không hổ trợ canvas HTML 5
</canvas>
<hr />
<div id="result">
Kết quả
</div>
<script src="/java-script/cover-images.js"></script>
</body>
</html>