2023-01-10 22:39:11 +00:00
|
|
|
<?php
|
|
|
|
|
2023-01-15 21:47:19 +00:00
|
|
|
/**
|
|
|
|
* @var string $token
|
|
|
|
* @var int $time
|
|
|
|
* @var string $button_text
|
|
|
|
* @var object $step
|
|
|
|
*/
|
2023-01-10 22:39:11 +00:00
|
|
|
|
|
|
|
$short_name = 'first_step';
|
|
|
|
|
2023-01-15 21:47:19 +00:00
|
|
|
require 'step.php';
|
2023-01-10 22:39:11 +00:00
|
|
|
|
2023-01-15 21:47:19 +00:00
|
|
|
?>
|
2023-01-12 20:38:13 +00:00
|
|
|
<script>
|
|
|
|
const training_data = () => {
|
|
|
|
return {
|
|
|
|
content: `<?=$step->message?>`,
|
|
|
|
title: `<?=$step->title?>`,
|
2023-01-15 21:47:19 +00:00
|
|
|
button_text: `<?=$button_text?>`,
|
|
|
|
time: <?=$time?>,
|
|
|
|
token: '<?=$token?>',
|
|
|
|
short_name: '<?=$short_name?>',
|
2023-01-12 20:38:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<script src="/js/training/modal.js"></script>
|
2023-01-10 22:39:11 +00:00
|
|
|
|
2023-01-12 20:38:13 +00:00
|
|
|
<script>
|
|
|
|
modal.show()
|
|
|
|
</script>
|