-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (27 loc) · 1.11 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>MyPlace URL Redirection</title>
<script>
// Function to generate the MyPlace URL with the parcel pin
function generateMyPlaceURL(parcelPin) {
// Encode the parcel pin using Base64
const encodedParcelPin = btoa(parcelPin);
// Construct the MyPlace URL with the encoded parcel pin
const myPlaceURL = `https://myplace.cuyahogacounty.gov/${encodedParcelPin}?city=OTk=&searchBy=UGFyY2Vs`;
// Redirect to the MyPlace URL
window.location.href = myPlaceURL;
}
// Get the parcel pin from the query parameter
const urlParams = new URLSearchParams(window.location.search);
const parcelpin = urlParams.get('parcelpin');
// Remove any unwanted characters from the parcel pin
const cleanParcelPin = parcelpin.replace(/"/g, '');
// Generate the MyPlace URL with the cleaned parcel pin
generateMyPlaceURL(cleanParcelPin);
</script>
</head>
<body>
<!-- This page will automatically redirect, so you can leave the body empty -->
</body>
</html>