Roman Hodovanyi Career Stats Quiz
Nov 22, 2023
v.0
Interactive quiz about Ukrainian footballer Roman Hodovanyi's career stats and facts. Football Game Interactive Quiz Roman Hodovanyi Career Stats Ukrainian Footballer

Versions  

Bugs  
None!

Get This App On Your Website

1. Copy the code above with the iframe and link.
2. Paste the code into your website.
3. Resize the iframe to fit your website.

Javascript, HTML, CSS Code

                
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Roman Hodovanyi Career Stats Quiz</title>
<meta name="description" content="Interactive quiz about Ukrainian footballer Roman Hodovanyi's career stats and facts.">
<meta name="keywords" content="Roman Hodovanyi, Football, Quiz, Career Stats, Interactive, Game, Ukrainian Footballer">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

<style>
body {
font-family: 'Lobster', cursive;
background: linear-gradient(to right, #6dd5ed, #2193b0);
color: #FFF;
}

h1, h2 {
font-family: 'Bangers', cursive;
text-align: center;
}

.container {
margin-top: 50px;
}

#question {
margin-bottom: 20px;
}

.answer {
cursor: pointer;
background-color: #f8d7da;
border-radius: 5px;
margin: 10px 0;
padding: 10px;
transition: background-color 0.3s ease;
}

.answer:hover {
background-color: #fce4e4;
}

.correct {
background-color: #d4edda;
color: #155724;
}

.quiz-info {
text-align: center;
margin-top: 20px;
}

#wikipedia-link {
text-decoration: none;
color: #FFF;
}

.fa {
margin-right: 5px;
}

#result {
display: none;
text-align: center;
margin-top: 20px;
}
</style>

<link rel="canonical" href="https://calculator.tools/app/roman-hodovanyi-career-stats-quiz-782/">
<meta charset="utf-8">

</head>
<body>
<div class="container">
<h1>Roman Hodovanyi Career Stats Quiz 🏆</h1>
<h2>Test your knowledge about the Ukrainian footballer!</h2>

<div id="question"></div>
<div id="answers"></div>

<div class="quiz-info">
<button id="next-question" class="btn btn-primary">Next Question</button>
<p>Learn more about Roman Hodovanyi on <a href="https://en.wikipedia.org/wiki/Roman_Hodovanyi" target="_blank" rel="nofollow" id="wikipedia-link">Wikipedia <i class="fa fa-external-link"></i></a></p>
</div>

<div id="result">
<h3>Your Score: <span id="score"></span>/5</h3>
<button id="restart-quiz" class="btn btn-success">Restart Quiz</button>
</div>
</div>

<script>
const questions = [
{
question: "In which year did Roman Hodovanyi start his senior career?",
answers: [
{ text: "2007", correct: false },
{ text: "2009", correct: true },
{ text: "2010", correct: false },
{ text: "2006", correct: false }
]
},
{
question: "What position does Roman Hodovanyi usually play?",
answers: [
{ text: "Midfielder", correct: false },
{ text: "Defender", correct: true },
{ text: "Forward", correct: false },
{ text: "Goalkeeper", correct: false }
]
},
{
question: "For which team did Roman Hodovanyi play from 2010 to 2015?",
answers: [
{ text: "FC Slavia Mozyr", correct: false },
{ text: "FC Volyn Lutsk", correct: true },
{ text: "FC Nyva Ternopil", correct: false },
{ text: "FC Ternopil", correct: false }
]
},
{
question: "How tall is Roman Hodovanyi?",
answers: [
{ text: "1.70 m", correct: false },
{ text: "1.87 m", correct: true },
{ text: "1.75 m", correct: false },
{ text: "1.82 m", correct: false }
]
},
{
question: "Where was Roman Hodovanyi born?",
answers: [
{ text: "Kyiv", correct: false },
{ text: "Ternopil", correct: true },
{ text: "Lviv", correct: false },
{ text: "Kharkiv", correct: false }
]
}
];

let currentQuestionIndex = 0;
let score = 0;

document.addEventListener("DOMContentLoaded", function() {
showQuestion();

$('#next-question').click(function() {
if (currentQuestionIndex < questions.length - 1) {
currentQuestionIndex++;
resetState();
showQuestion();
} else {
$('#main-container').hide();
$('#result').show();
$('#score').text(score);
}
});

$('#restart-quiz').click(function() {
score = 0;
currentQuestionIndex = 0;
resetState();
showQuestion();
$('#main-container').show();
$('#result').hide();
});
});

function showQuestion() {
const question = questions[currentQuestionIndex];
$('#question').text(question.question);
question.answers.forEach(answer => {
const button = $('<button>').addClass('answer').text(answer.text);
if (answer.correct) {
button.addClass('correct');
}
button.click(selectAnswer);
$('#answers').append(button);
});
}

function resetState() {
$('.answer').remove();
}

function selectAnswer(e) {
const selectedButton = $(e.target);
const correct = selectedButton.hasClass('correct');
if (correct) {
score++;
}
$('.answer').each(function() {
$(this).prop('disabled', true);
if ($(this).hasClass('correct')) {
$(this).addClass('correct');
}
});
if (questions.length > currentQuestionIndex + 1) {
$('#next-question').prop('disabled', false);
}
}
</script>
<script type="text/javascript"> var localStoragePrefix = "ct-782"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>

NEW APPS

These are apps made by the community!

FAQ

What is Calculator Tools?

Calculator Tools allows you to instantly create and generate any simple one page web app for free and immediately have it online to use and share. This means anything! Mini apps, calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the AI can handle.

The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.

What Do You Mean Make An App?

Have you ever just wanted a simple app but didn't want to learn programming or pay someone to make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will generate a simple app for you in seconds. You can then customize it to your liking and share it with your friends.

AI has become so powerful it is that simple these days.

Does This Use ChatGPT?

It uses GPT-4 which is the most powerful model for ChatGPT.

Calculator Tools does not remember things from prompt to prompt, each image is a unique image that does not reference any of the images or prompts previously supplied.