1document.addEventListener('DOMContentLoaded', function () { 2 3 var modal = document.getElementById('OMLlogin'); 4 5 function openLoginModal () { 6 modal.style.display = 'block'; 7 } 8 9 var hash = window.location.hash; 10 11 if (hash.substring(1) == 'login') { 12 modal.style.display = 'block'; 13 } 14 15 var osmlogin = document.querySelectorAll('.osmlogin'); 16 var alogin = document.querySelectorAll('.alogin'); 17 var clogin = document.querySelectorAll('.login-modal-close')[0]; 18 19 20 for (const shortlogin of alogin) { 21 22 if (typeof(shortlogin) != 'undefined' && shortlogin != null) { 23 shortlogin.addEventListener('click', function(e) { 24 e.preventDefault(); 25 if (typeof(modal) != 'undefined' && modal != null) { 26 modal.style.display = 'block'; 27 } 28 }); 29 } 30 } 31 32 if (typeof(clogin) != 'undefined' && clogin != null) { 33 clogin.addEventListener('click', function(e) { 34 e.preventDefault(); 35 modal.style.display = 'none'; 36 }); 37 } 38 39 for (const menulogin of osmlogin) { 40 41 if (typeof(menulogin) != 'undefined' && menulogin != null) { 42 menulogin.addEventListener('click', function(e) { 43 e.preventDefault(); 44 if (typeof(modal) != 'undefined' && modal != null) { 45 modal.style.display = 'block'; 46 } 47 }); 48 } 49 } 50 51 52 53 document.addEventListener('click', function(e) { 54 55 if(e.target == modal && e.target!=alogin) { 56 modal.style.display = 'none'; 57 } else { } 58 }); 59 60 }); 61
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.