1/** 2 * @file 3 * Attaches behaviors for Annotator's store plugin. 4 */ 5 6(function ($) { 7 8 'use strict'; 9 10 Drupal.behaviors.annotatorStore = { 11 attach: function (context, settings) { 12 Drupal.Annotator.annotator('addPlugin', 'Store', { 13 prefix: settings.annotator_store.prefix, 14 urls: settings.annotator_store.urls, 15 showViewPermissionsCheckbox: settings.annotator_store.showViewPermissionsCheckbox, 16 showEditPermissionsCheckbox: settings.annotator_store.showEditPermissionsCheckbox, 17 annotationData: { 18 'uri': window.location.href, 19 'type': 'annotator' 20 }, 21 loadFromSearch: { 22 'limit': 0, 23 'uri': window.location.href 24 } 25 }); 26 } 27 }; 28 29})(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.