Preserve window.location.search
Browse files- templates/.EmptyPage.html +19 -0
- templates/About.html +19 -0
- templates/Contact.html +19 -0
- templates/Home.html +17 -0
- templates/Output.html +17 -0
- templates/Pricing.html +17 -0
templates/.EmptyPage.html
CHANGED
|
@@ -44,5 +44,24 @@
|
|
| 44 |
</div>
|
| 45 |
</footer>
|
| 46 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
</body></html>
|
|
|
|
| 44 |
</div>
|
| 45 |
</footer>
|
| 46 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
| 47 |
+
|
| 48 |
+
<script>
|
| 49 |
+
document.addEventListener('click', function (e) {
|
| 50 |
+
const a = e.target.closest('a[href]');
|
| 51 |
+
if (!a) return;
|
| 52 |
+
|
| 53 |
+
const href = a.getAttribute('href');
|
| 54 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 55 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 56 |
+
|
| 57 |
+
// Preserve the current ?__sign=... and any other params
|
| 58 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 59 |
+
// If the link already has a query, merge them
|
| 60 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 61 |
+
|
| 62 |
+
e.preventDefault();
|
| 63 |
+
window.location.href = joined;
|
| 64 |
+
});
|
| 65 |
+
</script>
|
| 66 |
|
| 67 |
</body></html>
|
templates/About.html
CHANGED
|
@@ -116,5 +116,24 @@
|
|
| 116 |
</div>
|
| 117 |
</footer>
|
| 118 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
</body></html>
|
|
|
|
| 116 |
</div>
|
| 117 |
</footer>
|
| 118 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
| 119 |
+
|
| 120 |
+
<script>
|
| 121 |
+
document.addEventListener('click', function (e) {
|
| 122 |
+
const a = e.target.closest('a[href]');
|
| 123 |
+
if (!a) return;
|
| 124 |
+
|
| 125 |
+
const href = a.getAttribute('href');
|
| 126 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 127 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 128 |
+
|
| 129 |
+
// Preserve the current ?__sign=... and any other params
|
| 130 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 131 |
+
// If the link already has a query, merge them
|
| 132 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 133 |
+
|
| 134 |
+
e.preventDefault();
|
| 135 |
+
window.location.href = joined;
|
| 136 |
+
});
|
| 137 |
+
</script>
|
| 138 |
|
| 139 |
</body></html>
|
templates/Contact.html
CHANGED
|
@@ -44,5 +44,24 @@
|
|
| 44 |
</div>
|
| 45 |
</footer>
|
| 46 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
</body></html>
|
|
|
|
| 44 |
</div>
|
| 45 |
</footer>
|
| 46 |
<section class="u-backlink u-clearfix u-grey-80"></section>
|
| 47 |
+
|
| 48 |
+
<script>
|
| 49 |
+
document.addEventListener('click', function (e) {
|
| 50 |
+
const a = e.target.closest('a[href]');
|
| 51 |
+
if (!a) return;
|
| 52 |
+
|
| 53 |
+
const href = a.getAttribute('href');
|
| 54 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 55 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 56 |
+
|
| 57 |
+
// Preserve the current ?__sign=... and any other params
|
| 58 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 59 |
+
// If the link already has a query, merge them
|
| 60 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 61 |
+
|
| 62 |
+
e.preventDefault();
|
| 63 |
+
window.location.href = joined;
|
| 64 |
+
});
|
| 65 |
+
</script>
|
| 66 |
|
| 67 |
</body></html>
|
templates/Home.html
CHANGED
|
@@ -110,5 +110,22 @@
|
|
| 110 |
|
| 111 |
// allow submit; Flask will do final validation + flash messages
|
| 112 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
</script>
|
| 114 |
</body></html>
|
|
|
|
| 110 |
|
| 111 |
// allow submit; Flask will do final validation + flash messages
|
| 112 |
});
|
| 113 |
+
|
| 114 |
+
document.addEventListener('click', function (e) {
|
| 115 |
+
const a = e.target.closest('a[href]');
|
| 116 |
+
if (!a) return;
|
| 117 |
+
|
| 118 |
+
const href = a.getAttribute('href');
|
| 119 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 120 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 121 |
+
|
| 122 |
+
// Preserve the current ?__sign=... and any other params
|
| 123 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 124 |
+
// If the link already has a query, merge them
|
| 125 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 126 |
+
|
| 127 |
+
e.preventDefault();
|
| 128 |
+
window.location.href = joined;
|
| 129 |
+
});
|
| 130 |
</script>
|
| 131 |
</body></html>
|
templates/Output.html
CHANGED
|
@@ -278,6 +278,23 @@
|
|
| 278 |
socket.emit('leave', { job_id: jobId });
|
| 279 |
});
|
| 280 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
</script>
|
| 282 |
</body>
|
| 283 |
</html>
|
|
|
|
| 278 |
socket.emit('leave', { job_id: jobId });
|
| 279 |
});
|
| 280 |
})();
|
| 281 |
+
|
| 282 |
+
document.addEventListener('click', function (e) {
|
| 283 |
+
const a = e.target.closest('a[href]');
|
| 284 |
+
if (!a) return;
|
| 285 |
+
|
| 286 |
+
const href = a.getAttribute('href');
|
| 287 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 288 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 289 |
+
|
| 290 |
+
// Preserve the current ?__sign=... and any other params
|
| 291 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 292 |
+
// If the link already has a query, merge them
|
| 293 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 294 |
+
|
| 295 |
+
e.preventDefault();
|
| 296 |
+
window.location.href = joined;
|
| 297 |
+
});
|
| 298 |
</script>
|
| 299 |
</body>
|
| 300 |
</html>
|
templates/Pricing.html
CHANGED
|
@@ -199,6 +199,23 @@
|
|
| 199 |
const start = (hashId && document.getElementById(hashId)) ? hashId : tabs[0]?.dataset.target;
|
| 200 |
if (start) openPanel(start);
|
| 201 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
</script>
|
| 203 |
|
| 204 |
</body></html>
|
|
|
|
| 199 |
const start = (hashId && document.getElementById(hashId)) ? hashId : tabs[0]?.dataset.target;
|
| 200 |
if (start) openPanel(start);
|
| 201 |
});
|
| 202 |
+
|
| 203 |
+
document.addEventListener('click', function (e) {
|
| 204 |
+
const a = e.target.closest('a[href]');
|
| 205 |
+
if (!a) return;
|
| 206 |
+
|
| 207 |
+
const href = a.getAttribute('href');
|
| 208 |
+
// Only adjust internal links (not http/https or mailto/etc.)
|
| 209 |
+
if (!href || /^(?:[a-z]+:)?\/\//i.test(href) || href.startsWith('#')) return;
|
| 210 |
+
|
| 211 |
+
// Preserve the current ?__sign=... and any other params
|
| 212 |
+
const qs = window.location.search; // includes "?__sign=..."
|
| 213 |
+
// If the link already has a query, merge them
|
| 214 |
+
const joined = href + (href.includes('?') ? '&' + qs.slice(1) : qs);
|
| 215 |
+
|
| 216 |
+
e.preventDefault();
|
| 217 |
+
window.location.href = joined;
|
| 218 |
+
});
|
| 219 |
</script>
|
| 220 |
|
| 221 |
</body></html>
|