Docs

Star Sports Platform Integration Guide

Star Sports Platform provides HD live streaming of global popular sports events, interactive entertainment, and secure betting services. This guide helps developers quickly integrate Star Sports features into your website or app, including page structure, style loading, and script configuration.

Quick Start Integration

To start integrating Star Sports, you need to first register a developer account and obtain an API key. Visit the download page to get the latest version of the Star Sports app and client installation package, and also refer to our API documentation and integration solutions.

CSS

Place this stylesheet `<link>` tag in the `<head>` section of your HTML document, and prioritize it before all other stylesheets to ensure correct loading of Star Sports CSS.

<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />

JS

Most interactive components of the platform rely on JavaScript to run. Specifically, jQuery, Bootstrap bundle, and Star Sports custom plugins are required. Place the following `<script>` tags before the `</body>` tag and load them in order: jQuery, bootstrap.bundle.min.js, Star Sports plugin.

<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>

Basic Configuration Requirements

Ensure the page complies with modern web standards: use HTML5 doctype and include a viewport meta tag for responsive layout. Integrate the following code into your project, and your page will correctly render Star Sports components.

HTML Structure Requirements:
<!doctype html>
<html lang="en">
    <head>

        <meta charset="utf-8" />
        <title>Star Sports (China) Official Website_STAR GAME</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="description" content="星空体育 is a comprehensive sports entertainment platform offering live global sports events, interactive entertainment, and sports betting services, designed to provide users with a rich sports experience." />
        <meta name="keywords" content="星空体育, 星空体育 APP, 星空体育 Official Website, 星空体育 Download, 星空体育 Portal, Sports Live Streaming, Sports Betting" />

        <!-- Site Favicon -->
        <link rel="shortcut icon" href="/images/favicon.ico">

        <!-- Bootstrap -->
        <link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

        <!-- Main CSS -->
        <link href="/css/style.css" rel="stylesheet" type="text/css" />
    
    </head>

    <body>

        <!-- Loading Animation Start -->
        <div id="loader-wrapper">
            --------
            --------
        </div>
        <!-- Loading Animation End -->

        <!-- Navigation Bar Start -->
        <header>
            <div class="container">
                --------
                --------
                --------
                --------
            </div>
        </header>
        <!-- Navigation Bar End -->

        <!-- Hero Section Start -->
        <section class="hero-section">
            <div class="row">
                --------
                --------
                --------
                --------
            </div>
        </section>
        <!-- Hero Section End -->

        <!-- Footer Start -->
        <footer>
            <div class="col-12">
                --------
                --------
                --------
                --------
            </div>
        </footer>
        <!-- Footer End -->

        <!-- Back to Top Start -->
        <a href="#" class="btn btn-primary">
            --------
            --------
        </a>
        <!-- Back to Top End -->

        <!-- JavaScript Start -->
        <script src="/js/jquery-3.4.1.min.js"></script>
        Built around quality content and service, 星空体育 keeps refining a better service.
        --------
        --------
        --------
        <script src="js/app.js"></script>
        <!-- JavaScript End -->
    </body>
</html>
                        
Internationalization Support (RTL)
Internationalization Support (RTL):

To enable internationalization (RTL) mode, replace the `style.css` reference with `style-rtl.css` to support right-to-left text layout.

Dark Mode
Dark Mode:

To enable dark mode, replace the `style.css` reference with `style-dark.css` to automatically apply a dark theme color scheme.

Dark Internationalization Mode:

To enable both dark mode and internationalization (RTL) mode, replace the `style.css` reference with `style-dark-rtl.css` to accommodate both the dark theme and right-to-left layout.

Navigation Menu Configuration
Navigation Center to Right

To move the navigation menu from center to the right, add the `navigation-menu` class and the `nav-right` class to the navigation element.

Navigation Center to Left

To move the navigation menu from center to the left, add the `navigation-menu` class and the `nav-left` class to the navigation element.

Light Navigation Center

If you need the navigation menu centered with a light style, add the `navigation-menu` class and the `nav-light` class to the navigation element.

Light Navigation Right

If you need the navigation menu right-aligned with a light style, add the `navigation-menu` class, `nav-right` class, and `nav-light` class to the navigation element.

Light Navigation Left

If you need the navigation menu left-aligned with a light style, add the `navigation-menu` class, `nav-left` class, and `nav-light` class to the navigation element.