diff --git a/javascript/pages/player/mod_animation.js b/javascript/pages/player/mod_animation.js index 599adab..1daa7bf 100644 --- a/javascript/pages/player/mod_animation.js +++ b/javascript/pages/player/mod_animation.js @@ -16,9 +16,20 @@ export const AnimLoadPlayer = { start: function () { this.load = false; _amLoad(); + try { + const data = JSON.parse(sessionStorage.getItem('shadow-api')); + if (data.access) { + $(`.access-data > .pin`).addClass('green'); + } else { + $(`.access-data > .pin`).addClass('red'); + } + } catch { + $(`.access-data > .pin`).addClass('red'); + } }, - stop: function () { + stop: async function () { this.load = true; + _amLoadEnd(); } }; @@ -47,7 +58,17 @@ export const AnimSkip = { } //Html анимцации загрузки -const LOAD_PLAYER_HTML = `