1(function(){ 2 3 $(document).ready(function(){ 4 const amountSpan = document.getElementById('workspaceAppsAmount'); 5 6 if(amountSpan && window.smc.workplace.activeApplications && window.smc.workplace.activeApplications.length > 0) { 7 amountSpan.innerText = window.smc.workplace.activeApplications.length; 8 if(window.smc.workplace.user && window.smc.workplace.user.distributorDelegated){ 9 // Do nothing 10 } else { 11 $("#basketCart").remove(); 12 } 13 } else { 14 $("#workspaceApps").remove(); 15 } 16 }); 17 18 // Show Workplace layer on click 19 $('.main-header_workspace-apps').on('click', function(e) { 20 e.preventDefault(); 21 e.stopPropagation(); 22 $('html').addClass('has-workspace-apps-select'); 23 $('html').removeClass('has-eshop-apps-select'); 24 $('html').removeClass('has-cart-select'); 25 $('html').removeClass('has-language-select'); 26 }); 27 28 $('body').on('click', '.workspace-apps-selector .smc-close-button', function(e) { 29 e.preventDefault(); 30 e.stopPropagation(); 31 $('html').removeClass('has-workspace-apps-select'); 32 }); 33 34 $('body').on('click', function(e) { 35 if ($(e.target).closest('.workspace-apps-selector').length === 0) { 36 $('html').removeClass('has-workspace-apps-select'); 37 } 38 }); 39 40})();
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.