1'use-strict'; 2 3window.addEventListener('load', function () { 4 if (window.animateGLInstance) return; 5 // const isBlocksEditor = typeof wp !== 'undefined' && typeof wp.blocks !== 'undefined'; 6 // if(isBlocksEditor) return; 7 8 agl_options = agl_options || [] 9 agl_options[0] = agl_options[0] || "{}" 10 const options = JSON.parse(agl_options[0]) 11 options.rootFolder = agl_options[1] 12 13 if (options.in) { 14 // Reset presets to global presets 15 if (options.in.presets) 16 options.in.presets = agl.defaults.in.presets 17 if (options.in.fade) { 18 if (options.in.fade.alphaMapSrc) 19 delete options.in.fade.alphaMapSrc 20 if (options.in.fade.image) 21 delete options.in.fade.image 22 } 23 } 24 25 window.animateGLInstance = new AnimateGL(options) 26 27 window.dispatchEvent(new Event('agl-init')) 28});
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.