Skip to content

Commit

Permalink
An app made by Claude in response to ChatGPT roleplay
Browse files Browse the repository at this point in the history
  • Loading branch information
ToonTalk committed Apr 23, 2024
1 parent f3c9097 commit 857a216
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/claude helps chatgpt roleplaying a child/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mr. Whiskers</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Welcome to Mr. Whiskers' Page!</h1>
<img src="mr-whiskers.jpg" alt="Mr. Whiskers" id="cat-image">
<button id="fun-button">Click me for fun!</button>

<audio id="meow-sound" src="meow.wav"></audio>

<script src="script.js"></script>
</body>
</html>
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions apps/claude helps chatgpt roleplaying a child/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const funButton = document.getElementById('fun-button');
const catImage = document.getElementById('cat-image');
const meowSound = document.getElementById('meow-sound');

let clicked = false;

funButton.addEventListener('click', () => {
meowSound.play();

if (!clicked) {
catImage.style.transform = 'rotate(360deg) scale(1.5)';
catImage.style.transition = 'transform 1s';
funButton.style.backgroundColor = '#FF5722';
funButton.textContent = 'Click me again!';
clicked = true;
} else {
catImage.style.transform = 'rotate(0deg) scale(1)';
funButton.style.backgroundColor = '#007BFF';
funButton.textContent = 'Click me for fun!';
clicked = false;
}
});
20 changes: 20 additions & 0 deletions apps/claude helps chatgpt roleplaying a child/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
body {
font-family: Arial, sans-serif;
text-align: center;
}

#cat-image {
width: 300px;
border-radius: 10px;
margin: 20px 0;
}

#fun-button {
font-size: 18px;
padding: 10px 20px;
border: none;
background-color: #007BFF;
color: white;
border-radius: 5px;
cursor: pointer;
}

0 comments on commit 857a216

Please sign in to comment.