-
Notifications
You must be signed in to change notification settings - Fork 0
/
links.html
77 lines (74 loc) · 2.58 KB
/
links.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 lang="en">
<head>
<meta charset="UTF-8">
<title>Sellars ATC Links</title>
<noscript>You must enable JavaScript in your browser to use ATC links.</noscript>
<script>
var site = new URL(window.location.href).searchParams.get('site');
if (site && typeof site === 'string') {
script = document.createElement('script');
switch (site) {
case "belief":
script.src = "./atc/belief.min.js";
break;
case "sneakerhead":
script.src = "./atc/sneakerhead.min.js";
break;
case "streetbeat":
script.src = "./atc/streetbeat.min.js";
break;
case "supreme":
script.src = "./atc/supreme.js";
break;
case "tsum":
script.src = "./atc/tsum.min.js";
break;
case "basketshop":
script.src = "./atc/basketshop.min.js";
break;
case "km20":
script.src = "./atc/km20.min.js";
break;
case "net-a-porter":
script.src = "./atc/net-a-porter.min.js";
break;
case "itkkit":
script.src = "./atc/itkkit.min.js";
break;
case "wildberries":
script.src = "./atc/wildberries.min.js";
break;
case "citilink":
script.src = "./atc/citilink.min.js";
break;
case "mts":
script.src = "./atc/mts.min.js";
break;
case "sneakerstreet":
script.src = "./atc/sneakerstreet.min.js";
break;
case "svyaznoy":
script.src = "./atc/svyaznoy.min.js";
break;
case "technopark":
script.src = "./atc/technopark.js";
break;
case "snipes":
script.src = "./atc/snipes.js";
break;
default:
alert('Unknown site');
window.location.href = '/';
break;
}
document.head.appendChild(script);
} else {
alert('Wrong site');
window.location.href = '/';
}
</script>
</body>
</head>
<body>
</html>