forked from sagitafb/jasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfebriyanti.html
35 lines (26 loc) · 848 Bytes
/
febriyanti.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
<script>
// Fungsi buat mengambil field URL
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
// Fungsi buat mengatasi Field Yang dobel atau kosong
function getUrlParam(parameter, defaultvalue){
var urlparameter = defaultvalue;
if(window.location.href.indexOf(parameter) > -1){
urlparameter = getUrlVars()[parameter];
}
return urlparameter;
}
function gita(string) {
return decodeURIComponent(escape(atob(string))); }
var sumber = getUrlParam('link','no_value').replace("SAGITA","==").replace("FEBRIYANTI","=");
if (sumber){
var ref = document.referrer;
var sumber = gita(decodeURIComponent(sumber));
window.top.location.href=sumber + "?utm_source=" + ref;
}
</script>