templates/includes/sim/body-end-print-scripts.html.twig line 1

Open in your IDE?
  1. {% if isPdfDownloaded is defined and isPdfDownloaded == true %}
  2. {% set host = wkhtmltopdf_host %}
  3. {% else %}
  4. {% set host = app.request.getSchemeAndHttpHost() %}
  5. {% endif %}
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.min.js"></script>
  8. <script src="{{ (asset(host ~ '/bundles/fosjsrouting/js/router.min.js')) }}"></script>
  9. <script src="{{ host ~ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  10. <script type="text/javascript">
  11. {% include 'includes/common/js-config.html.twig' %}
  12. </script>
  13. {% if app.environment != 'prod' %}
  14. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/moment.js"></script>
  15. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-placeholder/2.3.1/jquery.placeholder.js"></script>
  16. <script src="{{ asset(host ~ '/js/utils/utils.js') }}"></script>
  17. <script src="{{ asset(host ~ '/js/custom/default/polyfill.js') }}"></script>
  18. <script src="{{ asset(host ~ '/js/custom/debug-fix.js') }}"></script>
  19. <script src="{{ asset(host ~ '/js/vendor/leaflet.js') }}"></script>
  20. <script src="{{ asset(host ~ '/js/vendor/esri-leaflet.js') }}"></script>
  21. <script src="{{ asset(host ~ '/js/vendor/esri-leaflet-geocoder.js') }}"></script>
  22. <script src="{{ asset(host ~ '/js/vendor/leaflet.geometryutil.js') }}"></script>
  23. <script src="{{ asset(host ~ '/js/vendor/leaflet.contextmenu.js') }}"></script>
  24. <script src="{{ asset(host ~ '/js/vendor/maplibre-gl.js') }}"></script>
  25. <script src="{{ asset(host ~ '/js/vendor/leaflet-maplibre-gl.js') }}"></script>
  26. <script src="{{ asset(host ~ '/js/vendor/jquery.splendid.textchange.js') }}"></script>
  27. <script src="{{ asset(host ~ '/js/utils/datetimepicker.js') }}"></script>
  28. <script src="{{ asset(host ~ '/js/utils/date-input.js') }}"></script>
  29. <script src="{{ asset(host ~ '/js/utils/combobox.js') }}"></script>
  30. <script src="{{ asset(host ~ '/js/utils/labelled-input.js') }}"></script>
  31. <script src="{{ asset(host ~ '/js/utils/select-input.js') }}"></script>
  32. <script src="{{ asset(host ~ '/js/utils/autocomplete.js') }}"></script>
  33. <script src="{{ asset(host ~ '/js/utils/transition.js') }}"></script>
  34. <script src="{{ asset(host ~ '/js/utils/collapse.js') }}"></script>
  35. <script src="{{ asset(host ~ '/js/utils/tab.js') }}"></script>
  36. <script src="{{ asset(host ~ '/js/utils/modal.js') }}"></script>
  37. <script src="{{ asset(host ~ '/js/utils/alert.js') }}"></script>
  38. <script src="{{ asset(host ~ '/js/utils/dropdown.js') }}"></script>
  39. <script src="{{ asset(host ~ '/js/utils/tooltip.js') }}"></script>
  40. <script src="{{ asset(host ~ '/js/utils/equalizer.js') }}"></script>
  41. <script src="{{ asset(host ~ '/js/utils/scrollbar.js') }}"></script>
  42. <script src="{{ asset(host ~ '/js/utils/navigable-table.js') }}"></script>
  43. <script src="{{ asset(host ~ '/js/utils/oms.min.js') }}"></script>
  44. <script src="{{ asset(host ~ '/js/utils/map.js') }}"></script>
  45. <script src="{{ asset(host ~ '/js/utils/ouical-custom.js') }}"></script>
  46. <script src="{{ asset(host ~ '/js/widgets/search-widget/geolocation.js') }}"></script>
  47. <script src="{{ asset(host ~ '/js/widgets/search-widget/index.js') }}"></script>
  48. <script src="{{ asset(host ~ '/js/widgets/search-widget/shared/UtilsService.js') }}"></script>
  49. <script src="{{ asset(host ~ '/js/widgets/search-widget/shared/HistoryManager.js') }}"></script>
  50. <script src="{{ asset(host ~ '/js/widgets/search-widget/Routes/RoutingManager.js') }}"></script>
  51. <script src="{{ asset(host ~ '/js/modules/TrackingManager.js') }}"></script>
  52. <script src="{{ asset(host ~ '/js/modules/ReportingManager.js') }}"></script>
  53. <script src="{{ asset(host ~ '/js/widgets/search-widget/shared/UtilsService.js') }}"></script>
  54. <script src="{{ asset(host ~ '/js/modules/TrackingManager.js') }}"></script>
  55. <script src="{{ asset(host ~ '/js/widgets/search-widget/Journey/services/JourneyService.js') }}"></script>
  56. <script src="{{ asset(host ~ '/js/widgets/search-widget/Journey/managers/JourneyManager.js') }}"></script>
  57. <script src="{{ asset(host ~ '/js/widgets/search-widget/Map/managers/InfosSidebarManager.js') }}"></script>
  58. <script src="{{ asset(host ~ '/js/widgets/search-widget/Map/handler/IconMarkerHandler.js') }}"></script>
  59. <script src="{{ asset(host ~ '/js/widgets/search-widget/Map/managers/MapManager.js') }}"></script>
  60. <script src="{{ asset(host ~ '/js/widgets/search-widget/Map/managers/CustomPopupManager.js') }}"></script>
  61. <script src="{{ asset(host ~ '/js/custom/default/main.js') }}"></script>
  62. <script src="{{ asset(host ~ '/js/custom/default/header-nav.js') }}"></script>
  63. <script src="{{ asset(host ~ '/js/modules/account/errorMessagesAccount.js') }}"></script>
  64. <script src="{{ asset(host ~ '/js/modules/account/AccountManager.js') }}"></script>
  65. {% else %}
  66. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/moment.js"></script>
  67. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-placeholder/2.3.1/jquery.placeholder.js"></script>
  68. <script src="{{ asset(host ~ '/js/sim-print-body-end.min.js') }}?isb={{ short_commit }}"></script>
  69. {% endif %}
  70. {% if mixpanel_token is defined and mixpanel_token is not empty %}
  71. <!-- start Mixpanel -->
  72. <script type="text/javascript">
  73. (function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
  74. 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
  75. for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
  76. mixpanel.init("{{ mixpanel_token }}");
  77. </script>
  78. <!-- end Mixpanel -->
  79. {% endif %}
  80. {% if google_analytics_external_tracking_code is defined and google_analytics_external_tracking_code is not null %}
  81. {% include 'includes/custom/' ~ network_id ~ '/ga-external-tracking.html.twig' %}
  82. {% endif %}