# depicter/trunk/resources/scripts/widgets/elementor-widget.js

Depicter — Popup &amp; Slider Builder, version trunk. 16 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/resources/scripts/widgets/elementor-widget.js
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/resources/scripts/widgets/elementor-widget.js
- Modified: 2023-11-25T12:26:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/trunk/code/resources/scripts/widgets/elementor-widget.js#L10-L20`.

```javascript
/**
 * Init Elements in Elementor Frontend
 *
 */
window.addEventListener("elementor/frontend/init", function() {
  elementorFrontend.hooks.addAction('frontend/element_ready/depicter_slider.default', function ($scope) {
    Depicter.initAll();
  });

  elementorFrontend.hooks.addAction('frontend/element_ready/shortcode.default', function ($scope) {
    if ($scope.find('.depicter').length) {
      Depicter.initAll(); 
    }
  });
});

```
