src/Aviatur/TwigBundle/Resources/views/vertice_travel/Flux/App/base.html.twig line 1

Open in your IDE?
  1. {% set parameters = json_decode(app.session.get(app.request.server.get('HTTP_HOST') ~ '[parameters]'), true) %}
  2. {% set agencyDataInfo = app.session.get('agencyDataInfo') %}
  3. {% if parameters['blob_azure_assets'] is defined %}
  4.     {% set assetsBlobUrl = parameters['blob_azure_assets'] %}
  5. {% else %}
  6.     {% set assetsBlobUrl = "https://aviaturcdndev.z5.web.core.windows.net/"%}
  7. {% endif %}
  8. <!DOCTYPE html>
  9. <html>
  10.     <head>
  11.         <meta charset="utf-8">
  12.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.         {% block head_viewport %}
  14.             <meta name="viewport" content="width=device-width, initial-scale=1">
  15.         {% endblock head_viewport %}
  16.         <title>{% block head_title %}{% endblock head_title %}</title>
  17.         <meta name="description" content="{% block head_description_content %}{% endblock head_description_content %}">
  18.         <meta name="title" content="{% block head_meta_title %}{% endblock head_meta_title %}">
  19.         <meta name="keywords" content="{% block head_keywords %}{% endblock head_keywords %}">
  20.         {# <meta name="apple-itunes-app" content="app-id=1070612402">
  21.         <meta name="google-play-app" content="app-id=app.android.Pasabordo"> #}
  22.         <link rel="icon" type="image/x-icon" href="{{ assetsBlobUrl ~  'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png' }}" />
  23.         <link rel="apple-touch-icon" href="{{  assetsBlobUrl ~  'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png' }}" />
  24.         <link rel="android-touch-icon" href="{{  assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png' }}" />
  25.         {# llamado estilos api hoteles #}
  26.         <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/>
  27.         <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.css" />
  28.         <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css" />
  29. <script defer src="https://unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster-src.js" integrity="sha384-NAOEbWFcjnXc7U9GkULPhupHZNAbqru9dS3c+4ANYAwtFoVAWuVuMVDH0DIy4ESp" crossorigin="anonymous"></script>
  30.         {# styles #}
  31.         {% block stylesheets %}
  32.         <link rel="preconnect" href="https://fonts.googleapis.com">
  33.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  34.         <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
  35. <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
  36. <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
  37. <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
  38.         <link type="text/css" rel="stylesheet" href="{{ style('default_assets/css/main.css') }}" />
  39.         {# <link type="text/css" rel="stylesheet" href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/main.css')) }}" />
  40.         <link type="text/css" rel="stylesheet" href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/special.css')) }}" /> #}
  41.         <script src="https://cdn.tailwindcss.com"></script>
  42.         <script>
  43.             tailwind.config = {
  44.                theme: {
  45.                     container: {
  46.                         center: false,
  47.                     },
  48.                     extend: {
  49.                         screens: {
  50.                             xs:{max: "575px"}, // mini-mobile
  51.                             s:{min:"576px", max:"767px"}, // mobile
  52.                             m:{min:"768px", max:"992px"}, // tablet
  53.                             l:{min:"993px"}, // desktop
  54.                         },
  55.                         colors: {
  56.                         },
  57.                     },
  58.                 },
  59.                 plugins: [],
  60.         }
  61.         </script>
  62.         <style>
  63.             .nav-main__item.is-active,
  64.             .is-active.nav-main__item--blog {
  65.                 border-top: 0.175rem inset  #006c90;
  66.                 color: #006c90;
  67.             }
  68.             .nav-scroll a.is-active {
  69.                 color:  #006c90;
  70.             }
  71.             .nav-scroll a {
  72.                 color: #5a5a5a;
  73.             }
  74.             .btn,
  75.             .btn-flight-blog,
  76.             .btn--slim {
  77.                 background-color: #006c90;
  78.                 border-color: #006c90;
  79.             }
  80.             .btn:hover {
  81.                 background-color: #00a7c5;
  82.                 filter: brightness(1.1);
  83.                 border-color: #facc03;
  84.                 }
  85.             
  86.     
  87.             
  88.             
  89.         </style>
  90.         {% endblock stylesheets %}
  91.         {# end styles #}
  92.         {# scripts #}
  93.         <script src="{{ script('common.js') }}"></script>
  94.         <script src="https://apis.google.com/js/api:client.js" integrity="sha384-5UngWscP4SmNwWewInYpRPek0ZFzNRs/QS6r/vutuBBCFwz28liNRLjQUamFj/Pk" crossorigin="anonymous"></script>
  95.         <script async defer crossorigin="anonymous" integrity="sha384-IeNX8AcVzU9jPDvE21Ts4tNKmR3lTRQMunAKZX/yRKryWWSvhp5FUSJt1eHYpScS" src="https://connect.facebook.net/es_LA/sdk.js#xfbml=1&version=v6.0&appId=#xfbml=1&version=v7.0&appId={{facebook_appid_login}}&autoLogAppEvents=1"></script>
  96.         {% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin') == 'true' %}
  97.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/General/Components/worldpayFunction.html.twig') %}
  98.         {% endif %}
  99.         {% if parameters['firebasescripts'] == 'true' %}
  100.         <link rel="stylesheet" href="https://aviaturcdndev.z5.web.core.windows.net/source/main.css">
  101.         <script src="https://aviaturcdndev.z5.web.core.windows.net/source/script.js" type="text/javascript"></script>
  102.         {% endif %}
  103.         {% if pdfGenerator is not defined %}
  104.             <script type="text/javascript">
  105.                 var clientId;
  106.                 var domain = '{{ app.session.get('domain') }}';
  107.                 var domainsecure = '{{ app.session.get('domainsecure') }}';
  108.                 (function (i, s, o, g, r, a, m) {
  109.                     i['GoogleAnalyticsObject'] = r;
  110.                     i[r] = i[r] || function () {
  111.                         (i[r].q = i[r].q || []).push(arguments)
  112.                     }, i[r].l = 1 * new Date();
  113.                     a = s.createElement(o),
  114.                             m = s.getElementsByTagName(o)[0];
  115.                     a.async = 1;
  116.                     a.src = g;
  117.                     m.parentNode.insertBefore(a, m)
  118.                 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  119.                 ga('create', 'UA-64309537-1', 'auto', {cookieDomain: '{{app.request.server.get("HTTP_HOST")|replace({'www.':''})}}', allowLinker: true});
  120.                 ga('require', 'displayfeatures');
  121.                 ga('require', 'linkid', 'linkid.js');
  122.                 ga('require', 'linker');
  123.                 ga('require', 'ec');
  124.                 ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com']);
  125.                 ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com'], false, true);
  126.                 var dimensionValue = '{{ app.request.server.get("REMOTE_ADDR") }}';
  127.                 {% if (app.session.has('transactionId')) %}
  128.                 var dimensionValue2 = '{{ app.session.get('transactionId') }}';
  129.                 {% else %}
  130.                     var dimensionValue2 = '';
  131.                 {% endif %}
  132.                     var dimensionValue3 = '';
  133.                     var dimensionValue4 = '';
  134.                     var dimensionValue5 = '';
  135.                     var dimensionValue6 = '';
  136.                     ga('send', 'pageview', {
  137.                         'dimension1': dimensionValue,
  138.                         'dimension2': dimensionValue2,
  139.                         'dimension3': dimensionValue3,
  140.                         'dimension4': dimensionValue4,
  141.                         'dimension5': dimensionValue5,
  142.                         'dimension6': dimensionValue6}
  143.                     );
  144.             </script>
  145.         {% endif %}
  146.         {% if parameters['aviatur_close_modal_login'] is defined %}
  147.             {% set activate_login = json_decode(parameters['aviatur_close_modal_login'], true) %}
  148.             {% if activate_login[app.session.get('agencyId')] is defined %}
  149.                 {% set swLoginClose = activate_login[app.session.get('agencyId')] %}
  150.             {% else %}
  151.                 {% set swLoginClose = activate_login['all'] %}
  152.             {% endif %}
  153.         {% endif %}
  154.             {# Parametrización boton continuar sin iniciar sesión #}
  155.         {% if parameters['aviatur_continue_without_logging'] is defined %}
  156.             {% set continue_without_logging = json_decode(parameters['aviatur_continue_without_logging'], true) %}
  157.             {% if continue_without_logging[app.session.get('agencyId')] is defined %}
  158.                 {% set continueWithoutLogging = continue_without_logging[app.session.get('agencyId')] %}
  159.             {% else %}
  160.                 {% set continueWithoutLogging = continue_without_logging['all'] %}
  161.             {% endif %}
  162.         {% endif %}
  163.             <script>
  164.                 var continueWithoutLogging = '{{continueWithoutLogging}}';
  165.                 var swLoginClose = '{{swLoginClose}}';
  166.                 var clicked = false;
  167.                 var pathname = window.location.pathname.split( '/' );
  168.                 var googleUser = {};
  169.                 var startApp = function() {
  170.                     gapi.load('auth2', function(){
  171.                     // Retrieve the singleton for the GoogleAuth library and set up the client.
  172.                     auth2 = gapi.auth2.init({
  173.                         client_id: '{{google_idclient_login}}',
  174.                         cookiepolicy: 'single_host_origin'
  175.                     });
  176.                     attachSignin(document.getElementById('customBtn'));
  177.                     });
  178.                 };
  179.                 function attachSignin(element) {
  180.                     auth2.attachClickHandler(element, {},
  181.                     function(googleUser) {
  182.                         var profile = googleUser.getBasicProfile();
  183.                         var $modalLogin = jQuery('#js-modalLogin');
  184.                         var id_token = googleUser.getAuthResponse().id_token;
  185.                         jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  186.                         jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  187.                         jQuery(".js-globalOverlay").show();
  188.                         jQuery.ajax({
  189.                             url: '/customer/social-networks-callback',
  190.                             type: 'POST',
  191.                             data: {idtoken: id_token, red: "google"},
  192.                             crossDomain: true,
  193.                             beforeSend: function() {
  194.                                 jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  195.                                 jQuery(".js-globalOverlay").show();
  196.                             },
  197.                             success: function (data) {
  198.                                 if(data.status == "redirect") {
  199.                                     signOut();
  200.                                     if(pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  201.                                         location.reload();
  202.                                     } else {
  203.                                         window.location.replace("/");
  204.                                     }
  205.                                 }
  206.                             },
  207.                             error: function () {
  208.                                 $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  209.                                 jQuery(".js-globalOverlay").hide();
  210.                             },
  211.                             complete: function () {}
  212.                         });
  213.                         /*document.getElementById('name').innerText = "Signed in: " +
  214.                         googleUser.getBasicProfile().getName();*/
  215.                     }, function(error) {
  216.                         //alert(JSON.stringify(error, undefined, 2));
  217.                     });
  218.                 }
  219.                 function signOut() {
  220.                     var auth2 = gapi.auth2.getAuthInstance();
  221.                     auth2.signOut().then(function () {});
  222.                 }
  223.             </script>
  224.             <script>
  225.                 var fbid = '{{facebook_appid_login}}';
  226.                 window.fbAsyncInit = function() {
  227.                     FB.init({
  228.                         appId      : fbid,
  229.                         cookie     : true,
  230.                         xfbml      : true,
  231.                         version    : 'v7.0',
  232.                         oauth   : true,
  233.                         status  : true
  234.                     });
  235.                     FB.AppEvents.logPageView();
  236.                 };
  237.                 (function(d, s, id){
  238.                     var js, fjs = d.getElementsByTagName(s)[0];
  239.                     if (d.getElementById(id)) {return;}
  240.                     js = d.createElement(s); js.id = id;
  241.                     js.src = "https://connect.facebook.net/en_US/sdk.js";
  242.                     fjs.parentNode.insertBefore(js, fjs);
  243.                 }(document, 'script', 'facebook-jssdk'));
  244.                 /*function checkLoginState() {
  245.                     FB.getLoginStatus(function(response) {
  246.                         statusChangeCallback(response);
  247.                     });
  248.                 }*/
  249.                 function loginFace(){
  250.                     FB.login(function(response) {
  251.                         if (response.authResponse) {
  252.                             var $modalLogin = jQuery('#js-modalLogin');
  253.                             //console.log('Welcome!  Fetching your information.... ');
  254.                             FB.api('/me', {fields: 'first_name, last_name, email, picture'}, function (response2) {
  255.                                 response2.picture2 = "http://graph.facebook.com/" + response2.id + "/picture?type=normal";
  256.                                 jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  257.                                 jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  258.                                 jQuery(".js-globalOverlay").show();
  259.                                 jQuery.ajax({
  260.                                     url: '/customer/social-networks-callback',
  261.                                     type: 'POST',
  262.                                     crossDomain: true,
  263.                                     data: {data: response2, red: "facebook"},
  264.                                     //async: true,
  265.                                     success: function (data) {
  266.                                         if(data.status == "redirect") {
  267.                                             FB.logout();
  268.                                             if(pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  269.                                                 location.reload();
  270.                                             } else {
  271.                                                 window.location.replace("/");
  272.                                             }
  273.                                         }
  274.                                     },
  275.                                     error: function () {
  276.                                         $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  277.                                         jQuery(".js-globalOverlay").hide();
  278.                                     },
  279.                                     complete: function () {}
  280.                                 });
  281.                             });
  282.                         } else {
  283.                             console.log('User cancelled login or did not fully authorize.');
  284.                         }
  285.                     },{scope: 'email,public_profile'});
  286.                 }
  287.             </script>
  288.             {% if app.user %}
  289.             <script>
  290.                 var customerLogged = true;
  291.                 var documentNum = '{{app.user.documentNumber}}';
  292.                 var documentType = '{{app.user.documentType}}';
  293.                 {% if parameters['switch_login_agencies'] is defined %}
  294.                     {% set login_agencies = json_decode(parameters['switch_login_agencies'], true) %}
  295.                     {% if login_agencies[app.session.get('agencyId')] is defined %}
  296.                         {% set login_is_on = login_agencies[app.session.get('agencyId')] %}
  297.                     {% else %}
  298.                         {% set login_is_on = login_agencies['all'] %}
  299.                     {% endif %}
  300.                 {% else %}
  301.                     {% set login_is_on = '0' %}
  302.                 {% endif %}
  303.                 var login_is_on = "{{login_is_on}}";
  304.             </script>
  305.         {% else %}
  306.             <script>var customerLogged = false;</script>
  307.         {% endif %}
  308.         {% if 'aviatur_general_homepage' in app.request.get('_route') %}
  309.             {% if app.user.username is defined %}
  310.                 <script>
  311.                     jQuery(document).ready(function () {
  312.                         var dtCustomerFacebook = '{{app.user.facebookId}}';
  313.                         var dtCustomerGoogle = '{{app.user.googleId}}';
  314.                         var address = '{{app.user.address}}';
  315.                         var documentNum = '{{app.user.documentNumber}}';
  316.                         if(dtCustomerFacebook || dtCustomerGoogle){
  317.                             if(documentNum.length == 0 && address.length == 0) {
  318.                                  window.location.replace("/customer/edit");
  319.                             }
  320.                         }
  321.                     });
  322.                 </script>
  323.             {% else %}
  324.                 <script>
  325.                     sessionStorage.setItem('countDialogLogin', 0);
  326.                     var countDialogLogin = 0;
  327.                     jQuery(document).ready(function () {
  328.                         jQuery("#close-dialog-login").on('click', function(){
  329.                             jQuery("#dialog-login-home").hide();
  330.                         });
  331.                     });
  332.                 </script>
  333.             {% endif %}
  334.         {% endif %}
  335.         {% if 'aviatur_customer_edit_info' in app.request.get('_route') %}
  336.             {% if app.user.username is defined %}
  337.                 <script>
  338.                     jQuery(document).ready(function () {
  339.                         var dtCustomerFacebook = '{{app.user.facebookId}}';
  340.                         var dtCustomerGoogle = '{{app.user.googleId}}';
  341.                         jQuery("#customer_edit_form_email").attr("type","email");
  342.                         jQuery("#customer_edit_form_CivilStatus").parent().parent().parent().hide();
  343.                         if(dtCustomerFacebook || dtCustomerGoogle){
  344.                             if(jQuery("#customer_edit_form_DocumentNumber").val() == "") {
  345.                                 jQuery("#customer_edit_form_DocumentNumber").removeAttr("readonly");
  346.                             }
  347.                             jQuery(".js-reserva-submit-password").hide();
  348.                             jQuery("#customer_edit_form_email").hide();
  349.                             jQuery('[for^="customer_edit_form_email"]').hide();
  350.                         }
  351.                     });
  352.                 </script>
  353.             {% endif %}
  354.         {% endif %}
  355.         {% if app.session.get('AnonymousEmail') is not null %}
  356.             {# When user set email on "See Booking", this JS set email in input after redirection #}
  357.             {% set anonymousEmail = app.session.get('AnonymousEmail') %}
  358.             <script type="text/javascript">
  359.                 jQuery(document).ready(function () {
  360.                     var anonymousEmail = "{{ anonymousEmail }}";
  361.                     jQuery("#username").val(anonymousEmail);
  362.                     jQuery("#fos_user_registration_form_email").val(anonymousEmail);
  363.                 });
  364.             </script>
  365.         {% endif %}
  366.         {# end scripts  #}
  367.         {% if "payment_success_secure" in app.request.attributes.get('_route') %}
  368.         {% endif %}
  369.         {% block javascripts_header %}
  370.             {# {% if cards is defined %}
  371.                 {% if cybersource is not empty and cybersource.org_id is defined %}
  372.                     {% set src = "https://h.online-metrix.net/fp/tags.js?org_id="~cybersource.org_id~"&session_id=aviaturcom"~ app.session.get('transactionId') %}
  373.                     <script type="text/javascript" src="{{src}}"></script>
  374.                 {% endif %}
  375.             {% endif %} #}
  376.         {% endblock %}
  377.     </head>
  378.     <body ontouchstart="">
  379.         {% if agencyDataInfo['agency_phones'] %}
  380.             {% set agencyWhat = agencyDataInfo['agency_phones']['what']%}
  381.             {% set agencyPhones = agencyDataInfo['agency_phones']['all']%}
  382.         {% endif %}
  383.         <p class="app-name hide">{{ (app.session.get('domain')) }}</p>
  384.         {% block body_scripts %}
  385.             {# {% if cards is defined %}
  386.                 {% if cybersource is not empty and cybersource.org_id is defined %}
  387.                     {% set src = "https://h.online-metrix.net/fp/tags?org_id="~cybersource.org_id~"&session_id=aviaturcom"~ app.session.get('transactionId') %}
  388.                     <noscript>
  389.                     <iframe style="width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;" src="{{src}}"></iframe>
  390.                     </noscript>
  391.                 {% endif %}
  392.             {% endif %} #}
  393.         {% endblock %}
  394.         {% for flashMessage in app.session.flashbag.get('notice') %}
  395.             <div class="flash-notice">
  396.                 {{ flashMessage }}
  397.             </div>
  398.         {% endfor %}
  399.         {% block overlay %}
  400. <script>
  401.     document.addEventListener("DOMContentLoaded", function () {
  402.         const overlay = document.querySelector(".js-globalOverlay");
  403.         if (overlay) {
  404.             overlay.style.display = "none";
  405.             window.addEventListener("load", function () {
  406.                 overlay.style.display = "none";
  407.             });
  408.             window.addEventListener("pageshow", function () {
  409.                 overlay.style.display = "none";
  410.             });
  411.         }
  412.     });
  413. </script>
  414.             <div class="overlay js-globalOverlay" style="display: none;">
  415.                 <div class="overlay-center">
  416.                     <svg class="mat-loader--200 center-block" height="200" width="200">
  417.                         <circle class="mat-loader--200__path" cx="100" cy="100" r="80" fill="none" stroke-width="6" stroke-miterlimit="10" />
  418.                     </svg>
  419.                     <p class="spin-text js-globalOverlay-text">Cargando...</p>
  420.                 </div>
  421.             </div>
  422.             <div class="responsive-js"></div>
  423.         {% endblock %}
  424.         {% block base_content %}
  425.             {% block header %}
  426.             {% endblock %}
  427.             {% block body %}
  428.             {% endblock body %}
  429.             {% block content %}
  430.             {% endblock content %}
  431.             {% block footer %}
  432.             {% endblock footer %}
  433.             {% block modal %}
  434.                 <div id="js-globalModal" class="modal fade">
  435.                     <div class="modal-dialog">
  436.                         <div class="modal-content">
  437.                             <div class="modal-header">
  438.                                 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  439.                                 <h4 id="js-globalModal-title" class="modal-title">Modal title</h4>
  440.                             </div>
  441.                             <div class="modal-body">
  442.                                 <div id="js-globalModal-illustration" {# class="modal-illustration" #}></div>
  443.                                 <p id="js-globalModal-text" class="modal-text modal-text--error"></p>
  444.                             </div>
  445.                         </div>
  446.                     </div>
  447.                 </div>
  448.             {% endblock modal %}
  449.         {% endblock base_content %}
  450.         {% block javascripts %}
  451. {% endblock %}
  452. {% block javascripts_bottom %}
  453.             {# llamados de scripts de hoteles #}
  454.             <script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet-src.js" integrity="sha512-IkGU/uDhB9u9F8k+2OsA6XXoowIhOuQL1NTgNZHY1nkURnqEGlDZq3GsfmdJdKFe1k1zOc6YU2K7qY+hF9AodA==" crossorigin="anonymous"></script>
  455.             <script src="https://unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster-src.js" integrity="sha384-NAOEbWFcjnXc7U9GkULPhupHZNAbqru9dS3c+4ANYAwtFoVAWuVuMVDH0DIy4ESp" crossorigin="anonymous"></script>
  456.             <script src="{{ asset('assets/common_assets/js/vendor/leaflet.bezier.js') }}"></script>
  457.         {% endblock javascripts_bottom %}
  458.         <!-- Facebook Pixel Code -->
  459.         <script>
  460.             !function (f, b, e, v, n, t, s)
  461.             {
  462.                 if (f.fbq)
  463.                     return;
  464.                 n = f.fbq = function () {
  465.                     n.callMethod ?
  466.                             n.callMethod.apply(n, arguments) : n.queue.push(arguments)
  467.                 };
  468.                 if (!f._fbq)
  469.                     f._fbq = n;
  470.                 n.push = n;
  471.                 n.loaded = !0;
  472.                 n.version = '2.0';
  473.                 n.queue = [];
  474.                 t = b.createElement(e);
  475.                 t.async = !0;
  476.                 t.src = v;
  477.                 s = b.getElementsByTagName(e)[0];
  478.                 s.parentNode.insertBefore(t, s)
  479.             }(window, document, 'script',
  480.                     'https://connect.facebook.net/en_US/fbevents.js');
  481.             fbq('init', '124649384848609');
  482.             fbq('track', 'PageView');
  483.         </script>
  484.         <noscript>
  485.         <img height="1" width="1"
  486.              src="https://www.facebook.com/tr?id=124649384848609&ev=PageView
  487.              &noscript=1"/>
  488.         </noscript>
  489.         <!-- End Facebook Pixel Code -->
  490.             </body>
  491.         </html>