templates/footer.html.twig line 1

Open in your IDE?
  1. <script src="{{asset('js/jquery.min.js')}}" type="text/javascript"></script>
  2. <script src="{{asset('js/bootstrap.min.js')}}" type="text/javascript"></script>
  3. <script src="{{asset('js/jquery.lazyload.min.js')}}" type="text/javascript"></script>
  4. <script src="{{asset('js/select2.full.min.js')}}" type="text/javascript"></script>
  5. <script src="{{ asset('js/jquery.noty.packaged.min.js') }}" type="text/javascript"></script>
  6. <script src="{{asset('js/icheck.min.js')}}" type="text/javascript"></script>
  7. <script src="{{ asset('js/jquery-confirm.min.js') }}"></script>
  8. <script type="text/javascript">
  9.      $(function() {
  10.          $('#remember_me').iCheck({
  11.              checkboxClass: 'icheckbox_square-blue',
  12.              radioClass: 'iradio_square-blue',
  13.              increaseArea: '20%'
  14.          });
  15.           $("img.lazy").lazyload({effect: "fadeIn"});
  16.           $(".select2").select2();
  17.           $('select').on('change', function (evt) {
  18.               $(".select2-selection__rendered").attr("title","");
  19.           });
  20.           $(".select2-selection__rendered").attr("title","");
  21.          {% if is_granted('ROLE_GLOBAL_EDITOR') %}
  22.          $.get( "{{ path('get_task_ajax') }}", function( data ) {
  23.              $(".tasks").html(data);
  24.          });
  25.          {% endif %}
  26.          function notify(type, text) {
  27.              var n = noty({
  28.                  text: text,
  29.                  layout: 'top',
  30.                  theme: 'relax', // or 'relax'
  31.                  type: type
  32.              });
  33.          }
  34.          if (!navigator.cookieEnabled){
  35.              notify('error', '<i class="fa fa-exclamation-triangle fa-fw"></i> OceanExpert uses cookies to provide you with all the cool functionality.' +
  36.                  ' We see that your browser has cookies disabled. Make sure your cookies are enabled or you will not be able to use OceanExpert optimally.' +
  37.                  ' <span class="cookie-ok">I understand</span>');
  38.          }
  39.       });
  40.      {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  41.      function check_session() {
  42.          $.ajax({
  43.              url:"{{ path('check_session') }}",
  44.              method:"POST",
  45.              success:function(data) {
  46.                  if(data == 0 ) {
  47.                      window.submitted = "refresh";
  48.                      if (typeof jc == 'undefined') {
  49.                        window.jc = $.alert({
  50.                              title: 'Session Expired!',
  51.                              content: 'Because of inactivity, your session has timed out and no longer active.<br />Click "OKAY" to reload the page and log in again.',
  52.                              icon: 'fa fa-exclamation-triangle',
  53.                              animation: 'zoom',
  54.                              closeAnimation: 'zoom',
  55.                              theme: 'supervan',
  56.                              buttons: {
  57.                                  okay: {
  58.                                      text: 'Okay',
  59.                                      btnClass: 'btn-blue',
  60.                                      action: function () {
  61.                                          window.location.reload();
  62.                                      }
  63.                                  }
  64.                              }
  65.                          });
  66.                      }
  67.                  } else if(data == 1) {
  68.                      //console.log("Passed");
  69.                      if (typeof jc !== 'undefined') {
  70.                          jc.close();
  71.                      }
  72.                  }
  73.              }
  74.          })
  75.      }
  76.      setInterval(function(){
  77.          check_session();
  78.      }, 30000);  //10000 means 10 seconds
  79.      {% endif %}
  80.     (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  81.                 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  82.             m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  83.     })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  84.     ga('create', 'UA-20494768-5', 'auto');
  85.     ga('send', 'pageview');
  86. </script>
  87. <footer class="footer">
  88.     <div class="container">
  89.         <div class="row">
  90.             <div class="col-lg-10 col-lg-offset-1 text-center top-buffer">
  91.                 <h4><strong>UNESCO/IOC Project Office for IODE</strong>
  92.                 </h4>
  93.                 <p>InnovOcean Campus - Jacobsenstraat 1<br>8400 Oostende, Belgium</p>
  94.                 <ul class="list-inline social-icons">
  95.                     <li>
  96.                         <a
  97.                                 href="mailto:oceanexpert_feedback@iode.org"
  98.                                 target="_blank">
  99.                             <i class="fa fa-envelope-o fa-fw fa-2x"></i>
  100.                         </a>
  101.                     </li>
  102.                     <li>
  103.                         <a
  104.                                 href="https://www.facebook.com/IODE.Oostende/"
  105.                                 target="_blank">
  106.                             <i
  107.                                     class="fa fa-facebook-official fa-fw fa-2x"></i>
  108.                         </a>
  109.                     </li>
  110.                 </ul>
  111.                 <p class="center-block">
  112.                     <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
  113.                         <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png" />
  114.                     </a>
  115.                     | <a href="{{ path('statistics') }}" class="bold">Statistics</a>
  116.                     | <a href="{{ path('disclaimer') }}" class="bold">Disclaimer</a>
  117.                 </p>
  118.                 <hr class="small compact darkgrey">
  119.                 <p class="text-muted copyright">Copyright &copy; {{ "now"|date("Y") }}, UNESCO/IOC Project Office for IODE, Ostend, Belgium  </p>
  120.             </div>
  121.         </div>
  122.     </div>
  123. </footer>