V2EX = way to explore V2EX 是一个关于分享和探索的地方
script> document.addEventListener('DOMContentLoaded', function() { // Function to escape HTML entities function escapeHtml(text) { if (!text) return ''; var div = document.createElement('div'); div.textCOntent= text; return div.innerHTML; } // Function to render campaign based on display format function renderCampaign(campaign) { let html = ''; let displayFormat = campaign.display_format || 'text-only'; let title = escapeHtml(campaign.title); let description = escapeHtml(campaign.description); let callToAction = escapeHtml(campaign.call_to_action); let link = escapeHtml(campaign.link); // Check if required image URL is available for the display format, fallback to text-only if not if (displayFormat === 'small-with-description' && !campaign.img_small_url) { displayFormat = 'text-only'; } else if (displayFormat === 'banner-only' && !campaign.img_banner_url) { displayFormat = 'text-only'; } else if ((displayFormat === 'big-only' || displayFormat === 'big-with-description' || displayFormat === 'big-with-title-description-button') && !campaign.img_big_url) { displayFormat = 'text-only'; } html = `
${title}
`; switch(displayFormat) { case 'text-only': html += `
`; break; case 'small-with-description': html += `
${campaign.img_small_cid ? `
` : ''}
${description}
`; break; case 'banner-only': html += `
`; break; case 'big-only': html += `
`; break; case 'big-with-description': html += `
`; html += `
`; break; case 'big-with-title-description-button': html += `
`; html += `
`; html += `
`; break; default: html += `
`; } html += `
` return html; } // Load campaign from emitter var xhr = new XMLHttpRequest(); xhr.open('GET', '/pro/emitter', true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.Onreadystatechange= function() { if (xhr.readyState === 4) { if (xhr.status === 200) { try { var campaign = JSON.parse(xhr.responseText); if (campaign && campaign.id) { var html = renderCampaign(campaign); document.getElementById('pro-campaign-container').innerHTML = html; } else { // No campaign to display, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; } } catch (e) { // Parse error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error parsing campaign data: ' + e.message); } } else { // HTTP error, hide the container document.getElementById('pro-campaign-container').style.display = 'none'; console.log('Error loading campaign: HTTP ' + xhr.status); } } }; xhr.send(); });
这是一个创建于 1338 天前的主题,其中的信息可能已经有所发展或是发生改变。
如题 开了工作模式,就没有站立提醒了
但是我想要这个提醒(在工作模式下) 不知道要怎么设置
5 条回复 2023-09-04 16:06:44 +08:00  | | 1 iyeatse 2022-02-15 19:03:58 +08:00 via iPhone 允许的 app 里加上“健身” |
 | | 2 maxthon 2022-02-15 19:06:16 +08:00 @ iyeatse 昨天我搜到英文帖子也说这个,就打开了 今天暂时没看到站立提示,明天继续观察 |
 | | 3 MockingLee 2022-02-15 19:55:32 +08:00 via iPhone @ maxthon 我添加后有的,没出来可能是你并没有久坐。 我开了专注模式一般下午会提示个一两次。 |
 | | 4 maxthon 2022-02-15 19:59:51 +08:00 |
 | | 5 send2me 2023-09-04 16:06:44 +08:00 |