{"id":1046,"date":"2025-08-01T07:16:16","date_gmt":"2025-08-01T07:16:16","guid":{"rendered":"https:\/\/formation-defiweb.fr\/index.php\/community\/"},"modified":"2025-08-01T15:43:32","modified_gmt":"2025-08-01T13:43:32","slug":"community","status":"publish","type":"page","link":"https:\/\/formation-defiweb.fr\/index.php\/community\/","title":{"rendered":"Forum"},"content":{"rendered":"<!--themify_builder_content-->\n<div id=\"themify_builder_content-1046\" data-postid=\"1046\" class=\"themify_builder_content themify_builder_content-1046 themify_builder tf_clear\">\n                    <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_ko4e410 tb_first tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_8gnu411 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_zauv801 jtcc_search_bar\" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <div class=\"jtcc_search_bar\">\n  <input type=\"text\" id=\"live-topic-search\" placeholder=\"Filtrer les topics en direct...\">\n<\/div>\n<script>\ndocument.getElementById(\"live-topic-search\").addEventListener(\"input\", function () {\n  const query = this.value.toLowerCase();\n  const cards = document.querySelectorAll(\".jtcc_topic_grid\");\n\n  cards.forEach(card => {\n    const title = card.querySelector(\"h3\")?.textContent.toLowerCase() || \"\";\n    const desc = card.querySelector(\"p\")?.textContent.toLowerCase() || \"\";\n    \n    if (title.includes(query) || desc.includes(query)) {\n      card.style.display = \"block\"; \/\/ \ud83d\udc4d visible et r\u00e9int\u00e9gr\u00e9 dans le flux\n    } else {\n      card.style.display = \"none\"; \/\/ \u274c totalement retir\u00e9 du layout\n    }\n  });\n});\n<\/script>    <\/div>\n<\/div>\n<!-- \/module plain text -->        <\/div>\n                        <\/div>\n        <\/div>\n                        <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_ibv9849 tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_1dj8849 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_gqk2664 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <div>\n  <label for=\"topic-title\">Titre du topic :<\/label>\n  <input type=\"text\" id=\"topic-title\" placeholder=\"Entrez le titre\">\n\n  <label for=\"topic-desc\">Description :<\/label>\n  <textarea id=\"topic-desc\" placeholder=\"Entrez la description\"><\/textarea>\n\n  <button id=\"createTopicBtn\">Envoyer<\/button>\n<\/div>\n\n<div class=\"jtcc_topic_grid\"><\/div>\n<script>\ndocument.getElementById(\"createTopicBtn\").addEventListener(\"click\", function () {\n  const titleInput = document.getElementById(\"topic-title\").value.trim();\n  const descInput = document.getElementById(\"topic-desc\").value.trim();\n  if (titleInput === \"\") return;\n\n  const grid = document.querySelector(\".grid.forum.topic.creator\");\n\n  \/\/ Cr\u00e9ation de la nouvelle carte\n  const newCard = document.createElement(\"div\");\n  newCard.className = \"jtcc_topic_grid\";\n\n  const innerCard = document.createElement(\"div\");\n  innerCard.className = \"jtcc_topic_card\";\n\n  const titleElement = document.createElement(\"h3\");\n  titleElement.textContent = titleInput;\n\n  const descElement = document.createElement(\"p\");\n  descElement.textContent = descInput;\n\n  innerCard.appendChild(titleElement);\n  if (descInput !== \"\") innerCard.appendChild(descElement);\n  newCard.appendChild(innerCard);\n\n  \/\/ \ud83d\udc49 Ajout en premier (avant le premier enfant actuel)\n  if (grid.firstChild) {\n    grid.insertBefore(newCard, grid.firstChild);\n  } else {\n    grid.appendChild(newCard);\n  }\n\n  \/\/ R\u00e9initialise les champs\n  document.getElementById(\"topic-title\").value = \"\";\n  document.getElementById(\"topic-desc\").value = \"\";\n});\n<\/script>    <\/div>\n<\/div>\n<!-- \/module plain text --><!-- module plain text -->\n<div  class=\"module module-plain-text tb_h30h850 grid forum topic creator\" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n    <div class=\"grid forum topic creator\"><\/div>\n<div class=\"jtcc_topic_grid\">\n  <div class=\"jtcc_topic_card\">\n    <h3>Topic 1<\/h3>\n  <\/div>\n<\/div>\n<script>\n\n\n\n\n\n\n<\/script>    <\/div>\n<\/div>\n<!-- \/module plain text -->        <\/div>\n                        <\/div>\n        <\/div>\n                        <div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_s1x0782 tf_w\">\n                        <div class=\"row_inner col_align_top tb_col_count_1 tf_box tf_rel\">\n                        <div  data-lazy=\"1\" class=\"module_column tb-column col-full tb_gqzd782 first\">\n                    <!-- module plain text -->\n<div  class=\"module module-plain-text tb_fnym351 \" data-lazy=\"1\">\n        <div class=\"tb_text_wrap\">\n        <\/div>\n<\/div>\n<!-- \/module plain text -->        <\/div>\n                        <\/div>\n        <\/div>\n        <\/div>\n<!--\/themify_builder_content-->","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"close","ping_status":"close","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","css_class_manager_body_classes":"","css_class_manager_use_in_post_loop":false},"class_list":["post-1046","page","type-page","status-publish","hentry"],"builder_content":"<input type=\"text\" id=\"live-topic-search\" placeholder=\"Filtrer les topics en direct...\">\n<label for=\"topic-title\">Titre du topic :<\/label> <input type=\"text\" id=\"topic-title\" placeholder=\"Entrez le titre\">\n <label for=\"topic-desc\">Description :<\/label> <textarea id=\"topic-desc\" placeholder=\"Entrez la description\"><\/textarea>\n <button id=\"createTopicBtn\">Envoyer<\/button>\n<h3>Topic 1<\/h3>\n","_links":{"self":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1046"}],"version-history":[{"count":65,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1046\/revisions"}],"predecessor-version":[{"id":1713,"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/pages\/1046\/revisions\/1713"}],"wp:attachment":[{"href":"https:\/\/formation-defiweb.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}