A Pen by istockmarket on CodePen.
Created
October 22, 2025 21:43
-
-
Save istockmarket/5cdfd9a3ed0a2b18e66b10e8c5b97a0a to your computer and use it in GitHub Desktop.
Ai. Assistant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1 class="title">π Funny Audio & Video Studio π</h1> | |
| <div class="container"> | |
| <!-- Profile Selection --> | |
| <div class="section"> | |
| <h2>π€ Choose Your Profile</h2> | |
| <div id="profileSelection"> | |
| <button class="emoji-btn" onclick="setProfile('πΆ')">πΆ</button> | |
| <button class="emoji-btn" onclick="setProfile('π±')">π±</button> | |
| <button class="emoji-btn" onclick="setProfile('π¦')">π¦</button> | |
| <button class="emoji-btn" onclick="setProfile('πΌ')">πΌ</button> | |
| <button class="emoji-btn" onclick="setProfile('π¦')">π¦</button> | |
| <button class="emoji-btn" onclick="setProfile('π€')">π€</button> | |
| <button class="emoji-btn" onclick="setProfile('π½')">π½</button> | |
| <button class="emoji-btn" onclick="setProfile('π')">π</button> | |
| <button class="emoji-btn" onclick="setProfile('π')">π</button> | |
| <button class="emoji-btn" onclick="setProfile('π₯')">π₯</button> | |
| </div> | |
| <div id="currentProfile" style="font-size:50px; margin-top:15px;">Select your emoji!</div> | |
| </div> | |
| <!-- Sound Effects --> | |
| <div class="section"> | |
| <h2>π Sound Effects</h2> | |
| <div class="sound-grid"> | |
| <button class="sound-btn" onclick="playSound('boing')">πͺ BOING!</button> | |
| <button class="sound-btn" onclick="playSound('tada')">πΊ TADA!</button> | |
| <button class="sound-btn" onclick="playSound('laugh')">π HAHA!</button> | |
| <button class="sound-btn" onclick="playSound('woohoo')">π WOOHOO!</button> | |
| <button class="sound-btn" onclick="playSound('oops')">π OOPS!</button> | |
| <button class="sound-btn" onclick="playSound('yay')">π YAY!</button> | |
| </div> | |
| </div> | |
| <!-- Animation Stage, Webcam, AI Buddy... same as before --> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ====== Profile System with localStorage ====== */ | |
| const adjectives=["Silly","Happy","Crazy","Lazy","Funny","Sneaky","Sparkly","Bouncy","Cheerful","Mysterious"]; | |
| const animals=["Dog","Cat","Lion","Panda","Unicorn","Robot","Alien","Pumpkin","Star","Flame"]; | |
| let userProfile={emoji:null,name:null}; | |
| window.onload=function(){ | |
| const saved=localStorage.getItem('userProfile'); | |
| if(saved){ | |
| userProfile=JSON.parse(saved); | |
| document.getElementById('currentProfile').textContent=`Profile: ${userProfile.name} ${userProfile.emoji}`; | |
| } | |
| } | |
| function generateProfileName(){return adjectives[Math.floor(Math.random()*adjectives.length)]+animals[Math.floor(Math.random()*animals.length)];} | |
| function setProfile(emoji){ | |
| userProfile.emoji=emoji; | |
| userProfile.name=generateProfileName(); | |
| document.getElementById('currentProfile').textContent=`Profile: ${userProfile.name} ${userProfile.emoji}`; | |
| localStorage.setItem('userProfile', JSON.stringify(userProfile)); | |
| } | |
| /* ====== Sound System ====== */ | |
| const audioContext=new (window.AudioContext||window.webkitAudioContext)(); | |
| function playSound(type){ | |
| const osc=audioContext.createOscillator(), gain=audioContext.createGain(); | |
| osc.connect(gain); gain.connect(audioContext.destination); | |
| /* ...rest of your sound logic... */ | |
| } | |
| /* ====== Animation Stage / Webcam / AI Buddy ... same as before */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { margin:0; padding:0; box-sizing:border-box; } | |
| body { | |
| font-family:'Comic Sans MS', cursive, sans-serif; | |
| background:linear-gradient(45deg,#ff6b6b,#feca57,#48dbfb,#ff9ff3); | |
| background-size:400% 400%; | |
| animation:gradientShift 15s ease infinite; | |
| min-height:100vh; display:flex; flex-direction:column; align-items:center; padding:20px; | |
| } | |
| @keyframes gradientShift { | |
| 0%{background-position:0% 50%;} | |
| 50%{background-position:100% 50%;} | |
| 100%{background-position:0% 50%;} | |
| } | |
| .title{ font-size:3em;color:white;text-shadow:3px 3px 6px rgba(0,0,0,0.3);margin-bottom:30px; animation:bounce 2s infinite; } | |
| @keyframes bounce{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-20px);} } | |
| /* rest of your CSS for .container, .section, .sound-btn, .animation-area, etc. */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment