Сообщение #1 romanbolva » 27.03.2020, 12:53
Нужно вставить код формы в файл index.tpl
Код: Выделить всё
(function (d, w, c) {
(w[c] = w[c] || []).push({formId:128307,host:"formdesigner.ru",formHeight:100, el: "form_128307_1", center: 1});
var s = d.createElement("script"), g = "getElementsByTagName";
s.type = "text/javascript"; s.charset="UTF-8"; s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:")+"//formdesigner.ru/js/iform.js";
var h=d[g]("head")[0] || d[g]("body")[0];
h.appendChild(s);
})(document, window, "fdforms");
Но насколько я понял js невозможно вставить просто так, нужно как-то через {js file
Нужно вставить код формы в файл index.tpl
[code]
(function (d, w, c) {
(w[c] = w[c] || []).push({formId:128307,host:"formdesigner.ru",formHeight:100, el: "form_128307_1", center: 1});
var s = d.createElement("script"), g = "getElementsByTagName";
s.type = "text/javascript"; s.charset="UTF-8"; s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:")+"//formdesigner.ru/js/iform.js";
var h=d[g]("head")[0] || d[g]("body")[0];
h.appendChild(s);
})(document, window, "fdforms");
[/code]
Но насколько я понял js невозможно вставить просто так, нужно как-то через {js file