1// ============================================================
2// GameLead Widget Loader — Isolated per widget (IIFE)
3// Supports multiple widgets on one page without conflicts
4// ============================================================
5(function(){
6var WIDGET_CODE = '58f6eecb6f9e5004a8fa99006029bb49';
7var CONTAINER_ID = 'game-lead-' + WIDGET_CODE;
8
9// Guard: prevent duplicate init of same widget code on one page
10window._glWidgetBooted = window._glWidgetBooted || {};
11if (window._glWidgetBooted[WIDGET_CODE]) { return; }
12window._glWidgetBooted[WIDGET_CODE] = true;
13
14var check_timeout = 0;
15var utm_tags = 0;
16var roistat_widget = '0';
17var type_widget = "modal";
18var widget_type = "wheel";
19var widget_cont_width;
20var widget_cont_height;
21
22if(widget_type == 'wheel') {
23 widget_cont_width = 960;
24 widget_cont_height = 510;
25}
26else if(widget_type == 'roulette') {
27 widget_cont_width = 1216;
28 widget_cont_height = 800;
29}
30else if(widget_type == 'tap') {
31 widget_cont_width = 960;
32 widget_cont_height = 510;
33}
34
35// === UTM COOKIES (shared, выполняются один раз) ===
36if (!window._glUtmSet) {
37 window._glUtmSet = true;
38 (function setUtmCookies() {
39 var urlParams = new URLSearchParams(window.location.search);
40 if (utm_tags == 0) {
...
</html>