{"id":623,"date":"2025-07-06T21:13:12","date_gmt":"2025-07-07T01:13:12","guid":{"rendered":"https:\/\/hellbringergame.com\/?page_id=623"},"modified":"2025-09-27T12:02:34","modified_gmt":"2025-09-27T16:02:34","slug":"webapp","status":"publish","type":"page","link":"https:\/\/www.hellbringergame.com\/de\/webapp\/","title":{"rendered":"Webapp"},"content":{"rendered":"\n\t\t<div id=\"fws_6a9b27c53aecf\"  data-column-margin=\"default\" data-midnight=\"dark\"  class=\"wpb_row vc_row-fluid vc_row\"  style=\"padding-top: 0px; padding-bottom: 0px; \"><div class=\"row-bg-wrap\" data-bg-animation=\"none\" data-bg-animation-delay=\"\" data-bg-overlay=\"false\"><div class=\"inner-wrap row-bg-layer\" ><div class=\"row-bg viewport-desktop\"  style=\"\"><\/div><\/div><\/div><div class=\"row_col_wrap_12 col span_12 dark left\">\n\t<div  class=\"vc_col-sm-12 wpb_column column_container vc_column_container col no-extra-padding inherit_tablet inherit_phone \"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t<div class=\"nectar-sticky-row-wrap nectar-sticky-row-wrap--top\">\n\t\t<div id=\"fws_6a9b27c53c992\"  data-column-margin=\"default\" data-midnight=\"dark\" data-top-percent=\"1%\" data-bottom-percent=\"1%\"  class=\"wpb_row vc_row-fluid vc_row full-width-section\"  style=\"padding-top: calc(100vw * 0.01); padding-bottom: calc(100vw * 0.01); \"><div class=\"row-bg-wrap\" data-bg-animation=\"none\" data-bg-animation-delay=\"\" data-bg-overlay=\"false\"><div class=\"inner-wrap row-bg-layer using-image\" ><div class=\"row-bg viewport-desktop using-image\"  style=\"background-image: url(https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/texture-5.webp); background-position: center top; background-repeat: no-repeat; \"><\/div><\/div><\/div><div class=\"row_col_wrap_12 col span_12 dark left\">\n\t<div  class=\"vc_col-sm-12 wpb_column column_container vc_column_container col no-extra-padding inherit_tablet inherit_phone \"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t<div id=\"fws_6a9b27c53ca4f\" data-midnight=\"\" data-column-margin=\"default\" class=\"wpb_row vc_row-fluid vc_row inner_row\"  style=\"\"><div class=\"row-bg-wrap\"> <div class=\"row-bg\" ><\/div> <\/div><div class=\"row_col_wrap_12_inner col span_12  left\">\n\t<div  class=\"vc_col-sm-12 wpb_column column_container vc_column_container col child_column no-extra-padding inherit_tablet inherit_phone \"   data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t\n<div class=\"wpb_text_column wpb_content_element \" >\n\t<div class=\"wpb_wrapper\">\n\t\t<div class=\"section-links\"><a href=\"#audioPlayer\">Soundtrack<\/a><br \/>\n<a href=\"#narratedAudio\">Audiodateien<\/a><br \/>\n<a href=\"#virtualDice\">Virtuelle W\u00fcrfel<\/a><\/div>\n\t<\/div>\n<\/div>\n\n\n\n\n\t\t<\/div> \n\t<\/div>\n\t<\/div> \n<\/div><\/div>\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n<\/div><\/div><\/div>\n\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n<\/div><\/div>\n\t\t<div id=\"fws_6a9b27c53dfd5\"  data-column-margin=\"default\" data-midnight=\"dark\"  class=\"wpb_row vc_row-fluid vc_row full-width-section parallax_section bottom_padding_phone_50pct\"  style=\"padding-top: 0px; padding-bottom: 0px; \"><div class=\"row-bg-wrap\" data-bg-animation=\"none\" data-bg-animation-delay=\"\" data-bg-overlay=\"true\"><div class=\"inner-wrap row-bg-layer using-image\" ><div class=\"row-bg viewport-desktop using-image\" data-parallax-speed=\"medium_fast\" style=\"background-image: url(https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-background-scaled.webp); background-position: center top; background-repeat: no-repeat; \"><\/div><\/div><div class=\"row-bg-overlay row-bg-layer\" style=\"background-color:rgba(10,10,10,0.59);  opacity: 0.3; \"><\/div><\/div><div class=\"row_col_wrap_12 col span_12 dark left\">\n\t<div  class=\"vc_col-sm-12 wpb_column column_container vc_column_container col no-extra-padding inherit_tablet inherit_phone \"  data-padding-pos=\"all\" data-has-bg-color=\"false\" data-bg-color=\"\" data-bg-opacity=\"1\" data-animation=\"\" data-delay=\"0\" >\n\t\t<div class=\"vc_column-inner\" >\n\t\t\t<div class=\"wpb_wrapper\">\n\t\t\t\t\n\t<div class=\"wpb_raw_code wpb_raw_html wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<script>\n\/\/ Mode verbeux (mets false plus tard)\nwindow.HB_DEBUG = true;\n\n(function () {\n  const TAG = 'HB-LANG';\n  function log(...a) { if (window.HB_DEBUG && window.console) console.log(`[${TAG}]`, ...a); }\n  function err(e) { if (window.console) console.error(`[${TAG}] ERROR:`, e); }\n\n  \/\/ -- Utils ---------------------------------------------------------\n  function getLang() {\n    const l = (document.documentElement.lang || '').toLowerCase();\n    \/\/ NEW (DE): ajoute la d\u00e9tection de l\u2019allemand\n    if (l.startsWith('de')) return 'de';           \/\/ NEW (DE)\n    if (l.startsWith('en')) return 'en';\n    return 'fr';\n  }\n\n  \/\/ D\u00e9truit les players globaux si pr\u00e9sents (\u00e9vite des \u00e9critures r\u00e9siduelles)\n  function disposePlayersIfAny() {\n    try {\n      if (window.YOUTUBE_PLAYER && typeof window.YOUTUBE_PLAYER.destroy === 'function') {\n        window.YOUTUBE_PLAYER.destroy();\n      }\n      if (window.SCENARIO_PLAYER && typeof window.SCENARIO_PLAYER.destroy === 'function') {\n        window.SCENARIO_PLAYER.destroy();\n      }\n    } catch (e) { err(e); }\n    window.YOUTUBE_PLAYER = null;\n    window.SCENARIO_PLAYER = null;\n  }\n\n  \/\/ Active les <script> d'un fragment.\n  let scriptsActivatedOnce = false;\n\n  function activateScripts(scope) {\n    if (scriptsActivatedOnce) {\n      scope.querySelectorAll('script[src]').forEach(old => {\n        const src = old.getAttribute('src') || '';\n        const isYT = \/youtube\\.com\\\/iframe_api\/.test(src);\n\n        if (isYT && document.querySelector('script[src*=\"youtube.com\/iframe_api\"]')) {\n          old.remove();\n          log('Skipped duplicate iframe_api');\n          return;\n        }\n        if (!document.querySelector(`script[src=\"${src}\"]`)) {\n          const s = document.createElement('script');\n          s.src = src;\n          for (const a of old.attributes) {\n            if (a.name !== 'src') s.setAttribute(a.name, a.value);\n          }\n          old.replaceWith(s);\n        } else {\n          old.remove();\n        }\n      });\n      return;\n    }\n\n    scope.querySelectorAll('script').forEach(old => {\n      const s = document.createElement('script');\n      for (const a of old.attributes) s.setAttribute(a.name, a.value);\n      s.text = old.text;\n\n      if (s.src && \/youtube\\.com\\\/iframe_api\/.test(s.src) &&\n          document.querySelector('script[src*=\"youtube.com\/iframe_api\"]')) {\n        old.remove();\n        log('Skipped duplicate iframe_api');\n        return;\n      }\n      old.replaceWith(s);\n    });\n\n    scriptsActivatedOnce = true;\n  }\n\n  function waitForElement(selector, {timeout = 15000} = {}) {\n    return new Promise((resolve, reject) => {\n      const existing = document.querySelector(selector);\n      if (existing) return resolve(existing);\n\n      const obs = new MutationObserver(() => {\n        const el = document.querySelector(selector);\n        if (el) {\n          obs.disconnect();\n          resolve(el);\n        }\n      });\n      obs.observe(document.documentElement || document.body, {childList: true, subtree: true});\n\n      if (timeout > 0) {\n        setTimeout(() => {\n          obs.disconnect();\n          const el = document.querySelector(selector);\n          el ? resolve(el) : reject(new Error(`Timeout waiting for ${selector}`));\n        }, timeout);\n      }\n    });\n  }\n\n  \/\/ -- \u00c9tat ----------------------------------------------------------\n  let root = null;\n  let tplFr = null;\n  let tplEn = null;\n  let tplDe = null;              \/\/ NEW (DE)\n  let mountedLang = null;\n  let langChangeTimer = null;\n  const LANG_DEBOUNCE_MS = 400;\n\n  function mount(lang) {\n    if (mountedLang === lang) {\n      log('Mount skipped (same lang):', lang);\n      return;\n    }\n    log('Mount begin:', lang);\n\n    if (!root) return log('No #app-root to mount into');\n\n    disposePlayersIfAny();\n\n    while (root.firstChild) root.removeChild(root.firstChild);\n\n    \/\/ NEW (DE): s\u00e9lectionne le bon template parmi fr \/ en \/ de\n    let tpl = null;                                      \/\/ NEW (DE)\n    if (lang === 'en') tpl = tplEn;                      \/\/ NEW (DE)\n    else if (lang === 'de') tpl = tplDe;                 \/\/ NEW (DE)\n    else tpl = tplFr;                                    \/\/ NEW (DE)\n\n    if (!tpl) { log('Missing template for', lang); return; }\n\n    const frag = tpl.content.cloneNode(true);\n    root.appendChild(frag);\n\n    activateScripts(root);\n\n    mountedLang = lang;\n    log('Mount done:', lang);\n\n    const badge = document.createElement('div');\n    badge.textContent = `UI ${lang.toUpperCase()} mounted`;\n    badge.style.cssText = 'position:fixed;bottom:8px;right:8px;padding:6px 10px;background:#222;color:#fff;font:12px monospace;border-radius:6px;opacity:.85;z-index:2147483647';\n    document.body.appendChild(badge);\n    setTimeout(() => badge.remove(), 1200);\n  }\n\n  async function ensureRootInMainApp() {\n    try {\n      const mainRow = await waitForElement('#mainApp', {timeout: 20000});\n      log('Found #mainApp:', mainRow);\n\n      if (!root) {\n        root = document.getElementById('app-root');\n      }\n      if (!root) {\n        root = document.createElement('div');\n        root.id = 'app-root';\n      }\n\n      if (root.parentElement !== mainRow) {\n        mainRow.prepend(root);\n        log('Inserted #app-root inside #mainApp');\n      }\n    } catch (e) {\n      err(e);\n      if (!root) {\n        root = document.createElement('div');\n        root.id = 'app-root';\n      }\n      if (!root.parentElement) document.body.appendChild(root);\n      log('#mainApp not found in time. Appended #app-root at end of <body>.');\n    }\n  }\n\n  function watchLangChanges() {\n    const mo = new MutationObserver(list => {\n      for (const m of list) {\n        if (m.type === 'attributes' && m.attributeName === 'lang') {\n          const next = getLang(); \/\/ fr \/ en \/ de\n          if (next === mountedLang) continue;\n          if (langChangeTimer) clearTimeout(langChangeTimer);\n          langChangeTimer = setTimeout(() => {\n            try { mount(getLang()); } catch (e) { err(e); }\n          }, LANG_DEBOUNCE_MS);\n        }\n      }\n    });\n    mo.observe(document.documentElement, { attributes: true, attributeFilter: ['lang'] });\n  }\n\n  function watchMainAppReplacement() {\n    const mo = new MutationObserver(() => {\n      const mainRow = document.getElementById('mainApp');\n      if (!mainRow) return;\n      if (!root) return;\n      if (root.parentElement !== mainRow) {\n        mainRow.prepend(root);\n        log('Re-inserted #app-root into #mainApp after replacement');\n      }\n    });\n    mo.observe(document.body, {childList: true, subtree: true});\n  }\n\n  \/\/ -- Boot ----------------------------------------------------------\n  window.addEventListener('DOMContentLoaded', async function () {\n    log('DOMContentLoaded fired');\n\n    try {\n      tplFr = document.getElementById('app-fr');\n      tplEn = document.getElementById('app-en');\n      tplDe = document.getElementById('app-de');      \/\/ NEW (DE)\n\n      log('Templates present?', { fr: !!tplFr, en: !!tplEn, de: !!tplDe }); \/\/ NEW (DE)\n      if (!tplFr && !tplEn && !tplDe) {               \/\/ NEW (DE)\n        log('No templates found. Aborting mount.');\n        const warn = document.createElement('div');\n        warn.textContent = 'HB: No templates found';\n        warn.style.cssText = 'position:fixed;top:8px;right:8px;background:#f44336;color:#fff;padding:6px 10px;border-radius:6px;font:12px monospace;z-index:2147483647';\n        document.body.appendChild(warn);\n        setTimeout(() => warn.remove(), 3000);\n        return;\n      }\n\n      await ensureRootInMainApp();\n\n      mount(getLang());\n\n      watchLangChanges();\n      watchMainAppReplacement();\n\n      \/\/ NEW (DE): helper \u00e9tendu aux 3 langues\n      window.setUILang = (lang) => {\n        log('setUILang called:', lang);\n        if (lang === 'en') document.documentElement.lang = 'en-US';\n        else if (lang === 'de') document.documentElement.lang = 'de-DE'; \/\/ NEW (DE)\n        else document.documentElement.lang = 'fr-CA';\n      };\n\n      window.HB_LANG_READY = true;\n      log('Script ready');\n    } catch (e) {\n      err(e);\n    }\n  });\n\n  window.addEventListener('error', function (e) {\n    if (window.console) console.error('[HB-LANG] window error:', e.message, e.filename, e.lineno + ':' + e.colno);\n  });\n})();\n<\/script>\n\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_raw_code wpb_raw_html wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<template id=\"app-fr\">\n\t<div class=\"textOver\">\n\t\t<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.7.0\/jquery.min.js\" type=\"text\/javascript\"><\/script>\n\t\t<script src=\"https:\/\/www.youtube.com\/iframe_api\"><\/script>\n\n\t\t<a id=\"audioPlayer\"><\/a>\n\n\n\t\t<div style=\"height:20vh;\"><\/div>\n\n\n\t\t<!-- AUDIOPLAYER -->\n\t\t  <div id=\"audiomenu\" data-no-dynamic-translation>\n\t\t\t<span id=\"audio-title\"><\/span>\n\t\t\t<br\/>\n\t\t\t<div class=\"centerDiv\">\n\t\t\t\t<input id=\"previous\" type=\"button\"\/>\n\t\t\t\t<input id=\"play\" type=\"button\"\/>\n\t\t\t\t<input id=\"pause\" type=\"button\" style=\"display:none;\"\/>\n\t\t\t\t<input id=\"next\" type=\"button\"\/>\n\t\t\t\t<input id=\"voldown\" type=\"button\"\/>\n\t\t\t\t<input id=\"volup\" type=\"button\"\/>\n\t\t\t\t<input id=\"showvideo\" style=\"display:none;\" type=\"button\" onclick=\"showVideo()\"\/>\n\t\t\t\t<div id=\"volbar\"><\/div>\n\t\t\t\t<div id=\"volbarInside\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<div id=\"audioplayer\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<input id=\"progress-bar\" type=\"range\" style=\"width: 300px;\"><br>\n\t\t\t\t<span id=\"current-time\"><\/span>\n\t\t\t\t<span> \/ <\/span>\n\t\t\t\t<span id=\"duration\"><\/span>\n\t\t\t\t<div id=\"looping\" style=\"display:none;\"><\/div>\n\t\t\t\t<div id=\"notWorking\">ou \u00e9coutez sur <a class=\"melodice\" href=\"https:\/\/melodice.org\/playlist\/hellbringer-2024\/\">melodice<\/a><\/div>\n\t\t\t<\/div>\n\n\t\t<!-- Track list -->\n\t\t\t<div id=\"tracks\">\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(0)\"><div class=\"textScenario\"><span class=\"trackNumber\">00.<\/span> Bande son compl\u00e8te<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(1)\"><div class=\"textScenario\"><span class=\"trackNumber\">01.<\/span> Marchand<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(2)\"><div class=\"textScenario\"><span class=\"trackNumber\">02.<\/span> Campagne<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(3)\"><div class=\"textScenario\"><span class=\"trackNumber\">03.<\/span> Cimeti\u00e8re<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(4)\"><div class=\"textScenario\"><span class=\"trackNumber\">04.<\/span> Crypte<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(5)\"><div class=\"textScenario\"><span class=\"trackNumber\">05.<\/span> Caverne<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(6)\"><div class=\"textScenario\"><span class=\"trackNumber\">06.<\/span> Enfer<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(7)\"><div class=\"textScenario\"><span class=\"trackNumber\">07.<\/span> Tombeau<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(8)\"><div class=\"textScenario\"><span class=\"trackNumber\">08.<\/span> D\u00e9mon<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(9)\"><div class=\"textScenario\"><span class=\"trackNumber\">09.<\/span> \u00c9pilogue<\/div><\/div>\n\t\t\t<\/div>\n\t\t  <\/div>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"narratedAudio\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- SCENARIO SELECTOR -->\n\t\t\t<div id=\"containerScenario\">\n\t\t\t\t<div id=\"currentScenarioTitle\" class=\"scenarioTitle\" onclick=\"openScenarioList()\"><div class=\"arrowScenarioTitle\">&#x25BC;<\/div>S\u00c9LECTIONNEZ UN SC\u00c9NARIO<\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"dropdownmenuScenario\">\n\t\t\t\t<div id=\"scenario10\" class=\"smallScenarioTitle\" onclick=\"setScenario(10)\"><div class=\"textScenario\">LE ROYAUME DE HELLBRINGER<\/div><\/div>\n\t\t\t\t<div id=\"scenario0\" class=\"smallScenarioTitle\" onclick=\"setScenario(0)\"><div class=\"textScenario\">TUTORIEL<\/div><\/div>\n\t\t\t\t<div id=\"scenario1\" class=\"smallScenarioTitle\" onclick=\"setScenario(1)\"><div class=\"textScenario\">SC\u00c9NARIO I - TOUR DE DARKLUST<\/div><\/div>\n\t\t\t\t<div id=\"scenario2\" class=\"smallScenarioTitle\" onclick=\"setScenario(2)\"><div class=\"textScenario\">SC\u00c9NARIO II - RUINES DE DUSTWIND<\/div><\/div>\n\t\t\t\t<div id=\"scenario3\" class=\"smallScenarioTitle\" onclick=\"setScenario(3)\"><div class=\"textScenario\">SC\u00c9NARIO III - CIMETI\u00c8RE DE BRACK'NAR<\/div><\/div>\n\t\t\t\t<div id=\"scenario4\" class=\"smallScenarioTitle\" onclick=\"setScenario(4)\"><div class=\"textScenario\">SC\u00c9NARIO IV - REPAIRE DE BLACKSTONE<\/div><\/div>\n\t\t\t\t<div id=\"scenario5\" class=\"smallScenarioTitle\" onclick=\"setScenario(5)\"><div class=\"textScenario\">SC\u00c9NARIO V - FOR\u00caT DE SCREEMGORE<\/div><\/div>\n\t\t\t\t<div id=\"scenario6\" class=\"smallScenarioTitle\" onclick=\"setScenario(6)\"><div class=\"textScenario\">SC\u00c9NARIO VI - TR\u00d4NE DE L'ANGE D\u00c9CHU<\/div><\/div>\n\t\t\t\t<div id=\"scenario7\" class=\"smallScenarioTitle\" onclick=\"setScenario(7)\"><div class=\"textScenario\">SC\u00c9NARIO VII - ANTRE DE FROSTBURN<\/div><\/div>\n\t\t\t\t<div id=\"scenario8\" class=\"smallScenarioTitle\" onclick=\"setScenario(8)\"><div class=\"textScenario\">SC\u00c9NARIO VIII - MINES DE FIRESPARK<\/div><\/div>\n\t\t\t\t<div id=\"scenario9\" class=\"smallScenarioTitle\" onclick=\"setScenario(9)\"><div class=\"textScenario\">SC\u00c9NARIO IX - LIBRAIRIE DE HELLSCROLL<\/div><\/div>\n\t\t\t\t<div id=\"scenario11\" class=\"smallScenarioTitle\" onclick=\"setScenario(11)\"><div class=\"textScenario\">\u00c9PILOGUE<\/div><\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"containerTome\">\n\t\t\t\t<a onclick=\"selectedTome(1)\" id=\"tome1\" class=\"tomeClass\">Tome I<\/a>\n\t\t\t\t<a onclick=\"selectedTome(2)\" id=\"tome2\" class=\"tomeClass\">Tome II<\/a>\n\t\t\t\t<a onclick=\"selectedTome(3)\" id=\"tome3\" class=\"tomeClass\">Tome III<\/a>\n\t\t\t\t<a onclick=\"selectedTome(4)\" id=\"tome4\" class=\"tomeClass\">Tome IV<\/a>\n\t\t\t\t<a onclick=\"selectedTome(5)\" id=\"tome5\" class=\"tomeClass\">Tome V<\/a>\n\t\t\t<\/div>\n\t\t\t<div id=\"containervideo\">\n\t\t\t\t<div id=\"videoplayer\" style=\"display:none;\"><\/div>\n\t\t\t\t<div id=\"tomeEffect\" style=\"display:none;\">\n\t\t\t\t\t<div id=\"tomeEffectIcon\"><\/div>\n\t\t\t\t\t<div id=\"tomeEffectIconText\">EFFET DU TOME<\/div>\n\t\t\t\t\t<div id=\"tomeEffectText\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"virtualDice\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- VIRTUAL DICE -->\n\t\t\t<div class=\"container2\">\n\t\t\t\t<div id=\"imageDice\"><\/div>\n\t\t\t\t<div id=\"numberR\"><\/div>\n\t\t\t\t<div id=\"numberV\"><\/div>\n\t\t\t\t<div id=\"total\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-haut\" onclick=\"chg('nbrouge', 1)\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-bas\" onclick=\"chg('nbrouge', -1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-haut\" onclick=\"chg('nbvert', 1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-bas\" onclick=\"chg('nbvert', -1)\"><\/div>\n\t\t\t\t<div id=\"diceInfo\" onclick=\"toggleInfo()\"><\/div>\n\t\t\t\t<div id=\"toggleInfo\" style=\"display:inline;\">\n\t\t\t\t\t<div id=\"diceInfoRouge\"><\/div>\n\t\t\t\t\t<div id=\"diceAverage\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceMaxResult\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceInfoVert\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<input type=\"input\" id=\"nbrouge\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbrouge', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<input type=\"input\" id=\"nbvert\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbvert', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<div onclick=\"roll()\" id=\"btn-roll\"><\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div style=\"height:10vh;\"><\/div>\n\t<\/div>\n\t\n\t\n\t\t\t<script>\n\t\t\t\/\/DICESCRIPT\n\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t  \n\t\t\t\tconst numberElementR = document.getElementById(\"numberR\");\n\t\t\t\tconst numberElementV = document.getElementById(\"numberV\");\n\t\t\t\tconst Drouge=new Array(0, 5, 5, 5, 10, 10);\n\t\t\t\tconst Dvert=new Array(0, 0, 5, 5, 5, 5);\n\n\t\t\t\tconst diceResultRouge = [];\n\t\t\t\tconst diceResultVert = [];\n\t\t\t\tlet toggleAllInfo = true;\n\t\t\t\t\n\t\t\t\tfunction updateNumber() {\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\tlet valRouge=0;\n\t\t\t\t\t\tlet valVert=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbrouge\").value);i++){\n\t\t\t\t\t\t\tresultRouge = Drouge[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultRouge.push(resultRouge);\n\t\t\t\t\t\t\tvalRouge += resultRouge;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbvert\").value);i++){\n\t\t\t\t\t\t\tresultVert = Dvert[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultVert.push(resultVert);\n\t\t\t\t\t\t\tvalVert += resultVert;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnumberElementR.innerHTML = valRouge;\n\t\t\t\t\t\tnumberElementV.innerHTML = valVert;\n\t\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = valRouge+valVert;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").style.display != \"\"){\n\t\t\t\t\t\t\tshowDiceResult();\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 100);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction toggleInfo(){\n\t\t\t\t\ttoggleAllInfo = !toggleAllInfo;\n\t\t\t\t\tif (toggleAllInfo == true){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif (toggleAllInfo == false){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"none\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction showDiceResult(){\n\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML == \"\" && document.getElementById(\"diceInfoVert\").innerHTML == \"\"){\n\t\t\t\t\t\tvar counterRouge= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultRouge.length-1 ;i++){\n\t\t\t\t\t\t\tcounterRouge++;\n\t\t\t\t\t\t\tif (counterRouge === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\tbrR = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIR = document.getElementById(\"diceInfoRouge\");\n\t\t\t\t\t\t\t\tdiceIR.appendChild(brR);\n\n\t\t\t\t\t\t\t\tcounterRouge = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultRouge.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif (diceResultRouge[i] == 5){\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar counterVert= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultVert.length-1 ;i++){\n\t\t\t\t\t\t\tcounterVert++;\n\t\t\t\t\t\t\tif (counterVert === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\tbrV = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIV = document.getElementById(\"diceInfoVert\");\n\t\t\t\t\t\t\t\tdiceIV.appendChild(brV);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcounterVert = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultVert.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]+' + ');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoVert\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\tfunction roll(){\n\t\t\t\t\twhile (diceResultRouge.length > 0) {\n\t\t\t\t\t\tdiceResultRouge.pop();\n\t\t\t\t\t}\n\t\t\t\t\twhile (diceResultVert.length > 0) {\n\t\t\t\t\t\tdiceResultVert.pop();\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").innerHTML = \"\";\n\t\t\t\t\tupdateNumber();\n\t\t\t\t}\n\t\t\t\tfunction onlyDigits(event) {\n\t\t\t\t\tvar code = event.which || event.keyCode;\n\t\t\t\t\tif (code < 48 || code > 57) {\n\t\t\t\t\t  event.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tlet diceRedAverage = 0;\n\t\t\tlet diceGreenAverage = 0;\n\t\t\tlet totalDiceAverage = 0;\n\t\t\tlet diceRedMax = 0;\n\t\t\tlet diceGreenMax = 0;\n\t\t\tlet totalDiceMaxResult = 0;\n\t\t\t\n\t\t\t\tfunction chg(e, n){\n\t\t\t\t\tlet nb=parseInt(document.getElementById(e).value)+n;\n\t\t\t\t\tif(nb<0){\n\t\t\t\t\t\tnb=0;\n\t\t\t\t\t}\n\t\t\t\t\tif(nb>99){\n\t\t\t\t\t\tnb=99;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbrouge\"){\n\t\t\t\t\t\tdiceRedAverage = nb*5.83;\n\t\t\t\t\t\tdiceRedMax = nb*10;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbvert\"){\n\t\t\t\t\t\tdiceGreenAverage = nb*3.33;\n\t\t\t\t\t\tdiceGreenMax = nb*5;\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceAverage\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceAverage\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceMaxResult\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(e).value = nb;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").innerHTML = \"\";\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceAverage = diceRedAverage + diceGreenAverage;\n\t\t\t\t\ttotalDiceAverage = Math.round(totalDiceAverage * 100) \/ 100;\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceMaxResult = diceRedMax + diceGreenMax;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(\"MOYENNE\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceAverage\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(totalDiceAverage);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(\"MAX\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceMaxResult\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(totalDiceMaxResult);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"numberR\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"numberV\").innerHTML = \"\";\n\t\t\t\t}\n\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t<script>\n\t\t\t\/\/SCENARIO SCRIPT\n\t\t\tvar selectedScenario = 9;\n\t\t\tvar tomeID = \"\";\n\t\t\t\n\t\t\t\/\/DROPDOWN MENU SCENARIO\n\t\t\tfunction openScenarioList() {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tcurrentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\tif(document.getElementById(\"dropdownmenuScenario\").className == \"show\"){\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25B2;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfunction setScenario(scenarioClicked) {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tnewScenario = document.getElementById(\"scenario\"+scenarioClicked).innerHTML;\n\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + newScenario.substring(26);\n\t\t\t\t\n\t\t\t\tvar currentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\t\n\t\t\t\tif (currentScenario.includes(\"TUTO\")){\n\t\t\t\t\tselectedScenario = 0;\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" I - \")){\n\t\t\t\t\tselectedScenario = 1;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" II - \")){\n\t\t\t\t\tselectedScenario = 2;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" III - \")){\n\t\t\t\t\tselectedScenario = 3;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IV - \")){\n\t\t\t\t\tselectedScenario = 4;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" V - \")){\n\t\t\t\t\tselectedScenario = 5;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VI - \")){\n\t\t\t\t\tselectedScenario = 6;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VII - \")){\n\t\t\t\t\tselectedScenario = 7;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VIII - \")){\n\t\t\t\t\tselectedScenario = 8;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IX - \")){\n\t\t\t\t\tselectedScenario = 9;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"HELLBRINGER\")){\n\t\t\t\t\tselectedScenario = 10;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"PILOGUE\")){\n\t\t\t\t\tselectedScenario = 11;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!(currentScenario.includes(\"HELLBRINGER\") || currentScenario.includes(\"PILOGUE\"))){\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"inline-block\";\n\t\t\t\t}\n\t\t\t\tselectedTome(1);\n\t\t\t}\n\t\t\t\n\t\t\tfunction selectedTome(tomeNumber){\n\t\t\t\tif (tomeNumber == 1){ \/\/TOME 1\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"6_mWTxiI7Kk\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"10Da0EIBv6c\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"72tjWWF_S3M\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"R50CdUparo4\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"SgFEb-CCUnw\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"qwYf2W32HPc\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"4D2-xu-UI1o\"; \n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"h2m1Qs1TvY4\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"1Jx87YjsW_g\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"z6IYCrGlZHk\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\ttomeID = \"eRZRRkvPbQM\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\ttomeID = \"0lKywH1nzAk\";\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.backgroundColor = \"rgba(114, 1, 2, 0.9)\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 2){ \/\/TOME 2\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"0HqRhjLqsAo\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche une carte sous la pioche Monstre \u00e0 tous les joueurs et l\u2019ajoute face cach\u00e9e dans leur XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"5L7NlHOfgO4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche une carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e dans ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"qpVHma_1sRE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome \u00e9limine un ennemi en jeu imm\u00e9diatement\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"xppmzLh1ZN4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche 1 carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e \u00e0 la section +1 Point d'action de ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"xZHtrTsMfI4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche une carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e \u00e0 la section +1 Perception de ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"k8UE90V-zQA\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche une carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e \u00e0 la section +5 Points de vie de ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"DuBd753B5FU\"; \n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche 1 carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e \u00e0 la section +1 Points de Comp\u00e9tence de ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"0KAyDOyd6vw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche une carte sous la pioche Monstre et l\u2019ajoute face cach\u00e9e \u00e0 la section +10 Points d'armure de ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"DMrXR15ccqI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome \u00e9limine un ennemi HORS VUE imm\u00e9diatement\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"uoq2x6va31s\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome peut s\u00e9lectionner les joueurs qui peuvent piocher 1 sous la pioche Commune\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.backgroundColor = \"rgba(114, 1, 2, 0.9)\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 3){ \/\/TOME 3\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"IQYmEHtIAG4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"D\u00e9voilez 5 cartes sous la pioche Commune<br> Chaque joueur s\u00e9lectionne une carte et l\u2019ajoute \u00e0 sa main<br>D\u00e9faussez les cartes restantes\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"YWVMKmDB1pE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le bonus des cartes Emplacement n\u2019est pas appliqu\u00e9 jusqu\u2019\u00e0 la fin du prochain Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"8zCe5bThbtM\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"D\u00e9voilez 5 cartes sous la d\u00e9fausse Commune<br>Chaque joueur s\u00e9lectionne une carte<br>D\u00e9faussez les cartes d\u00e9voil\u00e9es une fois termin\u00e9\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"V1zcRU9Zwh8\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome \u00e9limine un ennemi EN VUE imm\u00e9diatement\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"3TzZx1JBrx0\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Les Habilet\u00e9s des ennemis ne sont pas appliqu\u00e9s jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"gURSEu50Wg0\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Tous les joueurs piochent 1 carte sous la pioche Commune\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"ux5KkQgChLU\"; \n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"D\u00e9voilez 5 cartes sous la pioche Commune<br>Les joueurs peuvent \u00e9changer une de leurs cartes en main avec n'importe laquelle des cartes r\u00e9v\u00e9l\u00e9es<br>D\u00e9faussez les cartes d\u00e9voil\u00e9es une fois termin\u00e9\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"s7Rj1b1KzJA\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome pioche le premier Compagnon de la d\u00e9fausse Commune\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"VCUnld38tiQ\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"M\u00e9langez la d\u00e9fausse de la pioche Commune et distribuez 1 carte \u00e0 chaque joueur\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"5wjgDZOGckE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome peut s\u00e9lectionner les joueurs qui peuvent piocher 1 carte sous la pioche Monstre et l'ajoute face cach\u00e9e \u00e0 ses XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.backgroundColor = \"rgba(114, 1, 2, 0.9)\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 4){ \/\/TOME 4\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"oRIt6L4YyAs\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur pioche 2 cartes sous la pioche Commune, en s\u00e9lectionne une et d\u00e9fausse la carte restante\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"aE8N71o9OrE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome peut RETIRER un ennemi en jeu et piocher 1 Monstre\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"o915Ouo5FV8\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur peut d\u00e9fausser jusqu'\u00e0 3 cartes en main et en pioche le m\u00eame nombre sous la pioche Commune\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"iBcry_wI8jE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome peut RETIRER jusqu\u2019\u00e0 2 Monstres en jeu et en pioche le m\u00eame nombre<br>(les ennemis sont retir\u00e9s et non pas \u00e9limin\u00e9s)\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"aBSXgBnMO0s\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Tous les ennemis sont consid\u00e9r\u00e9s EN VUE jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"KwKRWopdQmY\"; \n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Les joueurs peuvent \u00e9changer autant de cartes qu'ils le souhaitent jusqu'\u00e0 la fin du Tour des ennemis.\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"LSVPwZm3hjk\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Tous les Compagnons ignorent les Attaques et Habilet\u00e9s jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"iK20ACGByS4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Les Attaques et Habilet\u00e9s des ennemis HORS VUE sont ignor\u00e9es jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"sP_jxV9czd4\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur qui a activ\u00e9 cet Effet du Tome ignore les Habilet\u00e9s des ennemis jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.backgroundColor = \"rgba(114, 1, 2, 0.9)\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 5){ \/\/TOME 5\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"5wBFa-RiDx0\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur peut r\u00e9organiser ses cartes XP et peut les partager avec les autres joueurs en respectant la r\u00e8gle Partage de point d\u2019attribut\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"m7dHhtAywgU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"D\u00e9voilez 4 cartes sous la pioche Commune, s\u00e9lectionnez-en 2<br>et placez-les sur la pioche Commune<br>D\u00e9faussez les cartes d\u00e9voil\u00e9es une fois termin\u00e9\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"a9z_Cb7hk00\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"RESSUSCITEZ tous les JOUEURS \u00e9limin\u00e9s d\u00e8s la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"pXtBCrK1gIg\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome place une carte ennemie face cach\u00e9e jusqu\u2019\u00e0 la fin du Tour des ennemis<br>Pendant ce temps, cet ennemi ne peut pas attaquer ou \u00eatre attaqu\u00e9<br>Lors de la fin du Tour des ennemis, la carte est d\u00e9voil\u00e9e\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"_-_wMTS-pKE\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jusqu\u2019\u00e0 la fin du prochain Tour des ennemis, la r\u00e8gle de Perception est invers\u00e9e :<br>Les joueurs doivent avoir un nombre inf\u00e9rieur \u00e0 celui de l\u2019ennemi pour que celui-ci soit consid\u00e9r\u00e9 EN VUE, sans quoi l'ennemi est HORS VUE\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"IZBBJthYFxc\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Chaque joueur peut permuter autant de cartes XP entre les sections +1 Perception et +10 Points d'armure\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"LLxyvPAPPUo\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur ayant activ\u00e9 l\u2019Effet du Tome R\u00c9CUP\u00c8RE une carte de la d\u00e9fausse Commune\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"oWLf8cdke3g\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Lors de son tour, un joueur peut Relancer 4 D\u00e9s de d\u00e9g\u00e2ts jusqu\u2019\u00e0 la fin du Tour des ennemis\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"RgeQTnEom4U\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Le joueur qui a activ\u00e9 cet Effet du Tome peut piocher 2 Monstres pour annuler l\u2019EFFET SP\u00c9CIAL du sc\u00e9nario en cours\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.backgroundColor = \"rgba(0, 0, 0, 0.5)\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.backgroundColor = \"rgba(114, 1, 2, 0.9)\";\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\"videoplayer\").style.display = \"inline\";\n\t\t\t\t\n\t\t\t\tif (tomeNumber == 1){\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"none\";\n\t\t\t\t} else {\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"inline-flex\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdocument.getElementById(\"containervideo\").style.backgroundImage = \"none\";\n\t\t\t\tSCENARIO_PLAYER.loadVideoById(tomeID);\n\t\t\t}\n\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t<script>\n\t\t\/\/AUDIOSCRIPT\n\t\t\tvar YOUTUBE_PLAYER,\n\t\t\t  YOUTUBE_PLAYER_EL = \"audioplayer\",\n\t\t\t  START_TIME = \"0:00\",\n\t\t\t  END_TIME = \"2:00\",\n\t\t\t  PLAY_EL = \"#play\",\n\t\t\t  PAUSE_EL = \"#pause\",\n\t\t\t  VOLUP_EL = \"#volup\",\n\t\t\t  VOLDOWN_EL = \"#voldown\",\n\t\t\t  PREVIOUS_EL = \"#previous\",\n\t\t\t  NEXT_EL = \"#next\",\n\t\t\t  PROGRESS_BAR_EL = \"#progress-bar\",\n\t\t\t  CURRENT_TIME_EL = \"#current-time\",\n\t\t\t  DURATION_EL = \"#duration\",\n\t\t\t  VOLUME = 0;\n\n\t\t\tfunction onYouTubeIframeAPIReady() {\n\t\t\t\/\/SCRIPT POUR AUDIO PLAYER\n\t\t\t\tYOUTUBE_PLAYER = new YT.Player(YOUTUBE_PLAYER_EL, {\n\t\t\t\t\twidth: 600,\n\t\t\t\t\theight: 400,\n\t\t\t\t\tvideoId: \"2fhXuFES1bE\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tlistType: 'playList',\n\t\t\t\t\t\tlist: 'PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V',\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tdisablekb: 1,\n\t\t\t\t\t\tstart: minutesToSeconds(START_TIME),\n\t\t\t\t\t\tend: minutesToSeconds(END_TIME),\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 0,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t},\n\t\t\t\t\tevents: {\n\t\t\t\t\t\tonStateChange: onStateChangeYT,\n\t\t\t\t\t\tonReady: () => initialize(START_TIME, END_TIME, YOUTUBE_PLAYER, PLAY_EL, PAUSE_EL, VOLUP_EL, VOLDOWN_EL, PREVIOUS_EL, NEXT_EL, PROGRESS_BAR_EL, CURRENT_TIME_EL, DURATION_EL)\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\/\/SCRIPT POUR SCENARIO PLAYER\n\t\t\t\tSCENARIO_PLAYER = new YT.Player(\"videoplayer\", {\n\t\t\t\t\twidth: 680,\n\t\t\t\t\theight: 557,\n\t\t\t\t\tvideoId: \"hTTaqW5rSyo\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 1,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\tfunction onStateChangeYT(state){\n\t\t\t\tif (state.data === YT.PlayerState.ENDED) {\n\t\t\t\t\tYOUTUBE_PLAYER.seekTo(0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction initialize(videoStartTime, videoEndTime, playerObj, playId, pauseId, volupId, voldownId, previousId, nextId, progressBarId, currentTimeId, durationId) {\n\t\t\t\tdocument.getElementById(YOUTUBE_PLAYER_EL).style.display = \"none\";\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\tif (VOLUME == 100) {\n\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\tif (VOLUME == 0) {\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t\n\t\t\t\t$(playId).on('click', () => {\n\t\t\t\t\tplayerObj.getPlayerState() === 0\n\t\t\t\t\t? playerObj.seekTo(minutesToSeconds(videoStartTime)) \n\t\t\t\t\t\t: null;\n\t\t\t\t\tplayerObj.playVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(pauseId).on('click', () => {\n\t\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"none\";\n\t\t\t\t});\n\n\t\t\t\t$(volupId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 100) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME + 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME >= 90) {\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(voldownId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 0) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME - 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)-0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME <= 10) {\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(previousId).on('click', () => {\n\t\t\t\t\tplayerObj.previousVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(nextId).on('click', () => {\n\t\t\t\t\tplayerObj.nextVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\t\t\t  \n\t\t\t  var maxTime = formatTime(playerObj.getDuration());\n\t\t\t  \n\t\t\t  $(currentTimeId).text(formatTime(playerObj.getCurrentTime()));\n\t\t\t  $(progressBarId)\n\t\t\t\t   .attr('min', minutesToSeconds(videoStartTime))\n\t\t\t\t  .attr('max', minutesToSeconds(maxTime))\n\t\t\t\t\t  .on('mouseup touchend', e => playerObj.seekTo(e.target.value));\n\n\t\t\t\tplayerObj.seekTo(minutesToSeconds(videoStartTime));\n\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\n\t\t\t\tlet time_update_interval = setInterval(() => {\n\t\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\t\t\t\t}, 1000);\n\t\t\tplayerObj.pauseVideo();\n\t\t\t}\n\n\t\t\tfunction doUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime) {\n\t\t\t\tupdateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime);\n\t\t\t\tupdateProgressBar(progressBarId, playerObj);\n\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t}\n\t\t\t\t  }\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t}\n\n\t\t\tfunction updateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime) {\n\t\t\t\tif(playerObj.getCurrentTime() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"current-time\").innerText;\n\t\t\t\t\tvar currentTime = formatTime(playerObj.getCurrentTime());\n\t\t\t\t\tif (currentText != currentTime){\n\t\t\t\t\t\t$(currentTimeId).text(currentTime);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(playerObj.getDuration() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"duration\").innerText;\n\t\t\t\t\tvar currentDuration = formatTime(playerObj.getDuration());\n\t\t\t\t\tif (currentText != currentDuration){\n\t\t\t\t\t\t$(durationId).text(currentDuration);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction formatTime(time) {\n\t\t\t\ttime = Math.round(time);\n\t\t\t\tlet minutes = Math.floor(time \/ 60),\n\t\t\t\t\tseconds = time - minutes * 60;\n\t\t\t\t\tseconds = seconds < 10 ? '0' + seconds : seconds;\n\t\t\t\treturn minutes + \":\" + seconds;\n\t\t\t}\n\n\t\t\tfunction updateProgressBar(progressBarId, playerObj) {\n\t\t\t\tvar maxTime = formatTime(playerObj.getDuration());\n\t\t\t\tdocument.getElementById(\"progress-bar\").setAttribute(\"max\", minutesToSeconds(maxTime));\n\t\t\t\t$(progressBarId).val(playerObj.getCurrentTime());\n\t\t\t}\n\t\t\t\n\t\t\tfunction minutesToSeconds(mins) {\n\t\t\t\tlet p = mins.split(\":\");\n\t\t\t\treturn Number((Number(p[0]) * 60 + Number(p[1])).toFixed(3));\n\t\t\t}\n\n\t\t\tfunction showVideo(){\n\t\t\t\tif(document.getElementById(\"audioplayer\").style.display != \"none\"){\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t   function setTrack(trackNumber){\n\t\t\t   var newTrack = \"\";\n\t\t\t   \n\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next-d.png)\";\n\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous-d.png)\";\n\t\t\t\tdocument.getElementById(\"next\").disabled = true;\n\t\t\t\tdocument.getElementById(\"previous\").disabled = true;\n\t\t\t\tdocument.getElementById(\"looping\").style.display = \"inline-block\";\n\t\t\t   \n\t\t\t\tswitch(trackNumber) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\/\/Full playlist\n\t\t\t\t\t\tnewTrack = \"PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"previous\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"looping\").style.display = \"none\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\/\/Stormshield\t\n\t\t\t\t\t\tnewTrack = \"2fhXuFES1bE\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\/\/Campaign\n\t\t\t\t\t\tnewTrack = \"cepxnmci_HQ\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\/\/Graveyard\n\t\t\t\t\t\tnewTrack = \"9Wu96n_IAMc\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\/\/Crypt\n\t\t\t\t\t\tnewTrack = \"90eiI_xjpk4\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\/\/Cave\n\t\t\t\t\t\tnewTrack = \"g_hDq8_UqJo\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\/\/Hell\n\t\t\t\t\t\tnewTrack = \"r8GlN0nfK9Q\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\/\/Tomb\n\t\t\t\t\t\tnewTrack = \"esZKFhAR9aI\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\/\/Demon\n\t\t\t\t\t\tnewTrack = \"mpM9HDMxE-k\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\/\/\u00c9pilogue\n\t\t\t\t\t\tnewTrack = \"qzTNTLlXis4\";\n\t\t\t\t\t\tbreak;\n\t\t\t  }\n\t\t\tif(trackNumber != 0){\n\t\t\t\tYOUTUBE_PLAYER.loadVideoById(newTrack);\n\t\t\t}else{\n\t\t\t\tYOUTUBE_PLAYER.loadPlaylist({list: newTrack, index: 0});\n\t\t\t}\n\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t   }\n\t\t\t<\/script>\n<\/template>\n\n<template id=\"app-en\">\n\t<div class=\"textOver\">\n\t\t<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.7.0\/jquery.min.js\" type=\"text\/javascript\"><\/script>\n\t\t<script src=\"https:\/\/www.youtube.com\/iframe_api\"><\/script>\n\n\t\t<a id=\"audioPlayer\"><\/a>\n\n\n\t\t<div style=\"height:20vh;\"><\/div>\n\n\n\t\t<!-- AUDIOPLAYER -->\n\t\t  <div id=\"audiomenu\" data-no-dynamic-translation>\n\t\t\t<span id=\"audio-title\"><\/span>\n\t\t\t<br\/>\n\t\t\t<div class=\"centerDiv\">\n\t\t\t\t<input id=\"previous\" type=\"button\"\/>\n\t\t\t\t<input id=\"play\" type=\"button\"\/>\n\t\t\t\t<input id=\"pause\" type=\"button\" style=\"display:none;\"\/>\n\t\t\t\t<input id=\"next\" type=\"button\"\/>\n\t\t\t\t<input id=\"voldown\" type=\"button\"\/>\n\t\t\t\t<input id=\"volup\" type=\"button\"\/>\n\t\t\t\t<input id=\"showvideo\" style=\"display:none;\" type=\"button\" onclick=\"showVideo()\"\/>\n\t\t\t\t<div id=\"volbar\"><\/div>\n\t\t\t\t<div id=\"volbarInside\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<div id=\"audioplayer\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<input id=\"progress-bar\" type=\"range\" style=\"width: 300px;\"><br>\n\t\t\t\t<span id=\"current-time\"><\/span>\n\t\t\t\t<span> \/ <\/span>\n\t\t\t\t<span id=\"duration\"><\/span>\n\t\t\t\t<div id=\"looping\" style=\"display:none;\"><\/div>\n\t\t\t\t<div id=\"notWorking\">or listen on <a href=\"https:\/\/melodice.org\/playlist\/hellbringer-2024\/\">melodice<\/a><\/div>\n\t\t\t<\/div>\n\n\t\t<!-- Track list -->\n\t\t\t<div id=\"tracks\">\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(0)\"><div class=\"textScenario\"><span class=\"trackNumber\">00.<\/span> Full soundtrack<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(1)\"><div class=\"textScenario\"><span class=\"trackNumber\">01.<\/span> Merchant<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(2)\"><div class=\"textScenario\"><span class=\"trackNumber\">02.<\/span> Campaign<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(3)\"><div class=\"textScenario\"><span class=\"trackNumber\">03.<\/span> Graveyard<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(4)\"><div class=\"textScenario\"><span class=\"trackNumber\">04.<\/span> Crypt<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(5)\"><div class=\"textScenario\"><span class=\"trackNumber\">05.<\/span> Cave<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(6)\"><div class=\"textScenario\"><span class=\"trackNumber\">06.<\/span> Hell<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(7)\"><div class=\"textScenario\"><span class=\"trackNumber\">07.<\/span> Tomb<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(8)\"><div class=\"textScenario\"><span class=\"trackNumber\">08.<\/span> Demon<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(9)\"><div class=\"textScenario\"><span class=\"trackNumber\">09.<\/span> Epilogue<\/div><\/div>\n\t\t\t<\/div>\n\t\t  <\/div>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"narratedAudio\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- SCENARIO SELECTOR -->\n\t\t\t<div id=\"containerScenario\">\n\t\t\t\t<div id=\"currentScenarioTitle\" class=\"scenarioTitle\" onclick=\"openScenarioList()\"><div class=\"arrowScenarioTitle\">&#x25BC;<\/div>SELECT A SCENARIO<\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"dropdownmenuScenario\">\n\t\t\t\t<div id=\"scenario10\" class=\"smallScenarioTitle\" onclick=\"setScenario(10)\"><div class=\"textScenario\">HELLBRINGER'S REALM<\/div><\/div>\n\t\t\t\t<div id=\"scenario0\" class=\"smallScenarioTitle\" onclick=\"setScenario(0)\"><div class=\"textScenario\">TUTORIAL<\/div><\/div>\n\t\t\t\t<div id=\"scenario1\" class=\"smallScenarioTitle\" onclick=\"setScenario(1)\"><div class=\"textScenario\">SCENARIO I - DARKLUST TOWER<\/div><\/div>\n\t\t\t\t<div id=\"scenario2\" class=\"smallScenarioTitle\" onclick=\"setScenario(2)\"><div class=\"textScenario\">SCENARIO II - DUSTWIND RUINS<\/div><\/div>\n\t\t\t\t<div id=\"scenario3\" class=\"smallScenarioTitle\" onclick=\"setScenario(3)\"><div class=\"textScenario\">SCENARIO III - BRACK'NAR GRAVEYARD<\/div><\/div>\n\t\t\t\t<div id=\"scenario4\" class=\"smallScenarioTitle\" onclick=\"setScenario(4)\"><div class=\"textScenario\">SCENARIO IV - BLACKSTONE DEN<\/div><\/div>\n\t\t\t\t<div id=\"scenario5\" class=\"smallScenarioTitle\" onclick=\"setScenario(5)\"><div class=\"textScenario\">SCENARIO V - SCREEMGORE FOREST<\/div><\/div>\n\t\t\t\t<div id=\"scenario6\" class=\"smallScenarioTitle\" onclick=\"setScenario(6)\"><div class=\"textScenario\">SCENARIO VI - FALLENWINGS THRONE<\/div><\/div>\n\t\t\t\t<div id=\"scenario7\" class=\"smallScenarioTitle\" onclick=\"setScenario(7)\"><div class=\"textScenario\">SCENARIO VII - FROSTBURN LAIR<\/div><\/div>\n\t\t\t\t<div id=\"scenario8\" class=\"smallScenarioTitle\" onclick=\"setScenario(8)\"><div class=\"textScenario\">SCENARIO VIII - FIRESPARK MINES<\/div><\/div>\n\t\t\t\t<div id=\"scenario9\" class=\"smallScenarioTitle\" onclick=\"setScenario(9)\"><div class=\"textScenario\">SCENARIO IX - THE HELLSCROLL LIBRARY<\/div><\/div>\n\t\t\t\t<div id=\"scenario11\" class=\"smallScenarioTitle\" onclick=\"setScenario(11)\"><div class=\"textScenario\">EPILOGUE<\/div><\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"containerTome\">\n\t\t\t\t<a onclick=\"selectedTome(1)\" id=\"tome1\" class=\"tomeClass\">Tome I<\/a>\n\t\t\t\t<a onclick=\"selectedTome(2)\" id=\"tome2\" class=\"tomeClass\">Tome II<\/a>\n\t\t\t\t<a onclick=\"selectedTome(3)\" id=\"tome3\" class=\"tomeClass\">Tome III<\/a>\n\t\t\t\t<a onclick=\"selectedTome(4)\" id=\"tome4\" class=\"tomeClass\">Tome IV<\/a>\n\t\t\t\t<a onclick=\"selectedTome(5)\" id=\"tome5\" class=\"tomeClass\">Tome V<\/a>\n\t\t\t<\/div>\n\t\t\t<div id=\"containervideo\">\n\t\t\t\t\t<div id=\"videoplayer\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"tomeEffect\" style=\"display:none;\">\n\t\t\t\t\t\t<div id=\"tomeEffectIcon\"><\/div>\n\t\t\t\t\t\t<div id=\"tomeEffectIconText\">TOME'S EFFECT<\/div>\n\t\t\t\t\t\t<div id=\"tomeEffectText\"><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"virtualDice\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- VIRTUAL DICE -->\n\t\t\t<div class=\"container2\">\n\t\t\t\t<div id=\"imageDice\"><\/div>\n\t\t\t\t<div id=\"numberR\"><\/div>\n\t\t\t\t<div id=\"numberV\"><\/div>\n\t\t\t\t<div id=\"total\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-haut\" onclick=\"chg('nbrouge', 1)\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-bas\" onclick=\"chg('nbrouge', -1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-haut\" onclick=\"chg('nbvert', 1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-bas\" onclick=\"chg('nbvert', -1)\"><\/div>\n\t\t\t\t<div id=\"diceInfo\" onclick=\"toggleInfo()\"><\/div>\n\t\t\t\t<div id=\"toggleInfo\" style=\"display:inline;\">\n\t\t\t\t\t<div id=\"diceInfoRouge\"><\/div>\n\t\t\t\t\t<div id=\"diceAverage\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceMaxResult\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceInfoVert\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<input type=\"input\" id=\"nbrouge\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbrouge', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<input type=\"input\" id=\"nbvert\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbvert', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<div onclick=\"roll()\" id=\"btn-roll\"><\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t  <div style=\"height:10vh;\"><\/div>\n\t<\/div>\n\t\t\t<script>\n\t\t\t\/\/AUDIOSCRIPT\n\t\t\tvar YOUTUBE_PLAYER,\n\t\t\t  YOUTUBE_PLAYER_EL = \"audioplayer\",\n\t\t\t  START_TIME = \"0:00\",\n\t\t\t  END_TIME = \"2:00\",\n\t\t\t  PLAY_EL = \"#play\",\n\t\t\t  PAUSE_EL = \"#pause\",\n\t\t\t  VOLUP_EL = \"#volup\",\n\t\t\t  VOLDOWN_EL = \"#voldown\",\n\t\t\t  PREVIOUS_EL = \"#previous\",\n\t\t\t  NEXT_EL = \"#next\",\n\t\t\t  PROGRESS_BAR_EL = \"#progress-bar\",\n\t\t\t  CURRENT_TIME_EL = \"#current-time\",\n\t\t\t  DURATION_EL = \"#duration\",\n\t\t\t  VOLUME = 0;\n\n\t\t\tfunction onYouTubeIframeAPIReady() {\n\t\t\t\/\/SCRIPT POUR AUDIO PLAYER\n\t\t\t\tYOUTUBE_PLAYER = new YT.Player(YOUTUBE_PLAYER_EL, {\n\t\t\t\t\twidth: 600,\n\t\t\t\t\theight: 400,\n\t\t\t\t\tvideoId: \"2fhXuFES1bE\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tlistType: 'playList',\n\t\t\t\t\t\tlist: 'PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V',\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tdisablekb: 1,\n\t\t\t\t\t\tstart: minutesToSeconds(START_TIME),\n\t\t\t\t\t\tend: minutesToSeconds(END_TIME),\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 0,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t},\n\t\t\t\t\tevents: {\n\t\t\t\t\t\tonStateChange: onStateChangeYT,\n\t\t\t\t\t\tonReady: () => initialize(START_TIME, END_TIME, YOUTUBE_PLAYER, PLAY_EL, PAUSE_EL, VOLUP_EL, VOLDOWN_EL, PREVIOUS_EL, NEXT_EL, PROGRESS_BAR_EL, CURRENT_TIME_EL, DURATION_EL)\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\/\/SCRIPT POUR SCENARIO PLAYER\n\t\t\t\tSCENARIO_PLAYER = new YT.Player(\"videoplayer\", {\n\t\t\t\t\twidth: 680,\n\t\t\t\t\theight: 557,\n\t\t\t\t\tvideoId: \"hTTaqW5rSyo\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 1,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\tfunction onStateChangeYT(state){\n\t\t\t\tif (state.data === YT.PlayerState.ENDED) {\n\t\t\t\t\tYOUTUBE_PLAYER.seekTo(0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction initialize(videoStartTime, videoEndTime, playerObj, playId, pauseId, volupId, voldownId, previousId, nextId, progressBarId, currentTimeId, durationId) {\n\t\t\t\tdocument.getElementById(YOUTUBE_PLAYER_EL).style.display = \"none\";\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\tif (VOLUME == 100) {\n\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\tif (VOLUME == 0) {\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t\n\t\t\t\t$(playId).on('click', () => {\n\t\t\t\t\tplayerObj.getPlayerState() === 0\n\t\t\t\t\t? playerObj.seekTo(minutesToSeconds(videoStartTime)) \n\t\t\t\t\t\t: null;\n\t\t\t\t\tplayerObj.playVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(pauseId).on('click', () => {\n\t\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"none\";\n\t\t\t\t});\n\n\t\t\t\t$(volupId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 100) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME + 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME >= 90) {\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(voldownId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 0) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME - 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)-0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME <= 10) {\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(previousId).on('click', () => {\n\t\t\t\t\tplayerObj.previousVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(nextId).on('click', () => {\n\t\t\t\t\tplayerObj.nextVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\t\t\t  \n\t\t\t  var maxTime = formatTime(playerObj.getDuration());\n\t\t\t  \n\t\t\t  $(currentTimeId).text(formatTime(playerObj.getCurrentTime()));\n\t\t\t  $(progressBarId)\n\t\t\t\t   .attr('min', minutesToSeconds(videoStartTime))\n\t\t\t\t  .attr('max', minutesToSeconds(maxTime))\n\t\t\t\t\t  .on('mouseup touchend', e => playerObj.seekTo(e.target.value));\n\n\t\t\t\tplayerObj.seekTo(minutesToSeconds(videoStartTime));\n\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\n\t\t\t\tlet time_update_interval = setInterval(() => {\n\t\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\t\t\t\t}, 1000);\n\t\t\tplayerObj.pauseVideo();\n\t\t\t}\n\n\t\t\tfunction doUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime) {\n\t\t\t\tupdateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime);\n\t\t\t\tupdateProgressBar(progressBarId, playerObj);\n\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t}\n\t\t\t\t  }\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t}\n\n\t\t\tfunction updateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime) {\n\t\t\t\tif(playerObj.getCurrentTime() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"current-time\").innerText;\n\t\t\t\t\tvar currentTime = formatTime(playerObj.getCurrentTime());\n\t\t\t\t\tif (currentText != currentTime){\n\t\t\t\t\t\t$(currentTimeId).text(currentTime);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(playerObj.getDuration() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"duration\").innerText;\n\t\t\t\t\tvar currentDuration = formatTime(playerObj.getDuration());\n\t\t\t\t\tif (currentText != currentDuration){\n\t\t\t\t\t\t$(durationId).text(currentDuration);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction formatTime(time) {\n\t\t\t\ttime = Math.round(time);\n\t\t\t\tlet minutes = Math.floor(time \/ 60),\n\t\t\t\t\tseconds = time - minutes * 60;\n\t\t\t\t\tseconds = seconds < 10 ? '0' + seconds : seconds;\n\t\t\t\treturn minutes + \":\" + seconds;\n\t\t\t}\n\n\t\t\tfunction updateProgressBar(progressBarId, playerObj) {\n\t\t\t\tvar maxTime = formatTime(playerObj.getDuration());\n\t\t\t\tdocument.getElementById(\"progress-bar\").setAttribute(\"max\", minutesToSeconds(maxTime));\n\t\t\t\t$(progressBarId).val(playerObj.getCurrentTime());\n\t\t\t}\n\t\t\t\n\t\t\tfunction minutesToSeconds(mins) {\n\t\t\t\tlet p = mins.split(\":\");\n\t\t\t\treturn Number((Number(p[0]) * 60 + Number(p[1])).toFixed(3));\n\t\t\t}\n\n\t\t\tfunction showVideo(){\n\t\t\t\tif(document.getElementById(\"audioplayer\").style.display != \"none\"){\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t   function setTrack(trackNumber){\n\t\t\t   var newTrack = \"\";\n\t\t\t   \n\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next-d.png)\";\n\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous-d.png)\";\n\t\t\t\tdocument.getElementById(\"next\").disabled = true;\n\t\t\t\tdocument.getElementById(\"previous\").disabled = true;\n\t\t\t\tdocument.getElementById(\"looping\").style.display = \"inline-block\";\n\t\t\t   \n\t\t\t\tswitch(trackNumber) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\/\/Full playlist\n\t\t\t\t\t\tnewTrack = \"PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"previous\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"looping\").style.display = \"none\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\/\/Stormshield\t\n\t\t\t\t\t\tnewTrack = \"2fhXuFES1bE\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\/\/Campaign\n\t\t\t\t\t\tnewTrack = \"cepxnmci_HQ\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\/\/Graveyard\n\t\t\t\t\t\tnewTrack = \"9Wu96n_IAMc\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\/\/Crypt\n\t\t\t\t\t\tnewTrack = \"90eiI_xjpk4\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\/\/Cave\n\t\t\t\t\t\tnewTrack = \"g_hDq8_UqJo\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\/\/Hell\n\t\t\t\t\t\tnewTrack = \"r8GlN0nfK9Q\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\/\/Tomb\n\t\t\t\t\t\tnewTrack = \"esZKFhAR9aI\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\/\/Demon\n\t\t\t\t\t\tnewTrack = \"mpM9HDMxE-k\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\/\/\u00c9pilogue\n\t\t\t\t\t\tnewTrack = \"qzTNTLlXis4\";\n\t\t\t\t\t\tbreak;\n\t\t\t  }\n\t\t\tif(trackNumber != 0){\n\t\t\t\tYOUTUBE_PLAYER.loadVideoById(newTrack);\n\t\t\t}else{\n\t\t\t\tYOUTUBE_PLAYER.loadPlaylist({list: newTrack, index: 0});\n\t\t\t}\n\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t   }\n\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t<script>\n\t\t\t\/\/SCENARIO SCRIPT\n\t\t\tvar selectedScenario = 9;\n\t\t\tvar tomeID = \"\";\n\t\t\t\n\t\t\t\/\/DROPDOWN MENU SCENARIO\n\t\t\tfunction openScenarioList() {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tcurrentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\tif(document.getElementById(\"dropdownmenuScenario\").className == \"show\"){\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25B2;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfunction setScenario(scenarioClicked) {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tnewScenario = document.getElementById(\"scenario\"+scenarioClicked).innerHTML;\n\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + newScenario.substring(26);\n\t\t\t\t\n\t\t\t\tvar currentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\t\n\t\t\t\tif (currentScenario.includes(\"TUTO\")){\n\t\t\t\t\tselectedScenario = 0;\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" I - \")){\n\t\t\t\t\tselectedScenario = 1;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" II - \")){\n\t\t\t\t\tselectedScenario = 2;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" III - \")){\n\t\t\t\t\tselectedScenario = 3;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IV - \")){\n\t\t\t\t\tselectedScenario = 4;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" V - \")){\n\t\t\t\t\tselectedScenario = 5;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VI - \")){\n\t\t\t\t\tselectedScenario = 6;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VII - \")){\n\t\t\t\t\tselectedScenario = 7;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VIII - \")){\n\t\t\t\t\tselectedScenario = 8;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IX - \")){\n\t\t\t\t\tselectedScenario = 9;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"HELLBRINGER\")){\n\t\t\t\t\tselectedScenario = 10;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"PILOGUE\")){\n\t\t\t\t\tselectedScenario = 11;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!(currentScenario.includes(\"HELLBRINGER\") || currentScenario.includes(\"PILOGUE\"))){\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"inline-block\";\n\t\t\t\t}\n\t\t\t\tselectedTome(1);\n\t\t\t}\n\t\t\t\n\t\t\tfunction selectedTome(tomeNumber){\n\t\t\t\tif (tomeNumber == 1){ \/\/TOME 1\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"CoUJCmIbRIc\"; \/\/TEMP dIiHAVnqiQ8\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"NRKFvP939vE\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"wN9ZoZUjZzg\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"GIkj1340GJ8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"U4yBLOZlTV8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"pXDiMVugsm8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"Z2qnzaIsXUc\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"BUN2e4GeO0Y\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"jf2_gLyrrqA\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"eejIwqlulpI\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\ttomeID = \"woW4Zd11t1c\"; \/\/TEMP 2wsQORlBaMA\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\ttomeID = \"FdnGHkxFOVk\"; \/\/TEMP Cx1z3JuNwFY\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 2){ \/\/TOME 2\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"In53uvXS6g8\"; \/\/TEMP DxnlEVOm7Bo\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All players draws one card under the Monster Draw Pile and add this card face down to their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"nMMSZ0J57lU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All players draw one card under the Monster Draw Pile and add it face down to their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"Qc7X1Qr1AeI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect eliminates one enemy in play immediately\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"ZQHycMUjB2Q\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Monster Draw Pile and add it face down to their +1 Action Points section of their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"0GrBcYtnQx8\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Monster Draw Pile and add it face down to their +1 Sight section of their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"S7v_2aXxYLU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Monster Draw Pile and add it face down to their +5 Health Points section of their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"CtGQK-AFZwU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Monster Draw Pile and add it face down to their +1 Skill Points section of their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"6zGLFB43p_w\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Monster Draw Pile and add it face down to their +10 Armor Points section of their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"vHKLeyoI4Zc\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may eliminate one enemy OUT OF SIGHT immediately\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"SLvoAXK8sVI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may select players that will draw 1 card under the Common Draw Pile\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 3){ \/\/TOME 3\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"H2O5s2nIm8s\"; \/\/TEMP oz3IOAyX-t4\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Reveal 5 cards under the Common Draw Pile<br>Players may select one card to add into their hand<br>Discard the remaining cards\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"5rBmacZhLis\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The bonus of the Location Card is not applied until the end of the next Enemies' Turns\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"pIXVxA3nu_s\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Reveal five cards under the Common Discard Pile<br>All players may select one card<br>Discard the remaining cards\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"OFwyQIDF2Dg\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect eliminate one enemy IN SIGHT immediately\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"diEh9gqoDFQ\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The enemies' Abilities are not applied until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"HcJ0zgNCwCw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player draw one card under the Common Draw Pile\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"4METKRD0YGs\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Reveal five cards under the Common Draw Pile<br>Players may trade one card from their hand with any of the revealed cards<br>Once done, discard all of the five cards revealed\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"NgVVdr9GCZk\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect draw the first Companion from the Common Discard Pile\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"byxwMXXTT2U\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Shuffle the Common Discard Pile and deal one card to each player\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"3MBblPsU1sQ\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may select players that will draw one card under the Monster Draw Pile and add it face down to their XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 4){ \/\/TOME 4\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"MW9hlrBXJss\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All players draw two cards under the Common Draw Pile, select one and discard the remaining card\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"mkDrMbz3nrI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may REMOVE one enemy in play and draw 1 Monster\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"Uw-RJxWS418\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Each player may discard up to three cards in hand and draw the same amount of cards under the Common Draw Pile\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"xKy37S7u20A\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may REMOVE up to two Monsters in play and draws the same amount<br>(Enemies are removed, not eliminated)\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"QlIo2pdNj60\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All enemies are considered IN SIGHT until the end of Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"PPBl7EjpYUA\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Players may trade as many cards they want until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"AZ_ry0upA1M\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All Companions ignore all Attacks and Abilities until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"OOHLr2iis4A\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Attacks and Abilities of enemies OUT OF SIGHT are ignored until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"WyiFXP9qf80\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect ignore the Abilities of the enemies until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 5){ \/\/TOME 5\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"9AaFHagGGLo\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"All players may reorganize their XP cards and can share them with other players according to the Attribute Points Sharing rule\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"MjUDuZOKGak\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Draw four cards under the Common Draw Pile, select two and place them on top of the Common Draw Pile<br>Discard the remaining cards\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"Na96lfJCsuU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"RESURRECT all eliminated players at the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"GJn-JXpDZbU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect place an enemy card face down until the end of the Enemies' Turn<br>During this time, this enemy cannot attack or be attacked<br>When a new Player's Turn begins, the card is placed face up\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"vn2Jizwu8Nw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Until the end of the next Enemies' Turn, the Sight Rule is reversed:<br>Players must have a lower number than their enemy to have them IN SIGHT, otherwise, the enemy becomes OUT OF SIGHT\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"LhrJQLfsYco\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Players may switch as many XP Cards from their +1 Sight to +10 Armor Points sections\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"H8GU_m8do3o\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect COLLECT one card from the Common Discard Pile\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"0q9tmgO1kuw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Upon their turn, players may Reroll 4 Damage Dice until the end of the Enemies' Turn\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"vhgR3Wh5jgc\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"The player who activated this Tome's Effect may draw 2 Monsters to cancel the SPECIAL BONUS of the current scenario\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#de6000\";\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\"videoplayer\").style.display = \"inline\";\n\t\t\t\t\n\t\t\t\tif (tomeNumber == 1){\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"none\";\n\t\t\t\t} else {\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"inline-flex\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdocument.getElementById(\"containervideo\").style.backgroundImage = \"none\";\n\t\t\t\tSCENARIO_PLAYER.loadVideoById(tomeID);\n\t\t\t\t}\n\t\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t\t<script>\n\t\t\t\t\/\/DICESCRIPT\n\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t  \n\t\t\t\tconst numberElementR = document.getElementById(\"numberR\");\n\t\t\t\tconst numberElementV = document.getElementById(\"numberV\");\n\t\t\t\tconst Drouge=new Array(0, 5, 5, 5, 10, 10);\n\t\t\t\tconst Dvert=new Array(0, 0, 5, 5, 5, 5);\n\n\t\t\t\tconst diceResultRouge = [];\n\t\t\t\tconst diceResultVert = [];\n\t\t\t\tlet toggleAllInfo = true;\n\t\t\t\t\n\t\t\t\tfunction updateNumber() {\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\tlet valRouge=0;\n\t\t\t\t\t\tlet valVert=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbrouge\").value);i++){\n\t\t\t\t\t\t\tresultRouge = Drouge[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultRouge.push(resultRouge);\n\t\t\t\t\t\t\tvalRouge += resultRouge;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbvert\").value);i++){\n\t\t\t\t\t\t\tresultVert = Dvert[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultVert.push(resultVert);\n\t\t\t\t\t\t\tvalVert += resultVert;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnumberElementR.innerHTML = valRouge;\n\t\t\t\t\t\tnumberElementV.innerHTML = valVert;\n\t\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = valRouge+valVert;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").style.display != \"\"){\n\t\t\t\t\t\t\tshowDiceResult();\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 100);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction toggleInfo(){\n\t\t\t\t\ttoggleAllInfo = !toggleAllInfo;\n\t\t\t\t\tif (toggleAllInfo == true){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif (toggleAllInfo == false){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"none\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction showDiceResult(){\n\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML == \"\" && document.getElementById(\"diceInfoVert\").innerHTML == \"\"){\n\t\t\t\t\t\tvar counterRouge= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultRouge.length-1 ;i++){\n\t\t\t\t\t\t\tcounterRouge++;\n\t\t\t\t\t\t\tif (counterRouge === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\tbrR = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIR = document.getElementById(\"diceInfoRouge\");\n\t\t\t\t\t\t\t\tdiceIR.appendChild(brR);\n\n\t\t\t\t\t\t\t\tcounterRouge = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultRouge.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif (diceResultRouge[i] == 5){\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar counterVert= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultVert.length-1 ;i++){\n\t\t\t\t\t\t\tcounterVert++;\n\t\t\t\t\t\t\tif (counterVert === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\tbrV = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIV = document.getElementById(\"diceInfoVert\");\n\t\t\t\t\t\t\t\tdiceIV.appendChild(brV);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcounterVert = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultVert.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]+' + ');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoVert\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\tfunction roll(){\n\t\t\t\t\twhile (diceResultRouge.length > 0) {\n\t\t\t\t\t\tdiceResultRouge.pop();\n\t\t\t\t\t}\n\t\t\t\t\twhile (diceResultVert.length > 0) {\n\t\t\t\t\t\tdiceResultVert.pop();\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").innerHTML = \"\";\n\t\t\t\t\tupdateNumber();\n\t\t\t\t}\n\t\t\t\tfunction onlyDigits(event) {\n\t\t\t\t\tvar code = event.which || event.keyCode;\n\t\t\t\t\tif (code < 48 || code > 57) {\n\t\t\t\t\t  event.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tlet diceRedAverage = 0;\n\t\t\tlet diceGreenAverage = 0;\n\t\t\tlet totalDiceAverage = 0;\n\t\t\tlet diceRedMax = 0;\n\t\t\tlet diceGreenMax = 0;\n\t\t\tlet totalDiceMaxResult = 0;\n\t\t\t\n\t\t\t\tfunction chg(e, n){\n\t\t\t\t\tlet nb=parseInt(document.getElementById(e).value)+n;\n\t\t\t\t\tif(nb<0){\n\t\t\t\t\t\tnb=0;\n\t\t\t\t\t}\n\t\t\t\t\tif(nb>99){\n\t\t\t\t\t\tnb=99;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbrouge\"){\n\t\t\t\t\t\tdiceRedAverage = nb*5.83;\n\t\t\t\t\t\tdiceRedMax = nb*10;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbvert\"){\n\t\t\t\t\t\tdiceGreenAverage = nb*3.33;\n\t\t\t\t\t\tdiceGreenMax = nb*5;\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceAverage\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceAverage\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceMaxResult\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(e).value = nb;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").innerHTML = \"\";\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceAverage = diceRedAverage + diceGreenAverage;\n\t\t\t\t\ttotalDiceAverage = Math.round(totalDiceAverage * 100) \/ 100;\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceMaxResult = diceRedMax + diceGreenMax;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(\"AVERAGE\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceAverage\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(totalDiceAverage);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(\"MAX\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceMaxResult\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(totalDiceMaxResult);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"numberR\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"numberV\").innerHTML = \"\";\n\t\t\t\t}\n\t\t<\/script>\n<\/template>\n\n<template id=\"app-de\">\n\t<div class=\"textOver\">\n\t\t<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.7.0\/jquery.min.js\" type=\"text\/javascript\"><\/script>\n\t\t<script src=\"https:\/\/www.youtube.com\/iframe_api\"><\/script>\n\n\t\t<a id=\"audioPlayer\"><\/a>\n\n\n\t\t<div style=\"height:20vh;\"><\/div>\n\n\n\t\t<!-- AUDIOPLAYER -->\n\t\t  <div id=\"audiomenu\" data-no-dynamic-translation>\n\t\t\t<span id=\"audio-title\"><\/span>\n\t\t\t<br\/>\n\t\t\t<div class=\"centerDiv\">\n\t\t\t\t<input id=\"previous\" type=\"button\"\/>\n\t\t\t\t<input id=\"play\" type=\"button\"\/>\n\t\t\t\t<input id=\"pause\" type=\"button\" style=\"display:none;\"\/>\n\t\t\t\t<input id=\"next\" type=\"button\"\/>\n\t\t\t\t<input id=\"voldown\" type=\"button\"\/>\n\t\t\t\t<input id=\"volup\" type=\"button\"\/>\n\t\t\t\t<input id=\"showvideo\" style=\"display:none;\" type=\"button\" onclick=\"showVideo()\"\/>\n\t\t\t\t<div id=\"volbar\"><\/div>\n\t\t\t\t<div id=\"volbarInside\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<div id=\"audioplayer\"><\/div>\n\t\t\t\t<br\/>\n\t\t\t\t<input id=\"progress-bar\" type=\"range\" style=\"width: 300px;\"><br>\n\t\t\t\t<span id=\"current-time\"><\/span>\n\t\t\t\t<span> \/ <\/span>\n\t\t\t\t<span id=\"duration\"><\/span>\n\t\t\t\t<div id=\"looping\" style=\"display:none;\"><\/div>\n\t\t\t\t<div id=\"notWorking\">oder h\u00f6re es dir an auf <a href=\"https:\/\/melodice.org\/playlist\/hellbringer-2024\/\">melodice<\/a><\/div>\n\t\t\t<\/div>\n\n\t\t<!-- Track list -->\n\t\t\t<div id=\"tracks\">\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(0)\"><div class=\"textScenario\"><span class=\"trackNumber\">00.<\/span> Gesamter Soundtrack<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(1)\"><div class=\"textScenario\"><span class=\"trackNumber\">01.<\/span> H\u00e4ndler<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(2)\"><div class=\"textScenario\"><span class=\"trackNumber\">02.<\/span> Kampagne<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(3)\"><div class=\"textScenario\"><span class=\"trackNumber\">03.<\/span> Friedhof<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(4)\"><div class=\"textScenario\"><span class=\"trackNumber\">04.<\/span> Krypta<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(5)\"><div class=\"textScenario\"><span class=\"trackNumber\">05.<\/span> Grotte<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(6)\"><div class=\"textScenario\"><span class=\"trackNumber\">06.<\/span> H\u00f6lle<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(7)\"><div class=\"textScenario\"><span class=\"trackNumber\">07.<\/span> Gruft<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(8)\"><div class=\"textScenario\"><span class=\"trackNumber\">08.<\/span> D\u00e4mon<\/div><\/div>\n\t\t\t\t<div class=\"trackList\" onclick=\"setTrack(9)\"><div class=\"textScenario\"><span class=\"trackNumber\">09.<\/span> Epilog<\/div><\/div>\n\t\t\t<\/div>\n\t\t  <\/div>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"narratedAudio\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- SCENARIO SELECTOR -->\n\t\t\t<div id=\"containerScenario\">\n\t\t\t\t<div id=\"currentScenarioTitle\" class=\"scenarioTitle\" onclick=\"openScenarioList()\"><div class=\"arrowScenarioTitle\">&#x25BC;<\/div>W\u00c4HLEN SIE EIN SZENARIO AUS<\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"dropdownmenuScenario\">\n\t\t\t\t<div id=\"scenario10\" class=\"smallScenarioTitle\" onclick=\"setScenario(10)\"><div class=\"textScenario\">HELLBRINGER'S REALM<\/div><\/div>\n\t\t\t\t<div id=\"scenario0\" class=\"smallScenarioTitle\" onclick=\"setScenario(0)\"><div class=\"textScenario\">TUTORIAL<\/div><\/div>\n\t\t\t\t<div id=\"scenario1\" class=\"smallScenarioTitle\" onclick=\"setScenario(1)\"><div class=\"textScenario\">SCENARIO I - DARKLUST TOWER<\/div><\/div>\n\t\t\t\t<div id=\"scenario2\" class=\"smallScenarioTitle\" onclick=\"setScenario(2)\"><div class=\"textScenario\">SCENARIO II - DUSTWIND RUINS<\/div><\/div>\n\t\t\t\t<div id=\"scenario3\" class=\"smallScenarioTitle\" onclick=\"setScenario(3)\"><div class=\"textScenario\">SCENARIO III - BRACK'NAR GRAVEYARD<\/div><\/div>\n\t\t\t\t<div id=\"scenario4\" class=\"smallScenarioTitle\" onclick=\"setScenario(4)\"><div class=\"textScenario\">SCENARIO IV - BLACKSTONE DEN<\/div><\/div>\n\t\t\t\t<div id=\"scenario5\" class=\"smallScenarioTitle\" onclick=\"setScenario(5)\"><div class=\"textScenario\">SCENARIO V - SCREEMGORE FOREST<\/div><\/div>\n\t\t\t\t<div id=\"scenario6\" class=\"smallScenarioTitle\" onclick=\"setScenario(6)\"><div class=\"textScenario\">SCENARIO VI - FALLENWINGS THRONE<\/div><\/div>\n\t\t\t\t<div id=\"scenario7\" class=\"smallScenarioTitle\" onclick=\"setScenario(7)\"><div class=\"textScenario\">SCENARIO VII - FROSTBURN LAIR<\/div><\/div>\n\t\t\t\t<div id=\"scenario8\" class=\"smallScenarioTitle\" onclick=\"setScenario(8)\"><div class=\"textScenario\">SCENARIO VIII - FIRESPARK MINES<\/div><\/div>\n\t\t\t\t<div id=\"scenario9\" class=\"smallScenarioTitle\" onclick=\"setScenario(9)\"><div class=\"textScenario\">SCENARIO IX - THE HELLSCROLL LIBRARY<\/div><\/div>\n\t\t\t\t<div id=\"scenario11\" class=\"smallScenarioTitle\" onclick=\"setScenario(11)\"><div class=\"textScenario\">EPILOGUE<\/div><\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"containerTome\">\n\t\t\t\t<a onclick=\"selectedTome(1)\" id=\"tome1\" class=\"tomeClass\">Foliant I<\/a>\n\t\t\t\t<a onclick=\"selectedTome(2)\" id=\"tome2\" class=\"tomeClass\">Foliant II<\/a>\n\t\t\t\t<a onclick=\"selectedTome(3)\" id=\"tome3\" class=\"tomeClass\">Foliant III<\/a>\n\t\t\t\t<a onclick=\"selectedTome(4)\" id=\"tome4\" class=\"tomeClass\">Foliant IV<\/a>\n\t\t\t\t<a onclick=\"selectedTome(5)\" id=\"tome5\" class=\"tomeClass\">Foliant V<\/a>\n\t\t\t<\/div>\n\t\t\t<div id=\"containervideo\">\n\t\t\t\t\t<div id=\"videoplayer\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"tomeEffect\" style=\"display:none;\">\n\t\t\t\t\t\t<div id=\"tomeEffectIcon\"><\/div>\n\t\t\t\t\t\t<div id=\"tomeEffectIconText\">FOLIANT-EFFEKT<\/div>\n\t\t\t\t\t\t<div id=\"tomeEffectText\"><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\n\t\t  <div style=\"height:10vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <a id=\"virtualDice\"><\/a>\n\t\t  \n\t\t  \n\t\t  <div style=\"height:20vh;\"><\/div>\n\t\t  \n\t\t  \n\t\t  <!-- VIRTUAL DICE -->\n\t\t\t<div class=\"container2\">\n\t\t\t\t<div id=\"imageDice\"><\/div>\n\t\t\t\t<div id=\"numberR\"><\/div>\n\t\t\t\t<div id=\"numberV\"><\/div>\n\t\t\t\t<div id=\"total\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-haut\" onclick=\"chg('nbrouge', 1)\"><\/div>\n\t\t\t\t<div id=\"container-rouge-click-bas\" onclick=\"chg('nbrouge', -1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-haut\" onclick=\"chg('nbvert', 1)\"><\/div>\n\t\t\t\t<div id=\"container-vert-click-bas\" onclick=\"chg('nbvert', -1)\"><\/div>\n\t\t\t\t<div id=\"diceInfo\" onclick=\"toggleInfo()\"><\/div>\n\t\t\t\t<div id=\"toggleInfo\" style=\"display:inline;\">\n\t\t\t\t\t<div id=\"diceInfoRouge\"><\/div>\n\t\t\t\t\t<div id=\"diceAverage\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceMaxResult\" style=\"display:none;\"><\/div>\n\t\t\t\t\t<div id=\"diceInfoVert\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<input type=\"input\" id=\"nbrouge\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbrouge', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<input type=\"input\" id=\"nbvert\" value=\"0\" maxlength=\"2\" onchange=\"chg('nbvert', 0)\" onkeypress=\"onlyDigits(event)\">\n\t\t\t\t<div onclick=\"roll()\" id=\"btn-roll\"><\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t  <div style=\"height:10vh;\"><\/div>\n\t<\/div>\n\t\t\t<script>\n\t\t\t\/\/AUDIOSCRIPT\n\t\t\tvar YOUTUBE_PLAYER,\n\t\t\t  YOUTUBE_PLAYER_EL = \"audioplayer\",\n\t\t\t  START_TIME = \"0:00\",\n\t\t\t  END_TIME = \"2:00\",\n\t\t\t  PLAY_EL = \"#play\",\n\t\t\t  PAUSE_EL = \"#pause\",\n\t\t\t  VOLUP_EL = \"#volup\",\n\t\t\t  VOLDOWN_EL = \"#voldown\",\n\t\t\t  PREVIOUS_EL = \"#previous\",\n\t\t\t  NEXT_EL = \"#next\",\n\t\t\t  PROGRESS_BAR_EL = \"#progress-bar\",\n\t\t\t  CURRENT_TIME_EL = \"#current-time\",\n\t\t\t  DURATION_EL = \"#duration\",\n\t\t\t  VOLUME = 0;\n\n\t\t\tfunction onYouTubeIframeAPIReady() {\n\t\t\t\/\/SCRIPT POUR AUDIO PLAYER\n\t\t\t\tYOUTUBE_PLAYER = new YT.Player(YOUTUBE_PLAYER_EL, {\n\t\t\t\t\twidth: 600,\n\t\t\t\t\theight: 400,\n\t\t\t\t\tvideoId: \"2fhXuFES1bE\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tlistType: 'playList',\n\t\t\t\t\t\tlist: 'PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V',\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tdisablekb: 1,\n\t\t\t\t\t\tstart: minutesToSeconds(START_TIME),\n\t\t\t\t\t\tend: minutesToSeconds(END_TIME),\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 0,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t},\n\t\t\t\t\tevents: {\n\t\t\t\t\t\tonStateChange: onStateChangeYT,\n\t\t\t\t\t\tonReady: () => initialize(START_TIME, END_TIME, YOUTUBE_PLAYER, PLAY_EL, PAUSE_EL, VOLUP_EL, VOLDOWN_EL, PREVIOUS_EL, NEXT_EL, PROGRESS_BAR_EL, CURRENT_TIME_EL, DURATION_EL)\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\/\/SCRIPT POUR SCENARIO PLAYER\n\t\t\t\tSCENARIO_PLAYER = new YT.Player(\"videoplayer\", {\n\t\t\t\t\twidth: 680,\n\t\t\t\t\theight: 557,\n\t\t\t\t\tvideoId: \"hTTaqW5rSyo\",\n\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\tcontrols: 1,\n\t\t\t\t\t\tloop: 1,\n\t\t\t\t\t\tautoplay: 0,\n\t\t\t\t\t\trel: 0,\n\t\t\t\t\t\tfs: 1,\n\t\t\t\t\t\tshowinfo: 0,\n\t\t\t\t\t\tmodestbranding: 1\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\tfunction onStateChangeYT(state){\n\t\t\t\tif (state.data === YT.PlayerState.ENDED) {\n\t\t\t\t\tYOUTUBE_PLAYER.seekTo(0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction initialize(videoStartTime, videoEndTime, playerObj, playId, pauseId, volupId, voldownId, previousId, nextId, progressBarId, currentTimeId, durationId) {\n\t\t\t\tdocument.getElementById(YOUTUBE_PLAYER_EL).style.display = \"none\";\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\tif (VOLUME == 100) {\n\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\tif (VOLUME == 0) {\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t\n\t\t\t\t$(playId).on('click', () => {\n\t\t\t\t\tplayerObj.getPlayerState() === 0\n\t\t\t\t\t? playerObj.seekTo(minutesToSeconds(videoStartTime)) \n\t\t\t\t\t\t: null;\n\t\t\t\t\tplayerObj.playVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(pauseId).on('click', () => {\n\t\t\t\t\tplayerObj.pauseVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"none\";\n\t\t\t\t});\n\n\t\t\t\t$(volupId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 100) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME + 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)+0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME >= 90) {\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol100.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(voldownId).on('click', () => {\n\t\t\t\t\tVOLUME = playerObj.getVolume();\n\t\t\t\t\tif (VOLUME != 0) {\n\t\t\t\t\t\tplayerObj.setVolume(VOLUME - 10);\n\t\t\t\t\t\tdocument.getElementById(\"volbar\").style.height = (((VOLUME\/100)*3.33)-0.3)+\"em\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol60.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"volup\").style.cursor = \"pointer\";\n\t\t\t\t\t\tif (VOLUME <= 10) {\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol0.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"default\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-vol40.png)\";\n\t\t\t\t\t\t\tdocument.getElementById(\"voldown\").style.cursor = \"pointer\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t$(previousId).on('click', () => {\n\t\t\t\t\tplayerObj.previousVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\n\t\t\t\t$(nextId).on('click', () => {\n\t\t\t\t\tplayerObj.nextVideo();\n\t\t\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t\t\t});\n\t\t\t  \n\t\t\t  var maxTime = formatTime(playerObj.getDuration());\n\t\t\t  \n\t\t\t  $(currentTimeId).text(formatTime(playerObj.getCurrentTime()));\n\t\t\t  $(progressBarId)\n\t\t\t\t   .attr('min', minutesToSeconds(videoStartTime))\n\t\t\t\t  .attr('max', minutesToSeconds(maxTime))\n\t\t\t\t\t  .on('mouseup touchend', e => playerObj.seekTo(e.target.value));\n\n\t\t\t\tplayerObj.seekTo(minutesToSeconds(videoStartTime));\n\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\n\t\t\t\tlet time_update_interval = setInterval(() => {\n\t\t\t\t\tdoUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime);\n\t\t\t\t}, 1000);\n\t\t\tplayerObj.pauseVideo();\n\t\t\t}\n\n\t\t\tfunction doUpdate(currentTimeId, durationId, progressBarId, playerObj, videoEndTime) {\n\t\t\t\tupdateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime);\n\t\t\t\tupdateProgressBar(progressBarId, playerObj);\n\n\t\t\t\t\/\/ --- Correction ici ---\n\t\t\t\t(function () {\n\t\t\t\tif (playerObj && playerObj.getVideoData) {\n\t\t\t\t\tvar t = playerObj.getVideoData().title;\n\t\t\t\t\tif (typeof t === 'string' && t.trim().length > 0) {\n\t\t\t\t\tvar el = document.getElementById('audio-title');\n\t\t\t\t\tif (el && el.innerText !== t) {\n\t\t\t\t\t\tel.innerText = t;\n\t\t\t\t\t}\n\t\t\t\t  }\n\t\t\t\t}\n\t\t\t\t})();\n\t\t\t}\n\n\t\t\tfunction updateTimerDisplay(currentTimeId, durationId, playerObj, videoEndTime) {\n\t\t\t\tif(playerObj.getCurrentTime() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"current-time\").innerText;\n\t\t\t\t\tvar currentTime = formatTime(playerObj.getCurrentTime());\n\t\t\t\t\tif (currentText != currentTime){\n\t\t\t\t\t\t$(currentTimeId).text(currentTime);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(playerObj.getDuration() != NaN){\n\t\t\t\t\tvar currentText = document.getElementById(\"duration\").innerText;\n\t\t\t\t\tvar currentDuration = formatTime(playerObj.getDuration());\n\t\t\t\t\tif (currentText != currentDuration){\n\t\t\t\t\t\t$(durationId).text(currentDuration);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction formatTime(time) {\n\t\t\t\ttime = Math.round(time);\n\t\t\t\tlet minutes = Math.floor(time \/ 60),\n\t\t\t\t\tseconds = time - minutes * 60;\n\t\t\t\t\tseconds = seconds < 10 ? '0' + seconds : seconds;\n\t\t\t\treturn minutes + \":\" + seconds;\n\t\t\t}\n\n\t\t\tfunction updateProgressBar(progressBarId, playerObj) {\n\t\t\t\tvar maxTime = formatTime(playerObj.getDuration());\n\t\t\t\tdocument.getElementById(\"progress-bar\").setAttribute(\"max\", minutesToSeconds(maxTime));\n\t\t\t\t$(progressBarId).val(playerObj.getCurrentTime());\n\t\t\t}\n\t\t\t\n\t\t\tfunction minutesToSeconds(mins) {\n\t\t\t\tlet p = mins.split(\":\");\n\t\t\t\treturn Number((Number(p[0]) * 60 + Number(p[1])).toFixed(3));\n\t\t\t}\n\n\t\t\tfunction showVideo(){\n\t\t\t\tif(document.getElementById(\"audioplayer\").style.display != \"none\"){\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"audioplayer\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t   function setTrack(trackNumber){\n\t\t\t   var newTrack = \"\";\n\t\t\t   \n\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"default\";\n\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next-d.png)\";\n\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous-d.png)\";\n\t\t\t\tdocument.getElementById(\"next\").disabled = true;\n\t\t\t\tdocument.getElementById(\"previous\").disabled = true;\n\t\t\t\tdocument.getElementById(\"looping\").style.display = \"inline-block\";\n\t\t\t   \n\t\t\t\tswitch(trackNumber) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\/\/Full playlist\n\t\t\t\t\t\tnewTrack = \"PLmArWZ0Odwn4Vy8A-iKxqW1UG-qQE6V3V\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-next.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.backgroundImage = \"url(https:\/\/hellbringergame.com\/wp-content\/uploads\/2023\/08\/audioplayer-previous.png)\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"previous\").style.cursor = \"pointer\";\n\t\t\t\t\t\tdocument.getElementById(\"next\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"previous\").disabled = false;\n\t\t\t\t\t\tdocument.getElementById(\"looping\").style.display = \"none\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\/\/Stormshield\t\n\t\t\t\t\t\tnewTrack = \"2fhXuFES1bE\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\/\/Campaign\n\t\t\t\t\t\tnewTrack = \"cepxnmci_HQ\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\/\/Graveyard\n\t\t\t\t\t\tnewTrack = \"9Wu96n_IAMc\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\/\/Crypt\n\t\t\t\t\t\tnewTrack = \"90eiI_xjpk4\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\/\/Cave\n\t\t\t\t\t\tnewTrack = \"g_hDq8_UqJo\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\/\/Hell\n\t\t\t\t\t\tnewTrack = \"r8GlN0nfK9Q\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\/\/Tomb\n\t\t\t\t\t\tnewTrack = \"esZKFhAR9aI\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\/\/Demon\n\t\t\t\t\t\tnewTrack = \"mpM9HDMxE-k\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\/\/\u00c9pilogue\n\t\t\t\t\t\tnewTrack = \"qzTNTLlXis4\";\n\t\t\t\t\t\tbreak;\n\t\t\t  }\n\t\t\tif(trackNumber != 0){\n\t\t\t\tYOUTUBE_PLAYER.loadVideoById(newTrack);\n\t\t\t}else{\n\t\t\t\tYOUTUBE_PLAYER.loadPlaylist({list: newTrack, index: 0});\n\t\t\t}\n\t\t\tdocument.getElementById(\"play\").style.display = \"none\";\n\t\t\tdocument.getElementById(\"pause\").style.display = \"inline\";\n\t\t   }\n\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t<script>\n\t\t\t\/\/SCENARIO SCRIPT\n\t\t\tvar selectedScenario = 9;\n\t\t\tvar tomeID = \"\";\n\t\t\t\n\t\t\t\/\/DROPDOWN MENU SCENARIO\n\t\t\tfunction openScenarioList() {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tcurrentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\tif(document.getElementById(\"dropdownmenuScenario\").className == \"show\"){\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25B2;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + currentScenario.substring(39);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfunction setScenario(scenarioClicked) {\n\t\t\t\tdocument.getElementById(\"dropdownmenuScenario\").classList.toggle(\"show\");\n\t\t\t\tnewScenario = document.getElementById(\"scenario\"+scenarioClicked).innerHTML;\n\t\t\t\tdocument.getElementById(\"currentScenarioTitle\").innerHTML = \"<div class='arrowScenarioTitle'>&#x25BC;<\/div>\" + newScenario.substring(26);\n\t\t\t\t\n\t\t\t\tvar currentScenario = document.getElementById(\"currentScenarioTitle\").innerHTML;\n\t\t\t\t\n\t\t\t\tif (currentScenario.includes(\"TUTO\")){\n\t\t\t\t\tselectedScenario = 0;\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"none\";\n\t\t\t\t}else{\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.display = \"inline\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.display = \"inline\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" I - \")){\n\t\t\t\t\tselectedScenario = 1;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" II - \")){\n\t\t\t\t\tselectedScenario = 2;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" III - \")){\n\t\t\t\t\tselectedScenario = 3;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IV - \")){\n\t\t\t\t\tselectedScenario = 4;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" V - \")){\n\t\t\t\t\tselectedScenario = 5;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VI - \")){\n\t\t\t\t\tselectedScenario = 6;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VII - \")){\n\t\t\t\t\tselectedScenario = 7;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" VIII - \")){\n\t\t\t\t\tselectedScenario = 8;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\" IX - \")){\n\t\t\t\t\tselectedScenario = 9;\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"HELLBRINGER\")){\n\t\t\t\t\tselectedScenario = 10;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\tif (currentScenario.includes(\"PILOGUE\")){\n\t\t\t\t\tselectedScenario = 11;\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!(currentScenario.includes(\"HELLBRINGER\") || currentScenario.includes(\"PILOGUE\"))){\n\t\t\t\t\tdocument.getElementById(\"containerTome\").style.display = \"inline-block\";\n\t\t\t\t}\n\t\t\t\tselectedTome(1);\n\t\t\t}\n\t\t\t\n\t\t\tfunction selectedTome(tomeNumber){\n\t\t\t\tif (tomeNumber == 1){ \/\/TOME 1\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"CoUJCmIbRIc\"; \/\/TEMP dIiHAVnqiQ8\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"NRKFvP939vE\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"wN9ZoZUjZzg\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"GIkj1340GJ8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"U4yBLOZlTV8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"pXDiMVugsm8\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"Z2qnzaIsXUc\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"BUN2e4GeO0Y\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"jf2_gLyrrqA\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"eejIwqlulpI\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\ttomeID = \"woW4Zd11t1c\"; \/\/TEMP 2wsQORlBaMA\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\ttomeID = \"FdnGHkxFOVk\"; \/\/TEMP Cx1z3JuNwFY\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 2){ \/\/TOME 2\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"In53uvXS6g8\"; \/\/TEMP DxnlEVOm7Bo\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Spieler ziehen eine Karte unten vom Monsterziehstapel und legen diese verdeckt in ihren XP-Bereich\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"nMMSZ0J57lU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Spieler ziehen eine Karte unten vom Monsterziehstapel und legen diese verdeckt in ihren XP-Bereich\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"Qc7X1Qr1AeI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, eliminiert sofort einen Gegner im Spiel\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"ZQHycMUjB2Q\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Monsterziehstapel und legt sie verdeckt in seinen +1 Aktionspunktebereich seiner XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"0GrBcYtnQx8\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Monsterziehstapel und legt sie verdeckt in seinen +1 Sichtweitebereich seiner XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"S7v_2aXxYLU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Monsterziehstapel und legt sie verdeckt in seinen +5 Gesundheitspunktebereich seiner XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"CtGQK-AFZwU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Monsterziehstapel und legt sie verdeckt in seinen +1 F\u00e4higkeitspunktebereich seiner XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"6zGLFB43p_w\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Monsterziehstapel und legt sie verdeckt in seinen +10 R\u00fcstungspunktebereich seiner XP\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"vHKLeyoI4Zc\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf einen Gegner AU\u00dfER SICHTWEITE sofort eliminieren\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"SLvoAXK8sVI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf Spieler ausw\u00e4hlen, die die unterste Karte vom Allgemeinen Ziehstapel ziehen d\u00fcrfen\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 3){ \/\/TOME 3\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\ttomeID = \"H2O5s2nIm8s\"; \/\/TEMP oz3IOAyX-t4\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"\"Decke 5 Karten unten vom Allgemeinen Ziehstapel auf<br>Die Spieler d\u00fcrfen eine Karte ausw\u00e4hlen und auf die Hand nehmen<br>Werft die \u00fcbrigen Karten ab\"\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"5rBmacZhLis\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Bonus der Ortskarte wird bis zum Ende des n\u00e4chsten Gegnerzugs nicht angewandt\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"pIXVxA3nu_s\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"\"Decke die untersten f\u00fcnf Karten vom Allgemeinen Ablagestapel auf<br>Alle Spieler d\u00fcrfen eine Karte ausw\u00e4hlen und auf die Hand nehmen<br>Wirf die \u00fcbrigen Karten ab\"\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"OFwyQIDF2Dg\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf einen Gegner IN SICHTWEITE sofort eliminieren\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"diEh9gqoDFQ\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Die Fertigkeiten der Gegner werden bis zum Ende des Gegnerzugs nicht angewandt\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"HcJ0zgNCwCw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler zieht eine Karte unten vom Allgemeinen Ziehstapel\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"4METKRD0YGs\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"\"Decke die untersten f\u00fcnf Karten vom Allgemeinen Ziehstapel auf<br>Spieler d\u00fcrfen eine Handkarte mit einer aufgedeckten Karte tauschen<br>Anschlie\u00dfend werden die f\u00fcnf aufgedeckten Karten abgeworfen\"\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"NgVVdr9GCZk\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, zieht den ersten Begleiter vom Allgemeinen Ablagestapel\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"byxwMXXTT2U\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Mische den Allgemeinen Ablagestapel und teile eine Karte an jeden Spieler aus\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"3MBblPsU1sQ\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf Spieler ausw\u00e4hlen, die die unterste Karte vom Monsterziehstapel ziehen und sie verdeckt in ihren XP-Bereich legen d\u00fcrfen\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 4){ \/\/TOME 4\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"MW9hlrBXJss\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Spieler ziehen zwei Karten unten vom Allgemeinen Ziehstapel, w\u00e4hlen eine aus und werfen die andere Karte ab\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"mkDrMbz3nrI\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf einen Gegner im Spiel ENTFERNEN und eine Karte oben vom Monsterziehstapel ziehen\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"Uw-RJxWS418\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Jeder Spieler darf bis zu drei Handkarten abwerfen und die selbe Anzahl Karten unten vom Allgemeinen Ziehstapel ziehen\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"xKy37S7u20A\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf bis zu zwei Gegner im Spiel ENTFERNEN und zieht genauso viele neue<br>(die Gegner werden entfernt, nicht eliminiert)\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"QlIo2pdNj60\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Gegner gelten als IN SICHTWEITE bis zum Ende des n\u00e4chsten Gegnerzugs\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"PPBl7EjpYUA\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Spieler d\u00fcrfen bis zum Ende des Gegnerzugs so viel Karten tauschen, wie sie m\u00f6chten\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"AZ_ry0upA1M\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Begleiter ignorieren alle Angriffe und Fertigkeiten bis zum Ende des Gegnerzugs\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"OOHLr2iis4A\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Angriffe und Fertigkeiten der Gegner AU\u00dfER SICHTWEITE werden bis zum Ende des Gegnerzugs ignoriert\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"WyiFXP9qf80\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, ignoriert die Fertigkeiten der Gegner bis zum Ende des Gegnerzugs\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#de6000\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#ffffff\";\n\t\t\t\t}\n\t\t\t\tif (tomeNumber == 5){ \/\/TOME 5\n\t\t\t\t\tif(selectedScenario == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 1){\n\t\t\t\t\t\ttomeID = \"9AaFHagGGLo\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Alle Spieler d\u00fcrfen ihre XP-Karten neu sortieren und k\u00f6nnen sie mit anderen Spielern teilen entsprechend der Regeln zum Teilen von Attributpunkten\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 2){\n\t\t\t\t\t\ttomeID = \"MjUDuZOKGak\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"\"Ziehe die untersten vier Karten vom allgemeinen Ziehstapel, w\u00e4hle zwei davon und lege sie auf den Allgemeinen Ziehstape<br>Wirf die \u00fcbrigen Karten ab\"\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 3){\n\t\t\t\t\t\ttomeID = \"Na96lfJCsuU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Belebe alle eliminierten Spieler am Ende des Gegnerzugs wieder\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 4){\n\t\t\t\t\t\ttomeID = \"GJn-JXpDZbU\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"\"Der Spieler, der diesen Folianteffekt aktiviert hat, darf einen Gegner bis zum Ende des Gegnerzugs auf die verdeckte Seite drehen<br>In dieser Zeit kann dieser Gegner nicht angreifen oder angegriffen werden<br>Wenn ein neuer Spielerzug beginnt, wird die Karte wieder umgedreht\"\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 5){\n\t\t\t\t\t\ttomeID = \"vn2Jizwu8Nw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Bis zum Endes des n\u00e4chsten Gegnerzugs ist die Sichtregel umgedreht:<br>Spieler m\u00fcssen eine geringere Zahl als der Gegner haben, um sie IN SICHTWEITE zu haben, ansonsten ist der Gegner AU\u00dfER SICHTWEITE\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 6){\n\t\t\t\t\t\ttomeID = \"LhrJQLfsYco\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Spieler d\u00fcrfen so viele XP-Karten, wie sie m\u00f6chten, zwischen ihrem +1 Sichtweite- und ihrem +10 R\u00fcstungspunktebereich NEUSORTIEREN\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 7){\n\t\t\t\t\t\ttomeID = \"H8GU_m8do3o\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, nimmt eine Karte vom Allgemeinen Ablagestapel auf\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 8){\n\t\t\t\t\t\ttomeID = \"0q9tmgO1kuw\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"In ihrem Zug d\u00fcrfen Spieler bis zum Ende des Gegnerzugs 4 Schadensw\u00fcrfel neuw\u00fcrfeln\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 9){\n\t\t\t\t\t\ttomeID = \"vhgR3Wh5jgc\";\n\t\t\t\t\t\tdocument.getElementById(\"tomeEffectText\").innerHTML = \"Der Spieler, der diesen Folianteffekt aktiviert hat, darf 2 Monster ziehen, um den SPEZIALEFFEKT des aktuellen Szenarios aufzuheben\";\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 10){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedScenario == 11){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"tome1\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome2\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome3\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome4\").style.color = \"#ffffff\";\n\t\t\t\t\tdocument.getElementById(\"tome5\").style.color = \"#de6000\";\n\t\t\t\t}\n\t\t\t\tdocument.getElementById(\"videoplayer\").style.display = \"inline\";\n\t\t\t\t\n\t\t\t\tif (tomeNumber == 1){\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"none\";\n\t\t\t\t} else {\n\t\t\t\t\tdocument.getElementById(\"tomeEffect\").style.display = \"inline-flex\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdocument.getElementById(\"containervideo\").style.backgroundImage = \"none\";\n\t\t\t\tSCENARIO_PLAYER.loadVideoById(tomeID);\n\t\t\t\t}\n\t\t\t\t<\/script>\n\t\t\t\n\t\t\t\n\t\t\t\t<script>\n\t\t\t\t\/\/DICESCRIPT\n\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t  \n\t\t\t\tconst numberElementR = document.getElementById(\"numberR\");\n\t\t\t\tconst numberElementV = document.getElementById(\"numberV\");\n\t\t\t\tconst Drouge=new Array(0, 5, 5, 5, 10, 10);\n\t\t\t\tconst Dvert=new Array(0, 0, 5, 5, 5, 5);\n\n\t\t\t\tconst diceResultRouge = [];\n\t\t\t\tconst diceResultVert = [];\n\t\t\t\tlet toggleAllInfo = true;\n\t\t\t\t\n\t\t\t\tfunction updateNumber() {\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\tlet valRouge=0;\n\t\t\t\t\t\tlet valVert=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbrouge\").value);i++){\n\t\t\t\t\t\t\tresultRouge = Drouge[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultRouge.push(resultRouge);\n\t\t\t\t\t\t\tvalRouge += resultRouge;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<parseInt(document.getElementById(\"nbvert\").value);i++){\n\t\t\t\t\t\t\tresultVert = Dvert[Math.floor(Math.random() * 6)];\n\t\t\t\t\t\t\tdiceResultVert.push(resultVert);\n\t\t\t\t\t\t\tvalVert += resultVert;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnumberElementR.innerHTML = valRouge;\n\t\t\t\t\t\tnumberElementV.innerHTML = valVert;\n\t\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = valRouge+valVert;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").style.display != \"\"){\n\t\t\t\t\t\t\tshowDiceResult();\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 100);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction toggleInfo(){\n\t\t\t\t\ttoggleAllInfo = !toggleAllInfo;\n\t\t\t\t\tif (toggleAllInfo == true){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif (toggleAllInfo == false){\n\t\t\t\t\t\tdocument.getElementById(\"toggleInfo\").style.display = \"none\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfunction showDiceResult(){\n\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML == \"\" && document.getElementById(\"diceInfoVert\").innerHTML == \"\"){\n\t\t\t\t\t\tvar counterRouge= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultRouge.length-1 ;i++){\n\t\t\t\t\t\t\tcounterRouge++;\n\t\t\t\t\t\t\tif (counterRouge === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\tbrR = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIR = document.getElementById(\"diceInfoRouge\");\n\t\t\t\t\t\t\t\tdiceIR.appendChild(brR);\n\n\t\t\t\t\t\t\t\tcounterRouge = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultRouge.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif (diceResultRouge[i] == 5){\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").append(diceResultRouge[i]+' + ');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar counterVert= 0;\n\t\t\t\t\t\tfor(i=0 ; i<=diceResultVert.length-1 ;i++){\n\t\t\t\t\t\t\tcounterVert++;\n\t\t\t\t\t\t\tif (counterVert === 5){\n\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\tbrV = document.createElement(\"br\");\n\t\t\t\t\t\t\t\tdiceIV = document.getElementById(\"diceInfoVert\");\n\t\t\t\t\t\t\t\tdiceIV.appendChild(brV);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcounterVert = 0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif (i == diceResultVert.length-1){\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]);\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").append(diceResultVert[i]+' + ');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoRouge\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(document.getElementById(\"diceInfoVert\").innerHTML != \"\"){\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"block\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\tfunction roll(){\n\t\t\t\t\twhile (diceResultRouge.length > 0) {\n\t\t\t\t\t\tdiceResultRouge.pop();\n\t\t\t\t\t}\n\t\t\t\t\twhile (diceResultVert.length > 0) {\n\t\t\t\t\t\tdiceResultVert.pop();\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").innerHTML = \"\";\n\t\t\t\t\tupdateNumber();\n\t\t\t\t}\n\t\t\t\tfunction onlyDigits(event) {\n\t\t\t\t\tvar code = event.which || event.keyCode;\n\t\t\t\t\tif (code < 48 || code > 57) {\n\t\t\t\t\t  event.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tlet diceRedAverage = 0;\n\t\t\tlet diceGreenAverage = 0;\n\t\t\tlet totalDiceAverage = 0;\n\t\t\tlet diceRedMax = 0;\n\t\t\tlet diceGreenMax = 0;\n\t\t\tlet totalDiceMaxResult = 0;\n\t\t\t\n\t\t\t\tfunction chg(e, n){\n\t\t\t\t\tlet nb=parseInt(document.getElementById(e).value)+n;\n\t\t\t\t\tif(nb<0){\n\t\t\t\t\t\tnb=0;\n\t\t\t\t\t}\n\t\t\t\t\tif(nb>99){\n\t\t\t\t\t\tnb=99;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbrouge\"){\n\t\t\t\t\t\tdiceRedAverage = nb*5.83;\n\t\t\t\t\t\tdiceRedMax = nb*10;\n\t\t\t\t\t}\n\t\t\t\t\tif(e == \"nbvert\"){\n\t\t\t\t\t\tdiceGreenAverage = nb*3.33;\n\t\t\t\t\t\tdiceGreenMax = nb*5;\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceAverage\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceAverage\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tif(document.getElementById(\"diceMaxResult\").style.display == \"none\"){\n\t\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").style.display = \"inline\";\n\t\t\t\t\t}\n\t\t\t\t\tdocument.getElementById(e).value = nb;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").innerHTML = \"\";\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceAverage = diceRedAverage + diceGreenAverage;\n\t\t\t\t\ttotalDiceAverage = Math.round(totalDiceAverage * 100) \/ 100;\n\t\t\t\t\t\n\t\t\t\t\ttotalDiceMaxResult = diceRedMax + diceGreenMax;\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(\"DURCHSCHNITT\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceAverage\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceAverage\").append(totalDiceAverage);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(\"MAX\"); \/\/TEXTE\n\t\t\t\t\tbrA = document.createElement(\"br\");\n\t\t\t\t\tdiceA = document.getElementById(\"diceMaxResult\");\n\t\t\t\t\tdiceA.appendChild(brA);\n\t\t\t\t\tdocument.getElementById(\"diceMaxResult\").append(totalDiceMaxResult);\n\t\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"total\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoVert\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"diceInfoRouge\").style.display = \"none\";\n\t\t\t\t\tdocument.getElementById(\"numberR\").innerHTML = \"\";\n\t\t\t\t\tdocument.getElementById(\"numberV\").innerHTML = \"\";\n\t\t\t\t}\n\t\t<\/script>\n<\/template>\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_raw_code wpb_raw_html wpb_content_element\" id=\"mainApp\">\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t\n\t\t<\/div>\n\t<\/div>\n<div class=\"divider-wrap\" data-alignment=\"default\"><div style=\"height: 20vh;\" class=\"divider\"><\/div><\/div><div class=\"img-with-aniamtion-wrap  nectar-el-parallax-scroll\" data-max-width=\"200%\" data-max-width-mobile=\"200%\" data-shadow=\"none\" data-animation=\"none\" data-scroll-animation=\"true\" data-scroll-animation-movement=\"transform_y\" data-scroll-animation-mobile=\"true\" data-scroll-animation-intensity=\"-2\" >\n      <div class=\"inner\">\n        <div class=\"hover-wrap\"> \n          <div class=\"hover-wrap-inner\">\n            <img loading=\"lazy\" decoding=\"async\" class=\"img-with-animation picto-pos skip-lazy\" data-delay=\"0\" height=\"2560\" width=\"2277\" data-animation=\"none\" src=\"https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-scaled.webp\" alt=\"Gnoll\" srcset=\"https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-scaled.webp 2277w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-267x300.webp 267w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-911x1024.webp 911w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-768x863.webp 768w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-1366x1536.webp 1366w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-1822x2048.webp 1822w, https:\/\/www.hellbringergame.com\/wp-content\/uploads\/2025\/07\/gnoll-11x12.webp 11w\" sizes=\"auto, (max-width: 2277px) 100vw, 2277px\" \/>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n\t\t\t<\/div> \n\t\t<\/div>\n\t<\/div> \n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"Soundtrack Audiodateien Virtuelle W\u00fcrfel \/ ou \u00e9coutez sur melodice 00. Bande son compl\u00e8te 01. Marchand 02. Campagne 03. Cimeti\u00e8re 04. Crypte 05. Caverne 06. Enfer 07. Tombeau 08. D\u00e9mon 09....","protected":false},"author":2,"featured_media":1298,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"slim_seo":{"title":"Hellbringer Game \u2013 Webapp","description":"Hellbringer's Webapp includes a completely free soundtrack, the full narrated audio of the campaign, and virtual dice."},"footnotes":""},"class_list":["post-623","page","type-page","status-publish","has-post-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/pages\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":42,"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/pages\/623\/revisions"}],"predecessor-version":[{"id":1368,"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/pages\/623\/revisions\/1368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/media\/1298"}],"wp:attachment":[{"href":"https:\/\/www.hellbringergame.com\/de\/wp-json\/wp\/v2\/media?parent=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}