源创宝库吧 新一代精品资源网 在线工具箱 此位置招租 SanS三石导航页 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租
返回列表 发布新帖
查看: 118|回复: 1

[模板主题] 在线生成链接

  在线 
灌水成绩
127
203
806
主题
回帖
积分

等级头衔
UID : 83
等级 : 版主

积分成就
威望 : 93 点
贡献 : 378 点
蛋壳 : 5714 枚
在线时间 : 1311 小时
注册时间 : 2024-4-17
最后登录 : 2024-9-17

荣誉勋章
发表于 2024-5-29 12:48:39 | 查看全部 |阅读模式 来自: 中国–黑龙江–七台河

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×


在线生成链接

在线生成链接


  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <link href="./favicon.ico" type="image/x-icon" rel="icon">
  8.     <title>在线生成链接</title>
  9.     <meta name="Keywords" content="在线工具,链接生成,百变鹏仔">
  10.     <meta name="description" content="在线生成链接是一个协助站长获取批量链接的一个工具。">
  11.     <style>
  12.         body,div,p,ul,ol,li,dl,dt,dd,table,tr,td,form,hr,h1,h2,h3,h4,h5,h6,fieldset,img,input {
  13.             margin: 0;
  14.             padding: 0;
  15.         }
  16.         body,html {
  17.             width: 100%;
  18.             min-height: 100%;
  19.         }
  20.         body{
  21.             background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  22.             /* background: linear-gradient(135deg, #272727, #4a4a4a, #6d6d6d, #909090, #b3b3b3, #d6d6d6, #f9f9f9); */
  23.             display: flex;
  24.             align-items: center;
  25.             justify-content: center;
  26.             padding: 32px 6px;
  27.             box-sizing: border-box;
  28.         }
  29.         .tp-layer{
  30.             width: 100%;
  31.             max-width: 760px;
  32.             height: 80%;
  33.             background: rgba(255,255,255,.3);
  34.             border: 3px solid #fff;
  35.             padding: 32px;
  36.             box-sizing: border-box;
  37.             border-radius: 16px;
  38.         }
  39.         .tp-layer .form-list{
  40.             width: 100%;
  41.             display: flex;
  42.             align-items: center;
  43.             padding: 12px 0;
  44.             box-sizing: border-box;
  45.         }
  46.         .tp-layer .form-list label{
  47.             font-size: 18px;
  48.             font-weight: 700;
  49.             display: block;
  50.             width: 20%;
  51.         }
  52.         .tp-layer .form-list input{
  53.             width: 70%;
  54.             line-height: 24px;
  55.             padding: 6px;
  56.             box-sizing: border-box;
  57.             border-radius: 6px;
  58.         }
  59.         .tp-layer .tp-button{
  60.             width: 100%;
  61.             display: flex;
  62.             align-items: center;
  63.             justify-content: center;
  64.             padding: 16px 0;
  65.             box-sizing: border-box;
  66.         }
  67.         .tp-layer .tp-button button{
  68.             color: #fff;
  69.             font-size: 14px;
  70.             line-height: 24px;
  71.             cursor: pointer;
  72.             width: 30%;
  73.             border-radius: 4px;
  74.             background: #4E78FF;
  75.             margin: 0 1%;
  76.         }
  77.         #output{
  78.             width: 100%;
  79.             border: 3px solid #4E78FF;
  80.             border-radius: 16px;
  81.             padding: 16px;
  82.             box-sizing: border-box;
  83.         }
  84.     </style>
  85. </head>
  86. <body>
  87.     <div class="tp-layer">
  88.         <div class="form-list">
  89.             <label for="prefix"> 😁网址前缀:</label>
  90.             <input type="text" id="prefix" value="https://www.qqmu.com/" placeholder="请输入前缀,如 https://www.qqmu.com/">
  91.         </div>
  92.         <div class="form-list">
  93.             <label for="start"> 😛开始数字:</label>
  94.             <input type="number" id="start" min="1" placeholder="请输入开始数字">
  95.         </div>
  96.         <div class="form-list">
  97.             <label for="end"> 😋结束数字:</label>
  98.             <input type="number" id="end" min="1" placeholder="请输入结束数字">
  99.         </div>
  100.         <div class="form-list">
  101.             <label for="suffix"> 🥰网址后缀:</label>
  102.             <input type="text" id="suffix" value=".html" placeholder="请输入网址后缀,如 .html">
  103.         </div>
  104.         <div class="tp-button">
  105.             <button onclick="generateLinks()"> 💊生成链接</button>
  106.             <button onclick="exportLinks()"> 🎁导出链接</button>
  107.             <button onclick="copyLinks()"> 🎫一键复制</button>
  108.         </div>
  109.         <textarea id="output" rows="20" cols="50" placeholder="输出结果,自动生成"></textarea>
  110.     </div>
  111.     <script>
  112.         // 生成
  113.         function generateLinks() {
  114.             const prefix = document.getElementById('prefix').value;
  115.             const start = parseInt(document.getElementById('start').value);
  116.             const end = parseInt(document.getElementById('end').value);
  117.             const suffix = document.getElementById('suffix').value;
  118.             if (start > end) {
  119.                 alert("结束数字必须大于或等于开始数字");
  120.                 return;
  121.             }
  122.             const output = document.getElementById('output');
  123.             let links = '';
  124.             links = Array.from({ length: end - start + 1 }, (_, index) => `${prefix}${start + index}${suffix}`).join('\n');
  125.             output.value = links;
  126.         }
  127.         // 导出
  128.         function exportLinks() {
  129.             const links = document.getElementById('output').value;
  130.             const blob = new Blob([links], { type: 'text/plain' });
  131.             const url = window.URL.createObjectURL(blob);
  132.             const a = document.createElement('a');
  133.             a.href = url;
  134.             a.download = 'links.txt';
  135.             document.body.appendChild(a);
  136.             a.click();
  137.             window.URL.revokeObjectURL(url);
  138.         }
  139.         // 复制
  140.         function copyLinks() {
  141.             var range = document.createRange();
  142.             range.selectNode(document.getElementById('output'));
  143.             window.getSelection().removeAllRanges();
  144.             window.getSelection().addRange(range);
  145.             document.execCommand("copy");
  146.             alert("已复制成功!");
  147.         }
  148.     </script>
  149. </body>
  150. </html>
