1 | #about-container |
2 | section.top-section |
3 | .top-content |
4 | .float-texts |
5 | each text, index in site.data.about.top_info.float_text.slice(0, 4) |
6 | .float-text(class=`float-text-${index + 1}`) #{text} |
7 | .avatar-container |
8 | img.no-lightbox.avatar(src=url_for(site.data.about.top_info.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt="") |
9 | .float-texts |
10 | each text, index in site.data.about.top_info.float_text.slice(4, 8) |
1 | function renderTalks() { |
2 | const talkContainer = document.querySelector('#talk'); |
3 | if (!talkContainer) return; |
4 | talkContainer.innerHTML = ''; |
5 | const generateIconSVG = () => { |
6 | return `<svg viewBox="0 0 512 512"xmlns="http://www.w3.org/2000/svg"class="is-badge icon"><path d="m512 268c0 17.9-4.3 34.5-12.9 49.7s-20.1 27.1-34.6 35.4c.4 2.7.6 6.9.6 12.6 0 27.1-9.1 50.1-27.1 69.1-18.1 19.1-39.9 28.6-65.4 28.6-11.4 0-22.3-2.1-32.6-6.3-8 16.4-19.5 29.6-34.6 39.7-15 10.2-31.5 15.2-49.4 15.2-18.3 0-34.9-4.9-49.7-14.9-14.9-9.9-26.3-23.2-34.3-40-10.3 4.2-21.1 6.3-32.6 6.3-25.5 0-47.4-9.5-65.7-28.6-18.3-19-27.4-42.1-27.4-69.1 0-3 .4-7.2 1.1-12.6-14.5-8.4-26-20.2-34.6-35.4-8.5-15.2-12.8-31.8-12.8-49.7 0-19 4.8-36.5 14.3-52.3s22.3-27.5 38.3-35.1c-4.2-11.4-6.3-22.9-6.3-34.3 0-27 9.1-50.1 27.4-69.1s40.2-28.6 65.7-28.6c11.4 0 22.3 2.1 32.6 6.3 8-16.4 19.5-29.6 34.6-39.7 15-10.1 31.5-15.2 49.4-15.2s34.4 5.1 49.4 15.1c15 10.1 26.6 23.3 34.6 39.7 10.3-4.2 21.1-6.3 32.6-6.3 25.5 0 47.3 9.5 65.4 28.6s27.1 42.1 27.1 69.1c0 12.6-1.9 24-5.7 34.3 16 7.6 28.8 19.3 38.3 35.1 9.5 15.9 14.3 33.4 14.3 52.4zm-266.9 77.1 105.7-158.3c2.7-4.2 3.5-8.8 2.6-13.7-1-4.9-3.5-8.8-7.7-11.4-4.2-2.7-8.8-3.6-13.7-2.9-5 .8-9 3.2-12 7.4l-93.1 140-42.9-42.8c-3.8-3.8-8.2-5.6-13.1-5.4-5 .2-9.3 2-13.1 5.4-3.4 3.4-5.1 7.7-5.1 12.9 0 5.1 1.7 9.4 5.1 12.9l58.9 58.9 2.9 2.3c3.4 2.3 6.9 3.4 10.3 3.4 6.7-.1 11.8-2.9 15.2-8.7z"fill="#1da1f2"></path></svg>`; |
7 | } |
8 | const waterfall = (a) => { |
9 | function b(a, b) { |
10 | var c = window.getComputedStyle(b); |
LiuShen / Mihomo Party 覆写整理脚本
0 mi piace
0 forks
1 files
Ultima volta attivo
Mihomo Party 覆写整理脚本,整合资源,实现更完整的分组,多订阅共享
1 | // Define the `main` function |
2 | |
3 | const proxyName = "代理模式"; |
4 | |
5 | function main (params) { |
6 | if (!params.proxies) return params; |
7 | overwriteRules (params); |
8 | overwriteProxyGroups (params); |
9 | overwriteDns (params); |
10 | return params; |
LiuShen / 利用CF Worker实现一个每日bing一图接口API
0 mi piace
0 forks
1 files
Ultima volta attivo
利用CF Worker实现一个每日bing一图接口API,可以直接用作图片数据。
1 | // 利用api.nsmao.net实现的bing接口 |
2 | const API_KEY = "ajdlfklahweufbrffbhjefjfsmd,shj" // 自行申请API |
3 | const CACHE_TTL = 36000 // 10 小时 |
4 | |
5 | export default { |
6 | async fetch(request, env, ctx) { |
7 | const { pathname } = new URL(request.url) |
8 | |
9 | // 首页说明 |
10 | if (pathname === "/") { |
LiuShen / 通过cloudflare Worker创建github api中间件
0 mi piace
0 forks
1 files
Ultima volta attivo
通过cloudflare Worker创建github api中间件,在隐藏token的情况下获取仓库提交信息
1 | /** |
2 | * Welcome to Cloudflare Workers! This is your first worker. |
3 | * |
4 | * - Run "npm run dev" in your terminal to start a development server |
5 | * - Open a browser tab at http://localhost:8787/ to see your worker in action |
6 | * - Run "npm run deploy" to publish your worker |
7 | * |
8 | * Learn more at https://developers.cloudflare.com/workers/ |
9 | */ |
Più nuovi
Più vecchi