From c8555a129d76d1995d02ad53b1b64a4b410907fd Mon Sep 17 00:00:00 2001 From: Ekkles <41195266+EkklesN@users.noreply.github.com> Date: Fri, 25 Oct 2019 07:20:32 +1300 Subject: [PATCH] support heartstone plugin --- js/sakura-app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/sakura-app.js b/js/sakura-app.js index ae36a12..eabf3a2 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -16,6 +16,9 @@ mashiro_global.ini = new function () { coverVideoIni(); checkskinSecter(); scrollBar(); + $(".hearthstone-deck").each(function () { + $(this).attr('height', $(this).width()*5/9+'px'); +}); } this.pjax = function () { // pjax reload functions (pjax 重载函数) pjaxInit(); @@ -24,9 +27,14 @@ mashiro_global.ini = new function () { copy_code_block(); coverVideoIni(); checkskinSecter(); + reloadHermit(); + $(".hearthstone-deck").each(function () { + $(this).attr('height', $(this).width()*5/9+'px'); +}); } } + function setCookie(name, value, days) { var expires = ""; if (days) {