1/** 2 * @file 3 * Page Load Progress allows you to set a screen lock showing a spinner when the 4 * user clicks on an element that triggers a time consuming task. 5 */ 6 7(function($){ 8 Drupal.behaviors.page_load_progress = { 9 attach: function(context, settings) { 10 var delay = Number(Drupal.settings.page_load_progress.delay); 11 var exit_elements = String(Drupal.settings.page_load_progress.elements).split(','); 12 var screen_lock = '<div class="page-load-progress-lock-screen hidden_loadprogress">\n\ 13 <div class="page-load-progress-spinner"></div>\n\ 14 </div>'; 15 var body = $('body', context); 16 for (i in exit_elements) { 17 $(exit_elements[i]).click(function() { 18 setTimeout(lockScreen, delay); 19 }); 20 } 21 var lockScreen = function () { 22 body.append(screen_lock); 23 body.css({ 24 'overflow' : 'hidden' 25 }); 26 $('.page-load-progress-lock-screen').fadeIn('slow'); 27 } 28 } 29 }; 30})(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.