-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.vue
39 lines (37 loc) · 1.04 KB
/
search.vue
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
<template>
<div class="l-container">
<h2 class="search__title">
Обработка данных...
</h2>
</div>
</template>
<script>
export default {
name: 'Search',
mounted() {
const ourURL = 'https://abyss-soft.ucoz.ru/'; // Place the url here on your website, for example https://abyss-soft.ucoz.ru/
const url = new URL(window.location.href);
const urlNormalize = url.search.replace(/%2F/g, '/').replace(/%3A/g, ':');
const indexStartURL = urlNormalize.indexOf(ourURL);
const indexEndtURL = urlNormalize.indexOf('%', indexStartURL + 1);
const patchToGo = urlNormalize.substring(indexStartURL, indexEndtURL);
if (patchToGo && patchToGo.length > 20) {
document.location.href = patchToGo;
} else {
document.location.href = ourURL;
}
},
};
</script>
<style lang="scss" scoped>
.search__title {
font-family: 'ALS Schlange', sans-serif;
font-style: normal;
font-weight: bold;
font-size: 36px;
line-height: 36px;
color: #1e1f1d;
text-align: center;
margin: 2rem 0;
}
</style>