Widget:Music163:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
第77行: 第77行:
          else { height_type = 430; }
          else { height_type = 430; }
          if (float !== "none") { self.addClass(`float-${float}`); }
          if (float !== "none") { self.addClass(`float-${float}`); }
          self.empty().append(`<a rel="nofollow noreferrer noopener" class="external text" href="https://music.163.com/#/${types[+type]}?id=${id}" target="_blank"><img src="https://s1.music.126.net/music.ico"></a><span class="music163CopyrightNotice">[<a href="javascript:void(0);">{{color|blue| 版权受限}}</a>]</span>`).attr("title", `${title || that.title || `id ${id}`} - 网易云音乐`);
          self.empty().append(`<a rel="nofollow noreferrer noopener" class="external text" href="https://music.163.com/#/${types[+type]}?id=${id}" target="_blank"><img src="https://s1.music.126.net/music.ico"></a><span class="music163CopyrightNotice">[<a href="javascript:void(0);"  style="color:#36b!important;">版权受限</a>]</span>`).attr("title", `${title || that.title || `id ${id}`} - 网易云音乐`);
          const iframe = $("<iframe/>");
          const iframe = $("<iframe/>");
          iframe.attr("data-src", `//music.163.com/outchain/player?type=${type}&id=${id}&auto=0&height=${height_type}`);
          iframe.attr("data-src", `//music.163.com/outchain/player?type=${type}&id=${id}&auto=0&height=${height_type}`);
第117行: 第117行:
    } catch (e) {
    } catch (e) {
      // eslint-disable-next-line prefer-template
      // eslint-disable-next-line prefer-template
      prompt("Music163 模板执行出现问题,请复制以下内容并 提问求助区处粘贴寻求帮助:", navigator.userAgent + " : " + e + " " + e.stack.split("\n")[1].trim());
      prompt(" 网易云音乐 模板执行出现问题,请复制以下内容并 前往萌百的 提问求助区处粘贴寻求帮助:", navigator.userAgent + " : " + e + " " + e.stack.split("\n")[1].trim());
    }
    }
});
});

2021年6月20日 (日) 09:18的版本

Only for {{Music163}}