src/NCBS/WebsiteBundle/Resources/views/layout_js.html.twig line 1

Open in your IDE?
  1.     <script src="{{ asset('/bundles/ncbsw/js/utils.min.js?20221103.1622') }}" type="text/javascript" async></script>
  2.   <script src="{{ asset('/bundles/ncbsw/js/tooltip.min.js?20230630.1551') }}" type="text/javascript"></script>
  3.   <script src="{{ asset('/bundles/ncbsw/js/popper.min.js?20230630.1551') }}" type="text/javascript"></script>
  4.   <script src="{{ asset('/bundles/ncbsw/js/bootstrap.min.js?20230630.1551') }}" type="text/javascript"></script>
  5.   
  6. <!--  <script src="{{ asset('/bundles/ncbsw/js/bootstrapx-clickover.js') }}" type="text/javascript"></script> -->
  7. {% if 'search' in sPath or 'exposition' in sPath %}
  8.   <script src="{{ asset('/bundles/ncbsw/js/jquery.highlight.js?20230720.1510') }}" type="text/javascript"></script>
  9. {% endif %}
  10.   
  11. <!--  <script src="{{ asset('/bundles/ncbsw/js/jsmodal.js?20200416.1155') }}" type="text/javascript" async></script> -->
  12.       
  13.   {% include 'NCBSWBundle:Bridge:javascript_translations.html.twig' %}
  14.   {% include 'NCBSWBundle:Bridge:javascript_datagen.html.twig' %}
  15.   {# Any significant updates to the javascript functionality can increment this id.
  16.   It will definitely force clients to load the new file (assuming they have this layout).
  17.   It can also be used to identify older pages which might need to be updated.
  18.   #}    
  19.   
  20. {% if (slider_url is defined and slider_url is not null) or multicolumn_path is defined %}
  21.     <script src="{{ asset('/bundles/ncbsw/js/jquery.sidr.min.js?20190611.1509') }}" type="text/javascript"></script>
  22.     
  23.     <!-- Avoid RocketLoader to load slider -->
  24.     <script data-cfasync="false" src="{{ asset('/bundles/ncbsw/js/slider.js?20240530.1628') }}" type="text/javascript"></script>
  25. {% endif %}
  26. <script src="{{ asset('/bundles/ncbsw/js/speach.js?20240319.1128') }}" type="text/javascript"></script>
  27. <script src="{{ asset('/bundles/ncbsw/js/ncbsw.min.js?20240503.1338') }}" type="text/javascript"></script>
  28. {% if (text_to_speech is defined and text_to_speech is not null) or (explanation_text_to_speech is defined and explanation_text_to_speech is not null) or 'multi' in sPath %}    
  29.   <script data-cfasync="false" src='https://code.responsivevoice.org/responsivevoice.js?key=5453Hsfp' async></script>
  30. {% endif %}    
  31. <script>
  32.     var nCurrentBookmarkID = null;
  33.     function getPopupSearch(vSearchText)
  34.     {
  35.         var sRet = "<br><h5><form><div class=\"input-group col\" style=\"flex-wrap:unset;padding:12px 0px 0px 0px;\"><div><input class=\"form-control py-2 quicksearch-input\" style=\"border-radius:0px;border: 1px solid #026CDD; font-weight:400;width:100%;\" type=\"text\" id=\"searchbox\" placeholder=\"{{ app.session.get('ui_str')["search.title.generic"]|raw }}\" onKeyPress=\"return onEnterSearch(this.form)\"";
  36.         if(vSearchText != '')
  37.         {
  38.             sRet += " value=\"" + vSearchText + "\"";
  39.         }
  40.         sRet += " /></div><div><button class=\"btn btn-primary\" name=\"btnSearch\" type=\"button\" style=\"border-radius: 0rem 0.25rem 0.25rem 0rem; margin:0px;\" onclick=\"onSearch()\"><i class=\"fa fa-search\"></i></button></div></div></form></h5>";
  41.         return sRet;
  42.     }
  43. {% if define_latin_icon is defined and define_latin_icon == 1 %}     
  44.     function showLatinLookup(vText)
  45.     {    
  46.         var sText = vText.trim().replace(/\n/g, '<br>');    
  47.         var sHtml = '<div style="padding:12px;">' + sText;
  48.         sHtml += getLatinLookupFooter() + '</div>';
  49.         openModalWithText("<h3>{{ app.session.get('ui_str')["latin.lookup.title"] }}</h3>", sHtml, "modalNav", "titleNav", "divNav");
  50.     }
  51.         
  52.     function getLatinLookupFooter()
  53.     {
  54.         var sRet = '';
  55.         var sWord = localStorage.NCBSW_LookupLatinTerm;        
  56.         if(sWord != "undefined" && sWord != "")
  57.             sWord = sWord.toLowerCase();
  58.             
  59.         sRet += '<i>Courtesy of the <a href="https://latin-words.com">Whitaker\'s Words</a> project (where you can find a key to <a href="https://mk270.github.io/whitakers-words/programme.html" target="_blank">abbreviations</a> and <a href="https://mk270.github.io/whitakers-words/dictionary.html" target="_blank">[CODES]</a></i>.<hr>More options for analysis and definitions:<br><ul>';
  60.         sRet += '<li><a href="javascript:AnalyzeLatinWord(\'' + sWord + '\');">NCBS analyzer.</a></li>';
  61.         sRet += '<li><a href="{{ path('swedenborg_glossary') }}?word=' + sWord + '" target="_blank">Swedenborg glossary/thesaurus</a></li>';
  62.         sRet += '<hr style="margin-right:18px;">';        
  63.         sRet += '<li><a href="https://en.wiktionary.org/wiki/' + sWord + '#Latin" target="_blank">Wiktionary analyzer</a></li>';
  64.         sRet += '<li><a href="https://www.wordsense.eu/' + sWord + '/" target="_blank">WordSense dictionary</a></li>';
  65.         sRet += '<li><a href="https://outils.biblissima.fr/en/collatinus-web/" target="_blank">Collatinus analyzer.</a></li>';
  66.         sRet += '</ul><br><br>';
  67.         return sRet;
  68.     }    
  69. {% endif %}
  70. function gte(vWorkID)
  71. {    
  72.     var sLink = "{{ path("gotoexplanation") }}?w="+vWorkID+"&l={{ current_locale_code }}";
  73.     //alert(sLink);
  74.     window.open(sLink, '_blank').focus();    
  75. }       
  76. </script>