Dynamic title & description
Browse files- static/script.js +12 -0
- templates/index.html +2 -2
static/script.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
// DOM elements
|
|
|
|
|
|
|
2 |
const singleModeBtn = document.getElementById('single-mode-btn');
|
3 |
const batchModeBtn = document.getElementById('batch-mode-btn');
|
4 |
const keywordModeBtn = document.getElementById("keyword-mode-btn");
|
@@ -23,6 +26,9 @@ const errorMessage = document.getElementById('error-message');
|
|
23 |
|
24 |
// Search mode toggle
|
25 |
singleModeBtn.addEventListener('click', () => {
|
|
|
|
|
|
|
26 |
singleModeBtn.classList.add('active');
|
27 |
keywordModeBtn.classList.remove("active");
|
28 |
batchModeBtn.classList.remove('active');
|
@@ -33,6 +39,9 @@ singleModeBtn.addEventListener('click', () => {
|
|
33 |
});
|
34 |
|
35 |
batchModeBtn.addEventListener('click', () => {
|
|
|
|
|
|
|
36 |
batchModeBtn.classList.add('active');
|
37 |
keywordModeBtn.classList.remove("active");
|
38 |
singleModeBtn.classList.remove('active');
|
@@ -43,6 +52,9 @@ batchModeBtn.addEventListener('click', () => {
|
|
43 |
});
|
44 |
|
45 |
keywordModeBtn.addEventListener('click', () => {
|
|
|
|
|
|
|
46 |
keywordModeBtn.classList.add("active");
|
47 |
singleModeBtn.classList.remove('active');
|
48 |
batchModeBtn.classList.remove("active");
|
|
|
1 |
// DOM elements
|
2 |
+
const dynamicDesc = document.getElementById("dynamicDesc");
|
3 |
+
const dynamicTitle = document.getElementById("dynamicTitle");
|
4 |
+
|
5 |
const singleModeBtn = document.getElementById('single-mode-btn');
|
6 |
const batchModeBtn = document.getElementById('batch-mode-btn');
|
7 |
const keywordModeBtn = document.getElementById("keyword-mode-btn");
|
|
|
26 |
|
27 |
// Search mode toggle
|
28 |
singleModeBtn.addEventListener('click', () => {
|
29 |
+
dynamicTitle.textContent = "Find 3GPP Documents";
|
30 |
+
dynamicDesc.textContent = "Enter a TSG document ID / specification ID (e.g., S1-123456, C2-987654 or 31.102) to locate the document in the 3GPP FTP server.";
|
31 |
+
|
32 |
singleModeBtn.classList.add('active');
|
33 |
keywordModeBtn.classList.remove("active");
|
34 |
batchModeBtn.classList.remove('active');
|
|
|
39 |
});
|
40 |
|
41 |
batchModeBtn.addEventListener('click', () => {
|
42 |
+
dynamicTitle.textContent = "Find multiple 3GPP Documents";
|
43 |
+
dynamicDesc.textContent = "Enter a list of TSG document ID / specification ID (e.g., S1-123456, C2-987654 or 31.102) to locate all of the specified documents in the 3GPP FTP server.";
|
44 |
+
|
45 |
batchModeBtn.classList.add('active');
|
46 |
keywordModeBtn.classList.remove("active");
|
47 |
singleModeBtn.classList.remove('active');
|
|
|
52 |
});
|
53 |
|
54 |
keywordModeBtn.addEventListener('click', () => {
|
55 |
+
dynamicTitle.textContent = "Search 3GPP specifications";
|
56 |
+
dynamicDesc.textContent = "With keywords and filters, find all of 3GPP's specifications that matches your needs (with keywords, specification number, release or even working group (C1, S5, SP, CP: always the first letter of the group followed by the workgroup number)";
|
57 |
+
|
58 |
keywordModeBtn.classList.add("active");
|
59 |
singleModeBtn.classList.remove('active');
|
60 |
batchModeBtn.classList.remove("active");
|
templates/index.html
CHANGED
@@ -19,8 +19,8 @@
|
|
19 |
<div class="container">
|
20 |
<div class="search-container">
|
21 |
<div class="search-header">
|
22 |
-
<h2>Find 3GPP Documents</h2>
|
23 |
-
<p>Enter a TSG document ID / specification ID (e.g., S1-123456, C2-987654 or 31.102) to locate the document in the 3GPP FTP server.</p>
|
24 |
</div>
|
25 |
|
26 |
<div class="search-mode">
|
|
|
19 |
<div class="container">
|
20 |
<div class="search-container">
|
21 |
<div class="search-header">
|
22 |
+
<h2 id="dynamicTitle">Find 3GPP Documents</h2>
|
23 |
+
<p id="dynamicDesc">Enter a TSG document ID / specification ID (e.g., S1-123456, C2-987654 or 31.102) to locate the document in the 3GPP FTP server.</p>
|
24 |
</div>
|
25 |
|
26 |
<div class="search-mode">
|