-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
232 lines (217 loc) · 8.53 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE html>
<html lang="eng">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Edit your site info here -->
<title>📖CMD📖Learning📖</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="canonical" href="https://zerodevx.github.io/zero-md/">
<meta name="description" content="essential-command">
<meta name="keywords" content="git, adb, adb-commands, cmd, linux-commands, windows-cmd, windows-commands, git-commands, mac-commands, it-commands, database, sql, plpgsql, plsql, sql-query">
<meta name="robots" content="INDEX, FOLLOW">
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.2.10/webcomponents-loader.min.js"></script>
<script type="module" src="./src/index.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-66946548-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-66946548-3');
window.onload= (event) => {
setTimeout(() => {
// document.getElementsByClassName("content")[0].style.backgroundColor = 'red';
document.getElementsByClassName("content")[0].style.width = `${Math.ceil(window.innerWidth*50/100)}px`;
}, 500);
}
</script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="fixed-div">
<ul id="myList">
<li><a href="#windows">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.worldvectorlogo.com/logos/microsoft-windows-22.svg" />
Windows</a>
</li>
<li><a href="#windows-it">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.worldvectorlogo.com/logos/terminal-1.svg" />
Windows-IT</a>
</li>
<li><a href="#linux">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.simpleicons.org/linux" />
Linux</a>
</li>
<li><a href="#macos">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.simpleicons.org/apple/white" />
MacOs</a>
</li>
<li><a href="#git">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.simpleicons.org/git/red" />
Git</a>
</li>
<li><a href="#adb">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.simpleicons.org/android/green" />
Adb</a>
</li>
<li><a href="#docker">
<img align="center" width="20px" style="padding:5px;"
src="https://cdn.simpleicons.org/docker" />
Docker</a>
</li>
<!-- <li><a href="#shellscript">
<img align="center" width="20px" style="padding:5px;" src="https://cdn.simpleicons.org/gnubash/white" />
Shell Script</a>
</li> -->
<!-- <li><a href="#batchscript">
<img align="center" width="20px" style="padding:5px;" src="https://cdn.simpleicons.org/gnubash/white" />
Batch Script</a>
</li> -->
<!-- <li><a href="#powershell">
<img align="center" width="20px" style="padding:5px;" src="https://cdn.simpleicons.org/powershell" />
Power Shell</a>
</li> -->
<!-- <li><a href="#database">
<img align="center" width="20px" style="padding:5px;" src="https://cdn.simpleicons.org/amazondocumentdb" />
Database</a>
</li> -->
<!-- <li><a href="#plpgsql">
<img align="center" width="20px" style="padding:5px;" src="https://cdn.simpleicons.org/postgresql/sky" />
PLpgSQL</a>
</li> -->
<!-- <li class="active"><a href="#home">home</a></li>
<li><a href="#mac">mac</a></li>
<li><a href="#windows">windows</a></li>
<li><a href="#linux">linux</a></li>
<li class="dropdown"><a href="#contact" class="dropbtn">Games</a>
<div class="dropdown-content">
<a href="#">Item1</a>
<a href="#">Item2</a>
<a href="#">Item3</a>
</div>
</li>
<li style="float:right"><a href="#about">About</a></li> -->
<li style="float:right"><a href="#about">
<img align="center" src="https://artbindu.github.io/artbindu/favicon.ico" height="25px"
style="padding:5px;">About</a>
</li>
</ul>
<header class="page-header">
<h1><u>
<div class="msg">Windows Popular Command</div>
</u></h1>
</header>
<!-- Your fixed div content goes here -->
</div>
<div class="content" id="showData">
<div class="windows">
<zero-md class="app" src="./data/cmdLearning.md"></zero-md>
</div>
<div class="macos">
<zero-md class="app" src="./data/macLearning.md"></zero-md>
</div>
<div class="linux">
<zero-md class="app" src="./data/linuxLearning.md"></zero-md>
</div>
<div class="windows-it">
<zero-md class="app" src="./data/cmdIT.md"></zero-md>
</div>
<div class="git">
<zero-md class="app" src="./data/gitLearning.md"></zero-md>
</div>
<div class="adb">
<zero-md class="app" src="./data/adbLearning.md"></zero-md>
</div>
<div class="docker">
<zero-md class="app" src="./data/docker.md"></zero-md>
</div>
<div class="batchscript">
<zero-md class="app" src="./data/batchscript.md"></zero-md>
</div>
<div class="shellscript">
<zero-md class="app" src="./data/shellscript.md"></zero-md>
</div>
<div class="powershell">
<zero-md class="app" src="./data/powershell.md"></zero-md>
</div>
<div class="database">
<zero-md class="app" src="./data/database.md"></zero-md>
</div>
<div class="plpgsql">
<zero-md class="app" src="./data/plpgsql.md"></zero-md>
</div>
<div class="about">
<zero-md class="app" src="./data/about.md"></zero-md>
</div>
</div>
<script>
var msgData = {
windows: 'Windows CMD Commands',
linux: 'Linux Terminal Commands',
macos: 'MacOs Terminal Commands',
windows_it: 'Windows IT CMD Commands',
git: 'Git Basic Commands',
adb: 'ADB Basic Commands',
docker: 'Docker Basic Commands',
database: 'Database Basic Learning',
shellscript: 'Shell Script Commands',
batchscript: 'Batch Script Commands',
powershell: 'Powershell Scripting Commands',
plpgsql: 'PL/pgSQL Commands',
about: "About"
};
// Show default active option after refresh/first-reload
var listItems = document.querySelectorAll('#myList li');
var cUrl = window.location.href;
var urlKey = cUrl.match(/(?<=\#)[a-z\-]+/gi);
if (urlKey) {
listItems.forEach((ele, index) => {
if (ele.textContent.match(/[a-z\-]+/gi).toString().toLowerCase() === urlKey.toString().toLowerCase()) {
var activeOption = ele.textContent ? ele.textContent.replace(/\s+/g, '') : '';
console.log('Active option: [Default] ' + activeOption);
listItems[index].classList.add('active')
showData(activeOption);
return;
}
});
} else {
var activeOption = listItems[0].textContent ? listItems[0].textContent.replace(/\s+/g, '') : '';
console.log('Active option: [Default] ' + activeOption);
listItems[0].classList.add('active')
showData(activeOption);
}
listItems.forEach(function (item) {
item.addEventListener('click', function () {
// Remove active class from all li elements
listItems.forEach(function (li) {
li.classList.remove('active');
});
// Add active class to the clicked li element
this.classList.add('active');
// Get the text of the active li element
activeOption = this.textContent ? this.textContent.replace(/\s+/g, '') : '';
console.log('Active option: [onClick] ' + activeOption);
showData(activeOption);
});
});
function showData(activeOption) {
showHeaderMessage(activeOption);
var showData = document.querySelectorAll('#showData div');
showData.forEach(function (item) {
item.style.display = item.className.toLowerCase() === activeOption.toLowerCase() ? "block" : "none";
});
}
function showHeaderMessage(msg) {
msg = msg ? msg.toLowerCase().replace(/\-/g, '_') : 'about';
document.getElementsByClassName("msg")[0].innerHTML = msgData[msg];
}
</script>
</body>
</html>