复制代码
生无可恋
  在线 
灌水成绩
2168
16240
22205
主题
回帖
积分

等级头衔
UID : 79
等级 : 超级版主

积分成就
威望 : 1008 点
贡献 : 2344 点
蛋壳 : 50425 枚
在线时间 : 2574 小时
注册时间 : 2024-4-13
最后登录 : 2024-9-17

荣誉勋章

荣誉会员帅哥认证最佳新人活跃会员灌水之王实习版主推广达人宣传达人论坛元老热心会员优秀作者优秀版主超级版主部落真神

发表于 2024-6-29 13:29:53 | 查看全部 来自: 中国–上海–上海
滴~至尊卡,打卡成功!楼主辛苦了,祝楼主:工作顺利🧡,打卡时间:2024年06月29日 13:29:53
新帖通知群(钉钉群):点击查看
荷包蛋部落(QQ群):荷包蛋部落 - HBD0.CN
💥荷包蛋联盟-免费的自助广告-为广大用户提供宣传服务!💯
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1楼
2楼
投诉/建议联系

8641340@qq.com

欢迎各位朋友加入本社区,
共同维护良好的社区氛围
  • QQ用户交流群
  • 钉钉新帖推送群
Powered by Discuz! X3.5 Licensed  Copyright © 2001-2024 荷包蛋部落 版权所有 All Rights Reserved. 鲁ICP备20023396号-6
关灯 在本版发帖
加入钉钉新帖推送群
QQ客服返回顶部
快速回复 返回顶部 返回列表