diff --git "a/NeuroPort/HTML+APPS/alchemy_game_classic.html" "b/NeuroPort/HTML+APPS/alchemy_game_classic.html" --- "a/NeuroPort/HTML+APPS/alchemy_game_classic.html" +++ "b/NeuroPort/HTML+APPS/alchemy_game_classic.html" @@ -1,2348 +1,17 @@ - - - - - - - - - - Алхимия Элементов - - - -
-
-
✨ Алхимия Элементов
- - -
?
-
📂
- - - 📚 Дневник Алхимика - -
- - -
- -
- - - - - - - \ No newline at end of file +
${t.name}
+
📊 Прогресс: ${i.length} из ${w}
+ `,h.style.opacity="1",h.style.animation="newElementPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",setTimeout(()=>{h.style.opacity="0",setTimeout(()=>{h.style.animation=""},500)},4500),setTimeout(()=>{Z(e)},500)}function Z(e){const t=document.querySelector(`.element[data-element="${e}"]`);if(!t)return;t.classList.add("new-element-animation"),setTimeout(()=>{t.classList.remove("new-element-animation")},3e3);const o=document.querySelector(".sidebar"),n=t.getBoundingClientRect(),s=o.getBoundingClientRect();(n.tops.bottom)&&t.scrollIntoView({behavior:"smooth",block:"center"})}function J(){t.forEach(e=>{e.element.remove()}),t=[],i=["water","earth","fire","air"],l();const a=document.querySelector('.filter-button[data-category="all"]');if(a){const e=document.querySelectorAll(".filter-button");e.forEach(e=>e.classList.remove("active")),a.classList.add("active"),j=null}v.value="",n=null,o=null,s=!1;const e=document.createElement("div");e.style.position="absolute",e.style.top="50%",e.style.left="50%",e.style.transform="translate(-50%, -50%)",e.style.background="rgba(15, 15, 35, 0.95)",e.style.backdropFilter="blur(20px)",e.style.color="white",e.style.padding="25px 35px",e.style.borderRadius="20px",e.style.fontSize="22px",e.style.fontWeight="600",e.style.border="2px solid rgba(120, 119, 198, 0.3)",e.style.boxShadow="0 0 30px rgba(120, 119, 198, 0.5)",e.textContent="🔄 Игра сброшена!",r.appendChild(e),setTimeout(()=>{e.remove()},2500)}function ee(){try{localStorage.setItem("elementAlchemyDiscovered",JSON.stringify(i))}catch{console.log("Сохранение прогресса недоступно в песочнице")}}function $(){try{const e=localStorage.getItem("elementAlchemyDiscovered");e&&(i=JSON.parse(e),l())}catch{console.log("Загрузка прогресса недоступна в песочнице")}}try{localStorage.getItem("test"),setInterval(ee,3e4),$()}catch{console.log("localStorage недоступен, игра будет работать без сохранения прогресса")}if(k.addEventListener("click",J),M.addEventListener("click",()=>{p.style.display="block"}),V.addEventListener("click",()=>{p.style.display="none"}),window.addEventListener("click",e=>{e.target===p&&(p.style.display="none")}),g){let e=!1;g.addEventListener("click",()=>{const t=document.querySelector(".sidebar"),n=document.querySelector(".workspace");e?(t.classList.remove("collapsed"),n.classList.remove("expanded"),g.innerHTML="📂",e=!1):(t.classList.add("collapsed"),n.classList.add("expanded"),g.innerHTML="📁",e=!0)})}}) \ No newline at end of file