This commit is contained in:
@ -1,19 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<title>Script use cases</title>
|
||||
<title>Примеры использования скриптов в виджетах</title>
|
||||
<meta name="generator" content="Help+Manual" />
|
||||
<meta name="keywords" content="" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Widgets are a convenient tool for setting up dynamic forms, for instance, if some information needs to be displayed when certain conditions are met." />
|
||||
<meta name="description" content="Виджеты удобно использовать при настройке динамических форм, например, если отображение информации на форме или странице зависит от каких-либо условий." />
|
||||
<meta name="picture" content="" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
|
||||
<meta property="og:url" content="https://brix365.com/en/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
|
||||
<meta property="og:url" content="https://elma365.com/ru/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:site_name" content="ELMA365" />
|
||||
<link rel="icon" href="favicon.png" type="image/png" />
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
||||
@ -23,6 +24,7 @@
|
||||
<link rel="stylesheet" href="./article.css" />
|
||||
<link rel="stylesheet" href="./glossary.css" />
|
||||
<link rel="stylesheet" href="./theme.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="helpman_settings.js"></script>
|
||||
<script type="text/javascript" src="helpman_topicinit.js"></script>
|
||||
@ -34,16 +36,16 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
|
||||
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
|
||||
|
||||
<header class="header elma-365">
|
||||
<div class="container">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-en.svg" alt="header logo">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo.svg" alt="header logo">
|
||||
</a>
|
||||
<!-- <div class="hero__search-form" id="search-panel">
|
||||
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
|
||||
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
|
||||
<label class="search-form__label">
|
||||
<span id="reset-search" class="search__icon"></span>
|
||||
<input class="search-form__input" type="text">
|
||||
@ -63,7 +65,7 @@
|
||||
</div>
|
||||
<div class="header__navi">
|
||||
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
@ -78,8 +80,8 @@
|
||||
|
||||
<aside class="sidebar" id="sidebar">
|
||||
<div class="sidebar__header">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-light-en.svg">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo-light.svg">
|
||||
</a>
|
||||
<span class="sidebar__close elma-365-close" id="close"></span>
|
||||
</div>
|
||||
@ -92,15 +94,15 @@
|
||||
<div class="article-inner">
|
||||
<div class="content">
|
||||
<header class="article__header">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
|
||||
|
||||
<div class="topic__breadcrumbs">
|
||||
<p>Low-code designer > <a href="interface_settings.html">Set up interfaces</a> > <a href="client_server_scripts.html">Scripts in widgets</a> / Script use cases</p>
|
||||
<p>Low-code дизайнер > <a href="interface_settings.html">Создание интерфейсов</a> > <a href="client_server_scripts.html">Скрипты в виджетах</a> / Примеры использования скриптов в виджетах</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Script use cases</span></h1>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Примеры использования скриптов в виджетах</span></h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@ -109,93 +111,92 @@
|
||||
<a href="#h1-article" class="scroll-top"></a>
|
||||
</div>
|
||||
<!-- Placeholder for topic body. -->
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">Widgets are a convenient tool for setting up <a href="360029574371.html" class="topiclink">dynamic forms</a>, for instance, if some information needs to be displayed when certain conditions are met.</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">Let’s consider an example of how you can use scripts in widgets. We</span><span style="font-family: Inter;">’ll create a</span><span style="color: #394149;"> page containing a test with several questions. </span><span style="font-family: Inter;">The page will include expanding panels containing the questions, an information box with a warning, and a modal window displaying the test results.</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><img alt="widget-scripts-1" width="616" height="428" style="margin:0;width:616px;height:428px;border:none" src="widget-scripts-1.png"/></p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Create the test questions</span></h2>
|
||||
<p class="p_Normal">First, create multiple choice questions for the test:</p>
|
||||
<p class="p_Normal">Виджеты удобно использовать при настройке <a href="360029574371.html" class="topiclink">динамических форм</a>, например, если отображение информации на форме или странице зависит от каких-либо условий.</p>
|
||||
<p class="p_Normal">Рассмотрим использование скриптов в виджетах на примере страницы, на которой расположен тест из нескольких вопросов. Настроим разворачивающиеся панели, в которых находятся вопросы, информационный блок, а также модальное окно с результатами теста. </p>
|
||||
<p class="p_Normal"><img alt="script_0" width="708" height="359" style="margin:0;width:708px;height:359px;border:none" src="script_0.png"/></p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Создание теста</span></h2>
|
||||
<p class="p_Normal">Для начала создайте вопросы с вариантами ответов для тестирования: </p>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" class="p_Normal">Open the page and go to the <a href="360027211631.html" class="topiclink">interface designer</a>.</li><li value="2" class="p_Normal">On the <span style="font-weight: bold;">Context</span> tab, create a <a href="360009707032.html#category" class="topiclink">Category</a> type variable and set the following parameters:</li></ol>
|
||||
<li value="1" class="p_Normal">Откройте страницу и перейдите в <a href="360027211631.html" class="topiclink">дизайнер интерфейсов</a>. </li><li value="2" class="p_Normal">На вкладке <span style="font-weight: bold;">Контекст</span> создайте переменную типа <a href="360009707032.html#category" class="topiclink">Категория</a> и задайте следующие параметры: </li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Display Name</span><span style="font-weight: bold; color: #ff0000;">*</span>. Enter a question to be displayed on the page.</li><li class="p_Normal"><span style="font-weight: bold;">Property Name</span><span style="font-weight: bold; color: #ff0000;">*</span>. Change the automatically generated property name to <code><b>question_1</b></code>.</li><li class="p_Normal"><span style="font-weight: bold;">Type</span><span style="font-weight: bold; color: #ff0000;">*</span>. Select <span style="font-weight: bold;">Category</span> and choose the <span style="font-weight: bold;">Multiple</span> option.</li><li class="p_Normal"><span style="font-weight: bold;">Values</span>. Enter possible answers for the question. Change their codes to <code><b>n1</b></code>, <code><b>n2</b></code>, and <code><b>n3</b></code> and click <span style="font-weight: bold;">Create</span>.</li></ul>
|
||||
<p class="p_Normal" style="margin: 0 0 0 14px;"><img alt="script-use-cases-2" width="588" height="678" style="margin:0;width:588px;height:678px;border:none" src="script-use-cases-2.png"/></p>
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Отображаемое имя</span><span style="font-weight: bold; color: #ff0000;">*</span> — введите вопрос, который будет отображаться на странице; </li><li class="p_Normal"><span style="font-weight: bold;">Имя свойства</span><span style="font-weight: bold; color: #ff0000;">*</span> — измените автоматически заданное название свойства на <code><b>vopros_1</b></code>; </li><li class="p_Normal"><span style="font-weight: bold;">Тип</span><span style="font-weight: bold; color: #ff0000;">*</span> — выберите тип <span style="font-weight: bold;">Категория</span> с возможностью выбора нескольких вариантов ответа; </li><li class="p_Normal"><span style="font-weight: bold;">Значения</span> — введите варианты ответов на вопрос. Измените код каждого ответа на <code><b>n1</b></code>, <code><b>n2</b></code> и <code><b>n3</b></code> и нажмите <span style="font-weight: bold;">Создать</span>.</li></ul>
|
||||
<p class="p_Normal" style="margin: 0 0 0 36px;"><img alt="script_5" width="518" height="592" style="margin:0;width:518px;height:592px;border:none" src="script_5.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="3">
|
||||
<li value="3" class="p_Normal">Create a few more questions in the same way.</li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Expanding panel</span></h2>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">Now that you</span><span style="font-family: Inter;">’ve created the test questions, determine how they are going to be shown on the page. Let’s make it so that the</span><span style="color: #394149;"> questions are collapsed by default, but as soon as the user clicks </span><span style="font-weight: bold; color: #394149;">Start Test</span><span style="color: #394149;">,</span><span style="font-weight: bold; color: #394149;"> </span><span style="color: #394149;">the first question panel expands. To do that:</span></p>
|
||||
<li value="3" class="p_Normal">Таким же образом создайте несколько вопросов. </li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Разворачивающаяся панель </span></h2>
|
||||
<p class="p_Normal">После создания теста сделаем так, чтобы по умолчанию все вопросы на странице были свёрнуты, а при нажатии <span style="font-weight: bold;">Начать тестирование</span> раскрывался первый вопрос. Для этого: </p>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the <a href="360027211631.html" class="topiclink">interface designer</a>, on the </span><span style="font-weight: bold; color: #394149;">Context</span><span style="color: #394149;"> tab, create a variable of the <a href="360009707032.html#yes-no-switch" class="topiclink">Yes/No switch</a> type called </span><span style="font-weight: bold; color: #394149;">Expand Question 1</span><span style="color: #394149;"> </span><code><b>(expand_question_1)</b></code><span style="color: #394149;">.</span></li><li value="2" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Add the <a href="panel_with_heading.html" class="topiclink">Panel with header</a> widget to the modeling canvas.</span></li><li value="3" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the window that opens, set the following parameters:</span><ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold; color: #394149;">Title</span><span style="font-weight: bold; color: #ff0000;">*</span><span style="color: #394149;">. Enter the panel</span><span style="font-family: Inter;">’s name, </span><span style="font-family: Inter; font-weight: bold;">Question 1</span><span style="font-family: Inter;">.</span></li><li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold; color: #394149;">Collapsible</span><span style="color: #394149;">. Select </span><span style="font-weight: bold; color: #394149;">Yes</span><span style="color: #394149;">.</span></li><li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold; color: #394149;">Expanded</span><span style="color: #394149;">. Specify the </span><span style="font-weight: bold; color: #394149;">Expand Question 1</span><span style="color: #394149;"> variable that you created in step 1. With this variable in the condition, the panel will expand when the user clicks the button that is going to be added to the page.</span></li></ul></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 14px;"><img alt="widget-scripts-2" width="580" height="364" style="margin:0;width:580px;height:364px;border:none" src="widget-scripts-2.png"/></p>
|
||||
<li value="1" class="p_Normal">В <a href="360027211631.html" class="topiclink">дизайнере интерфейсов</a> на вкладке <span style="font-weight: bold;">Контекст</span> создайте переменную <span style="font-weight: bold;">Развернуть вопрос 1</span> <code><b>(razvernut_vopros_1)</b></code> с типом <a href="360009707032.html#yes_no" class="topiclink">Выбор «да/нет»</a>. </li><li value="2" class="p_Normal">Добавьте на поле для моделирования виджет <a href="panel_with_heading.html" class="topiclink">Панель с заголовком</a>. </li><li value="3" class="p_Normal">В открывшемся окне настроек задайте параметры: </li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Заголовок</span><span style="font-weight: bold; color: #ff0000;">*</span> — введите название панели <span style="font-weight: bold;">Вопрос №1</span>; </li><li class="p_Normal"><span style="font-weight: bold;">Сворачиваемая</span> — выберите <span style="font-weight: bold;">Да</span>; </li><li class="p_Normal"><span style="font-weight: bold;">Развернута </span>— укажите созданную на шаге 1 переменную <span style="font-weight: bold;">Развернуть вопрос 1</span>. С помощью этой переменной панель будет разворачиваться при нажатии кнопки, которая добавляется далее. </li></ul>
|
||||
<p class="p_Normal" style="margin: 0 0 0 35px;"><img alt="script4" width="607" height="329" style="margin:0;width:607px;height:329px;border:none" src="script4.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="4">
|
||||
<li value="4" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Click </span><span style="font-weight: bold; color: #394149;">Save</span><span style="color: #394149;">.</span></li><li value="5" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Add the <a href="button_widget.html" class="topiclink">Button</a> widget to the modeling canvas.</span></li><li value="6" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the settings window that opens, set the following parameters:</span></li></ol>
|
||||
<ol style="list-style-type:upper-roman" start="5"><ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-weight: bold; color: #394149;">Title/Tooltip</span><span style="font-weight: bold; color: #ff0000;">*</span><span style="color: #394149;">. Enter the button</span><span style="font-family: Inter;">’s name, </span><span style="font-family: Inter; font-weight: bold;">Start Test</span><span style="font-family: Inter;">.</span></li><li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="font-family: Inter; font-weight: bold;">Executed script</span><span style="font-family: Inter;">. Add a script that will change the value of the </span><span style="font-family: Inter; font-weight: bold;">Expand Question 1</span><span style="font-family: Inter;"> variable </span><code><b>(expand_question_1)</b></code><span style="color: #394149;"> to </span><code><b>true</b></code><span style="color: #394149;">. To do that, click </span><span style="font-weight: bold; color: #394149;">Create</span><span style="color: #394149;">, enter the function name:</span><span style="font-weight: bold; color: #394149;"> expand_panel</span><span style="color: #394149;">, click</span><span style="font-weight: bold; color: #394149;"> Save</span><span style="color: #394149;">, and then select</span><span style="font-weight: bold; color: #394149;"> Open</span><span style="color: #394149;">.</span></li></ul></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 14px;"><img alt="widget-scripts-3" width="729" height="337" style="margin:0;width:729px;height:337px;border:none" src="widget-scripts-3.png"/></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">On the </span><span style="font-weight: bold; color: #394149;">Scripts</span><span style="color: #394149;"> tab that opens, write the following script in the created function: </span></p>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async function expand_panel(): Promise<void>{</span><br />
|
||||
<span class="f_CodeExample"> Context.data.expand_question_1 = true </span><br />
|
||||
<li value="4" class="p_Normal">Нажмите кнопку <span style="font-weight: bold;">Сохранить</span>. </li><li value="5" class="p_Normal">Добавьте на поле для моделирования виджет <a href="button_widget.html" class="topiclink">Кнопка</a>. </li><li value="6" class="p_Normal">В открывшемся окне настроек задайте параметры: </li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Надпись/Подсказка</span><span style="font-weight: bold; color: #ff0000;">*</span> — введите название кнопки <span style="font-weight: bold;">Начать тестирование</span>; </li><li class="p_Normal"><span style="font-weight: bold;">Выполняемый скрипт</span> — добавьте скрипт, который будет изменять значение переменной <span style="font-weight: bold;">Развернуть вопрос 1</span> <code><b>(razvernut_vopros_1)</b></code> на <span style="font-weight: bold;">true</span>. Для этого нажмите кнопку <span style="font-weight: bold;">Создать</span>, укажите название функции<span style="font-weight: bold;"> close_button</span>, выберите<span style="font-weight: bold;"> Сохранить</span>, а затем<span style="font-weight: bold;"> </span>—<span style="font-weight: bold;"> Открыть</span>.<br />
|
||||
<img alt="script5" width="537" height="255" style="margin:0;width:537px;height:255px;border:none" src="script5.png"/></li></ul>
|
||||
<p class="p_Normal">На открывшейся вкладке <span style="font-weight: bold;">Скрипты</span> пропишите в созданной функции следующий код:</p>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async function close_button(): Promise<void>{</span><br />
|
||||
<span class="f_CodeExample"> Context.data.razvernut_vopros_1 = true </span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<ol style="list-style-type:upper-roman" start="7">
|
||||
<li value="7" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;">Save the settings.</li><li value="8" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;">Inside the <span style="font-weight: bold;">Panel with header</span> widget, place the <span style="font-weight: bold;">Category</span> type variable with the first question that you created earlier. To do that, on the right-side panel of the interface designer, switch to the <span style="font-weight: bold;">Properties</span> tab and drag the field to the widget. On the page, the property will be displayed as the <a href="form_line_widget.html" class="topiclink">Field</a> widget.</li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><img alt="script-use-cases-3" width="657" height="179" style="margin:0;width:657px;height:179px;border:none" src="script-use-cases-3.png"/></p>
|
||||
<li value="7" class="p_Normal">Сохраните настройки. </li><li value="8" class="p_Normal">Разместите внутри виджета <span style="font-weight: bold;">Панель с заголовком</span> созданное ранее свойство типа <span style="font-weight: bold;">Категория</span>, содержащее первый вопрос. Для этого в правой панели дизайнера интерфейса выберите вкладку <span style="font-weight: bold;">Свойства</span> и перетащите поле в виджет. На странице свойство будет отображаться в виде виджета <a href="form_line_widget.html" class="topiclink">Строка формы</a>. </li></ol>
|
||||
<p class="p_Normal" style="margin: 0 0 0 35px;"><img alt="script12" width="650" height="135" style="margin:0;width:650px;height:135px;border:none" src="script12.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="9">
|
||||
<li value="9" class="p_Normal">Add as many panels to the modeling canvas as you have questions. Set names for each panel. In the <span style="font-weight: bold;">Collapsible</span> field, select <span style="font-weight: bold;">Yes</span>, in the <span style="font-weight: bold;">Expanded</span> field, <span style="font-weight: bold;">No</span>. Place the properties with the questions into the panels.</li><li value="10" class="p_Normal">Save and publish the changes.</li></ol>
|
||||
<p class="p_Normal">Now all the questions are collapsed when the page opens. When the user clicks <span style="font-weight: bold;">Start Test</span>, the first question automatically expands.</p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Information box</span></h2>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">In the test, there is only one possible answer for each question. If the user selects several answers, an <a href="information_block.html" class="topiclink">Information box</a> with a warning should be displayed. The box disappears when the user hovers the mouse over it.</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">To set up the information box, do the following:</span></p>
|
||||
<li value="9" class="p_Normal">Добавьте на поле для моделирования столько панелей с заголовком, сколько у вас создано вопросов. Задайте название для каждой панели и в поле <span style="font-weight: bold;">Сворачиваемая</span> выберите <span style="font-weight: bold;">Да</span>. В поле <span style="font-weight: bold;">Развернута</span> укажите <span style="font-weight: bold;">Нет</span>. Поместите свойства с вопросами в панели. </li><li value="10" class="p_Normal">Сохраните и опубликуйте внесённые изменения. </li></ol>
|
||||
<p class="p_Normal">После этого все вопросы на странице будут отображаться в свёрнутом виде, а при нажатии кнопки <span style="font-weight: bold;">Начать тестирование</span> первый вопрос будет автоматически раскрываться. </p>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Информационный блок </span></h2>
|
||||
<p class="p_Normal">Предположим, что в каждом вопросе может быть только один вариант ответа. Если пользователь отметил несколько ответов, на форме отобразится виджет <a href="information_block.html" class="topiclink">Информационный блок</a> с предупреждением. При наведении курсора блок исчезнет. </p>
|
||||
<p class="p_Normal">Для этого выполните следующие действия: </p>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the <a href="360027211631.html" class="topiclink">interface designer</a>, on the </span><span style="font-weight: bold; color: #394149;">Context</span><span style="color: #394149;"> tab, create a variable of the <a href="360009707032.html#yes-no-switch" class="topiclink">Yes/No switch</a> type called </span><span style="font-weight: bold; color: #394149;">One answer?</span><span style="color: #394149;"> </span><code><b>(one_answer)</b></code><span style="color: #394149;">.</span></li><li value="2" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Add the </span><span style="font-weight: bold; color: #394149;">Information box</span><span style="color: #394149;"> widget to the modeling canvas. In the settings window that opens, in the </span><span style="font-weight: bold; color: #394149;">Hide</span><span style="color: #394149;"> field, select </span><span style="font-weight: bold; color: #394149;">Show on condition</span><span style="color: #394149;">. Then specify the </span><span style="font-weight: bold; color: #394149;">One answer?</span><span style="color: #394149;"> variable. Whether the information box is shown will depend on the value of this variable.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><img alt="widget-scripts-4" width="862" height="412" style="margin:0;width:862px;height:412px;border:none" src="widget-scripts-4.png"/></p>
|
||||
<li value="1" class="p_Normal">В <a href="360027211631.html" class="topiclink">дизайнере интерфейсов</a> на вкладке <span style="font-weight: bold;">Контекст</span> создайте переменную <span style="font-weight: bold;">Один ответ</span> <code><b>(odin_otvet)</b></code> с типом <a href="360009707032.html#yes_no" class="topiclink">Выбор «да/нет»</a>. </li><li value="2" class="p_Normal">Добавьте на поле для моделирования виджет <span style="font-weight: bold;">Информационный блок</span>. В открывшемся окне настроек перейдите на вкладку <span style="font-weight: bold;">Системные</span> в поле <span style="font-weight: bold;">Видимость</span> выберите опцию <span style="font-weight: bold;">Показать по условию</span>. Затем укажите переменную <span style="font-weight: bold;">Один ответ</span>. Отображение информационного блока будет зависеть от значения этой переменной. </li></ol>
|
||||
<p class="p_Normal" style="margin: 0 0 0 36px;"><img alt="script8" width="848" height="368" style="margin:0;width:848px;height:368px;border:none" src="script8.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="3">
|
||||
<li value="3" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">The number of answers selected by the user needs to be checked. To set up the checking, do the following:</span></li></ol>
|
||||
<ol style="list-style-type:upper-roman" start="4"><ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Select the </span><span style="font-weight: bold; color: #394149;">Field</span><span style="color: #394149;"> widget containing the first question and open its settings by clicking the gear icon:</span></li></ul></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><img alt="widget-scripts-5" width="630" height="159" style="margin:0;width:630px;height:159px;border:none" src="widget-scripts-5.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="5"><ul style="list-style-type:disc">
|
||||
<li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Go to the </span><span style="font-weight: bold; color: #394149;">Events</span><span style="color: #394149;"> tab and add a script that will check the number of selected answers and change the value of the </span><span style="font-weight: bold; color: #394149;">One answer?</span><span style="color: #394149;"> variable. To do that, click </span><span style="font-weight: bold; color: #394149;">Create</span><span style="color: #394149;">, then </span><span style="font-weight: bold; color: #394149;">Open</span><span style="color: #394149;">.</span></li><li style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">The </span><span style="font-weight: bold; color: #394149;">Scripts</span><span style="color: #394149;"> tab in the interface designer will open. Add a script that will define the value of the </span><span style="font-weight: bold; color: #394149;">One answer?</span><span style="color: #394149;"> </span><code><b>(one_answer)</b></code><span style="color: #394149;"> variable, for example:</span></li></ul></li></ol>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> checkTest(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (Context.data.question_1 && Context.data.question_1.length > 1) {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.one_answer = </span><span class="f_CodeExample" style="font-weight: bold;">true</span><br />
|
||||
<span class="f_CodeExample"> } </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.one_answer = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<li value="3" class="p_Normal">Настройте проверку количества выбранных ответов. Для этого: </li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">выделите виджет <span style="font-weight: bold;">Строка формы</span>, содержащий первый вопрос, и откройте его настройки, нажав на значок шестерёнки: </li></ul>
|
||||
<p class="p_Normal" style="margin: 0 0 0 35px;"><img alt="script12" width="650" height="135" style="margin:0;width:650px;height:135px;border:none" src="script12.png"/></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">перейдите на вкладку <span style="font-weight: bold;">События</span> и добавьте скрипт, который будет проверять количество выбранных ответов и изменять значение переменной <span style="font-weight: bold;">Один ответ</span>. Для этого в опции <span style="font-weight: bold;">Событие при изменении значения</span> нажмите кнопку <span style="font-weight: bold;">Создать</span>, введите название функции <span style="font-weight: bold;">proverka</span>, выберите <span style="font-weight: bold;">Сохранить</span>, а затем — <span style="font-weight: bold;">Открыть</span>; </li><li class="p_Normal">на открывшейся вкладке <span style="font-weight: bold;">Скрипты</span> укажите код, который будет определять значение переменной <span style="font-weight: bold;">Один ответ</span> <code><b>(odin_otvet)</b></code>: </li></ul>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> proverka(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (Context.data.vopros_1 && Context.data.vopros_1.length > 1) {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.odin_otvet = </span><span class="f_CodeExample" style="font-weight: bold;">true</span><br />
|
||||
<span class="f_CodeExample"> } </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.odin_otvet = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<ol style="list-style-type:upper-roman" start="4">
|
||||
<li value="4" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the settings of the </span><span style="font-weight: bold; color: #394149;">Information box</span><span style="color: #394149;"> widget, go to the </span><span style="font-weight: bold; color: #394149;">Events</span><span style="color: #394149;"> tab and add a script to the </span><span style="font-weight: bold; color: #394149;">On mouse enter handler</span><span style="color: #394149;">. This script should change the value of the </span><span style="font-weight: bold; color: #394149;">One answer?</span><span style="color: #394149;"> </span><code><b>(one_answer)</b></code><span style="color: #394149;"> variable to </span><code><b>false</b></code><span style="color: #394149;">:</span></li></ol>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async function closeInformationBox(): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.one_answer = false </span><br />
|
||||
<li value="4" class="p_Normal">В настройках виджета <span style="font-weight: bold;">Информационный блок</span> в поле <span style="font-weight: bold;">Событие при наведении курсора</span> добавьте скрипт, который будет изменять значение переменной <span style="font-weight: bold;">Один ответ</span> <code><b>(odin_otvet)</b></code> на <span style="font-weight: bold;">false</span>:</li></ol>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async function closeBlock(): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.odin_otvet = false </span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<ol style="list-style-type:upper-roman" start="5">
|
||||
<li value="5" class="p_Normal">Save and publish the changes.</li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Pop-up window</span></h2>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">When the user finishes the test, they click the </span><span style="font-weight: bold; color: #394149;">Check Results</span><span style="color: #394149;"> button. After that, the page will show a pop‑up window with the test results.</span></p>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><span style="color: #394149;">To configure the pop-up window, do the following:</span></p>
|
||||
<li value="5" style="margin-top: 7px; margin-right: 0; margin-bottom: 7px;">Сохраните и опубликуйте внесённые изменения. </li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Всплывающее окно</span></h2>
|
||||
<p class="p_Normal">Завершив тестирование, пользователь нажмёт кнопку <span style="font-weight: bold;">Проверить правильность результатов</span>. После этого на странице отобразится всплывающее окно с результатом теста. </p>
|
||||
<p class="p_Normal">Для этого: </p>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the <a href="360027211631.html" class="topiclink">interface designer</a>, on the </span><span style="font-weight: bold; color: #394149;">Context</span><span style="color: #394149;"> tab, create a variable of the <a href="360009707032.html#yes-no-switch" class="topiclink">Yes/No switch</a> type called </span><span style="font-weight: bold; color: #394149;">Correct?</span><span style="color: #394149;"> </span><code><b>(correct)</b></code><span style="color: #394149;">. It will store the test results.</span></li><li value="2" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Add the <a href="modal_window.html" class="topiclink">Modal window</a> widget to the modeling canvas.</span></li><li value="3" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the widget</span><span style="font-family: Inter;">’s settings, in the </span><span style="font-family: Inter; font-weight: bold;">Show window</span><span style="font-family: Inter;"> field, specify the variable created in step 1. Whether the modal window is shown will depend on the value of this variable.</span></li></ol>
|
||||
<p style="line-height: 1.20; background: #ffffff; margin: 0 0 11px 0;"><img alt="widget-scripts-6" width="520" height="328" style="margin:0;width:520px;height:328px;border:none" src="widget-scripts-6.png"/></p>
|
||||
<li value="1" class="p_Normal">В <a href="360027211631.html" class="topiclink">дизайнере интерфейсов</a> на вкладке <span style="font-weight: bold;">Контекст</span> создайте переменную <span style="font-weight: bold;">Правильно </span><code><b>(pravilno)</b></code> с типом <a href="360009707032.html#yes_no" class="topiclink">Выбор «да/нет»</a>. В ней будет храниться результат выполнения теста. </li><li value="2" class="p_Normal">Добавьте на поле для моделирования виджет <a href="modal_window.html" class="topiclink">Модальное окно</a>. </li><li value="3" class="p_Normal">В настройках виджета в поле <span style="font-weight: bold;">Показать окно</span> укажите переменную, созданную на шаге 1. Отображение модального окна будет зависеть от значения этой переменной. </li></ol>
|
||||
<p class="p_Normal" style="margin: 0 0 0 36px;"><img alt="script11" width="626" height="366" style="margin:0;width:626px;height:366px;border:none" src="script11.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="4">
|
||||
<li value="4" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">Add the <a href="button_widget.html" class="topiclink">Button</a> widget to the modeling canvas.</span></li></ol>
|
||||
<ol style="list-style-type:upper-roman" start="5">
|
||||
<li value="5" style="line-height: 1.20; background: #ffffff; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><span style="color: #394149;">In the button</span><span style="font-family: Inter;">’s settings, in the </span><span style="font-family: Inter; font-weight: bold;">On click handler</span><span style="font-family: Inter;">, add a script that will change the value of the </span><span style="font-weight: bold; color: #394149;">Correct?</span><span style="color: #394149;"> </span><code><b>(correct)</b></code><span style="color: #394149;"> variable to </span><code><b>true</b></code><span style="color: #394149;">, for example:</span></li></ol>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> resultTest(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (Context.data.question_1 && Context.data.question_1.length == 1) {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">for</span><span class="f_CodeExample"> (let i of Context.data.question_1) {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (i.code == "n1") {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.correct = </span><span class="f_CodeExample" style="font-weight: bold;">true</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.correct = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.correct = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<li value="4" class="p_Normal">Добавьте на поле для моделирования виджет <a href="button_widget.html" class="topiclink">Кнопка</a>. </li><li value="5" class="p_Normal">В настройках кнопки в поле <span style="font-weight: bold;">Выполняемый скрипт </span>добавьте код, который будет определять правильность выбранных ответов и изменять значение переменной <span style="font-weight: bold;">Правильно</span> <code><b>(pravilno)</b></code> на <span style="font-weight: bold;">true</span>: </li></ol>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> resultTest(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (Context.data.vopros_1 && Context.data.vopros_1.length == 1) {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">for</span><span class="f_CodeExample"> (let i of Context.data.vopros_1) {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (i.code == "n1") {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.pravilno = </span><span class="f_CodeExample" style="font-weight: bold;">true</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.pravilno = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">else</span><span class="f_CodeExample"> {</span><br />
|
||||
<span class="f_CodeExample"> Context.data.pravilno = </span><span class="f_CodeExample" style="font-weight: bold;">false</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<ol style="list-style-type:upper-roman" start="6">
|
||||
<li value="6" class="p_Normal">Save and publish the changes.</li></ol>
|
||||
<li value="6" class="p_Normal">Сохраните и опубликуйте внесённые изменения. </li></ol>
|
||||
|
||||
<div class="bottom-nav">
|
||||
|
||||
@ -212,7 +213,7 @@
|
||||
|
||||
</div>
|
||||
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
|
||||
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
|
||||
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@ -220,7 +221,7 @@
|
||||
<input type="checkbox" />
|
||||
<div class="article__arrow"></div>
|
||||
<div class="table-of-contents elma365-right" id="toc2Content">
|
||||
<h3 class="h3-toc">In this topic</h3>
|
||||
<h3 class="h3-toc">В этой статье</h3>
|
||||
<nav id="toc2"></nav>
|
||||
</div>
|
||||
</aside>
|
||||
@ -231,30 +232,63 @@
|
||||
<div class="footer-container">
|
||||
<div class="footer-mobile">
|
||||
|
||||
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
|
||||
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<span class="footer-copy">© 2025 BRIX</span>
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="#" class="arrow-top" style="display: block;"></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="container">
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<div class="footer-top">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="footer-line">
|
||||
|
||||
<div class="footer-line-copy">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
|
||||
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="arrow-top"></a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
|
||||
<iframe name="hmnavigation" style="display:none!important"></iframe>
|
||||
<script src="./jquery-ui.js"></script>
|
||||
<!--<script src="./jquery-ui.js"></script> -->
|
||||
<script src="./jquery-ui.min.js"></script>
|
||||
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
|
||||
<script src="./jquery.tocify.min.js"></script>
|
||||
<script src="./TypoReporter.min.js"></script>
|
||||
|
Reference in New Issue
Block a user