-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (101 loc) · 4.01 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CapCut Auto-Captions to SRT</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="watermark">Dibuat oleh Zufar Rizal</div>
<div class="container">
<h1>CapCut Auto-Captions to SRT</h1>
<input type="file" id="fileInput" accept=".json" />
<button class="blue-button" onclick="convertToSRT()">
Convert
</button>
<textarea id="output" readonly></textarea>
<div class="buttons">
<button class="blue-button" onclick="toLowerCase()">
lower case
</button>
<button class="blue-button" onclick="toUpperCase()">
UPPER CASE
</button>
<button class="blue-button" onclick="toAlternatingCase()">
aLtErNaTiNg cAsE
</button>
<button class="blue-button" onclick="toTitleCase()">
Title Case
</button>
<button class="blue-button" onclick="toInverseCase()">
InVeRsE CaSe
</button>
</div>
<div class="buttons">
<button class="blue-button" onclick="downloadSRT()">
Download Text
</button>
<button class="blue-button" onclick="copyToClipboard()">
Copy to Clipboard
</button>
<button class="blue-button" onclick="clearText()">Clear</button>
<button class="highlight-button" onclick="showTutorial()">
Tutorial
</button>
</div>
<div id="tutorialText">
<p>
Search for a file named
<b style="background-color: yellow">draft_content.json</b>
in your CapCut Projects folder. The default location is:
</p>
<p>
<strong>On Windows:</strong><br /><span
onclick="copyText('%LOCALAPPDATA%\\CapCut\\User Data\\Projects\\com.lveditor.draft\\')"
style="cursor: pointer; color: blue"
>C:\Users\user\AppData\Local\CapCut\User
Data\Projects\com.lveditor.draft\</span
>
</p>
<p>
<strong>On MacOS:</strong><br /><span
onclick="copyText('/Users/user/Movies/CapCut/User Data/Projects/com.lveditor.draft')"
style="cursor: pointer; color: blue"
>/Users/user/Movies/CapCut/User
Data/Projects/com.lveditor.draft</span
>
</p>
</div>
</div>
<script
type="text/javascript"
src="https://storage.sociabuzz.com/storage/js/main/buttononwebsite/index.min.js"
></script>
<script>
sbBoW.draw(
"zufarrizal",
"U3VwcG9ydA",
"position-bottom-right",
"#76CC11",
"#FFFFFF"
);
</script>
<script src="scripts.js"></script>
<script>
function showTutorial() {
var tutorialText = document.getElementById("tutorialText");
tutorialText.style.display = "block";
}
function copyText(text) {
var textarea = document.createElement("textarea");
textarea.value = text;
document.body.appendChild(textarea);
textarea.select();
document.execCommand("copy");
document.body.removeChild(textarea);
alert("Text copied to clipboard: " + text);
}
</script>
</body>
</html>