Advertisement
VladislavNechepaev

Untitled

Feb 11th, 2022
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.35 KB | None | 0 0
  1. <footer id="new-footer" class="footer">
  2.     <div class="clearfix">
  3.         {{ portal | link_to_privacy_policy_new }}
  4.         {{ portal | link_to_cookie_law_new}}
  5.         {{ portal | portal_copyright_new }}
  6.     </div>
  7.  
  8.     {%unless portal.portal_phone == blank%}
  9.         <div class="show-in-mobile mob-phone">
  10.             <a href="tel:{{portal.portal_phone}}">
  11.                 <i class="icon-phone"></i>
  12.                 {{portal.portal_phone}}
  13.             </a>
  14.         </div>
  15.     {%endunless%}
  16. </footer>
  17.  
  18. <script src="https://freshservicecounter.ringteam.com/ringteam_portal_customization.js"></script>
  19. <script>
  20.   jQuery(document).on('ready', async function(){
  21.     console.log('[INIT]')
  22.     //LOCAL STORAGE COLLECT
  23.     const localStorage = window.localStorage;
  24.     localStorage.setItem('userName', "{{current_user.phone}}".replace(/'/g, "&#39;"));
  25.     localStorage.setItem('userEmail', '{{current_user.email}}');
  26.     localStorage.setItem('userJobTitle', '{{current_user.job_title}}');
  27.         localStorage.setItem('userId', '{{current_user.id}}');
  28.     //LOCAL STORAGE COLLECT END
  29.     if (window.location.pathname === "/support/catalog/items/136") {
  30.       window.durationList = {
  31.         "...": false,
  32.         "Full day": true,
  33.         "Half day": true,
  34.         "Short visit (up to 2 hours)": false
  35.       }
  36.       window.officeList = {
  37.         "...": false,
  38.         "BC Platforma": true,
  39.         "Lviv": true,
  40.         "Lab64": true,
  41.         "Lab72": true,
  42.         "Lab72 / 1": true,
  43.         "Rancho 1": false,
  44.         "Rancho 2": false,
  45.         "QA Studio": false,
  46.         "New QA Studio": false,
  47.         "Community": false,
  48.         "Lab62": false,
  49.         "Zeus Lab": true,
  50.         "FW Automation Lab": true,
  51.         "Brody & Jaws  Garage": true
  52.  
  53.      }
  54.      window.officeMeido = {
  55.        "...": false,
  56.        "BC Platforma": true,
  57.        "Lviv": false,
  58.        "Lab64": true,
  59.        "Lab72": true,
  60.        "Lab72 / 1": true,
  61.        "Rancho 1": false,
  62.        "Rancho 2": false,
  63.        "QA Studio": false,
  64.        "New QA Studio": false,
  65.        "Community": false,
  66.        "Lab62": false,
  67.        "Zeus Lab": true,
  68.        "FW Automation Lab": true,
  69.        "Brody & Jaws  Garage": false
  70.      }
  71.      window.officeCapacity = ["Lab64","Lab62","Zeus Lab","BC Platforma"]
  72.      window.officeParking = ["Lab62","Lab64","Lab72","Lab72 / 1","Zeus Lab","BC Platforma","Lviv","FW Automation Lab"]
  73.      window.officeParkingLabels = {
  74.        "Book parking Troitskyi (V.Vasylkivska st. 53-55A)": ["Lab62","Lab64","Lab72","Lab72/1","Zeus Lab","BC Platforma"],          ////////to edit parking check box name //////////////
  75.        "Book parking  (Popovycha st. 9)": ["Lviv"]
  76.      }
  77.      window.officeAddress = {
  78.        "...": "",
  79.        "BC Platforma": "м. Київ, вул. Короленківська 3, 11 поверх",
  80.        "Lviv": "м. Львів, вул. Поповича, 9",
  81.        "Lab64": "м. Київ, вул. Велика Васильківська 64",
  82.        "Lab72": "м. Київ, вул. Велика Васильківська 72",
  83.        "Lab72 / 1": "м. Київ, вул. Велика Васильківська 72",
  84.        "Rancho 1": "м. Київ, пров. Малокитаївський, 12",
  85.        "Rancho 2": "м. Київ, вул. Травнева 28",
  86.        "QA Studio": "м. Київ, вул. Північно-Сирецька 1-3",
  87.        "New QA Studio": "м. Київ, просп. Перемоги 53",
  88.        "Community": "м. Київ, вул. Євгена Коновальця 44, 2 поверх",
  89.        "Lab62": "м. Київ, вул. Велика Васильківська 62",
  90.        "Zeus Lab": "м. Київ, вул. Велика Васильківська 72",
  91.        "FW Automation Lab": "м. Київ, вул. Велика Васильківська 62, 5 поверх",
  92.        "Brody & Jaws  Garage": "м. Київ, вул.Магнітогорська 1"
  93.      }
  94.      window.accessWeek = {
  95.        "...": false,
  96.        "Current week": true,
  97.        "Next week": true
  98.      }
  99.      window.mealTypes = [
  100.        "Custom menu",
  101.        "Standard",
  102.        "Vegetarian",
  103.        "Vegan"
  104.  
  105.      ]
  106.      window.fsFields = {
  107.        duration: "requested_item_values_136_requested_item_value_attributes_cf_visit_duration_270753",
  108.        support_with_lunch: "requested_item_values_136_requested_item_value_attributes_cf_support_with_lunch_270753",
  109.        access_week: "requested_item_values_136_requested_item_value_attributes_cf_access_type_270753",
  110.        lunch_type: "requested_item_values_136_requested_item_value_attributes_cf_select_your_meal_preference_270753",
  111.        office: "requested_item_values_136_requested_item_value_attributes_cf_office_270753",
  112.        dates: [
  113.          "requested_item_values_136_requested_item_value_attributes_cf_day1_270753_date",
  114.          "requested_item_values_136_requested_item_value_attributes_cf_day2_270753_date",
  115.          "requested_item_values_136_requested_item_value_attributes_cf_day3_270753_date",
  116.          "requested_item_values_136_requested_item_value_attributes_cf_day4_270753_date",
  117.          "requested_item_values_136_requested_item_value_attributes_cf_day5_270753_date",
  118.          "requested_item_values_136_requested_item_value_attributes_cf_day6_270753_date",
  119.          "requested_item_values_136_requested_item_value_attributes_cf_day7_270753_date"            //ДОБАВИТЬ ДОПОЛНИТЕЛЬНІЕ ДНИ - скопировать айдишники каждого поля_ РЕАЛЬНІЙ РЕКВЕСТ//
  120.        ],
  121.        additional_locations: [
  122.          "requested_item_values_136_requested_item_value_attributes_cf_do_you_plan_to_visit_any_additional_location_during_the_requested_period_nbsp_270753",
  123.          "requested_item_values_136_requested_item_value_attributes_cf_additional_location_2_270753"
  124.        ],
  125.        meido: "requested_item_values_136_requested_item_value_attributes_cf_meido_body_270753",
  126.        meido_text: "requested_item_values_136_requested_item_value_attributes_cf_meido_menu_270753",
  127.        document_text: "requested_item_values_136_requested_item_value_attributes_cf__270753",
  128.        document_check: "requested_item_values_136_requested_item_value_attributes_cf_v_270753",
  129.        addloc: "requested_item_values_136_requested_item_value_attributes_cf_additional_location_data_270753",
  130.        addloc_text: "requested_item_values_136_requested_item_value_attributes_cf_additional_location_270753",
  131.        parking: "requested_item_values_136_requested_item_value_attributes_cf_parking_270753",
  132.                 car_plate: "requested_item_values_136_requested_item_value_attributes_cf_car_plate_registration_number_for_non_lviv_team_members_270753"
  133.         }
  134.  
  135.      // -------------------------
  136.      window.meidoActive = true
  137.      window.meidoToken = "test"
  138.      // -------------------------
  139.  
  140.      // -------------------------
  141.      window.capacityActive = true
  142.      // -------------------------
  143.      window.parkingActive = true
  144.  
  145.      window.parkingLvivNoCurrentWeek = false                                                  //скрыть паркинг на карент вик для львова//
  146.         }
  147.     })
  148.  
  149. </script>
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156. <script src="https://freshservicecounter.ringteam.com/portal-poshta-handler.js"></script>
  157. <script src="https://freshservicecounter.ringteam.com/portal-location-handler.js"></script>
  158. <script src="https://freshservicecounter.ringteam.com/ringteam_wfo.js"></script>
  159.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement