-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (52 loc) · 2.76 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
<!DOCTYPE html>
<html class='v2' dir='ltr' lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b'
xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'
xmlns:og='https://ogp.me/ns#'>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>CSS Minifier</title>
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="/img/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/img/android-chrome-512x512.png">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div id="cssminifier">
<textarea autofocus="" id="cssField" placeholder="Paste your CSS code here..." spellcheck="false"></textarea>
<div class="button-container">
<div class="checkbox-container">
<input class="opt1" id="stripAllComment" type="checkbox">
<label for="stripAllComment">Remove Comments</label>
<input class="opt2" id="superCompact" type="checkbox">
<label for="superCompact">Super Compact</label>
<input checked="" class="opt2" id="spaceAfterSemicolon" type="checkbox">
<label for="spaceAfterSemicolon">Add Space After Semicolon</label>
<!-- <input checked="" class="opt2" id="spaceAfterColon" type="checkbox">
<label for="spaceAfterColon">Add Space After Colon</label> -->
<input checked="" class="opt3" id="betterIndentation" type="checkbox">
<label for="betterIndentation" title="Best for @media queries">Keep Indentation</label>
<input class="opt4" id="keepLastComma" type="checkbox">
<label for="keepLastComma">Remove Last Semicolon</label><br><br>
</div>
<div class="button-group">
<button onclick="compressCSS('cssField');">Compress CSS</button>
<button onclick="clearField('cssField');">Clear Field</button>
<button onclick="selectAll('cssField');">Select All</button>
</div>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
<script src="/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("cssField");
editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/css");
editor.setOptions({
fontFamily: "JetBrains Mono",
fontSize: "10pt",
showPrintMargin: false
});
</script>
</body>
</html>