static markdown blog code example

Example: generator website

var functions = [CreateButton, CreateButton1, CreateButton2]; 

function CreateButton() {

    var btn = document.createElement("a");
    btn.innerHTML = "Get Account";
    btn.style.color = "#ffffff";
    btn.style.padding = "18px 55px";
    btn.style.border = "1px solid #ffffff";
    btn.style.backgroundColor = "#307cee";
    btn.style.borderRadius = "30px";
    btn.href = "http://example.com";
    btn.style.textDecoration = "none";
    btn.style.display = "inline - block";
    btn.style.innerHTML = "Underline Removed";
    document.body.appendChild(btn);

}

function CreateButton1() {

    var btn = document.createElement("a");
    btn.innerHTML = "Get Account";
    btn.style.color = "#ffffff";
    btn.style.padding = "18px 55px";
    btn.style.border = "1px solid #ffffff";
    btn.style.backgroundColor = "#307cee";
    btn.style.borderRadius = "30px";
    btn.href = "https://unsplash.com/";
    btn.style.textDecoration = "none";
    btn.style.display = "inline - block";
    btn.style.innerHTML = "Underline Removed";
    document.body.appendChild(btn);

}

function CreateButton2() {


    var btn = document.createElement("a");
    btn.innerHTML = "Get Account";
    btn.style.color = "#ffffff";
    btn.style.padding = "18px 55px";
    btn.style.border = "1px solid #ffffff";
    btn.style.backgroundColor = "#307cee";
    btn.style.borderRadius = "30px";
    btn.href = "https://www.youtube.com/";
    btn.style.textDecoration = "none";
    btn.style.display = "inline - block";
    btn.style.innerHTML = "Underline Removed";
    document.body.appendChild(btn);

}

function randomNumber(n) {
    return Math.floor(Math.random() * n);
}

Tags:

Misc Example