-
Notifications
You must be signed in to change notification settings - Fork 0
/
thank.html
77 lines (70 loc) · 2.12 KB
/
thank.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Thank you for your order!</title>
<link rel="icon" href="./image/favicon.svg">
<style>
p {
font-size: 14pt; /* Размер шрифта в пунктах */ }
</style>
</head>
<body>
<br>
<br>
<center>
<script type="text/javascript">
function randomInteger(min, max) {
var rand = min + Math.random() * (max - min)
rand = Math.round(rand);
return rand;
}
var day=randomInteger(1240, 4350);
document.getElementById("rand_img").src = "https://avatars.dicebear.com/api/jdenticon/" + day + ".svg";
</script>
<br>
<br>
<h1>Thank you, your order has been accepted!</h1>
<br><br>
<p class="fail">If you made a mistake when filling out the form, then please <a href="index.html">fill out the application again</a></p>
</center>
<script src="scripts/jquery.min.js"></script>
<script>
var params = window
.location
.search
.replace('?','')
.split('&')
.reduce(
function(p,e){
var a = e.split('=');
p[ decodeURIComponent(a[0])] = decodeURIComponent(a[1]);
return p;
},
{}
);
var get_params = "";
var amp = '&';
for (var key in params) {
// этот код будет вызван для каждого свойства объекта
// ..и выведет имя свойства и его значение
get_params = get_params + key + '=' + params[key] + amp;
// console.log( "Ключ: " + key + " значение: " + params[key] );
}
var get_url = '?'+ get_params.slice(0, -1);
console.log( get_url);
if(get_url !== '?=undefined'){
$("a[href]").attr('href', function() {
if (this.hash ) {
if(this.hash == '#models') return '../index.php'+get_url+'#models';
// document.write("Совпадение найдено")
return this.hash;
} else {
// document.write("Совпадение не найдено")
return this.href+get_url;
}
});
}
</script>
</body>
</html>