1if (webxIOSCheck()) { 2 document.querySelector('body').classList.add('ios'); 3} 4 5function webxIOSCheck() { 6 return [ 7 'iPad Simulator', 8 'iPhone Simulator', 9 'iPod Simulator', 10 'iPad', 11 'iPhone', 12 'iPod' 13 ].includes(navigator.platform) 14 // iPad on iOS 13 detection 15 || (navigator.userAgent.includes("Mac") && "ontouchend" in document) 16} 17 18(function ($, Drupal, drupalSettings) { 19 'use strict'; 20 21 if (/iPhone/i.test(navigator.userAgent)) { 22 document.querySelector('html').classList.add('iphone'); 23 } 24 25 /* Nikita */ 26 /* Quick edit in mobile */ 27 $(document).on('tap click', '.parent-node > .contextual > .contextual-links', function () { 28 $(this).parent().toggleClass('show'); 29 }) 30 31 /* Nikita */ 32 /* Mobile menu button toggle, show hide menu to make animation possible */ 33 $('#menu-button').click(function () { 34 $(this).toggleClass('open'); 35 if ($('body').hasClass('show-menu')) { 36 $('body').addClass('hide-menu').removeClass('show-menu'); 37 } else { 38 $('body').addClass('show-menu').removeClass('hide-menu'); 39 } 40 }); 41 42 /* Nikita */ 43 /* Mobile menu button toggle to expand sub menus */ 44 $('.menu-item--expanded span').click(function () { 45 $(this).siblings('ul').toggleClass('show'); 46 $(this).parent().toggleClass('open'); 47 }); 48 49 /* Start - email copy */ 50 $('span.email-copy').on('click', function () { 51 var dummy = document.createElement('input'), 52 text = $(this).text(); 53 54 document.body.appendChild(dummy); 55 dummy.value = text; 56 dummy.select(); 57 document.execCommand('copy'); 58 document.body.removeChild(dummy); 59 60 $('.email-copied').fadeIn().addClass('visible').delay(5000).fadeOut(400).removeClass('visible'); 61 62 }); 63 64 65})(jQuery, Drupal, drupalSettings);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.