app/template/default/about.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% block main %}
  3. <div class="about-page">
  4.   <div class="fade-content ObserveEle about-page-head" id="scaleElement">
  5.     <div class="about-page-head-inner">
  6.       <h1 class="about-page-head_title">{{ 'front.block.over_view.what_is_wish_s_sh_title' |trans }}</h1>
  7.       <p class="about-page-head_desc">
  8.         {{ 'front.block.over_view.what_is_wish_s_sh_desc_1' |trans }}
  9.         <br class="pc-only" />
  10.         {{ 'front.block.over_view.what_is_wish_s_sh_desc_2' |trans }}
  11.         <br class="pc-only" />
  12.         {{ 'front.block.over_view.what_is_wish_s_sh_desc_3' |trans }}
  13.         <br />
  14.         <br />
  15.         {{ 'front.block.over_view.what_is_wish_s_sh_desc_4' |trans }}
  16.         <br class="pc-only"/>
  17.         {{ 'front.block.over_view.what_is_wish_s_sh_desc_5' |trans }}
  18.         <br class="pc-only"/>
  19.       </p>
  20.     </div>
  21.   </div>
  22.   <div class="fade-content ObserveEle about-safety">
  23.     <div class="ec-eyecatchRole">
  24.       <div class="ec-eyecatchRole__image">
  25.         <img
  26.           src="/html/user_data/assets/img/item/about_lineup_img.jpg"
  27.           alt="safety"
  28.           role="presentation"
  29.         />
  30.       </div>
  31.       <div class="ec-eyecatchRole__intro">
  32.         <h3 class="ec-eyecatchRole__introTitle">{{'front.block.over_view.safety_title' |trans}}</h3>
  33.         <p class="ec-eyecatchRole__introDescription">
  34.           {{'front.block.over_view.safety_desc_1' |trans}}
  35.           <br class="pc-only" />
  36.           {{'front.block.over_view.safety_desc_2' |trans}}
  37.           <br class="pc-only" />
  38.           {{'front.block.over_view.safety_desc_3' |trans}}
  39.           <br />
  40.           <br />
  41.           <span>
  42.           {{'front.block.over_view.safety_desc_4' |trans}}
  43.           </span>
  44.           <br />
  45.           <br />
  46.           {{'front.block.over_view.safety_desc_5' |trans}}
  47.           <br />
  48.           {{'front.block.over_view.safety_desc_6' |trans}}
  49.           <br />
  50.           {{'front.block.over_view.safety_desc_7' |trans}}
  51.           <br />
  52.           {{'front.block.over_view.safety_desc_8' |trans}}
  53.           <br />
  54.           {{'front.block.over_view.safety_desc_9' |trans}}
  55.           <br />
  56.           <span>
  57.           {{'front.block.over_view.safety_desc_10' |trans}}
  58.           </span>
  59.         </p>
  60.       </div>
  61.     </div>
  62.   </div>
  63.   <div class="fade-content ObserveEle about-save">
  64.     <div class="ec-eyecatchRole">
  65.       <div class="ec-eyecatchRole__image">
  66.         <img
  67.           src="{{'img_path.about_safe_img'|trans}}"
  68.           alt="{{'img_path.about_safe_img_alt_text'|trans}}"
  69.           role="presentation"
  70.         />
  71.       </div>
  72.       <div class="ec-eyecatchRole__intro">
  73.         <h3 class="ec-eyecatchRole__introTitle">{{'front.block.over_view.long_term_storage_title' |trans}}</h3>
  74.         <p class="ec-eyecatchRole__introDescription">
  75.           {{'front.block.over_view.long_term_storage_desc_1' |trans}}
  76.           <br />
  77.           <br />
  78.           {{'front.block.over_view.long_term_storage_desc_2' |trans}}<br>
  79.           {{'front.block.over_view.long_term_storage_desc_3' |trans}}<br class="pc-only">
  80.           {{'front.block.over_view.long_term_storage_desc_4' |trans}}
  81.         </p>
  82.       </div>
  83.     </div>
  84.   </div>
  85.   <div class="fade-content ObserveEle about-effect">
  86.     <div class="ec-eyecatchRole">
  87.       <div class="ec-eyecatchRole__image">
  88.         <img
  89.           src="{{'img_path.about_effect_img'|trans}}"
  90.           alt="{{'img_path.about_effect_img_alt_text'|trans}}"
  91.           role="presentation"
  92.         />
  93.       </div>
  94.       <div class="ec-eyecatchRole__intro">
  95.         <h3 class="ec-eyecatchRole__introTitle">{{'front.block.over_view.disinfection_and_deodorization_effects_title' |trans}}</h3>
  96.         <p class="ec-eyecatchRole__introDescription">
  97.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_1' |trans}}<br>
  98.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_2' |trans}}<br>
  99.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_3' |trans}}<br>
  100.           <br><br>
  101.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_4' |trans}}
  102.           <br><br>
  103.           <span>{{'front.block.over_view.disinfection_and_deodorization_effects_desc_5' |trans}}</span><br> 
  104.           <span>{{'front.block.over_view.disinfection_and_deodorization_effects_desc_6' |trans}}</span><br> <br> 
  105.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_7' |trans}}<br> 
  106.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_8' |trans}} <br> 
  107.           {{'front.block.over_view.disinfection_and_deodorization_effects_desc_9' |trans}}
  108.         </p>
  109.       </div>
  110.     </div>
  111.   </div>
  112. </div>
  113. <script>
  114. window.onload = (event) => {
  115.   //==========================================
  116.   //ベースとなる要素の取得スタイルの取得
  117.   //==========================================
  118.   let srcScaleBaseElement = document.querySelector(".ec-layoutRole__contents");
  119.   //ベースとなる要素のマージンとパディング(左右)の取得
  120.   let paddingLeftSize = 0;
  121.   let paddingRightSize = 0;
  122.   let marginLeftSize = 0;
  123.   let marginRightSize = 0;
  124.   marginLeftSize = parseFloat(window.getComputedStyle(srcScaleBaseElement).marginLeft);
  125.   marginRightSize = parseFloat(window.getComputedStyle(srcScaleBaseElement).marginRight);
  126.   
  127.   //ベースとなる要素の左右のマージンとパディングの合計値を計算
  128.   let LeftTotal = paddingLeftSize + marginLeftSize;
  129.   let RightTotal = paddingRightSize + marginRightSize ;
  130.   //==========================================
  131.   ////スタイルを変更する要素の取得とスタイルの変更
  132.   //==========================================
  133.   let targetScaleElement = document.getElementById("scaleElement");
  134.   targetScaleElement.style.marginLeft = "-" + LeftTotal + "px";
  135.   targetScaleElement.style.marginRight = "-" + RightTotal + "px";
  136. };
  137. </script>
  138. {% endblock %}