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