1/** 2 * KSUTab Feedback module JS file. 3 * 4 * This file contains the JavaScript functionality for the KSUTab Feedback module. 5 * Attachment to the page comes from "docroot/modules/custom/ksutab_feedback/ksutab_feedback.module" 6 */ 7 8/* eslint-disable camelcase, no-undef, max-len */ 9(function (Drupal, once, drupalSettings) { 10 'use strict'; 11 12 Drupal.behaviors.ksutabFeedback = { 13 attach: function (context, settings) { 14 once('ksutabFeedback', 'body', context).forEach(function (e) { 15 16 const ksutabFeeedbackSettings = settings.ksutab_feedback; 17 18 console.log(ksutabFeeedbackSettings); 19 20 const feedbackDiv = document.createElement('a'); 21 feedbackDiv.classList.add('ksutab-feedback'); 22 feedbackDiv.innerHTML = ksutabFeeedbackSettings.buttonText; 23 feedbackDiv.href = ksutabFeeedbackSettings.webformUrl; 24 feedbackDiv.title = ksutabFeeedbackSettings.buttonText; 25 feedbackDiv.rel = 'noopener noreferrer'; 26 e.append(feedbackDiv); 27 }); 28 } 29 }; 30})(Drupal, once, drupalSettings);
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.