bundle.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
  3. * This devtool is neither made for production nor for readable output files.
  4. * It uses "eval()" calls to create a separate source file in the browser devtools.
  5. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
  6. * or disable the default devtool with "devtool: false".
  7. * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
  8. */
  9. /******/ (() => { // webpackBootstrap
  10. /******/ var __webpack_modules__ = ({
  11. /***/ "./js/reha.js":
  12. /*!********************!*\
  13. !*** ./js/reha.js ***!
  14. \********************/
  15. /***/ (() => {
  16. eval("/**\n * @file\n * reha behaviors.\n */\n(function (Drupal) {\n\n 'use strict';\n\n Drupal.behaviors.reha = {\n attach: function (context, settings) {\n\n console.log('It works!');\n\n }\n };\n\n \n} (Drupal));\n\njQuery(document).ready(function($){\n\n // menu déroulant\n\n ////////////// contacts ///////\n\n $(\".bouton-contact\").click(function(event) {\n // Fermer .connexion-full s'il est déroulé\n if ($(\".connexion-full\").is(\":visible\")) {\n $(\".connexion-full\").slideUp();\n }\n if ($(\".connected-full\").is(\":visible\")) {\n $(\".connected-full\").slideUp();\n }\n // Ouvrir .contacts-full\n $(\".contacts-full\").slideToggle();\n\n });\n\n////////////// connexion ///////\n\n $(\".bouton-connexion\").click(function(event) {\n // Fermer .contacts-full s'il est déroulé\n if ($(\".contacts-full\").is(\":visible\")) {\n $(\".contacts-full\").slideUp();\n }\n // Ouvrir .connexion-full\n $(\".connexion-full\").slideToggle();\n });\n \n $(\".bouton-connected\").click(function(event) {\n // Fermer .contacts-full s'il est déroulé\n if ($(\".contacts-full\").is(\":visible\")) {\n $(\".contacts-full\").slideUp();\n }\n // Ouvrir .connected-full\n $(\".connected-full\").slideToggle();\n });\n \n $(\".titre\").click(function(event) {\n if ($(\".connected-full\").is(\":visible\")) {\n $(\".connected-full\").slideUp();\n }\n if ($(\".contacts-full\").is(\":visible\")) {\n $(\".contacts-full\").slideUp();\n }\n if ($(\".connexion-full\").is(\":visible\")) {\n $(\".connexion-full\").slideUp();\n }\n // // Ouvrir .connexion-full\n // $(\".connected-full\").slideToggle();\n });\n \n $(\"#edit-field-dossier-de-candidature-0--label\").click(function(event) {\n event.preventDefault();\n // Ouvrir .connexion-full\n $(\"#edit-field-dossier-de-candidature-0--description>ul.main\").slideToggle();\n });\n\n\n ////////////// tiroir fichiers ///////\n\n $(document).ready(function() {\n // Vérifier l'état initial depuis sessionStorage\n if (sessionStorage.getItem('asideOpened') === 'true') {\n $(\".layout-sidebar-second\").addClass('close');\n $(\".layout-sidebar-second h2\").addClass('__close');\n }\n\n $(\".view-current-user-doc-profile\").click(function(event) {\n // Ouvrir .tiroir fichiers\n $(\".layout-sidebar-second\").addClass('close');\n $(\".layout-sidebar-second h2\").addClass('__close');\n sessionStorage.setItem('asideOpened', 'true');\n });\n\n $(\"#block-reha-views-block-current-user-doc-profile-block-1 > h2\").click(function(event) {\n // Fermer .tiroir fichiers\n $(\".layout-sidebar-second\").removeClass('close');\n $(\".layout-sidebar-second h2\").removeClass('__close');\n sessionStorage.setItem('asideOpened', 'false');\n });\n });\n\n});\n\n\n// slideshow home \n\n(function($, window) {\n console.log('hello slick')\n $(document).ready(function(){\n $('.view-id-sites.view-display-id-block_1').slick({\n slidesToShow: 1,\n // slidesToScroll: 1,\n dots: false,\n arrows: true,\n centerMode: true,\n adaptiveHeight: true,\n // centerPadding: '100px',\n responsive: [\n {\n breakpoint: 810,\n settings: {\n slidesToShow: 1,\n adaptiveHeight: true,\n arrows: false,\n draggable: true,\n centerMode: true,\n }\n }]\n });\n console.log('salut slick home');\n\n });\n\n $(document).ready(function(){\n $('.view-id-actus.view-display-id-block_1 ').slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n // dots: true,\n arrows: true,\n // centerMode: true,\n draggable: true,\n centerPadding: '100px',\n responsive: [\n {\n breakpoint: 810,\n settings: {\n slidesToShow: 1,\n adaptiveHeight: true,\n arrows: false,\n draggable: true,\n centerMode: true,\n }\n }]\n });\n console.log('slick actu');\n });\n\n // html.js body.node-type-site.node-id-58 div.dialog-off-canvas-main-canvas div.layout-container.page-node-site main div.layout-content.home-page-layout-content div.region.region-content div#block-reha-contenudelapageprincipale.block.block-system.block-system-main-block article.node-type-site div.entete_site div.image-site div.field.field--name-field-image.field--type-image.field--label-visually_hidden div.field__items\n $(document).ready(function(){\n $('.node-type-site .page-node-site .field--name-field-image .field__items').slick({\n slidesToShow: 1,\n // slidesToScroll: 1,\n dots: true,\n arrows: false,\n // adaptiveHeight: true,\n centerMode: true,\n // centerPadding: '100px',\n responsive: [\n {\n breakpoint: 810,\n settings: {\n slidesToShow: 1,\n adaptiveHeight: true,\n arrows: false,\n draggable: true,\n centerMode: true,\n }\n }]\n });\n console.log('slick site');\n });\n\n\n \n\n// /////////////////\n//// ancre dans texte au click parragraphe correspondant arrive en dessous du header \n\n function adjustAnchor() {\n var $anchor = $(window.location.hash); // Select the anchor element based on the hash in the URL\n var fixedElementHeight = $('.block-region-first').outerHeight(); // Get the height of the sticky element\n\n if ($anchor.length > 0) {\n $('html, body').stop().animate({\n scrollTop: $anchor.offset().top - fixedElementHeight // Adjust the scroll position to account for the sticky element height\n }, 0);\n }\n }\n\n // Call the function on page load if there's a hash\n if (window.location.hash) {\n adjustAnchor();\n }\n\n // Adjust the anchor on hash change\n $(window).on('hashchange', function() {\n adjustAnchor();\n });\n\n\n\n //////////////////////////////////////////\n // menu ancre paragraphe quand actif\n \n jQuery(function($) {\n // Function to set the active class based on the current path\n function setActiveLink() {\n var path = window.location.href;\n console.log(path);\n $(\".layout__region--first .block-region-first li a\").each(function() {\n if (this.href === path) {\n $(this).closest('a').addClass('active');\n }\n });\n }\n\n // Initially set the active link based on the current URL\n setActiveLink();\n\n // Update the active link on click\n $(\".layout__region--first .block-region-first li a\").on('click', function() {\n $(\".layout__region--first .block-region-first li a\").removeClass('active');\n $(this).addClass('active');\n });\n });\n\n\n})(jQuery, window);\n\n\n/////////////////// déplace synthèse de tous les sites (dans block config 3) dans node site pour faciliter css ///////////////////\n\n(function ($, Drupal) {\n Drupal.behaviors.moveFieldContent = {\n attach: function (context, settings) {\n // Vérifiez que les éléments existent avant de tenter de les manipuler\n if ($('#block-reha-config-pages-3 .field--name-field-fichier', context).length && $('.node-type-site .body-content-site .links-content', context).length) {\n // Déplacer le contenu de .field--name-field-fichier vers .links-content\n var fieldContent = $('#block-reha-config-pages-3 .field--name-field-fichier', context).detach();\n $('.node-type-site .body-content-site .links-content', context).append(fieldContent);\n }\n }\n };\n})(jQuery, Drupal);\n\n//# sourceURL=webpack://dev.reha.fr/./js/reha.js?");
  17. /***/ }),
  18. /***/ "./scss/reha.scss":
  19. /*!************************!*\
  20. !*** ./scss/reha.scss ***!
  21. \************************/
  22. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  23. "use strict";
  24. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + \"css/bundle.css\");\n\n//# sourceURL=webpack://dev.reha.fr/./scss/reha.scss?");
  25. /***/ })
  26. /******/ });
  27. /************************************************************************/
  28. /******/ // The require scope
  29. /******/ var __webpack_require__ = {};
  30. /******/
  31. /************************************************************************/
  32. /******/ /* webpack/runtime/define property getters */
  33. /******/ (() => {
  34. /******/ // define getter functions for harmony exports
  35. /******/ __webpack_require__.d = (exports, definition) => {
  36. /******/ for(var key in definition) {
  37. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  38. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  39. /******/ }
  40. /******/ }
  41. /******/ };
  42. /******/ })();
  43. /******/
  44. /******/ /* webpack/runtime/global */
  45. /******/ (() => {
  46. /******/ __webpack_require__.g = (function() {
  47. /******/ if (typeof globalThis === 'object') return globalThis;
  48. /******/ try {
  49. /******/ return this || new Function('return this')();
  50. /******/ } catch (e) {
  51. /******/ if (typeof window === 'object') return window;
  52. /******/ }
  53. /******/ })();
  54. /******/ })();
  55. /******/
  56. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  57. /******/ (() => {
  58. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  59. /******/ })();
  60. /******/
  61. /******/ /* webpack/runtime/make namespace object */
  62. /******/ (() => {
  63. /******/ // define __esModule on exports
  64. /******/ __webpack_require__.r = (exports) => {
  65. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  66. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  67. /******/ }
  68. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  69. /******/ };
  70. /******/ })();
  71. /******/
  72. /******/ /* webpack/runtime/publicPath */
  73. /******/ (() => {
  74. /******/ var scriptUrl;
  75. /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
  76. /******/ var document = __webpack_require__.g.document;
  77. /******/ if (!scriptUrl && document) {
  78. /******/ if (document.currentScript)
  79. /******/ scriptUrl = document.currentScript.src;
  80. /******/ if (!scriptUrl) {
  81. /******/ var scripts = document.getElementsByTagName("script");
  82. /******/ if(scripts.length) {
  83. /******/ var i = scripts.length - 1;
  84. /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
  85. /******/ }
  86. /******/ }
  87. /******/ }
  88. /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
  89. /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
  90. /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
  91. /******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
  92. /******/ __webpack_require__.p = scriptUrl;
  93. /******/ })();
  94. /******/
  95. /************************************************************************/
  96. /******/
  97. /******/ // startup
  98. /******/ // Load entry module and return exports
  99. /******/ // This entry module can't be inlined because the eval devtool is used.
  100. /******/ __webpack_modules__["./js/reha.js"](0, {}, __webpack_require__);
  101. /******/ var __webpack_exports__ = {};
  102. /******/ __webpack_modules__["./scss/reha.scss"](0, __webpack_exports__, __webpack_require__);
  103. /******/
  104. /******/ })()
  105. ;