embed generato code example

Example: bloxverify embed code

function delay(){
    setTimeout(function(){return true;},30000);
};
document.getElementById('bloxverifybuttonparent').innerHTML = '<img src="https://embed.bloxverify.me/loading.gif">';
delay()
document.getElementById('bloxverifybuttonparent').innerHTML = '<link rel="stylesheet" href="https://embed.bloxverify.me/button.css" /> <a title="Login with ROBLOX"> <button class="loginwithroblox" onclick="loginwithroblox()" alt="Login with ROBLOX" />Login with <img src="https://embed.bloxverify.me/roblox.png"></a>';
function loginwithroblox() {
var data = document.querySelector('.bloxverifydata');
var token = data.getAttribute('bloxverify-token');
var goback = data.getAttribute('bloxverify-return');
var sso = data.getAttribute('bloxverify-sso');
var requests = data.getAttribute('bloxverify-requests');
console.log("[BLOXVERIFY API]: Token: " + token + "\n Go Back URI: " + goback + " \n SSO URL: " + sso + " REQUESTS HEADERS: " + requests)
}

/*
Preview it at embed.bloxverify.me/preview.php
Type this code inside your site:
<script type="text/javascript" class="bloxverifydata" src="https://embed.bloxverify.me/" bloxverify-token="your-authorization--token" bloxverify-requests="username+verifystatus+profileicon" bloxverify-sso="http://mysite.com/sso.php" bloxverify-return="http://mysite.com/welcome">
alert("Redirecting to a URL that's off this domain with differnt term's of service's & privacy policy's. \n Website: bloxverify.me \n Your being redirected there for ROBLOX Login Verification")
</script>
<div class="bloxverifybuttonparent">
</div>
*/