-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (73 loc) · 3.78 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Make Pretty XML</title>
<meta name="description" content="Easy to use tool to present XML in a readable format." />
<meta name="keywords" content="xml, pretty, format, tool, waldo, urribarri, waldou, maracaibo, zulia, venezuela, santiago, chile" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="google-site-verification" content="hzU22puENXTExYBgfJLqlVm1e3NrE03VVljql96tl8M" />
<link rel="canonical" href="http://waldou.github.com/make-pretty-xml/" />
<link rel="stylesheet" type="text/css" href="node_modules/normalize.css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111998844-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-111998844-2');
</script>
</head>
<body>
<div id="container">
<div id="entryAreaContainer">
<div id="title">Make Pretty XML</div>
<div id="description">Paste XML String into the Text Area below and click the "Make It Pretty" button.</div>
</div>
<div id="prettyXmlsContainer">Your browser is not supported</div>
<div id="footer">
<br /><br />
Developed by: <a href="http://www.waldou.com/">Waldo Urribarri</a><br />
Palette source: <a href="http://www.colourlovers.com/palette/2720547/Starshed">COLOURlovers</a><br />
See source code: <a href="https://github.com/waldou/make-pretty-xml">Github</a><br />
<br />
</div>
</div>
<script id="entryAreaTemplate" type="text/html">
<div id="entryArea">
<div><textarea id="txtArea" rows="10"></textarea></div>
<div><span>Validation: </span><span id="status">No errors found</span></div>
<div><fieldset id="indentType"><legend>Indent type:</legend><input class="typeInput" type="radio" name="indentType" value="0" checked>Two Spaces</input><input class="typeInput" type="radio" name="indentType" value="1">Tabs</input></fieldset></div>
<div><button id="makeItPrettyBtn" class="btn" type="button">Make It Pretty</button></div>
</div>
</script>
<script id="prettyXmlsTemplate" type="text/html">
<div id="mainSearchArea"><input type="text" id="filterText" name="filterText" placeholder="Text or expression to filter list..." /></div>
<div id="itemsContainer"></div>
</script>
<script id="prettyXmlTemplate" type="text/html">
<div id="<%=id%>" class="prettyXml">
<div class="prettyXmlHeader">
<div class="buttonsDiv">
<fieldset id="viewType"><input class="typeInput" type="radio" name="viewType<%=id%>" value="0" checked>See Pretty</input><input class="typeInput" type="radio" name="viewType<%=id%>" value="1">See Raw</input></fieldset>
<button id="copyToClipBtn" class="btn" type="button">Copy To Clipboard</button>
<button id="downloadBtn" class="btn" type="button">Download</button>
<button id="deleteBtn" class="btn" type="button">Delete</button>
</div>
<div class="prettyXmlHeaderText">
<span>Timestamp: <%=timestamp%> - Raw length: <%=xmlRaw.length%> characters</span>
<br />
<span>Validation: </span><span class="validationError"><%=validationError%></span>
</div>
</div>
<div class="itemId"><%=id%></div>
<pre class="prettyXmlText <% if(isValidXml) {%>addLineNumber<%}%>"></pre>
<pre class="prettyXmlTextRaw"></pre>
<div class="float-break"></div>
</div>
</script>
<script data-main = "js/main" src = "node_modules/requirejs/require.js"></script>
</body>
</html>