-
-
Save anonymous/172326225e1802b7228c73a24c4aa3bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($){ | |
var _GET = location.search.substring(1).split("&"); | |
function parseGetParam(getParam) { | |
var $_GET = {}; | |
for (var i = 0; i < getParam.length; i++) { | |
var getVar = getParam[i].split("="); | |
$_GET[getVar[0]] = typeof(getVar[1]) == "undefined" ? "" : getVar[1]; | |
} | |
return $_GET['user']; | |
} | |
if (_GET != '' && _GET != 'undefined') | |
{ | |
var username = parseGetParam(_GET); | |
$('.button-slider').attr('href', 'https://www.life-media.ag/index.php?id=2&user=' + username); | |
$('.role-button').attr('href', 'https://www.life-media.ag/index.php?id=2&user=' + username); | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment