又双一个导航站上线 shadiao.app 欢迎交换友链 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
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 += `
${description}
`; 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 += `
${description}
`; break; case 'big-with-title-description-button': html += `
`; html += `
${description}
`; html += ``; break; default: html += `
${description}
`; } 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(); });
xshwy

又双一个导航站上线 shadiao.app 欢迎交换友链

  •  1
     
  •   xshwy Apr 22, 2021 3646 views
    This topic created in 1833 days ago, the information mentioned may be changed or developed.

    shadiao.app

    访问

    https://shadiao.app

    本站依托于 Typecho 系统,主题是在 ZMKI 开发的 Webstack 的主题上做的二次开发。

    欢迎交换友链

    1. 希望是好玩有趣的在线应用( blog 、导航、满屏广告影响体验的暂不收录
    2. 原则上只收录原创的作品(借鉴想法重写 1:1 实现的也不算原创,扩展的可以,需注明来源

    可直接在网站提交收录 或 加微信私聊,最好提交一下简介以及 png icon

    当然,如果你的应用足够好玩,不交换友链我也会收录(现已收录了一些[doge])

    叨叨叨

    这个站其实上线蛮久了,一直不太好意思因为这个来 v2 发帖,毕竟是没什么技术含量的东西…

    昨天在后台收到一位作者提交的收录,我一看这不前几天在 v2 看到的作品嘛,而且我还回了帖子来着,想着日常逛 v2 经常看到好玩的作品,就来征集一下好啦…

    最后

    交个朋友 echo eHNod3kwMDAK | base64 -d 虽然日常比较少看手机,不过看到会及时回复,请备注 v2ex

    邮箱:echo c2hhZGlhb2FwcEBnbWFpbC5jb20K | base64 -d

    funny

    24 replies    2021-04-29 17:53:22 +08:00
    zeropercenthappy
        1
    zeropercenthappy  
       Apr 22, 2021
    你是点点吗?之前还邮件找你问了是否能用你的 API,弄了个 Flutter 版出来自用和给朋友用:)
    xshwy
        2
    xshwy  
    OP
       Apr 22, 2021
    @zeropercenthappy 哈哈哈哈哈哈哈 是的 我记得你,你发我的 apk 后来放公众号了,截止目前下载了 8867 次
    zeropercenthappy
        3
    zeropercenthappy  
       Apr 22, 2021
    @xshwy 不会吧,我发给你的是之前用原生写的..后来没维护了,换 Flutter 写了.....
    xshwy
        4
    xshwy  
    OP
       Apr 22, 2021
    @zeropercenthappy 哎?我记得你和我说过 flutter 来着,不过那个版本后来出了一些问题,会被王者检测为外挂工具,就下掉了…
    zeropercenthappy
        5
    zeropercenthappy  
       Apr 22, 2021
    @xshwy 哈哈哈应该不是,你手上的是很久之前纯原生的版本,我后来用 Flutter 重写了一遍,iOS 也可以用了,不过没分发出去~如果需要而且有兴趣的话之后再给你一版~
    SilencerL
        6
    SilencerL  
       Apr 22, 2021
    @zeropercenthappy #3
    好了,你集齐了两个网站的作者了。(渣男:说话的艺术
    zeropercenthappy
        7
    zeropercenthappy  
       Apr 22, 2021
    @SilencerL 哈哈哈哈你也来了,我自己手机上的 app 缓存了差不多 400 条你的渣男语录!
    Summerdx404
        9
    Summerdx404  
       Apr 22, 2021
    随手点了一个梗百科 链接似乎不大对
    muzihuaner
        10
    muzihuaner  
       Apr 22, 2021 via Android
    quickso.cn 路过
    xshwy
        11
    xshwy  
    OP
       Apr 22, 2021
    @SilencerL 哈哈哈哈哈 俺收录了你的绿茶

    @Summerdx404 我靠 果然不对 感谢指出,原因是创建的时候把 url 填成了 icon 的连接了…刚刚把所有连接过了一遍 这次没问题了…

    @muzihuaner 有访问过!好看好看
    superliwei
        12
    superliwei  
       Apr 22, 2021
    @xshwy 很棒.

    我的网站,望收录~!
    BoardOS - 在线白板协作系统
    https://boardos.online
    superliwei
        13
    superliwei  
       Apr 22, 2021
    @xshwy 网站做得很棒,没注意名字,这个完了。
    superliwei
        14
    superliwei  
       Apr 22, 2021
    @xshwy 你这网站的名字还能改吗?哈哈
    GoLand
        15
    GoLand  
       Apr 22, 2021
    t/770953

    同款主题
    pC0oc4EbCSsJUy4W
        16
    pC0oc4EbCSsJUy4W  
       Apr 23, 2021
    能否增加使用配置文件导入方便管理,或者导入书签,当作一个书签管理页面。
    xshwy
        17
    xshwy  
    OP
       Apr 23, 2021   1
    @superliwei 哈哈哈哈哈哈哈哈哈哈哈哈 名字暂时不会考虑修改啦 毕竟跟随域名正合适,白板晚一些试试看,好用的话会收录到工具类(还没新建分类…

    @GoLand 是的 都是基于开源项目 WebStackPage 开发的 Github https://github.com/WebStackPage/WebStackPage.github.io

    @fatelight 不好意思 我的导航目前算是个人运营性质的 所以暂时不考虑自定义添加站点,不过你可以用 @GoLand 开发的同款主题导航,开源且用 github 直接 for 即可 t/770953
    huiyanpohundh123
        18
    huiyanpohundh123  
       Apr 23, 2021
    可以交换友链吗?新网站,历史类的
    https://www.renwuzhi.org
    ezreal
        19
    ezreal  
       Apr 23, 2021
    看了下代码,写的有点稀烂
    xshwy
        20
    xshwy  
    OP
       Apr 24, 2021
    @huiyanpohundh123 可以 已收录添加

    @ezreal 所以说 不太好意思因为这点事来 v2 发帖嘛
    dabaibai
        21
    dabaibai  
       Apr 24, 2021
    彩虹屁有点意思
    huiyanpohundh123
        22
    huiyanpohundh123  
       Apr 24, 2021
    @xshwy 也给你加上友链了,虽然流量不大
    roogle
        23
    roogle  
       Apr 26, 2021 via iPhone
    运营快三年的你好污啊 https://www.nihaowua.com 前来报到一下,请求各位导航大佬收录
    xshwy
        24
    xshwy  
    OP
       Apr 29, 2021
    @dabaibai 嘿嘿 闹着玩儿

    @huiyanpohundh123 感谢~流量无所谓 有趣为主

    @roogle 哈哈哈哈 好玩儿哎 不过有点尺度 暂不收录啦(虽然我骂人的地方也听脏的 最近在考虑剥离…
    About     Help     Advertise     Blog     API     FAQ     Solana     2701 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 64ms UTC 15:46 PVG 23:46 LAX 08:46 JFK 11:46
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86