Skip to content

Discover our lightweight library that enables you to load any slot game in an iframe using our API.

Notifications You must be signed in to change notification settings

MortalSoft/Gameloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Discover our lightweight library that enables you to load any slot game in an iframe using our API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published