-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 2 KB
/
index.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
<html>
<title>Convert png to HEX</title>
<head>
<link rel="apple-touch-icon" href="favicon.png">
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body>
<div id="info">
<h4>About</h4>
<h5>Created By SimaKyr</h5>
<h5>If you are from Scratch, this is webpage secure</h5>
</div>
<input type="text" id="forCopy">
<div class="alert">
<h2>Alert</h2>
<p></p>
<button class="btn" id="closeAlert">Close</button>
</div>
<div class="alert">
<h2>Prompt</h2>
<p></p>
<input value="">
<button class="btn" id="closePrompt">Close</button>
</div>
<div id="men">
<h1>Convert image to hex code</h2>
<p>It can convert png to hex code</p>
<p id="width"></p>
<p id="height"></p>
<label for="file" class="btn" style="width: 125px;"><span>Select Image</span></label>
<input type="file" id="file" class="file" style="visibility:hidden;" onchange="read()"/>
<span id="raw"><span>
<button onclick="run()" class="btn"><span>Convert!</span></button>
<img id ="i" src="data:image png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4ggWCzU3xIPb8wAAACxpVFh0Q29tbWVudAAAAAAAQ3JvcHBlZCB3aXRoIGV6Z2lmLmNvbSBHSUYgbWFrZXKJxDFlAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC"></img>
<div class="switcherD">
<label class="switch">
<input type="checkbox" id="arrayCC">
<span class="slider round"></span>
</label>
<b>To array C++</b>
</div>
</div id="men">
<script src="code.js"></script>
</body>
</html>