1/** 2 * @file 3 * Global utilities. 4 * 5 */ 6(($, Drupal) => { 7 "use strict"; 8 9 function articleSummaryLoadView() { 10 if ($(".view-id-article_summary").length > 0) { 11 var showVal = $( 12 ".view-id-article_summary > .view-filters .form-item-show select" 13 ).val(); 14 $(".rendered-view").removeClass("show"); 15 16 if (showVal == 28704) { 17 $(".view-totals-by-magazine").addClass("show"); 18 } else if (showVal == 28705) { 19 $(".view-detailed-by-magazine").addClass("show"); 20 } else if (showVal == 28706) { 21 $(".view-detailed-by-journalist").addClass("show"); 22 } else if (showVal == 28707) { 23 $(".view-detailed-by-combined").addClass("show"); 24 } else { 25 } 26 } 27 28 $(".view-article-summary .item").each(function () { 29 var titleAttr = $(this).find(".title").attr("title"); 30 $(this) 31 .find(".title") 32 .siblings("a") 33 .attr("target", "_blank") 34 .text(titleAttr); 35 }); 36 } 37 38 Drupal.behaviors.responsive = { 39 attach: (context, settings) => { 40 articleSummaryLoadView(); 41 }, 42 }; 43 44 $(window).on("load", function () { 45 articleSummaryLoadView(); 46 }); 47})(jQuery, Drupal);
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.