Free javascript Hosting


mac.js

Uploaded on May 11 2022 03:22 by muratcankurtcu

"use strict";
var bzlang="tr";
var m_status={1:{"c": "saat", "l": 0, "n": "Not Started", "max": 0, "min": 0, "abbr": null, "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},2:{"c": "live", "l": 1, "n": "Canlı", "max": 0, "min": 0, "abbr": "Canlı", "deep": {"3-0": {"c": "cricket", "n": "Canlı", "v": null}, "8-0": {"c": "timer", "n": "Canlı", "v": null}, "8-2": {"c": "timer", "n": "1. Yarı", "v": null}, "8-3": {"c": "timer", "n": "2. Yarı", "v": null}, "8-4": {"c": "timer", "n": "Uzt", "v": null}, "12-1": {"c": "timer", "n": "Ç", "v": "1"}, "12-2": {"c": "timer", "n": "Ç", "v": "2"}, "12-3": {"c": "timer", "n": "Ç", "v": "3"}, "12-4": {"c": "timer", "n": "Ç", "v": "4"}, "12-5": {"c": null, "n": "İY", "v": null}, "13-1": {"c": "ss", "n": "Set", "v": "1"}, "13-2": {"c": null, "n": "Set", "v": "2"}, "13-3": {"c": null, "n": "Set", "v": "3"}, "13-4": {"c": null, "n": "Set", "v": "4"}, "13-5": {"c": null, "n": "Set", "v": "5"}, "16-0": {"c": null, "n": "Canlı", "v": null}, "16-3": {"c": null, "n": "Inn", "v": "1"}, "16-4": {"c": null, "n": "Inn", "v": "2"}, "16-5": {"c": null, "n": "Inn", "v": "3"}, "16-6": {"c": null, "n": "Inn", "v": "4"}, "16-7": {"c": null, "n": "Inn", "v": "5"}, "16-8": {"c": null, "n": "Inn", "v": "6"}, "16-9": {"c": null, "n": "Inn", "v": "7"}, "17-1": {"c": "timer", "n": "P", "v": "1"}, "17-2": {"c": "timer", "n": "P", "v": "2"}, "17-3": {"c": "timer", "n": "P", "v": "3"}, "17-4": {"c": "timer", "n": "P", "v": "4"}, "17-5": {"c": "timer", "n": "Uzt", "v": null}, "18-1": {"c": "timer", "n": "Ç", "v": "1"}, "18-2": {"c": "timer", "n": "Ç", "v": "2"}, "18-3": {"c": "timer", "n": "Ç", "v": "3"}, "18-4": {"c": "timer", "n": "Ç", "v": "4"}, "18-5": {"c": "", "n": "İY", "v": null}, "19-0": {"c": "timer", "n": "Canlı", "v": null}, "78-2": {"c": "timer", "n": "1. Yarı", "v": ""}, "78-3": {"c": "timer", "n": "2. Yarı", "v": null}, "91-0": {"c": "ss", "n": "Canlı", "v": null}, "91-1": {"c": "ss", "n": "Set", "v": "1"}, "91-2": {"c": "ss", "n": "Set", "v": "2"}, "91-3": {"c": "ss", "n": "Set", "v": "3"}, "91-4": {"c": "ss", "n": "Set", "v": "4"}, "91-5": {"c": "ss", "n": "Set", "v": "5"}, "92-1": {"c": "ss", "n": "Set", "v": "1"}, "92-2": {"c": "ss", "n": "Set", "v": "2"}, "92-3": {"c": "ss", "n": "Set", "v": "3"}, "92-4": {"c": "ss", "n": "Set", "v": "4"}, "92-5": {"c": "ss", "n": "Set", "v": "5"}, "151-0": {"c": "timer ss", "n": "Canlı", "v": null}, "16-10": {"c": null, "n": "Inn", "v": "8"}, "16-11": {"c": null, "n": "Inn", "v": "9"}}, "shows": 1, "start": 0, "timer": 0, "deep_is": 1},3:{"c": null, "l": 0, "n": "Dzlt", "max": 0, "min": 0, "abbr": "Dzlt", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},4:{"c": "ft", "l": 0, "n": "Maç Sonucu", "max": 0, "min": 0, "abbr": "MS", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},5:{"c": "post", "l": 0, "n": "Ertelendi", "max": 0, "min": 0, "abbr": "Ert", "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},6:{"c": "canc", "l": 0, "n": "Cancelled", "max": 0, "min": 0, "abbr": "İptal", "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},7:{"c": "wo ss", "l": 0, "n": "Walkover", "max": 0, "min": 0, "abbr": "HÜK", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},8:{"c": "int", "l": 0, "n": "Kesildi", "max": 0, "min": 0, "abbr": "Ksl", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},9:{"c": "aba", "l": 0, "n": "Abandoned", "max": 0, "min": 0, "abbr": "Terk", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},10:{"c": null, "l": 0, "n": "Retired", "max": 0, "min": 0, "abbr": "HÜK", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},99:{"c": null, "l": 0, "n": "Removed", "max": 0, "min": 0, "abbr": "Kldr", "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},100:{"c": "saat", "l": 0, "n": "Not Started", "max": 0, "min": 0, "abbr": null, "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},101:{"c": "live", "l": 1, "n": "1. Yarı", "max": 45, "min": 1, "abbr": null, "deep": null, "shows": 1, "start": 0, "timer": 1, "deep_is": 0},102:{"c": "live", "l": 1, "n": "Devre", "max": 0, "min": 0, "abbr": "İY", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},103:{"c": "live", "l": 1, "n": "2. Yarı", "max": 90, "min": 46, "abbr": null, "deep": null, "shows": 1, "start": 45, "timer": 1, "deep_is": 0},104:{"c": "ft", "l": 0, "n": "Maç Sonucu", "max": 0, "min": 0, "abbr": "MS", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},105:{"c": null, "l": 0, "n": "Kesildi", "max": 0, "min": 0, "abbr": "Ksl", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},106:{"c": "canc", "l": 0, "n": "Cancelled", "max": 0, "min": 0, "abbr": "İptal", "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},107:{"c": null, "l": 0, "n": "Extra Time", "max": 0, "min": 0, "abbr": "Uzt", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},108:{"c": "live", "l": 1, "n": "Extra Time", "max": 0, "min": 0, "abbr": "Uzt", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},109:{"c": null, "l": 0, "n": "Extra Time", "max": 0, "min": 0, "abbr": "Uzt", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},110:{"c": null, "l": 0, "n": "-", "max": 0, "min": 0, "abbr": null, "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},111:{"c": null, "l": 0, "n": "Penalty Shootout", "max": 0, "min": 0, "abbr": "Pen", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},112:{"c": null, "l": 0, "n": "Maç Sonucu", "max": 0, "min": 0, "abbr": "MS", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},113:{"c": "post", "l": 0, "n": "Ertelendi", "max": 0, "min": 0, "abbr": "Ert", "deep": null, "shows": 0, "start": 0, "timer": 0, "deep_is": 0},114:{"c": "int", "l": 0, "n": "Kesildi", "max": 0, "min": 0, "abbr": "Ksl", "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0},115:{"c": null, "l": 0, "n": "-", "max": 0, "min": 0, "abbr": null, "deep": null, "shows": 1, "start": 0, "timer": 0, "deep_is": 0}};
var bzdateFormat="dd month yyyy";
var bz_countries={"a":[{"f": "1", "n": "Asia", "o": 141, "id": 1},{"f": "1", "n": "İtalya", "o": 2, "id": 2},{"f": "1", "n": "Romanya", "o": 8, "id": 3},{"f": "1", "n": "Africa", "o": 142, "id": 4},{"f": "1", "n": "İngiltere", "o": 1, "id": 5},{"f": "1", "n": "Uluslararası", "o": 138, "id": 6},{"f": "1", "n": "America", "o": 140, "id": 7},{"f": "1", "n": "Türkiye", "o": 14, "id": 8},{"f": "1", "n": "Fransa", "o": 5, "id": 9},{"f": "1", "n": "Almanya", "o": 3, "id": 10},{"f": "1", "n": "Avrupa", "o": 139, "id": 11},{"f": "1", "n": "İspanya", "o": 4, "id": 12},{"f": "1", "n": "Hollanda", "o": 6, "id": 13},{"f": "1", "n": "Rusya", "o": 7, "id": 14},{"f": "1", "n": "Kazakistan", "o": 15, "id": 15},{"f": "1", "n": "Ukrayna", "o": 16, "id": 16},{"f": "1", "n": "İsveç", "o": 17, "id": 17},{"f": "1", "n": "Finlandiya", "o": 18, "id": 18},{"f": "1", "n": "Norveç", "o": 19, "id": 19},{"f": "1", "n": "Polonya", "o": 20, "id": 20},{"f": "1", "n": "Beyaz Rusya", "o": 21, "id": 21},{"f": "1", "n": "Yunanistan", "o": 22, "id": 22},{"f": "1", "n": "Bulgaristan", "o": 23, "id": 23},{"f": "1", "n": "İzlanda", "o": 24, "id": 24},{"f": "1", "n": "Sırbistan", "o": 25, "id": 25},{"f": "1", "n": "Macaristan", "o": 26, "id": 26},{"f": "1", "n": "Portekiz", "o": 27, "id": 27},{"f": "1", "n": "Azerbaycan", "o": 28, "id": 28},{"f": "1", "n": "Avusturya", "o": 29, "id": 29},{"f": "1", "n": "Czech Republic", "o": 30, "id": 30},{"f": "1", "n": "İskoçya", "o": 31, "id": 31},{"f": "1", "n": "İrlanda", "o": 32, "id": 32},{"f": "1", "n": "Gürcistan", "o": 33, "id": 33},{"f": "1", "n": "Letonya", "o": 34, "id": 34},{"f": "1", "n": "Litvanya", "o": 35, "id": 35},{"f": "1", "n": "Hırvatistan", "o": 36, "id": 36},{"f": "1", "n": "Bosnia and Herzegovina", "o": 37, "id": 37},{"f": "1", "n": "Slovakya", "o": 38, "id": 38},{"f": "1", "n": "Estonya", "o": 39, "id": 39},{"f": "1", "n": "Danimarka", "o": 40, "id": 40},{"f": "1", "n": "İsviçre", "o": 41, "id": 41},{"f": "1", "n": "Moldova", "o": 42, "id": 42},{"f": "1", "n": "Belçika", "o": 43, "id": 43},{"f": "1", "n": "Ermenistan", "o": 44, "id": 44},{"f": "1", "n": "Arnavutluk", "o": 45, "id": 45},{"f": "1", "n": "North Macedonia", "o": 46, "id": 46},{"f": "1", "n": "İsrail", "o": 47, "id": 47},{"f": "1", "n": "Slovenya", "o": 48, "id": 48},{"f": "1", "n": "Galler", "o": 49, "id": 49},{"f": "1", "n": "Northern Ireland", "o": 50, "id": 50},{"f": "1", "n": "Montenegro", "o": 51, "id": 51},{"f": "1", "n": "Güney Kıbrıs", "o": 52, "id": 52},{"f": "1", "n": "Malta", "o": 53, "id": 53},{"f": "1", "n": "Luxembourg", "o": 54, "id": 54},{"f": "1", "n": "Faroe Islands", "o": 55, "id": 55},{"f": "1", "n": "Andorra", "o": 61, "id": 61},{"f": "1", "n": "San Marino", "o": 62, "id": 62},{"f": "0", "n": "Oceania", "o": 157, "id": 63},{"f": "0", "n": "Beach Soccer", "o": 158, "id": 64},{"f": "1", "n": "Kosovo", "o": 65, "id": 65},{"f": "1", "n": "Çin", "o": 66, "id": 131},{"f": "1", "n": "Japonya", "o": 67, "id": 132},{"f": "1", "n": "Korea", "o": 68, "id": 133},{"f": "1", "n": "Saudi Arabia", "o": 69, "id": 134},{"f": "1", "n": "Iran", "o": 70, "id": 135},{"f": "1", "n": "Yemen", "o": 71, "id": 136},{"f": "1", "n": "Thailand", "o": 72, "id": 137},{"f": "1", "n": "Malaysia", "o": 73, "id": 138},{"f": "1", "n": "Oman", "o": 74, "id": 139},{"f": "1", "n": "Jordan", "o": 80, "id": 145},{"f": "1", "n": "United Arab Emirates", "o": 81, "id": 146},{"f": "1", "n": "Kuwait", "o": 82, "id": 147},{"f": "1", "n": "Katar", "o": 83, "id": 148},{"f": "1", "n": "Lebanon", "o": 84, "id": 149},{"f": "1", "n": "Singapore", "o": 85, "id": 150},{"f": "1", "n": "Bahrain", "o": 86, "id": 151},{"f": "1", "n": "Iraq", "o": 87, "id": 152},{"f": "1", "n": "Avustralya", "o": 93, "id": 158},{"f": "1", "n": "India", "o": 94, "id": 159},{"f": "1", "n": "Vietnam", "o": 95, "id": 160},{"f": "1", "n": "Uzbekistan", "o": 96, "id": 161},{"f": "1", "n": "Indonesia", "o": 97, "id": 162},{"f": "1", "n": "Myanmar", "o": 100, "id": 165},{"f": "1", "n": "Tajikistan", "o": 101, "id": 166},{"f": "1", "n": "Turkmenistan", "o": 102, "id": 167},{"f": "1", "n": "Arjantin", "o": 103, "id": 168},{"f": "1", "n": "Brezilya", "o": 104, "id": 169},{"f": "1", "n": "Canada", "o": 105, "id": 170},{"f": "1", "n": "Uruguay", "o": 106, "id": 171},{"f": "1", "n": "ABD", "o": 107, "id": 172},{"f": "1", "n": "Meksika", "o": 108, "id": 173},{"f": "1", "n": "Kolombiya", "o": 110, "id": 174},{"f": "1", "n": "Peru", "o": 109, "id": 176},{"f": "1", "n": "Bolivya", "o": 116, "id": 181},{"f": "1", "n": "Honduras", "o": 117, "id": 182},{"f": "1", "n": "Şili", "o": 118, "id": 183},{"f": "1", "n": "Paraguay", "o": 119, "id": 184},{"f": "1", "n": "Ekvador", "o": 120, "id": 185},{"f": "1", "n": "Guatemala", "o": 122, "id": 186},{"f": "1", "n": "Venezuela", "o": 121, "id": 187},{"f": "1", "n": "Costa Rica", "o": 123, "id": 188},{"f": "1", "n": "El Salvador", "o": 124, "id": 189},{"f": "1", "n": "Panama", "o": 132, "id": 197},{"f": "1", "n": "Jamaica", "o": 133, "id": 198},{"f": "1", "n": "New Zealand", "o": 134, "id": 199},{"f": "1", "n": "Cezayir", "o": 135, "id": 200},{"f": "1", "n": "Güney Afrika", "o": 136, "id": 201},{"f": "1", "n": "Mısır", "o": 137, "id": 202},{"f": "1", "n": "Fas", "o": 143, "id": 208},{"f": "1", "n": "Tunus", "o": 144, "id": 209},{"f": "1", "n": "Libya", "o": 150, "id": 215},{"f": "1", "n": "Ghana", "o": 151, "id": 216},{"f": "1", "n": "Namibia", "o": 152, "id": 217},{"f": "1", "n": "Sudan", "o": 153, "id": 218},{"f": "1", "n": "Nijerya", "o": 154, "id": 219},{"f": "1", "n": "Angola", "o": 155, "id": 220},{"f": "1", "n": "Zimbabwe", "o": 156, "id": 221},{"f": "1", "n": "Kenya", "o": 159, "id": 224}],"b":[{"f": "1", "n": "Andorra", "o": 10000, "id": 1},{"f": "1", "n": "United Arab Emirates", "o": 10000, "id": 11},{"f": "0", "n": "Afghanistan", "o": 10000, "id": 21},{"f": "0", "n": "Antigua and Barbuda", "o": 10000, "id": 31},{"f": "0", "n": "Anguilla", "o": 10000, "id": 41},{"f": "1", "n": "Arnavutluk", "o": 10000, "id": 51},{"f": "1", "n": "Ermenistan", "o": 10000, "id": 61},{"f": "1", "n": "Angola", "o": 10000, "id": 71},{"f": "0", "n": "Antarctica", "o": 10000, "id": 81},{"f": "1", "n": "Arjantin", "o": 10000, "id": 91},{"f": "0", "n": "American Samoa", "o": 10000, "id": 101},{"f": "1", "n": "Avusturya", "o": 10000, "id": 111},{"f": "1", "n": "Avustralya", "o": 10000, "id": 121},{"f": "0", "n": "Aruba", "o": 10000, "id": 131},{"f": "0", "n": "Åland Islands", "o": 10000, "id": 141},{"f": "1", "n": "Azerbaycan", "o": 10000, "id": 151},{"f": "0", "n": "Bosnia & Herzegovina", "o": 10000, "id": 161},{"f": "0", "n": "Barbados", "o": 10000, "id": 171},{"f": "0", "n": "Bangladesh", "o": 10000, "id": 181},{"f": "1", "n": "Belçika", "o": 10000, "id": 191},{"f": "0", "n": "Burkina Faso", "o": 10000, "id": 201},{"f": "1", "n": "Bulgaristan", "o": 10000, "id": 211},{"f": "1", "n": "Bahrain", "o": 10000, "id": 221},{"f": "0", "n": "Burundi", "o": 10000, "id": 231},{"f": "0", "n": "Benin", "o": 10000, "id": 241},{"f": "0", "n": "Saint Barthélemy", "o": 10000, "id": 251},{"f": "0", "n": "Bermuda", "o": 10000, "id": 261},{"f": "0", "n": "Brunei", "o": 10000, "id": 271},{"f": "1", "n": "Bolivya", "o": 10000, "id": 281},{"f": "0", "n": "Caribbean Netherlands", "o": 10000, "id": 291},{"f": "1", "n": "Brezilya", "o": 10000, "id": 301},{"f": "0", "n": "Bahamas", "o": 10000, "id": 311},{"f": "0", "n": "Bhutan", "o": 10000, "id": 321},{"f": "0", "n": "Bouvet Island", "o": 10000, "id": 331},{"f": "0", "n": "Botswana", "o": 10000, "id": 341},{"f": "1", "n": "Beyaz Rusya", "o": 10000, "id": 351},{"f": "0", "n": "Belize", "o": 10000, "id": 361},{"f": "1", "n": "Canada", "o": 10000, "id": 371},{"f": "0", "n": "Cocos (Keeling) Islands", "o": 10000, "id": 381},{"f": "0", "n": "Congo - Kinshasa", "o": 10000, "id": 391},{"f": "0", "n": "Central African Republic", "o": 10000, "id": 401},{"f": "0", "n": "Congo - Brazzaville", "o": 10000, "id": 411},{"f": "1", "n": "İsviçre", "o": 10000, "id": 421},{"f": "0", "n": "Côte d’Ivoire", "o": 10000, "id": 431},{"f": "0", "n": "Cook Islands", "o": 10000, "id": 441},{"f": "1", "n": "Şili", "o": 10000, "id": 451},{"f": "0", "n": "Kamerun", "o": 10000, "id": 461},{"f": "1", "n": "Çin", "o": 10000, "id": 471},{"f": "1", "n": "Kolombiya", "o": 10000, "id": 481},{"f": "1", "n": "Costa Rica", "o": 10000, "id": 491},{"f": "0", "n": "Küba", "o": 10000, "id": 501},{"f": "0", "n": "Cape Verde", "o": 10000, "id": 511},{"f": "0", "n": "Curaçao", "o": 10000, "id": 521},{"f": "0", "n": "Christmas Island", "o": 10000, "id": 531},{"f": "1", "n": "Güney Kıbrıs", "o": 10000, "id": 541},{"f": "1", "n": "Czech Republic", "o": 10000, "id": 551},{"f": "1", "n": "Almanya", "o": 10000, "id": 561},{"f": "0", "n": "Djibouti", "o": 10000, "id": 571},{"f": "1", "n": "Danimarka", "o": 10000, "id": 581},{"f": "0", "n": "Dominica", "o": 10000, "id": 591},{"f": "0", "n": "Dominican Republic", "o": 10000, "id": 601},{"f": "1", "n": "Cezayir", "o": 10000, "id": 611},{"f": "1", "n": "Ekvador", "o": 10000, "id": 621},{"f": "1", "n": "Estonya", "o": 10000, "id": 631},{"f": "1", "n": "Mısır", "o": 10000, "id": 641},{"f": "0", "n": "Western Sahara", "o": 10000, "id": 651},{"f": "0", "n": "Eritrea", "o": 10000, "id": 661},{"f": "1", "n": "İspanya", "o": 10000, "id": 671},{"f": "0", "n": "Ethiopia", "o": 10000, "id": 681},{"f": "1", "n": "Finlandiya", "o": 10000, "id": 691},{"f": "0", "n": "Fiji", "o": 10000, "id": 701},{"f": "0", "n": "Falkland Islands", "o": 10000, "id": 711},{"f": "0", "n": "Micronesia", "o": 10000, "id": 721},{"f": "1", "n": "Faroe Islands", "o": 10000, "id": 731},{"f": "1", "n": "Fransa", "o": 10000, "id": 741},{"f": "0", "n": "Gabon", "o": 10000, "id": 751},{"f": "0", "n": "Büyük Britanya", "o": 10000, "id": 761},{"f": "0", "n": "Grenada", "o": 10000, "id": 771},{"f": "1", "n": "Gürcistan", "o": 10000, "id": 781},{"f": "0", "n": "French Guiana", "o": 10000, "id": 791},{"f": "0", "n": "Guernsey", "o": 10000, "id": 801},{"f": "1", "n": "Ghana", "o": 10000, "id": 811},{"f": "0", "n": "Gibraltar", "o": 10000, "id": 821},{"f": "0", "n": "Greenland", "o": 10000, "id": 831},{"f": "0", "n": "Gambia", "o": 10000, "id": 841},{"f": "0", "n": "Guinea", "o": 10000, "id": 851},{"f": "0", "n": "Guadeloupe", "o": 10000, "id": 861},{"f": "0", "n": "Equatorial Guinea", "o": 10000, "id": 871},{"f": "1", "n": "Yunanistan", "o": 10000, "id": 881},{"f": "0", "n": "South Georgia & South Sandwich Islands", "o": 10000, "id": 891},{"f": "1", "n": "Guatemala", "o": 10000, "id": 901},{"f": "0", "n": "Guam", "o": 10000, "id": 911},{"f": "0", "n": "Guinea-Bissau", "o": 10000, "id": 921},{"f": "0", "n": "Guyana", "o": 10000, "id": 931},{"f": "0", "n": "Hong Kong SAR China", "o": 10000, "id": 941},{"f": "0", "n": "Heard & McDonald Islands", "o": 10000, "id": 951},{"f": "1", "n": "Honduras", "o": 10000, "id": 961},{"f": "1", "n": "Hırvatistan", "o": 10000, "id": 971},{"f": "0", "n": "Haiti", "o": 10000, "id": 981},{"f": "1", "n": "Macaristan", "o": 10000, "id": 991},{"f": "1", "n": "Indonesia", "o": 10000, "id": 1001},{"f": "1", "n": "İrlanda", "o": 10000, "id": 1011},{"f": "1", "n": "İsrail", "o": 10000, "id": 1021},{"f": "0", "n": "Isle of Man", "o": 10000, "id": 1031},{"f": "1", "n": "India", "o": 10000, "id": 1041},{"f": "0", "n": "British Indian Ocean Territory", "o": 10000, "id": 1051},{"f": "1", "n": "Iraq", "o": 10000, "id": 1061},{"f": "1", "n": "Iran", "o": 10000, "id": 1071},{"f": "1", "n": "İzlanda", "o": 10000, "id": 1081},{"f": "1", "n": "İtalya", "o": 10000, "id": 1091},{"f": "0", "n": "Jersey", "o": 10000, "id": 1101},{"f": "1", "n": "Jamaica", "o": 10000, "id": 1111},{"f": "1", "n": "Jordan", "o": 10000, "id": 1121},{"f": "1", "n": "Japonya", "o": 10000, "id": 1131},{"f": "1", "n": "Kenya", "o": 10000, "id": 1141},{"f": "0", "n": "Kyrgyzstan", "o": 10000, "id": 1151},{"f": "0", "n": "Cambodia", "o": 10000, "id": 1161},{"f": "0", "n": "Kiribati", "o": 10000, "id": 1171},{"f": "0", "n": "Comoros", "o": 10000, "id": 1181},{"f": "0", "n": "Saint Kitts and Nevis", "o": 10000, "id": 1191},{"f": "0", "n": "North Korea", "o": 10000, "id": 1201},{"f": "0", "n": "Güney Kore", "o": 10000, "id": 1211},{"f": "1", "n": "Kuwait", "o": 10000, "id": 1221},{"f": "0", "n": "Cayman Islands", "o": 10000, "id": 1231},{"f": "1", "n": "Kazakistan", "o": 10000, "id": 1241},{"f": "0", "n": "Laos", "o": 10000, "id": 1251},{"f": "1", "n": "Lebanon", "o": 10000, "id": 1261},{"f": "0", "n": "Saint Lucia", "o": 10000, "id": 1271},{"f": "0", "n": "Liechtenstein", "o": 10000, "id": 1281},{"f": "0", "n": "Sri Lanka", "o": 10000, "id": 1291},{"f": "0", "n": "Liberia", "o": 10000, "id": 1301},{"f": "0", "n": "Lesotho", "o": 10000, "id": 1311},{"f": "1", "n": "Litvanya", "o": 10000, "id": 1321},{"f": "1", "n": "Luxembourg", "o": 10000, "id": 1331},{"f": "1", "n": "Letonya", "o": 10000, "id": 1341},{"f": "1", "n": "Libya", "o": 10000, "id": 1351},{"f": "1", "n": "Fas", "o": 10000, "id": 1361},{"f": "0", "n": "Monaco", "o": 10000, "id": 1371},{"f": "1", "n": "Moldova", "o": 10000, "id": 1381},{"f": "1", "n": "Montenegro", "o": 10000, "id": 1391},{"f": "0", "n": "Saint Martin", "o": 10000, "id": 1401},{"f": "0", "n": "Madagascar", "o": 10000, "id": 1411},{"f": "0", "n": "Marshall Islands", "o": 10000, "id": 1421},{"f": "0", "n": "Makedonya", "o": 10000, "id": 1431},{"f": "0", "n": "Mali", "o": 10000, "id": 1441},{"f": "0", "n": "Myanmar (Burma)", "o": 10000, "id": 1451},{"f": "0", "n": "Mongolia", "o": 10000, "id": 1461},{"f": "0", "n": "Macau SAR China", "o": 10000, "id": 1471},{"f": "0", "n": "Northern Mariana Islands", "o": 10000, "id": 1481},{"f": "0", "n": "Martinique", "o": 10000, "id": 1491},{"f": "0", "n": "Mauritania", "o": 10000, "id": 1501},{"f": "0", "n": "Montserrat", "o": 10000, "id": 1511},{"f": "1", "n": "Malta", "o": 10000, "id": 1521},{"f": "0", "n": "Mauritius", "o": 10000, "id": 1531},{"f": "0", "n": "Maldives", "o": 10000, "id": 1541},{"f": "0", "n": "Malawi", "o": 10000, "id": 1551},{"f": "1", "n": "Meksika", "o": 10000, "id": 1561},{"f": "1", "n": "Malaysia", "o": 10000, "id": 1571},{"f": "0", "n": "Mozambique", "o": 10000, "id": 1581},{"f": "1", "n": "Namibia", "o": 10000, "id": 1591},{"f": "0", "n": "New Caledonia", "o": 10000, "id": 1601},{"f": "0", "n": "Niger", "o": 10000, "id": 1611},{"f": "0", "n": "Norfolk Island", "o": 10000, "id": 1621},{"f": "1", "n": "Nijerya", "o": 10000, "id": 1631},{"f": "0", "n": "Nicaragua", "o": 10000, "id": 1641},{"f": "1", "n": "Hollanda", "o": 10000, "id": 1651},{"f": "1", "n": "Norveç", "o": 10000, "id": 1661},{"f": "0", "n": "Nepal", "o": 10000, "id": 1671},{"f": "0", "n": "Nauru", "o": 10000, "id": 1681},{"f": "0", "n": "Niue", "o": 10000, "id": 1691},{"f": "1", "n": "New Zealand", "o": 10000, "id": 1701},{"f": "1", "n": "Oman", "o": 10000, "id": 1711},{"f": "1", "n": "Panama", "o": 10000, "id": 1721},{"f": "1", "n": "Peru", "o": 10000, "id": 1731},{"f": "0", "n": "French Polynesia", "o": 10000, "id": 1741},{"f": "0", "n": "Papua New Guinea", "o": 10000, "id": 1751},{"f": "0", "n": "Philippines", "o": 10000, "id": 1761},{"f": "0", "n": "Pakistan", "o": 10000, "id": 1771},{"f": "1", "n": "Polonya", "o": 10000, "id": 1781},{"f": "0", "n": "Saint Pierre and Miquelon", "o": 10000, "id": 1791},{"f": "0", "n": "Pitcairn Islands", "o": 10000, "id": 1801},{"f": "0", "n": "Puerto Rico", "o": 10000, "id": 1811},{"f": "0", "n": "Palestinian Territories", "o": 10000, "id": 1821},{"f": "1", "n": "Portekiz", "o": 10000, "id": 1831},{"f": "0", "n": "Palau", "o": 10000, "id": 1841},{"f": "1", "n": "Paraguay", "o": 10000, "id": 1851},{"f": "1", "n": "Katar", "o": 10000, "id": 1861},{"f": "0", "n": "Réunion", "o": 10000, "id": 1871},{"f": "1", "n": "Romanya", "o": 10000, "id": 1881},{"f": "1", "n": "Sırbistan", "o": 10000, "id": 1891},{"f": "1", "n": "Rusya", "o": 10000, "id": 1901},{"f": "0", "n": "Rwanda", "o": 10000, "id": 1911},{"f": "1", "n": "Saudi Arabia", "o": 10000, "id": 1921},{"f": "0", "n": "Solomon Islands", "o": 10000, "id": 1931},{"f": "0", "n": "Seychelles", "o": 10000, "id": 1941},{"f": "1", "n": "Sudan", "o": 10000, "id": 1951},{"f": "1", "n": "İsveç", "o": 10000, "id": 1961},{"f": "1", "n": "Singapore", "o": 10000, "id": 1971},{"f": "0", "n": "Saint Helena", "o": 10000, "id": 1981},{"f": "1", "n": "Slovenya", "o": 10000, "id": 1991},{"f": "0", "n": "Svalbard and Jan Mayen", "o": 10000, "id": 2001},{"f": "1", "n": "Slovakya", "o": 10000, "id": 2011},{"f": "0", "n": "Sierra Leone", "o": 10000, "id": 2021},{"f": "1", "n": "San Marino", "o": 10000, "id": 2031},{"f": "0", "n": "Senegal", "o": 10000, "id": 2041},{"f": "0", "n": "Somalia", "o": 10000, "id": 2051},{"f": "0", "n": "Suriname", "o": 10000, "id": 2061},{"f": "0", "n": "South Sudan", "o": 10000, "id": 2071},{"f": "0", "n": "São Tomé and Príncipe", "o": 10000, "id": 2081},{"f": "1", "n": "El Salvador", "o": 10000, "id": 2091},{"f": "0", "n": "Sint Maarten", "o": 10000, "id": 2101},{"f": "0", "n": "Syria", "o": 10000, "id": 2111},{"f": "0", "n": "Swaziland", "o": 10000, "id": 2121},{"f": "0", "n": "Turks and Caicos Islands", "o": 10000, "id": 2131},{"f": "0", "n": "Chad", "o": 10000, "id": 2141},{"f": "0", "n": "French Southern Territories", "o": 10000, "id": 2151},{"f": "0", "n": "Togo", "o": 10000, "id": 2161},{"f": "1", "n": "Thailand", "o": 10000, "id": 2171},{"f": "1", "n": "Tajikistan", "o": 10000, "id": 2181},{"f": "0", "n": "Tokelau", "o": 10000, "id": 2191},{"f": "0", "n": "Timor-Leste", "o": 10000, "id": 2201},{"f": "1", "n": "Turkmenistan", "o": 10000, "id": 2211},{"f": "1", "n": "Tunus", "o": 10000, "id": 2221},{"f": "0", "n": "Tonga", "o": 10000, "id": 2231},{"f": "1", "n": "Türkiye", "o": 10000, "id": 2241},{"f": "0", "n": "Trinidad and Tobago", "o": 10000, "id": 2251},{"f": "0", "n": "Tuvalu", "o": 10000, "id": 2261},{"f": "0", "n": "Taiwan", "o": 10000, "id": 2271},{"f": "0", "n": "Tanzania", "o": 10000, "id": 2281},{"f": "1", "n": "Ukrayna", "o": 10000, "id": 2291},{"f": "0", "n": "Uganda", "o": 10000, "id": 2301},{"f": "0", "n": "U.S. Outlying Islands", "o": 10000, "id": 2311},{"f": "1", "n": "ABD", "o": 100, "id": 2321},{"f": "1", "n": "Uruguay", "o": 10000, "id": 2331},{"f": "1", "n": "Uzbekistan", "o": 10000, "id": 2341},{"f": "0", "n": "Vatican City", "o": 10000, "id": 2351},{"f": "0", "n": "St. Vincent & Grenadines", "o": 10000, "id": 2361},{"f": "1", "n": "Venezuela", "o": 10000, "id": 2371},{"f": "0", "n": "British Virgin Islands", "o": 10000, "id": 2381},{"f": "0", "n": "U.S. Virgin Islands", "o": 10000, "id": 2391},{"f": "1", "n": "Vietnam", "o": 10000, "id": 2401},{"f": "0", "n": "Vanuatu", "o": 10000, "id": 2411},{"f": "0", "n": "Wallis and Futuna", "o": 10000, "id": 2421},{"f": "0", "n": "Samoa", "o": 10000, "id": 2431},{"f": "1", "n": "Kosovo", "o": 10000, "id": 2441},{"f": "0", "n": "Yemen", "o": 10000, "id": 2451},{"f": "1", "n": "Mayotte", "o": 10000, "id": 2461},{"f": "0", "n": "Güney Afrika", "o": 10000, "id": 2471},{"f": "1", "n": "Zambia", "o": 10000, "id": 2481},{"f": "1", "n": "Uluslararası", "o": 10000, "id": 2482},{"f": "1", "n": "Avrupa", "o": 101, "id": 2483},{"f": "0", "n": "ATP", "o": 10000, "id": 2484},{"f": "0", "n": "DOTA 2", "o": 10000, "id": 2485},{"f": "0", "n": "CS:GO", "o": 10000, "id": 2486},{"f": "0", "n": "LOL", "o": 10000, "id": 2487},{"f": "0", "n": "Rainbow Six", "o": 10000, "id": 2488},{"f": "0", "n": "Zimbabwe", "o": 10000, "id": 2491}]}
var bzweekday = new Array(7);bzweekday[0] = "Pazar";bzweekday[1] = "Pazartesi";bzweekday[2] = "Salı";bzweekday[3] = "Çarşamba";bzweekday[4] = "Perşembe";bzweekday[5] = "Cuma";bzweekday[6] = "Cumartesi";
var bzweekday_ = new Array(7);bzweekday_[0] = "Paz";bzweekday_[1] = "Pzt";bzweekday_[2] = "Sal";bzweekday_[3] = "Çar";bzweekday_[4] = "Prş";bzweekday_[5] = "Cum";bzweekday_[6] = "Cmt";
var bz_monthNames = ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran","Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"];
var bzoffset = new Date().getTimezoneOffset();
var bz_cache_dates={}
var status_show="abbr"
var bzdomain="https://"+(bzlang=="en" ? "wwww" : bzlang)+".livescore.bz/"
function bzhumanDate(timestamp){
if (bz_cache_dates[timestamp]!=undefined) return bz_cache_dates[timestamp]
var date = new Date(timestamp * 1000 - (bzoffset*60));
var year = date.getFullYear();var month = date.getMonth() + 1;var day = date.getDate();var hours = date.getHours();var minutes = date.getMinutes();var seconds = date.getSeconds();var dayof=date.getDay();
month = (month < 10) ? '0' + month : month;day = (day < 10) ? '0' + day : day;hours = (hours < 10) ? '0' + hours : hours;minutes = (minutes < 10) ? '0' + minutes : minutes;seconds = (seconds < 10) ? '0' + seconds: seconds;
var tmp={full:year + '-' + month + '-' + day + ' ' + hours + ':' + minutes,date:day+"."+month+"."+year,saat:hours+":"+minutes,y:year,
m:month,d:day,h:hours,min:minutes,gun:bzweekday[dayof],gun_:bzweekday_[dayof],ay:bz_monthNames[date.getMonth()],
human:day+" "+bz_monthNames[date.getMonth()]+(year!=new Date().getFullYear() ? " "+year : ""),
bot:year + '-' + month + '-' + day}
tmp.format=formatDate(tmp);
bz_cache_dates[timestamp]=tmp;
return tmp;
}
function formatDate(d) {
var fd=bzdateFormat;
fd=fd.replace("dd",d.d);
fd=fd.replace("mm",d.m);
fd=fd.replace("yyyy",d.y);
fd=fd.replace("month",d.ay);
return fd;
}
function bzcountryName(endpoint,id) {
return (bz_countries[endpoint]).filter(function(a) {return a.id==id})[0]
}
var bz_leagues=[]
function bzleagueName(id) {
return bz_leagues.filter(function(a) {return a.id==id})[0]
}
var bzdom=document.querySelector("a[href*='livescore.bz/'][data-w][title],a[href*='macsonuclari.mobi/'][data-w][title],a[href*='macskorlari.net/'][data-w][title]")
if (!bzdom) {
console.log(bzdom)
throw new Error('Kod sitenize doğru bir şekilde eklenmemiş.');
}
if (bzdom.style.display=="none") {
console.log("Our link must be visible")
throw new Error('Kod sitenize doğru bir şekilde eklenmemiş.');
}
var lang_is="tr"//bzdom.getAttribute("href").split("https://")[1].split(".")[0]
var bzOpts={
ref:window.location.href,
vars: {
fa:"arial",
fs:"11px",
lbg:"#ecece9",
dbg:"#fafafa",
clr:"#555",
c_fw:"bold",
c_clr:"#555",
c_bg:"#e8e8e8",
l_bg:"#efefef",
l_fw:"normal",
l_bg:"#efefef",
l_clr:"#555",
m_bg2:"#f5f5f5",
m_bg:"#f8f8f8",
m_clr:"#555",
live_clr:"red",
score_bg:"#b4eae3",
score_bg2:"#fdfbc5"
},
cs: {
list:"today",
lang:lang_is=="www" ? "en" : lang_is,
flags:true,
date:true
},
off:(new Date().getTimezoneOffset()/60)
}
if (typeof bzVars!="undefined") {
var keys_vars=Object.keys(bzVars)
for (var i=0;i<keys_vars.length;i++) {
bzOpts.vars[keys_vars[i]]=bzVars[keys_vars[i]]
}
}
if (typeof bzCs!="undefined") {
var keys_vars=Object.keys(bzCs)
for (var i=0;i<keys_vars.length;i++) {
bzOpts.cs[keys_vars[i]]=bzCs[keys_vars[i]]
}
}
var keys_vars_g=Object.keys(bzOpts.vars);
var bzhtml = document.getElementsByTagName('html')[0];
for (var i=0;i<keys_vars_g.length;i++) {
bzhtml.style.setProperty("--bz_"+keys_vars_g[i], bzOpts.vars[keys_vars_g[i]]);
}
function BZWsocketLibDown() {
if (socket_g.lib) return;
var asS = document.createElement('script'); asS.type = 'text/javascript'; asS.async = true;
asS.src = "https://socket.livescore.bz:2020/socket.io/socket.io.js";
var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(asS, s);
asS.onload=function() {socket_g.lib=true
BZWS_connect();BZWrunSocketOpts()
}
}
var socketbz={connected:false}
var socket_g={lib:false}
var BZWsocketDefer=[];
async function BZWdeferSocket(def_data) {
for (var i in def_data) {
BZWsocketDefer.push(def_data[i])
}
}
async function BZWrunSocketOpts() {
for (var i in BZWsocketDefer) {
window[BZWsocketDefer[i]]()
}
}
BZWdeferSocket(["BZinitial"])
async function BZWS_connect() {
if(socketbz.connected) return;
var urlx='https://socket.livescore.bz:2020';
var optionsx={ 'reconnect': true,
reconnectionDelay: 500,
reconnectionAttempts:"Infinity","secure":true,reconnectionDelayMax:1250
,transports: ['websocket','FlashSocket','htmlfile','xhr-polling','jsonp-polling', 'AJAX long-polling','polling']}
socketbz = io.connect(urlx,optionsx);
socketbz.heartbeatTimeout=60000*120
socketbz.on("connect",function() {
socketbz.emit("join")
socketbz.emit("bzwidget",bzOpts)
})
socketbz.on("updates",function(d) {
for(var i in d) {var o=d[i];
var dom=document.querySelector(".bzmac[bzid='"+o.id+"']");
if(dom!=null) {
delete o.id;
var kyz=Object.keys(o);
for(var ii=0;ii<kyz.length;ii++) {
dom.setAttribute("_"+kyz[ii],o[kyz[ii]])
}
}
}
})
socketbz.on("err",function(msg) {
throw msg;
})
}
async function bzwidget() {
var oldEl=bzdom;
//var newEl = bzdom.cloneNode(false);
var newEl=document.createElement("div");
newEl.innerHTML = '<bz_css></bz_css><bzscores_container class="bzfont bzobs"></bzscores_container><bzbranded class="bzfont_brand"></bzbranded>';
oldEl.parentNode.insertBefore(newEl,bzdom);
//newEl.querySelector("branded").prepend(bzdom.cloneNode(true))
var link_is=bzdom.getAttribute("href");
if (link_is.indexOf("macsonuclari")!=-1) {
bzdom.innerHTML="macsonuclari.mobi"
} else if (link_is.indexOf("macskorlari")!=-1) {
bzdom.innerHTML="macskorlari.net"
} else {
bzdom.innerHTML="livescore.bz"
}
var branded_rep=bzdom.outerHTML
if(window.location.hostname!=undefined && window.location.hostname!="") branded_rep+=" & <a href='http://"+window.location.hostname+"'>"+window.location.hostname+"</a>"
newEl.querySelector("bzbranded").innerHTML=(newEl.querySelector("bzbranded").innerHTML).replace("#site",branded_rep)
BZLib().css();
oldEl.parentNode.removeChild(bzdom)
BZWsocketLibDown()
}
async function BZinitial() {
socketbz.on("data",function(data) {
bz_leagues=data.l;
BZLib().list(data.m)
})
}
function BZLib() {
var self={};
self.list=async function(data) {
var html=[];var bz_caches={};console.log(data)
for(var i in data) { const {h,a,t,s,cid,lid,evs,deps,status,sr,ht,ko,id,pt}=data[i];var tmp_d=bzhumanDate(t);
if (bz_caches.son_tar!=tmp_d.bot && bzOpts.cs.date) {
html.push("<div class='bztar'>"+tmp_d.format+"</div>");bz_caches.son_tar=tmp_d.bot;
}
if (bz_caches.son_ulke!=s+"-"+cid) {
var country=bzcountryName(s,cid)
var flag_is=""
if (country.f=="1" && bzOpts.cs.flags) flag_is="<img src='https://tr.livescore.bz/flag/"+s+"/"+cid+".svg' alt='"+country.n+"' width=20 height=12 class='mar_0_4'>"
html.push("<div class='bzulke'>"+flag_is+country.n+"</div>");bz_caches.son_ulke=s+"-"+cid;
}
if (bz_caches.son_lig!=s+"-"+lid) {
var league=bzleagueName(lid)
html.push("<div class='bzlig'><a href='"+bzdomain+"?lid="+lid+"' target='_blank'>"+league.n+"</a></div>");bz_caches.son_lig=s+"-"+lid;
}
var ek_kla=""
if (m_status[status].deep_is && sr!=null && m_status[status].deep[sr]!=undefined) {
ek_kla=" "+m_status[status].deep[sr].c
}
html.push("<div class='bzmac' bzid='"+s+"-"+id+"' _evs="+evs+" _deps="+deps+" _status="+status+" shows='"+m_status[status].shows+"' klass='"+m_status[status].c+ek_kla+"'><bz_saat v='"+tmp_d.saat+"' pt='"+(pt||"")+"'>"+BZLib().saat(data[i])+"</bz_saat><bz_home>"+h+"</bz_home><bz_score evs="+evs+" deps="+deps+"></bz_score><bz_away>"+a+"</bz_away><bz_ht ht='"+(ht || "")+"'></bz_ht></div>")
}
if (html.length==0 && bzOpts.cs.list!="live") html.push('<div>Seçimleriniz doğrultusunda gösterilecek kayıt bulunamadı.</div>')
if (html.length==0 && bzOpts.cs.list=="live") html.push('<div>Şuanda oynanan bir maç bulunmamaktadır.</div>')
document.querySelector("bzscores_container").innerHTML=html.join(" ");
mutLib.connect();
setInterval(function(argument) {
timeLib.update();
},60000)
}
self.css=function() {
var css=[];
css.push("@keyframes bzspin {0% { transform: rotate(0deg); }100% { transform: rotate(360deg); }}")
css.push("bzscores_container:empty {display:block;text-align:center}")
css.push("bzscores_container:empty:before {content: \" \";border: 6px solid #f3f3f3; /* Light grey */border-top: 6px solid var(--bz_c_bg); /* Blue */border-radius: 50%;width: 40px;height: 40px;display: inline-flex;animation: bzspin 2s linear infinite;margin: 20px;}")
css.push(".bztar {padding:3px;}")
css.push(".bzfont {font:normal var(--bz_fs) var(--bz_fa)}")
css.push(".bzfont_brand {font:normal calc(var(--bz_fs) - 2px) var(--bz_fa);display:block;margin:10px 0px;text-align:right;}")
css.push(".bzulke {font-weight:var(--bz_c_fw);color:var(--bz_c_clr);background:var(--bz_c_bg);line-height:calc(var(--bz_fs) + 10px);display:flex;align-items:center;padding:0px 4px;}")
css.push(".bzulke img {margin:0px 4px;width:20px !important;height:12px !important;max-width:20px !important;}")
css.push(".bzlig {background:var(--bz_l_bg);text-align:left;}")
css.push(".bzlig > a {font-weight:var(--bz_l_fw);color:var(--bz_l_clr);line-height:calc(var(--bz_fs) + 10px);padding:0px 28px;text-decoration:none;}")
css.push(".bzmac:nth-child(odd) {background:var(--bz_m_bg);}")
css.push(".bzmac:nth-child(even) {background:var(--bz_m_bg2);}")
css.push(".bzmac {color:var(--bz_m_clr);display:flex;align-items:center;line-height:calc(var(--bz_fs) + 10px);}")
css.push(".bzmac > * {padding:2px 0px;}")
css.push("bz_saat,bz_ht {flex:0 0 35px;text-align:center;}")
css.push(".bzmac[klass*='timer'] bz_saat:not([pt=\"\"]):not([pt=\"null\"]):after {content:attr(pt);display:block;}")
css.push(".bzmac[klass*='saat'] bz_saat:after {content:attr(v)}")
css.push("bz_score {flex:0 0 50px;text-align:center;white-space:nowrap;}")
css.push("bz_home,bz_away {flex:1 0;}")
css.push("bz_home {text-align:right;}")
css.push("bz_away {text-align:left;}")
css.push("bz_ht:not([ht=\"\"]):after {content:attr(ht)}")
css.push(".bzmac[shows='1'] bz_score:after {content:attr(evs)\" - \"attr(deps);font-weight:bold;}")
css.push(".bzmac[shows='0'] bz_score:after {content:\" - \"}")
css.push(".bzmac[klass*='live'] bz_saat,.bzmac[klass*='live'] bz_score {color:var(--bz_live_clr)}")
css.push("@keyframes blinker{50%{opacity:0}}time:after{content:\"'\";animation:blinker 1s linear infinite}")
document.querySelector("bz_css").innerHTML="<style>"+css.join(" ")+"</style>"

}
self.saat=function(d) {
var sb=m_status[d.status]
if (d.ko!=undefined && d.ko!=null && m_status[d.status].timer) {
var t_data={ko:d.ko,min:sb.min,max:sb.max,start:sb.start}
return "<time ko="+d.ko+" data-time="+JSON.stringify(t_data)+" class='bzmactimer'>"+timeLib.calc(t_data)+"</time>"
}
else if (sb.deep_is && d.sr!=null && sb.deep[d.sr]!=undefined) return sb.deep[d.sr].n+" "+(sb.deep[d.sr].v || "");
else if (sb.abbr==null) return ""
return sb[status_show]
}
return self
}
function timeLibF() {
var self={};
self.gettime=function() {
return Math.round(Date.now()/ 1000);
}
self.update=function() {
bzx("time.bzmactimer").forEach(function(el) {
bzxx.reqAni(function() {timeLib.updating(el)})
})
}
self.updating=async function(el) {
var t_data=el.data("time");
var diff=timeLib.calc(t_data)
el.html(diff)
}
self.calc=function(data) {
const {ko,start,min,max}=data
var diff=(timeLib.gettime() - ko);
diff /= 60;
diff=Math.round(diff)+start*1;
if (diff<min) diff=min
if (diff>max) {diff=max+"+"}
return diff
}
return self;
}
var timeLib=timeLibF();
function bzx(s) {
var self={};
if (s!=undefined && typeof s!="object") {
self.selector=s;
self.element=document.querySelector(self.selector);
} else if(typeof s=="object") {
self.element=s;
}
self.html=function(a,callback,fast) {
if (a==undefined) return self.element.innerHTML;
if (fast) {
self.element.innerHTML=a;
return;
}
bzxx.reqAni(async function() {
self.element.innerHTML=a
var d=self.element.querySelectorAll("script")
var t = d.length
for (var x=0;x<t;x++){
var newScript = document.createElement('script');
newScript.type = "text/javascript";
newScript.text = d[x].text;
console.log(newScript)
self.element.appendChild(newScript);
}
if (callback!=undefined) callback()
})
}
self.forEach=async function(callback) {
Array.prototype.forEach.call(document.querySelectorAll(self.selector), async function(el, i){
bzxx.reqIdle(function() {callback(bzx(el),i)})
});
}
self.forEachF=function(callback) {
Array.prototype.forEach.call(document.querySelectorAll(self.selector), function(el, i){
callback(bzx(el),i)
});
}
self.data=function(k,v) {
if (v==undefined) {return JSON.parse(self.element.dataset[k]);}
else {
self.element.setAttribute("data-"+k,JSON.stringify(v))
}
}
self.reqIdle=async function(callback,timer) {
try {
var opts={timeout:10}
if (timer!=undefined) opts.timeout=timer
requestIdleCallback(callback,opts)
} catch(e) {
console.log(e)
//callback()
bzxx.reqAni(callback)
}
}
self.reqAni=async function(cb) {
try {
requestAnimationFrame(cb)
} catch(e) {
cb()
}
}
return self;
}
var bzBgarrays=new Array();
function mutF() {
var self={};
self.keys={"evs":"home","evk":"home","deps":"away","depk":"away"}
self.connect=function() {
//var element = x(".obs").element;
var element=document.querySelector(".bzobs")
mutLib.obs().observe(element, {
attributes: true,Value:true,attributeOldValue: true,attributeFilter: ['_evs','_deps','_status','_sr','_pt','_ko'],subtree: true,characterData: true,characterDataOldValue: true
});
}
self.who=function(k) {
return mutLib.keys[k]
}
self.high=function(dom,v,v2) {
dom.querySelector(v).style="background:var(--bz_"+v2+")";
clearTimeout(bzBgarrays[dom.getAttribute("bzid")+"_"+v]);
bzBgarrays[dom.getAttribute("bzid")+"_"+v]=setTimeout(function(dom,v,v2) {
dom.querySelector(v).style="";
},60000,dom,v,v2);
}
self.mutob=window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
self.obs=function() {
return new mutLib.mutob(function(mutations) {
mutations.forEach(async function(mutation) {
var tmp_domp=mutation.target.parentElement;var tmp_dom=mutation.target;
var a_name=mutation.attributeName;
var o_name=a_name.replace("_","");
var rec_val=tmp_dom.getAttribute(mutation.attributeName);
var old_val=mutation.oldValue;
var reH = new RegExp("^(evs|deps)$");
if (reH.test(o_name) && old_val!=rec_val) {
try {
tmp_dom.querySelector("["+o_name+"]").setAttribute(o_name,tmp_dom.getAttribute(a_name));
if(old_val!=null) {
if(o_name=="evs") mutLib.high(tmp_dom,"bz_home","score_bg")
else mutLib.high(tmp_dom,"bz_away","score_bg")
mutLib.high(tmp_dom,"bz_score","score_bg2")
}
}
catch(e) {console.log(a_name+" "+old_val+" "+rec_val)}
}
var reH = new RegExp("^(status|ko)$");
if (reH.test(o_name) && old_val!=rec_val) {
//shows='"+m_status[status].shows+"'
if(o_name=="status") tmp_dom.setAttribute("shows",m_status[rec_val].shows);
var data={status:tmp_dom.getAttribute("_status")||0,sr:tmp_dom.getAttribute("_sr")||null,ko:tmp_dom.getAttribute("_ko")||null}
tmp_dom.querySelector("bz_saat").innerHTML=(BZLib().saat(data));
var ek_kla="";
if (m_status[data.status].deep_is && data.sr!=null && m_status[data.status].deep[data.sr]!=undefined) {
ek_kla=" "+m_status[data.status].deep[data.sr].c
}
tmp_dom.setAttribute("klass",m_status[data.status].c+ek_kla)
//klass='"+m_status[status].c+ek_kla+"'
}
if(o_name=="pt") {
tmp_dom.querySelector("bz_saat").setAttribute("pt",(rec_val||""))
}
})
})
}
return self;
}
var mutLib=mutF();
window.bzxx=bzx();
bzwidget()

Back to list