game/modules_data/steps/first_step.php

31 lines
564 B
PHP
Raw Normal View History

<?php
/**
* @var string $token
* @var int $time
* @var string $button_text
* @var object $step
*/
$short_name = 'first_step';
require 'step.php';
?>
<script>
const training_data = () => {
return {
content: `<?=$step->message?>`,
title: `<?=$step->title?>`,
button_text: `<?=$button_text?>`,
time: <?=$time?>,
token: '<?=$token?>',
short_name: '<?=$short_name?>',
}
}
</script>
<script src="/js/training/modal.js"></script>
<script>
modal.show()
</script>