-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile-create-script.html
More file actions
199 lines (191 loc) · 11.7 KB
/
Copy pathmobile-create-script.html
File metadata and controls
199 lines (191 loc) · 11.7 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en">
<head>
<!-- It load First Due, To Redirects Handling -->
<script src="./scripts/website_adjust.js"></script>
<!-- Normal Head Content -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Script Maker | Create</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.0/typed.js"
integrity="sha512-ioFpA4cD4gmoOhHglW4f6gep7w+YL7UMKtXx4ebJ5NN4SscmnZYYmSjkA+DaHGvBI4wpYVPx2C7DmmV9TgbIbQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- <script src="https://cdn.tailwindcss.com"></script> -->
<link rel="icon" type="image/x-icon" href="./assets/favicon.ico">
<link rel="stylesheet" href="./styles/tailwind/output.css">
<link rel="stylesheet" href="./styles/style.css">
<script src="./scripts/utils.js"></script>
<script src="./scripts/delete_elem.js"></script>
<script src="./scripts/compile.js"></script>
<script src="./scripts/extract_script_content.js"></script>
<script src="./scripts/clickcreate.js"></script>
<script src="./scripts/script.js"></script>
<script src="./scripts/darkmode.js"></script>
</head>
<body>
<button class="themeChangeBtn"><i class="fa-solid fa-circle-half-stroke"></i></button>
<h1 class="text-2xl font-black text-center p-2">Create Scripts that Automate World!!!</h1>
<div class="script-container m-2 my-4">
<div id="toast-info" class="my-4 text-xs"></div>
<h2 class="text-2xl text-center font-bold">Script Content</h2>
<div class="py-2 flex flex-col justify-between">
<div class="m-2">
<label for="language-option">Select a language: </label>
<select name="language" id="language-option">
<option class="stable" value="powershell">PowerShell (Windows)</option>
<option class="stable" value="bash">Bash (Linux/MacOs)</option>
<option class="stable" value="python">Python 3.9+</option>
<option class="depecreted" value="bat">Depecreted: Batch (Bat)</option>
</select>
</div>
<div class="m-2 flex justify-between">
<button id="copybtn" class="btn btnfeedback"><i class="px-2 fa-solid fa-clipboard"></i>Copy To
ClipBoard</button>
<button id="downloadbtn" class="btn btnfeedback"><i
class="px-2 fa-solid fa-file-arrow-down"></i>Download</button>
</div>
</div>
<div class="my-8">
<div class="m-1">
<label for="elem-option">Select a element: </label>
<select id="elem-option">
<option value="comment">Document Stuff!!</option>
<option value="printmsg">Print A Message!!</option>
<option value="mkdir">Make a Directory!!</option>
<option value="mkfile">Make a File!!</option>
<option value="writefile">Write to File!!</option>
<option value="readfile">Read to File!!</option>
<option value="cdpwd">Change Working Directory!!</option>
<option value="cdback">Move Back A Step!!</option>
<option value="executecommand">Execute Stuff!!</option>
</select>
<input class="px-2 border-2 rounded-lg transition-colors hover:text-slate-900 hover:bg-slate-100"
type="button" id="addelem" value="Add Element" />
</div>
<div class="m-1">
<div class="hidden script-snippits w-5/12">
<div id="comment" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Document Stuff</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="commentinput">Comment: </label>
<input type="text" id="commentinput" class="args">
</div>
</div>
<div id="printmsg" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Print A Message</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="messageinput">Message: </label>
<input type="text" id="messageinput" class="args">
</div>
</div>
<div id="mkdir" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Make a Directory</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="directorynameinput">DirectoryName: </label>
<input type="text" id="directorynameinput" class="args">
</div>
</div>
<div id="mkfile" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Make a File</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="filenameinput">FileName: </label>
<input type="text" id="filenameinput" class="args">
</div>
</div>
<div id="writefile" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Write to File</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="filenameinput">FileName: </label>
<input type="text" id="filenameinput" class="args">
<br />
<label for="contentinput">Content: </label>
<input type="text" id="contentinput" class="args">
</div>
</div>
<div id="readfile" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Read to File</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="filenameinput">FileName: </label>
<input type="text" id="filenameinput" class="args">
</div>
</div>
<div id="cdpwd" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Change Working Directory</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="pathinput">Path: </label>
<input type="text" id="pathinput" class="args">
</div>
</div>
<div id="cdback" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Move Back A Step</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label>Path: Move Back A Directory!!!</label>
</div>
</div>
<div id="executecommand" class="btn w-full m-2 dragable">
<div class="flex justify-between">
<h3>Execute Stuff</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="commandinput">Command: </label>
<input type="text" id="commandinput" class="args">
</div>
</div>
</div>
<div class="script-content min-h-48 small-container">
<div id="printmsg" class="show-full btn w-full m-2 dragable initialElem">
<div class="flex justify-between">
<h3>Print A Message</h3>
<button id="deleteElemBtn" class="hidden"><i class="fa-solid fa-trash"
style="color: #c40808;"></i></button>
</div>
<div id="details" class="hidden details p-2">
<label for="messageinput">Message: </label>
<input type="text" value="Hello, World!!" id="messageinput" class="args">
</div>
</div>
</div>
</div>
</div>
<h3 class="text-md text-slate-500 text-center">Tip: Check The Script Before Executing!!</h3>
</div>
<p class="text-md text-cyan-800 text-center"><a href="mobile-explore.html">Share Your Scripts!!</a></p>
</body>
</html>