PageSourceSearch

https://www.1800lighting.com/on/demandware.static/Sites-CapitolLig…/-/en_US/v1791028247636/js/dynamicyield.js

js 1800lighting.com collected 2026-10-03 20:01:47 UTC 1,141 bytes, 38 lines download raw bytes

1var dynamicYield = {
2
3    callEvent: function(eventName, params){
4        var DYhref = '',
5            DYform = '',
6            redirect = true;
7        if(typeof params == "object"){
8            DYhref = params.DYhref || '';
9            DYform = '';
10            if(params.DYform){
11                DYform = params.DYform;
12                delete params.DYform;
13            }
14            redirect = params.redirect != null? params.redirect : true ;
15        }
16
17        var params = JSON.stringify(params) || '';
18        $.ajax({
19            url: Urls.DYGetAPIProperties,
20            data: {eventName: eventName, params: params}
21        }).success(function(response) {
22            if(response.doCall){ 
23                DY.API('event', {
24                    name: response.eventName,
25                    properties: response.properties
26                });
27            }
28            if(DYhref!='' && redirect){
29                window.location.href = DYhref;
30            }
31            if(DYform!='' && redirect){ 
32                DYform.trigger('submit');
33            }
34        }).error(function(e){
35            console.log(e);
36        });
37    } 
38}

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.