-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
86 lines (77 loc) · 3.41 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js"></script>
<script src="assets/preloader/js/jquery.min.js"></script>
<script src="assets/preloader/js/jquery.oLoader.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<title>Img2css</title>
</head>
<body id="preloader">
<div class="container">
<div class="d-flex justify-content-center">
<div class="mt-5">
<div class="bg-title ml-n3 mb-2 darkmode-ignore"></div>
<h3 class="text-dark title mt-n5 darkmode-ignore">img2css</h3>
<p class="text-muted">Tool to convert images to pure css, built in python.</p>
<div class="drag-area text-left" id="drag-area">
<span class="header">Drop an image here</span>
<span class="header">or <span class="button darkmode-ignore" onClick="inputClick()">click to select</span></span>
<input type="file" hidden />
<span class="support">Supports: JPEG, JPG, more comming soon.</span>
</div>
<a onClick="removeImg()" class="btn-1 text-dark rounded" id="remove-btn">Remove</a>
</div>
</div>
</div>
<script src="assets/js/script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"></script>
<!--Dark Mode Integration-->
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
<script>
$( document ).ready(function() {
$("#remove-btn").hide();
});
$('#preloader').oLoader({
backgroundColor: '#000000f6',
fadeInTime: 500,
fadeLevel: 0.8,
image: 'assets/img/preloader.gif',
style: 2,
imagePadding: 5,
imageBgColor: 'transparent',
hideAfter: 2000
});
function removeImg()
{
dropArea.classList.remove('active');
dropArea.innerHTML = '<span class="header">Drop an image here</span><span class="header">or <span class="button darkmode-ignore" onClick="inputClick()">click to select</span></span><input type="file" hidden /><span class="support">Supports: JPEG, JPG, more comming soon.</span>';
$('#drag-area').oLoader('hide');
}
function addDarkmodeWidget() {
const options = {
bottom: '64px', // default: '32px'
right: '32px', // default: '32px'
left: 'unset', // default: 'unset'
time: '1s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'
buttonColorDark: '#100f2c', // default: '#100f2c'
buttonColorLight: '#fff', // default: '#fff'
saveInCookies: false, // default: true,
label: '🌓', // default: ''
autoMatchOsTheme: true // default: true
}
new Darkmode(options).showWidget();
}
window.addEventListener('load', addDarkmodeWidget);
</script>
</body>
</html>