Skip to content

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

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published