{"id":931,"date":"2025-09-17T11:28:05","date_gmt":"2025-09-17T11:28:05","guid":{"rendered":"https:\/\/23ombr.dev.komanda.dev\/pidrozdily\/infantry\/"},"modified":"2025-10-02T19:30:16","modified_gmt":"2025-10-02T19:30:16","slug":"infantry","status":"publish","type":"subdivisions","link":"https:\/\/23ombr.dev.komanda.dev\/en\/pidrozdily\/infantry\/","title":{"rendered":"Infantry"},"content":{"rendered":"\r\n<section class=\"custom_classes block-1 align wp-block-acf-pic-left\">\r\n\r\n    <div class=\"flex-pic-left-container\">\r\n                    <img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota1.jpg\" alt=\"\" class=\"flex-image\"\/>\r\n        \r\n                    <div class=\"flex-text\">\r\n                <p>The brigade was formed on February 28, 2023.<\/p>\n<p>In June 2023, it participated in the liberation of Novodarivka village and the battles for Robotyne.<\/p>\n            <\/div>\r\n            <\/div>\r\n\r\n<\/section>\r\n<section class=\"custom_classes block-1 align wp-block-acf-pic-right\" >\r\n\r\n    <div class=\"flex-pic-right-container\">\r\n                    <div class=\"flex-text\">\r\n                <p>From November 2023, the brigade&#8217;s units were engaged in battles in the Avdiivka direction, successfully repelling enemy attacks.<\/p>\n<p>During the Russian troops&#8217; offensive on Kharkiv in the summer of 2024, some units of the brigade participated in repelling the attack and containing the enemy on the approaches to the city.<\/p>\n            <\/div>\r\n        \r\n                    <img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota2.jpg\" alt=\"\" class=\"flex-image\"\/>\r\n            <\/div>\r\n\r\n<\/section>\r\n\r\n<section class=\"custom_classes block-2 align wp-block-acf-pic-left\">\r\n\r\n    <div class=\"flex-pic-left-container\">\r\n                    <img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota3.jpg\" alt=\"\" class=\"flex-image\"\/>\r\n        \r\n                    <div class=\"flex-text\">\r\n                <p>At the same time, the main forces of the 23rd Brigade were actively engaged in combat operations in the area of Chasiv Yar and Toretsk in the Donetsk region.<\/p>\n<p>Since the beginning of November 2024, the brigade has been defending the country in the Kurakhove direction, opposing superior enemy forces and slowing down their further advance with incredible efforts.<\/p>\n            <\/div>\r\n            <\/div>\r\n\r\n<\/section>\r\n<section class=\"custom_classes block-1 align wp-block-acf-gallery\">\r\n\t<div class=\"slider-wrapper\">\r\n\t\t<div class=\"slider-container\" id=\"infinite-slider\">\r\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota5.jpg\" alt=\"pihota5\" class=\"slider-image\"\/>\r\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota4.jpg\" alt=\"pihota4\" class=\"slider-image\"\/>\r\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota2.jpg\" alt=\"pihota2\" class=\"slider-image\"\/>\r\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota3.jpg\" alt=\"pihota3\" class=\"slider-image\"\/>\r\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/23ombr.dev.komanda.dev\/wp-content\/uploads\/2025\/09\/pihota1.jpg\" alt=\"pihota1\" class=\"slider-image\"\/>\r\n\t\t\t\t\t\t<\/div>\r\n\t<\/div>\r\n<\/section>\r\n\r\n\r\n<script>\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n  const slider = document.querySelector('#infinite-slider');\r\n  if (!slider) return;\r\n\r\n  let slides = Array.from(slider.children);\r\n  let index = 0;\r\n\r\n  \/\/ \u041a\u043b\u043e\u043d\u0443\u0454\u043c\u043e \u043f\u0435\u0440\u0448\u0438\u0439 \u0456 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u0441\u043b\u0430\u0439\u0434 \u0434\u043b\u044f \u0431\u0435\u0437\u043a\u0456\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0456\r\n  const firstClone = slides[0].cloneNode(true);\r\n  const lastClone = slides[slides.length - 1].cloneNode(true);\r\n\r\n  slider.appendChild(firstClone);\r\n  slider.insertBefore(lastClone, slides[0]);\r\n\r\n  slides = Array.from(slider.children);\r\n  let currentIndex = 1;\r\n  const slideWidth = slides[0].offsetWidth + 16; \/\/ 16 \u2014 gap\r\n\r\n  slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;\r\n\r\n  \/\/ \u0424\u0443\u043d\u043a\u0446\u0456\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0443\r\n  function moveToSlide(index) {\r\n    slider.style.transition = 'transform 0.4s ease';\r\n    slider.style.transform = `translateX(-${slideWidth * index}px)`;\r\n  }\r\n\r\n  \/\/ \u041f\u0456\u0441\u043b\u044f \u0430\u043d\u0456\u043c\u0430\u0446\u0456\u0457 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e \u043c\u0435\u0436\u0456\r\n  slider.addEventListener('transitionend', () => {\r\n    if (slides[currentIndex].isSameNode(firstClone)) {\r\n      slider.style.transition = 'none';\r\n      currentIndex = 1;\r\n      slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;\r\n    }\r\n    if (slides[currentIndex].isSameNode(lastClone)) {\r\n      slider.style.transition = 'none';\r\n      currentIndex = slides.length - 2;\r\n      slider.style.transform = `translateX(-${slideWidth * currentIndex}px)`;\r\n    }\r\n  });\r\n\r\n  \/\/ \u041a\u043b\u0456\u043a \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u0446\u0456 \u2014 \u0434\u0430\u043b\u0456\r\n  slider.addEventListener('click', () => {\r\n    currentIndex++;\r\n    moveToSlide(currentIndex);\r\n  });\r\n\r\n  \/\/ \u041f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430 \u0441\u0432\u0430\u0439\u043f\u0443 \/ drag\r\n  let startX = 0;\r\n  let isDragging = false;\r\n\r\n  slider.addEventListener('mousedown', (e) => {\r\n    isDragging = true;\r\n    startX = e.pageX;\r\n  });\r\n\r\n  slider.addEventListener('mouseup', (e) => {\r\n    if (!isDragging) return;\r\n    isDragging = false;\r\n    const diff = e.pageX - startX;\r\n    if (Math.abs(diff) > 50) {\r\n      currentIndex += diff > 0 ? -1 : 1;\r\n      moveToSlide(currentIndex);\r\n    }\r\n  });\r\n\r\n  slider.addEventListener('touchstart', (e) => {\r\n    startX = e.touches[0].clientX;\r\n    isDragging = true;\r\n  });\r\n\r\n  slider.addEventListener('touchend', (e) => {\r\n    if (!isDragging) return;\r\n    isDragging = false;\r\n    const diff = e.changedTouches[0].clientX - startX;\r\n    if (Math.abs(diff) > 50) {\r\n      currentIndex += diff > 0 ? -1 : 1;\r\n      moveToSlide(currentIndex);\r\n    }\r\n  });\r\n\r\n  \/\/ \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0435 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0448\u0438\u0440\u0438\u043d\u0438 \u043f\u0440\u0438 \u0440\u0435\u0441\u0430\u0439\u0437\u0456\r\n  window.addEventListener('resize', () => {\r\n    const newWidth = slides[0].offsetWidth + 16;\r\n    slider.style.transition = 'none';\r\n    slider.style.transform = `translateX(-${newWidth * currentIndex}px)`;\r\n  });\r\n});\r\n\r\n\r\n<\/script>\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":933,"template":"","class_list":["post-931","subdivisions","type-subdivisions","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/subdivisions\/931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/subdivisions"}],"about":[{"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/types\/subdivisions"}],"version-history":[{"count":2,"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/subdivisions\/931\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/subdivisions\/931\/revisions\/1465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/media\/933"}],"wp:attachment":[{"href":"https:\/\/23ombr.dev.komanda.dev\/en\/wp-json\/wp\/v2\/media?parent=931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}