Некодим© 2020-2026 Некодим
Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.
Журнал изменений История Git Файлы Tilda MCP Каталог файловtilda-members-profile.js Следить за файлом 601 * Шаблон формы модального окна изменения пароля602 *603 * @returns {string} - шаблон формы с изменением пароля604 */605 function tma__profile__getFormChangePasswordHtml() {606 var html = '';607 608 html += '<div class="tlk-popup__title" data-field="tlk-title">{{form_change_password_title}}</div>';609 html += '<form method="post" id="form-change-password" action="/">';610 html += '<div class="tlk-popup__form-wrap">';611 html += '<div class="tlk-popup__item tlk-form__item">';612 История файла и сравнение версий html += '<div class="tlk-input-title" data-field="tlk-text">{{form_change_password_field_old_password}}</div>';
613 html += '<input type="password" name="password" class="tlk-input" required>';614 html += '<div class="tlk-input-error"></div>';615 html += '<div class="tlk-password-toggle">';617 '<svg class="tlk-password-toggle__visible-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 21.5 12.9" style="enable-background:new 0 0 21.5 12.9;" xml:space="preserve">';619 '<path class="st0" d="M0.8,6.5c0,0,3.5,4.8,10,4.8s10-4.8,10-4.8s-3.5-4.8-10-4.8S0.8,6.5,0.8,6.5z" fill="none" stroke="#777777" stroke-miterlimit="10"></path>';621 '<circle class="st1" cx="10.8" cy="6.5" r="2.5" fill="#777777" stroke="#777777" stroke-miterlimit="10"></circle>';624 '<svg class="tlk-password-toggle__hidden-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 21.5 12.9" style="enable-background:new 0 0 21.5 12.9;" xml:space="preserve">';626 '<path class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" d="M0.8,6.5c0,0,3.5,4.8,10,4.8s10-4.8,10-4.8s-3.5-4.8-10-4.8S0.8,6.5,0.8,6.5z"></path>';628 '<circle class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" cx="10.8" cy="6.5" r="2.5"></circle>';630 '<line class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" x1="4.8" y1="12.5" x2="16.8" y2="0.5"></line>';634 html += '<div class="tlk-popup__item tlk-form__item">';635 html += '<div class="tlk-input-title" data-field="tlk-text">{{form_change_password_field_new_password}}</div>';636 html += '<input type="password" name="newpassword" class="tlk-input" required>';637 html += '<div class="tlk-input-error"></div>';638 html += '<div class="tlk-password-toggle">';640 '<svg class="tlk-password-toggle__visible-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 21.5 12.9" style="enable-background:new 0 0 21.5 12.9;" xml:space="preserve">';642 '<path class="st0" d="M0.8,6.5c0,0,3.5,4.8,10,4.8s10-4.8,10-4.8s-3.5-4.8-10-4.8S0.8,6.5,0.8,6.5z" fill="none" stroke="#777777" stroke-miterlimit="10"></path>';644 '<circle class="st1" cx="10.8" cy="6.5" r="2.5" fill="#777777" stroke="#777777" stroke-miterlimit="10"></circle>';647 '<svg class="tlk-password-toggle__hidden-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 21.5 12.9" style="enable-background:new 0 0 21.5 12.9;" xml:space="preserve">';649 '<path class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" d="M0.8,6.5c0,0,3.5,4.8,10,4.8s10-4.8,10-4.8s-3.5-4.8-10-4.8S0.8,6.5,0.8,6.5z"></path>';651 '<circle class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" cx="10.8" cy="6.5" r="2.5"></circle>';653 '<line class="st0" fill="none" stroke="#777777" stroke-miterlimit="10" x1="4.8" y1="12.5" x2="16.8" y2="0.5"></line>';658 html += '<div class="tlk-input-error tlk-input-error_all"></div>';659 html += '<div class="tlk-popup__buttons">';661 '<button type="button" class="tlk-popup__close-cancel tlk-popup__button tlk-btn tlk-btn_white tlk-btn_reset">{{form_change_password_btn_cancel}}</button>';663 '<button type="submit" class="tlk-popup__close-save tlk-popup__button tlk-btn tlk-btn_gray tlk-btn_reset">{{form_change_password_btn_save}}<span class="tlk-loadicon"></span></button>';671 * Добавляет капчу на страницу672 * @param {()=>void} [onClose]674 function tma__profile__drawRecaptcha(onClose) {675 var allRecords = document.getElementById('allrecords');677 allRecords.insertAdjacentHTML('beforeend', tma__profile__getRecaptchaHtml());679 var recaptcha = document.querySelector('.tlk-recaptcha');680 var closeRecaptcha = recaptcha.querySelector('.tlk-recaptcha__close');682 closeRecaptcha.addEventListener('click', function () {683 tma__profile__closeRecaptcha(recaptcha);684 if (typeof onClose === 'function') {693 * @returns {string} - шаблон капчи695 function tma__profile__getRecaptchaHtml() {698 html += '<div class="tlk-recaptcha">';699 html += '<button type="button" class="tlk-recaptcha__close tlk-btn_reset"></button>';