MortalSoft / Gameloader

This is a small lib that you will allow you to load any slot game in iframe via our API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gameloader


<script type="application/javascript" src="https://cdn.jsdelivr.net/gh/MortalSoft/Gameloader@main/sg.min.js"></script>

Example of usage:

var options = {
    target_element: "your-target-element-id",
    launch_options: {
        strategy: "iframe",
        game_url: "your-game-url",
        token: "your-authorization-token"
    }
};

function successCallback() {
    console.log("Iframe created successfully!");
}

function errorCallback(error) {
    console.error("An error occurred:", error);
}

window.sg.launch(options, successCallback, errorCallback);
var options = {
    target_element: "some-div-id",
    launch_options: {
        strategy: "iframe",
        game_url: "https://api-prod.mortalsoft.online/play/SweetBonanza",
        token: "user-token"
    }
};

About

This is a small lib that you will allow you to load any slot game in iframe via our API.


Languages

Language:JavaScript 56.2%Language:PHP 43.8%