Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
11 kB
4
Indexable
Never
<div id="preloaderView" style="width: 760px; height: 730px">
                    <div class="wrapper" id="loadingArea" style="display: none;">
                        <div class="preloader-container preloader" id="preloader_container">
                            <div class="progress hide" id="progress_wrapper">
                                <div class="progress-container">
                                    <div class="progress-digit" id="d0" style="margin-right: -4px; transform: translate(0px, -26px);"></div>
                                    <div class="progress-digit" id="d1" style="margin-left: 0px; transform: translate(0px, 0px); animation-duration: 0.5s;"></div>
                                    <div class="progress-digit" id="d2" style="margin-left: -5px; animation-duration: 0.25s; transform: translate(0px, 0px);"></div>
                                    <div class="progress-percent" id="d3" style="margin-left: -4px"></div>
                                </div>
                            </div>
                            <div class="state show" id="state">
                                <div class="state-text"></div>
                                <span id="state_text">Проверка данных...</span><span class="ellipsis ellipsis-one">.</span><span class="ellipsis ellipsis-two">.</span><span class="ellipsis ellipsis-three">.</span>
                            </div>
                            <div class="overlay-container overlay" id="overlay_container"></div>
                        </div>
                        <div class="hint hidden" id="hint" hidden="">
                            <div class="hint-text" id="hint-text">Все полученные фишки и достижения сохраняются и в мобильной версии. А сразу после установки вы получите бонус!</div>
                            <div class="icon_Application" id="icon_Application">
                                <div class="button_IOS" id="button_IOS"></div>
                                <div class="button_Android" id="button_Android"></div>
                                <div class="button_Huawei" id="button_Huawei"></div>
                            </div>

                            <script type="text/javascript">
                                $( document ).ready(function(){
                                    //check global ban
                                    console.log("document ready function");

                                    let hintTex = "";
                                    let banned = false;

                                    if ( typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.poker && social.config.app.data.poker.global_ban_info)
                                    {
                                        banned = true;
                                        console.log("check ban true");
                                        var userId = social.config.app.data.social.auth.user.id;
                                        var ban_locale = social.config.app.data.poker.global_ban_info.message;

                                        $("#hint-text").append(ban_locale);
                                        $("#hint-text a").css("color", "#EEDDFD");
                                        $("#hint-text").css("left", "100px");
                                        $(function() {
                                            $("#hint-text a").on("click",function(e) {
                                                e.preventDefault(); // cancel the link itself
                                                $("#tabMenu .supportButton a").click();
                                            });
                                        });

                                        $("#hint-text").after(function(){
                                            return '<button id="button-ban" class="button-ban">Copy ID</button>';
                                        });
                                        $("#button-ban").click(function(){
                                            CopyID(userId);
                                        });
                                        $("#progress_wrapper").hide();
                                        $("#button_Android").hide();
                                        $("#button_IOS").hide();
                                        $("#button_Huawei").hide();
                                        $("#icon_Application").hide();
                                    }
                                    else
                                    {
                                        if ( typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.poker && social.config.app.data.poker.advice)
                                        {
                                            hintTex = social.config.app.data.poker.advice;
                                        }
                                        else
                                        {
                                            hintTex = "[TEST] Easy way to win to think! If there's no advice in FlashVars [TEST]";
                                        }

                                        // mobile links
                                        if (typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.apploader
                                            && social.config.app.data.apploader.adv && social.config.app.data.apploader.adv.data && social.config.app.data.apploader.adv.data.target 
                                            && social.config.app.data.provider != "YandexGames"
                                            && social.config.app.data.provider != "Vkontakte")
                                        {

                                            if ( social.config.app.data.apploader.adv.data.keys && social.config.app.data.apploader.adv.data.keys.text )
                                            {
                                                hintTex = social.config.app.data.apploader.adv.data.keys.text;
                                            }

                                            $("#button_Android").click(function () {
                                                window.open(social.config.app.data.apploader.adv.data.target.Android);
                                            })

                                            $("#button_IOS").click(function () {
                                                window.open(social.config.app.data.apploader.adv.data.target.IOS);
                                            })

                                            $("#button_Huawei").click(function () {
                                                window.open(social.config.app.data.apploader.adv.data.target.Huawei);
                                            })
                                        } else {
                                            $("#button_Android").hide();
                                            $("#button_IOS").hide();
                                            $("#button_Huawei").hide();
                                            $("#icon_Application").hide();
                                            $("#hint-text").css("left", "100px");
                                        }

                                        $("#hint-text").append(hintTex);
                                    }

                                    //9th May Event
                                    if ( typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.poker && social.config.app.data.poker.enabled_promo_events && social.config.app.data.poker.enabled_promo_events.may9)
                                    {
                                       // $("#preloader_container").addClass("preloader_May9th");
                                       // promoAction = true;
                                        $("#preloader_container").addClass("preloader");
                                        $("#overlay_container").addClass("overlay");
                                    }
                                    else
                                    {
                                        $("#preloader_container").addClass("preloader");
                                        $("#overlay_container").addClass("overlay");

                                        if ( typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.poker && social.config.app.data.poker.enabled_promo_events && social.config.app.data.poker.enabled_promo_events.halloween)
                                        {

                                            $("#halloween_bg_left").addClass("preloader_Halloween_left");
                                            $("#halloween_bg_right").addClass("preloader_Halloween_right");
                                        }
                                        else if ( typeof social !== "undefined" && social && social.config && social.config.app && social.config.app.data && social.config.app.data.poker && social.config.app.data.poker.enabled_promo_events && social.config.app.data.poker.enabled_promo_events.newyear)
                                        {
                                            $("#preloader_ny").addClass("preloader_NewYear");
                                            nyAction = true;
                                        }
                                    }
                                });
                            </script>
                        </div>
                        <div class="banner" id="landingBanner">
                            <div class="lightning showed">
                            </div>
                            <div class="banner-bg showed">
                                <div class="banner-text">
                                    <h3 id="bannerHeader">Медленная загрузка?</h3>
                                    <p id="bannerText">Нажмите для установки игры для Windows или своего мобильного устройства.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <canvas class="canvas_container" id="canvascontainer" style="visibility: visible; outline: none; cursor: default;" tabindex="1" width="760" height="730">                        
                    </canvas>
                </div>