Claw to Get One Guy - The Number 1 Game
About this app
Claw to Get One Guy is the ultimate claw machine game where you need to use your skills to grab and rescue a guy. Can you become the number one player?
Claw to Get One Guy - The Number 1 Game Claw to Get One Guy Can you become the number one player? Score: 0 Attempts: 0 Click the button to grab a guy! Grab a Guy Reset
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Claw to Get One Guy - The Number 1 Game</title>
<meta name="description" content="Claw to Get One Guy is the ultimate claw machine game where you need to use your skills to grab and rescue a guy. Can you become the number one player?">
<meta name="keywords" content="claw, game, claw machine, grab, rescue, skills, number one, player">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Variables
var score = 0;
var attempts = 0;
// Event listeners
$("#claw-button").click(function() {
attempts++;
var success = Math.random() < 0.5 ? true : false;
if (success) {
score++;
$("#score").text(score);
$("#message").text("You grabbed a guy! Keep going!");
} else {
$("#message").text("Oops! You missed. Try again!");
}
});
$("#reset-button").click(function() {
score = 0;
attempts = 0;
$("#score").text(score);
$("#attempts").text(attempts);
$("#message").text("Click the button to grab a guy!");
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f5f5f5;
font-family: 'Press Start 2P', cursive;
}
.container {
text-align: center;
padding-top: 50px;
}
h1 {
color: #ff4500;
}
#score {
font-size: 24px;
font-weight: bold;
color: #ff4500;
}
#attempts {
font-size: 18px;
color: #666666;
}
#message {
font-size: 16px;
color: #666666;
margin-top: 20px;
}
#claw-button {
background-color: #ff4500;
color: #ffffff;
padding: 10px 20px;
font-size: 18px;
border: none;
border-radius: 4px;
margin-top: 30px;
cursor: pointer;
transition: background-color 0.3s;
}
#claw-button:hover {
background-color: #ff5722;
}
#reset-button {
background-color: #555555;
color: #ffffff;
padding: 10px 20px;
font-size: 18px;
border: none;
border-radius: 4px;
margin-top: 10px;
cursor: pointer;
transition: background-color 0.3s;
}
#reset-button:hover {
background-color: #666666;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Claw to Get One Guy</h1>
<p>Can you become the number one player?</p>
<div>
<p>Score: <span id="score">0</span></p>
<p>Attempts: <span id="attempts">0</span></p>
<p id="message">Click the button to grab a guy!</p>
<button id="claw-button">Grab a Guy</button>
<button id="reset-button">Reset</button>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!