PageSourceSearch

https://www-cdn.msci.com/o/msci/js/msci-subscription-form-opener.js?t=0db9bda269377513b136ccb58a7b0fa2

js msci.com collected 2026-10-01 08:41:59 UTC 2,477 bytes, 61 lines download raw bytes

1/*  
2 * MSCI Subscription Form Opener
3 */
4$(function() {
5	var subscribeLinks = Array.from(document.getElementsByClassName("subscription-form-opener"));
6	if (subscribeLinks) {
7		for (var i = 0; i < subscribeLinks.length; i++) {
8		    if (subscribeLinks[i]) {
9		    	addSubscriptionFormOpenerEventListener(subscribeLinks[i]);
10		    }
11		}
12	}
13});
14
15function addSubscriptionFormOpenerEventListener(element) {
16	var namespace = element.dataset.namespace;          //value of "data-namespace" attribute - requested format: string
17	var businessType = element.dataset.businesstype;    //value of "data-businesstype" attribute - requested format: string
18	var location = element.dataset.location;            //value of "data-location" attribute - requested format: string
19	var topics = element.dataset.topics;                //value of "data-topics" attribute - requested format: "['a', 'b', 'c']"
20	var useCases = element.dataset.usecases;            //value of "data-usecases" attribute - requested format: "['a', 'b', 'c']"
21	element.addEventListener('click', function(event) {
22		AUI().use("liferay-portlet-url", function() {
23			var url = new Liferay.PortletURL(Liferay.PortletURL.RENDER_PHASE, null, themeDisplay.getLayoutRelativeURL());
24            url.setParameter('randomNamespace', namespace);
25            url.setParameter('businessType', businessType);
26            url.setParameter('location', location);
27            url.setParameter('topics', topics);
28            url.setParameter('useCases', useCases);
29            url.setPortletId('subscription_form_portlet');
30            url.setPortletMode('view');
31            url.setWindowState('pop_up');
32
33            Liferay.Util.openWindow({
34                dialog: {
35                    destroyOnHide: true,
36                    cssClass: 'subscription-form-popup'
37                },
38                dialogIframe: {
39                    bodyCssClass: 'dialog-with-footer subscription-form-dialog-with-footer'
40                },
41                id: namespace + 'subscriptionForm',
42                uri: url,
43                title: ''
44            });
45    	});
46	});
47	
48	Liferay.provide(
49        window,
50        namespace + 'closePopup',
51        function(url) {
52            if(url != undefined) {
53                window.location = url;
54            } else {
55                var dialog = Liferay.Util.Window.getById(namespace + 'subscriptionForm');
56                dialog.destroy();
57            }
58        },
59        ['liferay-util-window']
60    );	
61}

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.