support heartstone plugin

This commit is contained in:
Ekkles 2019-10-25 07:20:32 +13:00 committed by GitHub
parent 6a5c480eb3
commit c8555a129d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,9 @@ mashiro_global.ini = new function () {
coverVideoIni(); coverVideoIni();
checkskinSecter(); checkskinSecter();
scrollBar(); scrollBar();
$(".hearthstone-deck").each(function () {
$(this).attr('height', $(this).width()*5/9+'px');
});
} }
this.pjax = function () { // pjax reload functions (pjax 重载函数) this.pjax = function () { // pjax reload functions (pjax 重载函数)
pjaxInit(); pjaxInit();
@ -24,9 +27,14 @@ mashiro_global.ini = new function () {
copy_code_block(); copy_code_block();
coverVideoIni(); coverVideoIni();
checkskinSecter(); checkskinSecter();
reloadHermit();
$(".hearthstone-deck").each(function () {
$(this).attr('height', $(this).width()*5/9+'px');
});
} }
} }
function setCookie(name, value, days) { function setCookie(name, value, days) {
var expires = ""; var expires = "";
if (days) { if (days) {