Network Coverage Map(ZH)

Network Coverage Map

${network.name}

` } jQuery('#networkCoverageInfo .selectCountryBox .countryList').append(`
${countryDefine.name}
${networkStr}
`) } jQuery(document).ready(function () { var networkMap = {} for (var i = 0; i ' + unit.name + '
') networkMap[unit.slug] = unit } function setCountriesBox(countryList) { jQuery('#networkCoverageInfo .countriesBox .countryList').html('') for (let i = 0; i

${network.name}

` } jQuery('#networkCoverageInfo .countriesBox .countryList').append(`
${countryDefine.name}
${networkStr}
`) } } setCountriesBox(countriesDefine) var activeNetworkMap = {} jQuery("#networkCoverageInfo .networkChooseBox .contentBox").on("click", ".chooseUnit", function () { var slug = jQuery(this).attr('slug') var network = networkMap[slug] if (!network) { return } if (jQuery(this).hasClass("active")) { jQuery(this).removeClass("active"); delete activeNetworkMap[slug] } else { jQuery(this).addClass("active"); activeNetworkMap[slug] = network } var colors = [] for (let slug in activeNetworkMap) { let network = activeNetworkMap[slug] colors.push(network.color) } var activeNetworkColor = blendColors(colors) jQuery('#networkCoverageInfo .networkChooseBox .contentBox .chooseUnit').each(function () { var slug = jQuery(this).attr('slug') var network = networkMap[slug] jQuery(this).css({ color: network.color, background: '#fff', }) }) if (activeNetworkColor) { jQuery('#networkCoverageInfo .networkChooseBox .contentBox .chooseUnit.active').css({ color: '#fff', background: activeNetworkColor, }) } let config = {} // for (let slug in activeNetworkMap) { // let network = activeNetworkMap[slug] // let countries = networkCountries[slug] // if (countries) { // for (let i = 0; i