1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
| <!-- 添加右键菜单 --> <% if (theme.RightMenu.enable) { %> <div id="rightMenu" style="top: 0px; left: 0px; display: none;"> <!-- 基本操作组 --> <div class="rightMenu-group rightMenu-small"> <% const basicOps = [ { id: 'menu-backward', title: '返回', icon: 'fas fa-arrow-left' }, { id: 'menu-forward', title: '前进', icon: 'fas fa-arrow-right' }, { id: 'menu-refresh', title: '刷新', icon: 'fas fa-bolt' }, { id: 'menu-top', title: '返回顶部', icon: 'fas fa-arrow-up' } ]; basicOps.forEach(op => { %> <div class="rightMenu-item" id="<%= op.id %>" title="<%= op.title %>"> <i class="<%= op.icon %>"></i> </div> <% }); %> </div>
<!-- 插件操作组 --> <div class="rightMenu-group rightMenu-line rightMenuPlugin" style="display:none"> <% const pluginOps = [ { id: 'menu-copytext', icon: 'fas fa-copy', text: '复制选中' }, { id: 'menu-copylink', icon: 'fas fa-link', text: '复制链接' }, { id: 'menu-pastetext', icon: 'fas fa-paste', text: '粘贴文本' }, { id: 'menu-commenttext', icon: 'fas fa-comment-medical', text: '引用到评论' }, { id: 'menu-newwindow', icon: 'fas fa-window-restore', text: '新窗口打开' }, { id: 'menu-copyimg', icon: 'fas fa-images', text: '复制此图片' }, { id: 'menu-downloadimg', icon: 'fas fa-download', text: '下载此图片' }, { id: 'menu-search', icon: 'fas fa-magnifying-glass', text: '站内搜索' }, { id: 'menu-searchBing', icon: 'fas fa-magnifying-glass', text: '必应搜索' }, { id: 'menu-music-toggle', icon: 'fas fa-play', text: '播放音乐' }, { id: 'menu-music-back', icon: 'fas fa-backward', text: '切换到上一首' }, { id: 'menu-music-forward', icon: 'fas fa-forward', text: '切换到下一首' }, { id: 'menu-music-playlist', icon: 'fas fa-radio', text: '查看所有歌曲', link: 'https://music.163.com/#/playlist?app_version=8.8.36&id=5197802668' }, { id: 'menu-music-copyMusicName', icon: 'fas fa-copy', text: '复制歌名' } ]; pluginOps.forEach(op => { %> <div class="rightMenu-item" id="<%= op.id %>" style="display:none"> <i class="<%= op.icon %>"></i> <span><%= op.text %></span> </div> <% }); %> </div>
<!-- 其他操作组 --> <div class="rightMenu-group rightMenu-line rightMenuOther"> <% const otherOps = [ { id: 'menu-randomWebsite', icon: 'fas fa-paper-plane', text: '次元跃迁', link: 'https://travel.moe/go.html' }, { id: 'menu-randomPost', icon: 'fas fa-shoe-prints', text: '随便逛逛' }, { id: 'menu-categories', icon: 'fas fa-cube', text: '博客分类', link: '/categories/' }, { id: 'menu-tags', icon: 'fas fa-tags', text: '文章标签', link: '/tags/' }, { id: 'menu-privacy', icon: 'fas fa-hands', text: '隐私协议', link: '/privacy/' }, { id: 'menu-cc', icon: 'fas fa-closed-captioning', text: '版权协议', link: '/cc/' }, { id: 'menu-writing', icon: 'fas fa-feather', text: '行文规范', link: '/SEAEPOCH-WRITING-STANDARDS/' }, { id: 'menu-copy', icon: 'fas fa-copy', text: '复制地址' }, { id: 'menu-darkmode', icon: 'fas fa-moon', text: '深色模式', extraClass: 'menu-darkmode-text' } ]; otherOps.forEach(op => { %> <a class="rightMenu-item menu-link" href="<%= op.link || '#' %>" id="<%= op.id %>" target="<%= op.link ? '_blank' : '_self' %>" rel="noopener"> <i class="<%= op.icon %>"></i> <span class="<%= op.extraClass || '' %>"><%= op.text %></span> </a> <% }); %> </div> </div> <div id="rightmenu-mask" style="display: none"></div> <script src="/js/rightMenu.js"></script> <script>addRightMenuClickEvent()</script> <% } %>
|