src/NCBS/WebsiteBundle/Resources/views/Exposition/sidrw.html.twig line 1

Open in your IDE?
  1. {% if has_slider_item_for_work is defined and has_slider_item_for_work %}
  2. {% set nCol = '0' %}
  3. {% if column_num is defined %}
  4.     {% set nCol = column_num %}
  5. {% endif %}
  6. <div id="sidrw{{ nCol }}" class="slider" style="display:none">
  7.     <div class="slider-header">
  8.     &nbsp;<a id="close-menu-buttonw{{ nCol }}" ><button class="close close-sidr" title="close study window"><i class="fas fa-arrow-right"></i></button></a>&nbsp;&nbsp;{{ app.session.get('ui_str')["exposition.slider.header"] }}
  9.     
  10.     </div>
  11.     <div class="slider-body" id="sliderBody{{ nCol }}"> 
  12.         <div class="row" style="text-align: center;">
  13.             <div class="col" style="display: inline-block;padding-top:88px;">
  14.                 <img style="width:64px; height:64px;" alt="page loading graphic" src="{{ asset('/bundles/ncbsw/img/loading.svg') }}" />
  15.             </div>
  16.           </div>
  17.     </div>
  18. </div>
  19.     <script>    
  20.         $(document).ready(function () {
  21.           $('#simple-menuw{{ nCol }}').sidr({
  22.               name: 'sidrw{{ nCol }}',              
  23.             timing: 'ease-in-out',
  24.             speed: '400',
  25.                     side: 'right',
  26.                     displace: false
  27.                 });
  28.         });
  29.         $('#close-menu-buttonw{{ nCol }}').click(function () {
  30.           $.sidr('close', 'sidrw{{ nCol }}');
  31.           onCloseSlider();
  32.         });
  33.         
  34.         if($('body') != null)
  35.         {
  36.             $('body').on('click', function (e) {    
  37.                if ($(e.target).attr('id') != 'simple-menuw{{ nCol }}' && $(e.target).parents('.slider').length == 0) 
  38.                {
  39.                   $.sidr('close', 'sidrw{{ nCol }}');
  40.                   onCloseSlider();
  41.                }    
  42.             });
  43.         }
  44.         
  45.         $( document ).ready(function() {
  46.             showElemByID("sidrw{{ nCol }}");
  47.         });
  48.     </script>
  49. {% endif %}