Закончил разработку обучения
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user