DmitrMakeev commited on
Commit
e9174fb
·
verified ·
1 Parent(s): bde9b7e

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +9 -3
pages.html CHANGED
@@ -903,9 +903,15 @@ var editor = grapesjs.init({
903
  });
904
  </script>
905
 
906
-
907
-
908
-
 
 
 
 
 
 
909
  <script>
910
 
911
  // Добавляем кнопку линейки в верхнюю панель инструментов с использованием SVG-иконки
 
903
  });
904
  </script>
905
 
906
+ <script>
907
+ document.addEventListener('DOMContentLoaded', function() {
908
+ const shortcodes = document.querySelectorAll('.contact-form [contact-form]');
909
+ shortcodes.forEach(shortcode => {
910
+ // Здесь вы можете добавить HTML для формы контактов
911
+ shortcode.outerHTML = '<form action="#" method="post"><input type="text" name="name" placeholder="Your Name"><input type="email" name="email" placeholder="Your Email"><textarea name="message" placeholder="Your Message"></textarea><button type="submit">Send</button></form>';
912
+ });
913
+ });
914
+ </script>
915
  <script>
916
 
917
  // Добавляем кнопку линейки в верхнюю панель инструментов с использованием SVG-иконки