1"use strict"; 2 3function isTouchEnabled() { 4 return (('ontouchstart' in window) 5 || (navigator.MaxTouchPoints > 0) 6 || (navigator.msMaxTouchPoints > 0)); 7} 8 9(function ($) { 10 $(document).ready(function () { 11 $("path[id^=\"flusmap_\"]").each(function (i, e) { 12 addEvent($(e).attr('id')); 13 }); 14 }); 15 16 function addEvent(id, relationId) { 17 var _obj = $('#' + id); 18 var _abb = id.split(''); 19 var _Textobj = $('#' + id + ',' + '#flusvn_' + _abb.slice(8).join('')); 20 var _h = $('#map').height(); 21 22 $('#' + ['flusvisns']).attr({'fill': flus_map_config['default']['flusvisns']}); 23 $('#flusmapwrapper').css({'opacity': '1'}); 24 25 _obj.attr({'fill': flus_map_config[id]['upclr'], 'stroke': flus_map_config['default']['flusbrdrclr']}); 26 _Textobj.attr({'cursor': 'default'}); 27 if (flus_map_config[id]['enbl'] === true) { 28 if (isTouchEnabled()) { 29 var touchmoved; 30 _Textobj.on('touchend', function (e) { 31 if (touchmoved !== true) { 32 _Textobj.on('touchstart', function (e) { 33 let touch = e.originalEvent.touches[0]; 34 let x = touch.pageX - 10, y = touch.pageY + (-15); 35 36 let $mtip = $('#tipflusmap'); 37 let maptipw = $mtip.outerWidth(), 38 maptiph = $mtip.outerHeight(); 39 40 x = (x + maptipw > $(document).scrollLeft() + $(window).width()) ? x - maptipw - (20 * 2) : x 41 y = (y + maptiph > $(document).scrollTop() + $(window).height()) ? $(document).scrollTop() + $(window).height() - maptiph - 10 : y 42 43 if (flus_map_config[id]['targt'] !== 'none') { 44 $('#' + id).css({'fill': flus_map_config[id]['dwnclr']}); 45 } 46 $mtip.show().html(flus_map_config[id]['hover']); 47 $mtip.css({left: x, top: y}) 48 }) 49 _Textobj.on('touchend', function () { 50 $('#' + id).css({'fill': flus_map_config[id]['upclr']}); 51 if (flus_map_config[id]['targt'] === '_blank') { 52 window.open(flus_map_config[id]['url']); 53 } else if (flus_map_config[id]['targt'] === '_self') { 54 window.parent.location.href = flus_map_config[id]['url']; 55 } 56 $('#tipflusmap').hide(); 57 }) 58 } 59 }).on('touchmove', function (e) { 60 touchmoved = true; 61 }).on('touchstart', function () { 62 touchmoved = false; 63 }); 64 } 65 _Textobj.attr({'cursor': 'pointer'}); 66 67 _Textobj.on('mouseenter', function () { 68 $('#tipflusmap').show().html(flus_map_config[id]['hover']); 69 _obj.css({'fill': flus_map_config[id]['ovrclr']}) 70 }).on('mouseleave', function () { 71 $('#tipflusmap').hide(); 72 $('#' + id).css({'fill': flus_map_config[id]['upclr']}); 73 }) 74 if (flus_map_config[id]['targt'] !== 'none') { 75 _Textobj.on('mousedown', function () { 76 $('#' + id).css({'fill': flus_map_config[id]['dwnclr']}); 77 }) 78 } 79 _Textobj.on('mouseup', function () { 80 $('#' + id).css({'fill': flus_map_config[id]['ovrclr']}); 81 if (flus_map_config[id]['targt'] === '_blank') { 82 window.open(flus_map_config[id]['url']); 83 } else if (flus_map_config[id]['targt'] === '_self') { 84 window.parent.location.href = flus_map_config[id]['url']; 85 } 86 }) 87 _Textobj.on('mousemove', function (e) { 88 let x = e.pageX + 10, y = e.pageY + 15; 89 90 let $mflus = $('#tipflusmap'); 91 let maptipw = $mflus.outerWidth(), maptiph = $mflus.outerHeight(); 92 93 x = (x + maptipw > $(document).scrollLeft() + 94 $(window).width()) ? x - maptipw - (20 * 2) : x 95 y = (y + maptiph > $(document).scrollTop() + $(window).height()) ? 96 $(document).scrollTop() + $(window).height() - maptiph - 10 : y 97 98 $mflus.css({left: x, top: y}) 99 }) 100 } 101 } 102})(jQuery);
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.