PageSourceSearch

https://mirabilia.ch/modules/custom/front/mi_share/assets/js/popup.js?v=1

js mirabilia.ch collected 2026-10-08 20:15:09 UTC 925 bytes, 42 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2	'use strict';
3
4	var initialized;
5
6	Drupal.behaviors.moduleMiShare = {
7		attach: function(context, setting){
8			if (!initialized) {
9				initialized = true;
10				Drupal.behaviors.moduleMiShare.init();
11			}
12		},
13		init:function(){
14
15			$(document).on('click','a[data-share-title]',function(){
16				var ref = this;
17				$.ajax({
18					url: Drupal.url('share'),
19					type:"POST",
20					data: {
21						'title': $(ref).data('share-title'),
22						'collection-title': $(ref).data('share-collection-title'),
23						'image': $(ref).data('share-image'),
24						'link': $(ref).data('share-link')
25					},
26					success: function(response) {
27						$.colorbox({
28							html:response,
29							opacity:1,
30							onComplete: function() {
31								$(window).trigger('resize');
32								$(this).colorbox.resize();
33							}
34						});
35					}
36				});
37				return false;
38			});
39		}
40	};
41
42})(jQuery, Drupal, 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.