PageSourceSearch

https://bioinformatics.ccap.ac.uk/ccaptools/shiny.semantic/shiny-semantic-toast.js

js ccap.ac.uk collected 2026-09-25 02:32:07 UTC 771 bytes, 24 lines download raw bytes

1Shiny.initSemanticToast = function(id) {
2  $('[id="' + id + '"]:not(:first)').remove();
3};
4
5Shiny.addCustomMessageHandler('createSemanticToast', function(message) {
6  Shiny.initSemanticToast(message.id);
7
8  const toast_message = message.message;
9  // Changes character string into function
10  if (toast_message.hasOwnProperty('actions')) {
11    for (i = 0; i < toast_message.actions.length; i++) {
12      if (toast_message.actions[i].hasOwnProperty('click')) {
13        toast_message.actions[i].click = eval(toast_message.actions[i].click);
14      }
15    }
16  }
17
18  const sem_toast = $('body').toast(toast_message);
19  $(sem_toast).attr('id', `${message.id}`);
20});
21
22Shiny.addCustomMessageHandler('closeSemanticToast', function(message) {
23  $(`#${message.id}`).toast('close');
24});

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.