31 lines
565 B
PHP
31 lines
565 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @var string $token
|
||
|
* @var int $time
|
||
|
* @var string $button_text
|
||
|
* @var object $step
|
||
|
*/
|
||
|
|
||
|
$short_name = 'second_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>
|