Add 2 files
Browse filesFiles changed (2)
- index.html+246-769
- prompts.txt+2-1
1223456678991011121314151011121718192021222324252627282930313233343536373839404142434445464748495051525354551314155816171819206465666768212223707172732425267576777879808182838485272829303189909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311323233343536373839134135136404142431391401414414314414514614714814915015115215315415515615745464748495051525315916016116254555657585960611651661671686263646517017117217317466676869707172737475767778798081828384858687888917918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021190919293949596979899100101102103104213214105106107216217108109110111112113114115116219220117118119120121122222223123124125126127128225226129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169230231232233234235236237238239240241242243170171172173174175176177178179248249250251252253254255256257258259260261262263264180181182183184185186187188189190191192193194195196197198199200201267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352202354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241447242243449450451452453454455456244245246458459247248249250251462463464252253254255466467468469470256472473474475476477478479480481482483484485486487488489490491492493494495496497257258259260500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575261262263264577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629265266631632267268269270271272634635273274275276637638639640641642643644645646647648649650651652653654655656657658659660661662663664665277278279280281667668282283284285286287670671672288289290291292293294674675676677678679680681682683684685686687688295296297298299300690691692693694301302303304305696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784306307308786787788789309310311791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835312313314315<!DOCTYPE html><html lang="en"><html lang="pt-BR"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Phasmophobia-like Ghost Hunter</title> <title>Análise Sentimental de Ações B3</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> @import url('https://fonts.googleapis.com/css2?family=Creepster&family=Roboto:wght@400;700&display=swap'); body { font-family: 'Roboto', sans-serif; background-color: #0a0a0a; color: #e0e0e0; overflow: hidden; .gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%); } .creepy-font { font-family: 'Creepster', cursive; } .flashlight { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient( circle at var(--x) var(--y), transparent 10%, rgba(0, 0, 0, 0.95) 30% ); z-index: 10; } .flicker { animation: flicker 0.3s infinite alternate; } @keyframes flicker { 0% { opacity: 0.8; } 100% { opacity: 1; } } .ghost-appear { animation: appear 0.5s forwards; } @keyframes appear { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } } .pulse { .pulse-animation { animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .equipment-selected { box-shadow: 0 0 15px #4f46e5; transform: scale(1.05); transition: all 0.3s; .sentiment-positive { background-color: #10b981; } .evidence-found { background-color: #4f46e5; color: white; .sentiment-neutral { background-color: #f59e0b; } .heartbeat { animation: heartbeat 1s infinite; } @keyframes heartbeat { 0% { transform: scale(1); } 25% { transform: scale(1.1); } 50% { transform: scale(1); } 75% { transform: scale(1.1); } 100% { transform: scale(1); } .sentiment-negative { background-color: #ef4444; } </style></head><body class="relative h-screen w-screen"> <!-- Flashlight effect --> <div class="flashlight" id="flashlight"></div> <!-- Main menu --> <div id="main-menu" class="absolute inset-0 flex flex-col items-center justify-center bg-black bg-opacity-90 z-20 transition-opacity duration-500"> <h1 class="creepy-font text-6xl md:text-8xl text-red-600 mb-8">GHOST HUNTER</h1> <div class="flex flex-col space-y-4 w-64"> <button id="start-game" class="bg-red-700 hover:bg-red-600 text-white py-3 px-6 rounded-lg text-xl transition-all hover:scale-105"> Start Investigation </button> <button id="how-to-play" class="bg-gray-800 hover:bg-gray-700 text-white py-3 px-6 rounded-lg text-xl transition-all hover:scale-105"> How to Play </button> </div> <div id="instructions" class="hidden mt-8 max-w-md bg-gray-900 p-6 rounded-lg"> <h2 class="creepy-font text-3xl text-red-500 mb-4">How to Play</h2> <ul class="space-y-2"> <li>• Use equipment to find ghost evidence</li> <li>• Identify the ghost type before it hunts</li> <li>• Watch your sanity - low sanity triggers hunts</li> <li>• Hide during hunts to survive</li> <li>• Use the spirit box to communicate</li> </ul> <button id="close-instructions" class="mt-4 bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded"> Close </button> </div> </div> <!-- Game UI --> <div id="game-ui" class="hidden absolute inset-0 flex flex-col"> <!-- Top bar --> <div class="flex justify-between p-4 bg-black bg-opacity-70"> <div class="flex space-x-4"> <div class="bg-gray-800 p-2 rounded-lg"> <span class="text-green-400">$</span> <span id="money">100</span> </div> <div class="bg-gray-800 p-2 rounded-lg"> <span class="text-blue-400">Sanity: </span> <span id="sanity">100</span>%<body class="bg-gray-100 min-h-screen"> <div class="gradient-bg text-white py-8 px-4 shadow-lg"> <div class="container mx-auto"> <div class="flex items-center justify-between"> <div> <h1 class="text-3xl font-bold">StockSense B3</h1> <p class="mt-2">Análise sentimental simplificada para investidores</p> </div> <div class="bg-gray-800 p-2 rounded-lg"> <span class="text-yellow-400">Time: </span> <span id="time">5:00</span> <div class="bg-white/20 p-3 rounded-full"> <i class="fas fa-chart-line text-2xl"></i> </div> </div> <button id="leave-game" class="bg-red-700 hover:bg-red-600 text-white py-1 px-3 rounded"> Leave </button> </div> <!-- Game area --> <div class="flex-1 relative overflow-hidden"> <!-- House environment --> <div id="house" class="absolute inset-0 bg-gray-900 flex items-center justify-center"> <div class="bg-gray-800 w-3/4 h-3/4 rounded-lg relative"> <!-- Ghost will appear here --> <img id="ghost" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMjU2LDhDMTE5LDgsOCwxMTksOCwyNTZzMTExLDI0OCwyNDgsMjQ4czI0OC0xMTEsMjQ4LTI0OFMzOTMsOCwyNTYsOHogTTM4NCwzNTEuNWMwLDE5LjktMTYuMSwzNi0zNiwzNkgxNjRjLTE5LjksMC0zNi0xNi4xLTM2LTM2di0zOGMwLTY1LDUyLjEtMTE4LDExNi0xMThzMTE2LDUzLDExNiwxMThWMzUxLjV6Ii8+PC9zdmc+" class="absolute hidden w-32 h-32 opacity-0" alt="Ghost"> <!-- EMF Reader --> <div id="emf-reader" class="absolute top-10 left-10 bg-gray-700 p-2 rounded-lg hidden"> <div class="text-white text-center">EMF Reader</div> <div class="text-green-500 text-2xl font-bold text-center" id="emf-value">0</div> </div> </div>
<div class="container mx-auto px-4 py-8 -mt-10"> <div class="bg-white rounded-xl shadow-lg p-6 max-w-4xl mx-auto"> <div class="flex flex-col md:flex-row gap-6"> <div class="flex-1"> <h2 class="text-2xl font-bold text-gray-800 mb-4">Analisar Ação</h2> <p class="text-gray-600 mb-6">Digite o código da ação da B3 para receber uma análise sentimental completa em linguagem simples.</p> <!-- Spirit Box --> <div id="spirit-box" class="absolute top-10 right-10 bg-gray-700 p-2 rounded-lg hidden"> <div class="text-white text-center">Spirit Box</div> <div class="text-red-500 text-center" id="spirit-response">No response</div> <div class="relative"> <input type="text" id="stockInput" placeholder="Ex: PETR4, VALE3, ITUB4..." class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button id="analyzeBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition"> Analisar <i class="fas fa-search ml-2"></i> </button> </div> <!-- Freezing temps --> <div id="thermometer" class="absolute bottom-10 left-10 bg-gray-700 p-2 rounded-lg hidden"> <div class="text-white text-center">Thermometer</div> <div class="text-blue-400 text-xl font-bold text-center" id="temperature">20°C</div> <div class="mt-4 flex items-center text-sm text-gray-500"> <i class="fas fa-info-circle mr-2"></i> <span>Exemplos populares: PETR4, VALE3, BBDC4, ITUB4</span> </div> <!-- Ghost writing --> <div id="ghost-writing" class="absolute bottom-10 right-10 bg-gray-700 p-2 rounded-lg hidden"> <div class="text-white text-center">Ghost Writing</div> <div class="text-yellow-400 text-center" id="writing-text">No writing</div> </div> <div class="md:w-1/3 bg-gray-50 rounded-lg p-4 flex flex-col items-center justify-center"> <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-3"> <i class="fas fa-bolt text-blue-600 text-2xl"></i> </div> <h3 class="font-semibold text-center">Análise em 3 Passos</h3> <ol class="mt-3 space-y-2 text-sm text-gray-600"> <li class="flex items-start"> <span class="bg-blue-600 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs mr-2">1</span> <span>Sentimento do mercado</span> </li> <li class="flex items-start"> <span class="bg-blue-600 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs mr-2">2</span> <span>Análise técnica simplificada</span> </li> <li class="flex items-start"> <span class="bg-blue-600 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs mr-2">3</span> <span>Recomendação clara</span> </li> </ol> </div> </div> </div> <!-- Equipment bar --> <div class="bg-black bg-opacity-70 p-4"> <div class="flex justify-center space-x-4"> <button class="equipment-btn bg-gray-800 hover:bg-gray-700 text-white p-3 rounded-lg transition-all" data-equipment="flashlight"> <div class="text-center">🔦 Flashlight</div> </button> <button class="equipment-btn bg-gray-800 hover:bg-gray-700 text-white p-3 rounded-lg transition-all" data-equipment="emf"> <div class="text-center">📡 EMF Reader</div> </button> <button class="equipment-btn bg-gray-800 hover:bg-gray-700 text-white p-3 rounded-lg transition-all" data-equipment="spirit-box"> <div class="text-center">📻 Spirit Box</div> </button> <button class="equipment-btn bg-gray-800 hover:bg-gray-700 text-white p-3 rounded-lg transition-all" data-equipment="thermometer"> <div class="text-center">🌡️ Thermometer</div> </button> <button class="equipment-btn bg-gray-800 hover:bg-gray-700 text-white p-3 rounded-lg transition-all" data-equipment="book"> <div class="text-center">📖 Ghost Writing</div> </button> </div> </div> <!-- Evidence panel --> <div class="bg-black bg-opacity-70 p-4"> <h3 class="text-xl text-white mb-2">Ghost Evidence:</h3> <div class="grid grid-cols-3 gap-2"> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="emf5"> EMF Level 5 </div>
<div id="resultsSection" class="container mx-auto px-4 py-8 hidden"> <div class="bg-white rounded-xl shadow-lg p-6 max-w-4xl mx-auto"> <div class="flex justify-between items-start mb-6"> <div> <h2 class="text-2xl font-bold text-gray-800"> <span id="stockSymbol" class="bg-blue-100 text-blue-800 px-3 py-1 rounded-lg">PETR4</span> <span id="stockName" class="ml-2">Petróleo Brasileiro S.A.</span> </h2> <div class="flex items-center mt-2"> <span id="currentPrice" class="text-2xl font-bold">R$ 32,15</span> <span id="priceChange" class="ml-3 px-2 py-1 rounded text-sm font-medium bg-red-100 text-red-800">-1,2%</span> </div> </div> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="spirit-box"> Spirit Box <div id="sentimentBadge" class="px-4 py-2 rounded-full text-white font-medium sentiment-neutral"> Neutro </div> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="freezing"> Freezing Temps </div> <div class="grid md:grid-cols-3 gap-6 mb-8"> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold text-gray-700 mb-2 flex items-center"> <i class="fas fa-comments mr-2 text-blue-500"></i> Sentimento Geral </h3> <p id="generalSentiment" class="text-gray-600">O mercado está dividido sobre esta ação, com análises neutras predominando.</p> </div> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="writing"> Ghost Writing <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold text-gray-700 mb-2 flex items-center"> <i class="fas fa-chart-bar mr-2 text-blue-500"></i> Tendência Técnica </h3> <p id="technicalTrend" class="text-gray-600">A ação está em uma fase de consolidação após queda recente.</p> </div> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="fingerprints"> Fingerprints <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-semibold text-gray-700 mb-2 flex items-center"> <i class="fas fa-lightbulb mr-2 text-blue-500"></i> Recomendação </h3> <p id="recommendation" class="text-gray-600">Aguardar melhores oportunidades de entrada.</p> </div> <div class="evidence bg-gray-800 p-2 rounded-lg" data-evidence="orb"> Ghost Orb </div> <h3 class="text-lg font-semibold text-gray-800 mb-3">Análise Detalhada</h3> <div id="detailedAnalysis" class="bg-gray-50 p-4 rounded-lg mb-6"> <p>A ação <span class="font-medium">PETR4</span> apresenta um momento de indecisão no mercado. Nos últimos 15 dias, o volume negociado ficou 12% abaixo da média histórica, indicando cautela dos investidores.</p> <p class="mt-3">Analistas apontam que o preço do petróleo e a política de dividendos são os principais fatores que estão influenciando o sentimento no momento. Recomenda-se acompanhar os próximos balanços trimestrais.</p> </div> <div class="border-t pt-4"> <h3 class="text-lg font-semibold text-gray-800 mb-3">Fatores Chave</h3> <div class="space-y-3"> <div class="flex items-start"> <div class="flex-shrink-0 h-5 w-5 text-green-500 mt-1"> <i class="fas fa-check-circle"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Setor em recuperação</p> <p class="text-sm text-gray-500">O setor de energia tem mostrado sinais de melhora nos últimos meses.</p> </div> </div> <div class="flex items-start"> <div class="flex-shrink-0 h-5 w-5 text-red-500 mt-1"> <i class="fas fa-exclamation-circle"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Pressão regulatória</p> <p class="text-sm text-gray-500">Novas regulamentações podem impactar os resultados.</p> </div> </div> <div class="flex items-start"> <div class="flex-shrink-0 h-5 w-5 text-yellow-500 mt-1"> <i class="fas fa-info-circle"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Dividendos estáveis</p> <p class="text-sm text-gray-500">Histórico de pagamento de dividendos acima da média do mercado.</p> </div> </div> </div> </div> <!-- Ghost identification --> <div class="mt-4"> <h3 class="text-xl text-white mb-2">Identify Ghost:</h3> <select id="ghost-select" class="bg-gray-800 text-white p-2 rounded-lg w-full"> <option value="">Select ghost type...</option> <option value="spirit">Spirit</option> <option value="phantom">Phantom</option> <option value="demon">Demon</option> <option value="jinn">Jinn</option> <option value="revenant">Revenant</option> <option value="shade">Shade</option> </select> <button id="identify-btn" class="mt-2 bg-blue-700 hover:bg-blue-600 text-white py-2 px-4 rounded-lg w-full"> Identify <div class="mt-6 flex justify-between items-center"> <button id="newAnalysisBtn" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50"> <i class="fas fa-redo mr-2"></i> Nova Análise </button> <div class="text-sm text-gray-500"> <i class="fas fa-clock mr-1"></i> Atualizado em <span id="updateTime">05/07/2023 15:42</span> </div> </div> </div> </div> <!-- Game over screen --> <div id="game-over" class="hidden absolute inset-0 flex flex-col items-center justify-center bg-black bg-opacity-90 z-30"> <h1 class="creepy-font text-6xl text-red-600 mb-4" id="game-over-title">GAME OVER</h1> <p class="text-xl text-white mb-8" id="game-over-message">The ghost killed you!</p> <div class="text-white text-center mb-8"> <p>Ghost type: <span id="revealed-ghost" class="text-red-400"></span></p> <p>Evidence found: <span id="evidence-found" class="text-green-400"></span></p> <p>Money earned: $<span id="money-earned" class="text-yellow-400"></span></p> </div> <div class="flex space-x-4"> <button id="play-again" class="bg-green-700 hover:bg-green-600 text-white py-3 px-6 rounded-lg text-xl"> Play Again </button> <button id="main-menu-btn" class="bg-gray-700 hover:bg-gray-600 text-white py-3 px-6 rounded-lg text-xl"> Main Menu </button>
<div class="bg-gray-800 text-white py-8 mt-12"> <div class="container mx-auto px-4"> <div class="flex flex-col md:flex-row justify-between"> <div class="mb-6 md:mb-0"> <h3 class="text-xl font-bold mb-4">StockSense B3</h3> <p class="text-gray-400">Análises simplificadas para investidores de todos os níveis.</p> </div> <div> <h4 class="text-lg font-semibold mb-3">Aprenda mais</h4> <ul class="space-y-2"> <li><a href="#" class="text-gray-400 hover:text-white">Termos de Uso</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Política de Privacidade</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Dúvidas Frequentes</a></li> </ul> </div> </div> <div class="mt-8 pt-6 border-t border-gray-700 text-center text-gray-400 text-sm"> <p>© 2023 StockSense B3. Este site não oferece recomendações de investimento.</p> </div> </div> </div> <!-- Sound effects --> <audio id="ghost-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-creepy-ghost-sigh-276.mp3" preload="auto"></audio> <audio id="hunt-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-horror-demon-breaths-365.mp3" preload="auto"></audio> <audio id="spirit-box-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-ghost-whisper-439.mp3" preload="auto"></audio> <audio id="success-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-achievement-bell-600.mp3" preload="auto"></audio> <audio id="failure-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-retro-arcade-lose-2027.mp3" preload="auto"></audio> <audio id="heartbeat-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-fast-heartbeat-757.mp3" preload="auto" loop></audio> <script> // Game state const gameState = { sanity: 100, money: 100, timeLeft: 300, // 5 minutes in seconds ghostType: null, ghostName: "", evidences: [], foundEvidences: [], currentEquipment: null, isHunting: false, isGameOver: false, ghostPresent: false, emfLevel: 0, temperature: 20, gameTimer: null, sanityTimer: null, ghostTimer: null, huntTimer: null };
// Ghost types and their evidences const ghostTypes = { spirit: { name: "Spirit", evidences: ["emf5", "spirit-box", "writing"] }, phantom: { name: "Phantom", evidences: ["emf5", "freezing", "orb"] }, demon: { name: "Demon", evidences: ["freezing", "spirit-box", "writing"] }, jinn: { name: "Jinn", evidences: ["emf5", "fingerprints", "freezing"] }, revenant: { name: "Revenant", evidences: ["writing", "fingerprints", "orb"] }, shade: { name: "Shade", evidences: ["emf5", "writing", "orb"] } };
// Ghost names for flavor const ghostNames = [ "The Shadow", "The Watcher", "The Forgotten", "The Hungry", "The Angry", "The Lonely", "The Broken", "The Lost", "The Tormented", "The Vengeful" ];
// DOM elements const mainMenu = document.getElementById('main-menu'); const gameUI = document.getElementById('game-ui'); const gameOverScreen = document.getElementById('game-over'); const startGameBtn = document.getElementById('start-game'); const howToPlayBtn = document.getElementById('how-to-play'); const instructions = document.getElementById('instructions'); const closeInstructionsBtn = document.getElementById('close-instructions'); const leaveGameBtn = document.getElementById('leave-game'); const playAgainBtn = document.getElementById('play-again'); const mainMenuBtn = document.getElementById('main-menu-btn'); const ghostSelect = document.getElementById('ghost-select'); const identifyBtn = document.getElementById('identify-btn'); const sanityDisplay = document.getElementById('sanity'); const moneyDisplay = document.getElementById('money'); const timeDisplay = document.getElementById('time'); const ghost = document.getElementById('ghost'); const emfReader = document.getElementById('emf-reader'); const emfValue = document.getElementById('emf-value'); const spiritBox = document.getElementById('spirit-box'); const spiritResponse = document.getElementById('spirit-response'); const thermometer = document.getElementById('thermometer'); const temperatureDisplay = document.getElementById('temperature'); const ghostWriting = document.getElementById('ghost-writing'); const writingText = document.getElementById('writing-text'); const revealedGhost = document.getElementById('revealed-ghost'); const evidenceFound = document.getElementById('evidence-found'); const moneyEarned = document.getElementById('money-earned'); const gameOverTitle = document.getElementById('game-over-title'); const gameOverMessage = document.getElementById('game-over-message'); const equipmentBtns = document.querySelectorAll('.equipment-btn'); const evidenceElements = document.querySelectorAll('.evidence'); const flashlightElement = document.querySelector('.flashlight'); const ghostSound = document.getElementById('ghost-sound'); const huntSound = document.getElementById('hunt-sound'); const spiritBoxSound = document.getElementById('spirit-box-sound'); const successSound = document.getElementById('success-sound'); const failureSound = document.getElementById('failure-sound'); const heartbeatSound = document.getElementById('heartbeat-sound');
// Initialize game function initGame() { resetGameState(); setupEventListeners(); // Flashlight follow mouse document.addEventListener('mousemove', (e) => { flashlightElement.style.setProperty('--x', e.clientX + 'px'); flashlightElement.style.setProperty('--y', e.clientY + 'px'); }); }
// Reset game state function resetGameState() { gameState.sanity = 100; gameState.money = 100; gameState.timeLeft = 300; gameState.ghostType = null; gameState.ghostName = ""; gameState.evidences = []; gameState.foundEvidences = []; gameState.currentEquipment = null; gameState.isHunting = false; gameState.isGameOver = false; gameState.ghostPresent = false; gameState.emfLevel = 0; gameState.temperature = 20; // Clear any active timers if (gameState.gameTimer) clearInterval(gameState.gameTimer); if (gameState.sanityTimer) clearInterval(gameState.sanityTimer); if (gameState.ghostTimer) clearInterval(gameState.ghostTimer); if (gameState.huntTimer) clearInterval(gameState.huntTimer); // Reset UI sanityDisplay.textContent = gameState.sanity; moneyDisplay.textContent = gameState.money; updateTimeDisplay(); ghost.classList.add('hidden'); emfReader.classList.add('hidden'); spiritBox.classList.add('hidden'); thermometer.classList.add('hidden'); ghostWriting.classList.add('hidden'); // Reset evidence highlights evidenceElements.forEach(el => { el.classList.remove('evidence-found'); }); // Select a random ghost type const ghostKeys = Object.keys(ghostTypes); const randomGhostKey = ghostKeys[Math.floor(Math.random() * ghostKeys.length)]; gameState.ghostType = randomGhostKey; gameState.evidences = [...ghostTypes[randomGhostKey].evidences]; gameState.ghostName = ghostNames[Math.floor(Math.random() * ghostNames.length)]; console.log("Ghost type:", ghostTypes[randomGhostKey].name); console.log("Evidences:", gameState.evidences); }
// Setup event listeners function setupEventListeners() { startGameBtn.addEventListener('click', startGame); howToPlayBtn.addEventListener('click', () => instructions.classList.remove('hidden')); closeInstructionsBtn.addEventListener('click', () => instructions.classList.add('hidden')); leaveGameBtn.addEventListener('click', endGame); playAgainBtn.addEventListener('click', startGame); mainMenuBtn.addEventListener('click', showMainMenu); identifyBtn.addEventListener('click', identifyGhost); equipmentBtns.forEach(btn => { btn.addEventListener('click', () => { const equipment = btn.getAttribute('data-equipment'); toggleEquipment(equipment); }); }); }
// Start game function startGame() { resetGameState(); mainMenu.classList.add('hidden'); gameUI.classList.remove('hidden'); gameOverScreen.classList.add('hidden'); // Start game timer gameState.gameTimer = setInterval(() => { gameState.timeLeft--; updateTimeDisplay(); if (gameState.timeLeft <= 0) { endGame(false, "Time's up! The ghost got away..."); <script> document.addEventListener('DOMContentLoaded', function() { const analyzeBtn = document.getElementById('analyzeBtn'); const stockInput = document.getElementById('stockInput'); const resultsSection = document.getElementById('resultsSection'); const newAnalysisBtn = document.getElementById('newAnalysisBtn'); // Sample stock data (in a real app, this would come from an API) const stockDatabase = { 'PETR4': { name: 'Petróleo Brasileiro S.A.', price: 32.15, change: -1.2, sentiment: 'neutral', generalSentiment: 'O mercado está dividido sobre esta ação, com análises neutras predominando.', technicalTrend: 'A ação está em uma fase de consolidação após queda recente.', recommendation: 'Aguardar melhores oportunidades de entrada.', detailedAnalysis: 'A ação PETR4 apresenta um momento de indecisão no mercado. Nos últimos 15 dias, o volume negociado ficou 12% abaixo da média histórica, indicando cautela dos investidores. Analistas apontam que o preço do petróleo e a política de dividendos são os principais fatores que estão influenciando o sentimento no momento. Recomenda-se acompanhar os próximos balanços trimestrais.' }, 'VALE3': { name: 'Vale S.A.', price: 68.90, change: 2.3, sentiment: 'positive', generalSentiment: 'Sentimento positivo devido à alta no preço do minério de ferro.', technicalTrend: 'Tendência de alta com volume crescente.', recommendation: 'Pode ser uma boa oportunidade de compra.', detailedAnalysis: 'A VALE3 tem se beneficiado do aumento nos preços internacionais do minério de ferro. A demanda chinesa e a recuperação da indústria global estão impulsionando os resultados. O último trimestre mostrou crescimento nos lucros e os analistas estão revisando suas projeções para cima.' }, 'ITUB4': { name: 'Itaú Unibanco Holding S.A.', price: 27.45, change: -0.5, sentiment: 'negative', generalSentiment: 'Preocupações com aumento da inadimplência afetam o sentimento.', technicalTrend: 'Testando suporte importante após queda.', recommendation: 'Cautela até novo sinal de reversão.', detailedAnalysis: 'O setor bancário está sob pressão devido ao aumento nas taxas de inadimplência. O ITUB4, apesar de ser um dos bancos mais sólidos, não está imune a esse movimento. Os resultados do próximo trimestre serão cruciais para determinar se a queda é momentânea ou o início de uma tendência mais prolongada.' } }, 1000); }; // Start sanity drain gameState.sanityTimer = setInterval(() => { if (gameState.isHunting) return; // Sanity drains faster when ghost is present const drainRate = gameState.ghostPresent ? 2 : 1; gameState.sanity = Math.max(0, gameState.sanity - drainRate); sanityDisplay.textContent = gameState.sanity; analyzeBtn.addEventListener('click', function() { const stockCode = stockInput.value.trim().toUpperCase(); if (gameState.sanity <= 0) { triggerHunt(); if (stockCode === '') { alert('Por favor, digite o código de uma ação.'); return; } // Random ghost events when sanity is low if (gameState.sanity < 30 && Math.random() < 0.05) { ghostEvent(); if (!stockDatabase[stockCode]) { alert('Ação não encontrada em nossa base de dados. Tente PETR4, VALE3 ou ITUB4.'); return; } }, 1000); // Random ghost appearances gameState.ghostTimer = setInterval(() => { if (gameState.isHunting || gameState.isGameOver) return; // Higher chance when sanity is low const chance = gameState.sanity < 50 ? 0.2 : 0.05; if (Math.random() < chance) { ghostEvent(); } }, 5000); }
// Update time display function updateTimeDisplay() { const minutes = Math.floor(gameState.timeLeft / 60); const seconds = gameState.timeLeft % 60; timeDisplay.textContent = `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`; }
// Toggle equipment function toggleEquipment(equipment) { // Hide all equipment first emfReader.classList.add('hidden'); spiritBox.classList.add('hidden'); thermometer.classList.add('hidden'); ghostWriting.classList.add('hidden'); // Reset equipment buttons equipmentBtns.forEach(btn => { btn.classList.remove('equipment-selected'); // Display results displayStockAnalysis(stockCode); }); // If clicking the same equipment, just turn it off if (gameState.currentEquipment === equipment) { gameState.currentEquipment = null; return; } gameState.currentEquipment = equipment; // Highlight selected button document.querySelector(`.equipment-btn[data-equipment="${equipment}"]`).classList.add('equipment-selected'); // Show the appropriate equipment switch (equipment) { case 'emf': emfReader.classList.remove('hidden'); updateEMFReader(); break; case 'spirit-box': spiritBox.classList.remove('hidden'); useSpiritBox(); break; case 'thermometer': thermometer.classList.remove('hidden'); updateThermometer(); break; case 'book': ghostWriting.classList.remove('hidden'); checkGhostWriting(); break; } }
// Update EMF reader function updateEMFReader() { if (!gameState.ghostPresent) { emfValue.textContent = "0"; gameState.emfLevel = 0; return; } // Random EMF level, higher chance for EMF 5 if it's evidence const hasEMF5 = gameState.evidences.includes('emf5'); const random = Math.random(); if (hasEMF5 && random < 0.3) { gameState.emfLevel = 5; } else if (random < 0.7) { gameState.emfLevel = Math.floor(Math.random() * 4) + 1; } else { gameState.emfLevel = 0; } emfValue.textContent = gameState.emfLevel; // If EMF 5 is found, add evidence if (gameState.emfLevel === 5 && !gameState.foundEvidences.includes('emf5')) { addEvidence('emf5'); } }
// Use spirit box function useSpiritBox() { if (!gameState.ghostPresent) { spiritResponse.textContent = "No response"; return; } const hasSpiritBox = gameState.evidences.includes('spirit-box'); const random = Math.random(); if (hasSpiritBox && random < 0.7) { spiritResponse.textContent = getRandomSpiritResponse(); spiritBoxSound.play(); if (!gameState.foundEvidences.includes('spirit-box')) { addEvidence('spirit-box'); stockInput.addEventListener('keypress', function(e) { if (e.key === 'Enter') { analyzeBtn.click(); } } else { spiritResponse.textContent = "No response"; } }
// Get random spirit box response function getRandomSpiritBoxResponse() { const responses = [ "Behind you", "I'm here", "Leave", "Die", "Help me", "Close", "Death", "Hate", "Kill", "Pain" ]; return responses[Math.floor(Math.random() * responses.length)]; }
// Update thermometer function updateThermometer() { if (!gameState.ghostPresent) { gameState.temperature = 20; temperatureDisplay.textContent = `${gameState.temperature}°C`; return; } const hasFreezing = gameState.evidences.includes('freezing'); const random = Math.random(); if (hasFreezing && random < 0.8) { gameState.temperature = Math.floor(Math.random() * 5) - 5; // -5 to 0°C } else { gameState.temperature = Math.floor(Math.random() * 10) + 10; // 10-20°C } temperatureDisplay.textContent = `${gameState.temperature}°C`; // If freezing temps are found, add evidence if (gameState.temperature <= 0 && !gameState.foundEvidences.includes('freezing')) { addEvidence('freezing'); } }
// Check ghost writing function checkGhostWriting() { if (!gameState.ghostPresent) { writingText.textContent = "No writing"; return; } }); const hasWriting = gameState.evidences.includes('writing'); const random = Math.random(); newAnalysisBtn.addEventListener('click', function() { resultsSection.classList.add('hidden'); stockInput.value = ''; stockInput.focus(); }); if (hasWriting && random < 0.7) { writingText.textContent = getRandomWriting(); function displayStockAnalysis(stockCode) { const stock = stockDatabase[stockCode]; const now = new Date(); if (!gameState.foundEvidences.includes('writing')) { addEvidence('writing'); } } else { writingText.textContent = "No writing"; } }
// Get random ghost writing function getRandomWriting() { const writings = [ "HELP", "DIE", "LEAVE", "HATE", "PAIN", "KILL", "DEATH", "CLOSE", "NEAR", "RUN" ]; return writings[Math.floor(Math.random() * writings.length)]; }
// Add found evidence function addEvidence(evidence) { if (!gameState.foundEvidences.includes(evidence)) { gameState.foundEvidences.push(evidence); // Update UI with stock data document.getElementById('stockSymbol').textContent = stockCode; document.getElementById('stockName').textContent = stock.name; document.getElementById('currentPrice').textContent = `R$ ${stock.price.toFixed(2).replace('.', ',')}`; // Highlight evidence in UI document.querySelector(`.evidence[data-evidence="${evidence}"]`).classList.add('evidence-found'); const changeElement = document.getElementById('priceChange'); changeElement.textContent = `${stock.change > 0 ? '+' : ''}${stock.change.toFixed(1).replace('.', ',')}%`; changeElement.className = `ml-3 px-2 py-1 rounded text-sm font-medium ${ stock.change > 0 ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800' }`; // Reward money for finding evidence gameState.money += 25; moneyDisplay.textContent = gameState.money; // Update sentiment const sentimentBadge = document.getElementById('sentimentBadge'); sentimentBadge.className = `px-4 py-2 rounded-full text-white font-medium sentiment-${stock.sentiment}`; sentimentBadge.textContent = stock.sentiment === 'positive' ? 'Positivo' : stock.sentiment === 'negative' ? 'Negativo' : 'Neutro'; successSound.play(); } }
// Ghost event (appearance, sound, etc.) function ghostEvent() { if (gameState.isHunting || gameState.isGameOver) return; gameState.ghostPresent = true; ghostSound.play(); // Random chance to show ghost if (Math.random() < 0.5) { ghost.classList.remove('hidden'); ghost.classList.add('ghost-appear'); // Update analysis texts document.getElementById('generalSentiment').textContent = stock.generalSentiment; document.getElementById('technicalTrend').textContent = stock.technicalTrend; document.getElementById('recommendation').textContent = stock.recommendation; document.getElementById('detailedAnalysis').innerHTML = `<p>${stock.detailedAnalysis}</p>`; // Random position const x = Math.random() * 70 + 15; const y = Math.random() * 70 + 15; ghost.style.left = `${x}%`; ghost.style.top = `${y}%`; // Update time document.getElementById('updateTime').textContent = `${now.getDate().toString().padStart(2, '0')}/${(now.getMonth()+1).toString().padStart(2, '0')}/${now.getFullYear()} ` + `${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}`; // Hide after a few seconds setTimeout(() => { ghost.classList.remove('ghost-appear'); ghost.classList.add('hidden'); gameState.ghostPresent = false; }, 2000); } else { setTimeout(() => { gameState.ghostPresent = false; }, 3000); } // Update equipment readings if active if (gameState.currentEquipment === 'emf') updateEMFReader(); if (gameState.currentEquipment === 'thermometer') updateThermometer(); if (gameState.currentEquipment === 'spirit-box') useSpiritBox(); if (gameState.currentEquipment === 'book') checkGhostWriting(); }
// Trigger ghost hunt function triggerHunt() { if (gameState.isHunting || gameState.isGameOver) return; gameState.isHunting = true; gameState.ghostPresent = true; huntSound.play(); heartbeatSound.play(); // Show ghost ghost.classList.remove('hidden'); ghost.classList.add('ghost-appear', 'pulse', 'flicker'); ghost.style.left = '50%'; ghost.style.top = '50%'; ghost.style.transform = 'translate(-50%, -50%)'; // Flashlight flicker flashlightElement.classList.add('flicker'); // Hunt lasts for 10-20 seconds const huntDuration = Math.random() * 10000 + 10000; gameState.huntTimer = setTimeout(() => { endHunt(); }, huntDuration); // Player can die during hunt if (Math.random() < 0.7) { setTimeout(() => { if (gameState.isHunting) { endGame(true, `${gameState.ghostName} killed you!`); } }, huntDuration / 2); } }
// End ghost hunt function endHunt() { gameState.isHunting = false; gameState.ghostPresent = false; ghost.classList.add('hidden'); ghost.classList.remove('ghost-appear', 'pulse', 'flicker'); flashlightElement.classList.remove('flicker'); heartbeatSound.pause(); heartbeatSound.currentTime = 0; if (gameState.huntTimer) clearTimeout(gameState.huntTimer); }
// Identify ghost function identifyGhost() { const selectedGhost = ghostSelect.value; if (!selectedGhost) { alert("Please select a ghost type!"); return; } if (selectedGhost === gameState.ghostType) { // Correct identification const moneyEarned = 100 + (gameState.foundEvidences.length * 25); gameState.money += moneyEarned; endGame(false, `Correct! It was a ${ghostTypes[gameState.ghostType].name}. You earned $${moneyEarned}!`); successSound.play(); } else { // Wrong identification gameState.sanity = Math.max(0, gameState.sanity - 20); sanityDisplay.textContent = gameState.sanity; alert(`Wrong! The ghost is not a ${ghostTypes[selectedGhost].name}.`); failureSound.play(); // Show results resultsSection.classList.remove('hidden'); // High chance of hunt after wrong identification if (gameState.sanity > 0 && Math.random() < 0.7) { triggerHunt(); } // Scroll to results resultsSection.scrollIntoView({ behavior: 'smooth' }); } }
// End game function endGame(died = false, message = "") { gameState.isGameOver = true; // Clear timers if (gameState.gameTimer) clearInterval(gameState.gameTimer); if (gameState.sanityTimer) clearInterval(gameState.sanityTimer); if (gameState.ghostTimer) clearInterval(gameState.ghostTimer); if (gameState.huntTimer) clearTimeout(gameState.huntTimer); // Hide game UI gameUI.classList.add('hidden'); // Show game over screen gameOverScreen.classList.remove('hidden'); // Set game over message if (died) { gameOverTitle.textContent = "GAME OVER"; gameOverTitle.classList.add('text-red-600'); gameOverTitle.classList.remove('text-green-600'); gameOverMessage.textContent = message; } else { gameOverTitle.textContent = "MISSION COMPLETE"; gameOverTitle.classList.add('text-green-600'); gameOverTitle.classList.remove('text-red-600'); gameOverMessage.textContent = message || "You successfully identified the ghost!"; } // Show ghost type and evidence found revealedGhost.textContent = ghostTypes[gameState.ghostType].name; evidenceFound.textContent = gameState.foundEvidences.join(", "); moneyEarned.textContent = gameState.money; }
// Show main menu function showMainMenu() { gameOverScreen.classList.add('hidden'); mainMenu.classList.remove('hidden'); }
// Initialize the game initGame(); }); </script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=moosee/teste" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>123445deixe todos os botões funcionaisconstrua telas para quando clicar nos botões funcionários, serviços, agendamentos, clientes, financeiro, configuraçõescrie um site de gestão de lava rapido onde é possível acompanhar fatores como serviços feitos por cada funcionário, agendamentos, faturamento, serviços, etcfaça um jogo no estilo phasmophobiafaça um jogo no estilo phasmophobiaFAÇA UM SITE QUE FAZ UMA ANALISE SENTIMENTAL SOBRE AÇÕES DA BOVESPA, O USUÁRIO DIGITA A SIGLA DA AÇÃO E O SITE TRAS UMA ANALISE COMPLETA PARA QUE QUALQUER UM ENTENDAindex.html+246-769
prompts.txt+2-1