-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoOneLinePDF.html
More file actions
executable file
·32 lines (24 loc) · 897 Bytes
/
toOneLinePDF.html
File metadata and controls
executable file
·32 lines (24 loc) · 897 Bytes
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
<!DOCTYPE>
<html>
<head>
<script src="jquery-3.3.1.js"></script>
<title>Convert to a Single Line</title>
</head>
<body style="background-color: gray">
<div style="width:100%;">
<textarea id="input" style="width: 100%; height: 350px; background-color: gray;" placeholder="Input Data"></textarea>
<textarea id="output" style="width: 100%; height: 350px; background-color: gray;" placeholder="Output Data"></textarea>
</div>
</body>
</html>
<script>
$( document ).ready(function() {
$("#input").on("input", function(e){
let inputData = $("#input").val();
let outputData = inputData.split("\n").join(" ").replace(" ", " ");
$("#output").val(outputData);
$("#output").select();
document.execCommand('copy');
})
});
</script>