PageSourceSearch

https://operavision.eu/themes/operavision/assets/js/ov_video.js?v=1.x

js operavision.eu collected 2026-10-02 02:43:10 UTC 2,224 bytes, 48 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2  'use strict';
3  Drupal.behaviors.ov_video = {
4    attach: function(context, settings) {
5
6        if(jQuery("#videoModal").length == 0)
7        {
8            jQuery('body').append('  <div class="modal fade videoModal" id="videoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> \
9                <div class="modal-dialog modal-lg"> \
10                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><span class="icon-close"></span></span></button> \
11                  <div class="modal-content"> \
12                    <div class="modal-body"> \
13                      <div class="embed-container"> \
14                        <iframe width="100%" height="450" src="" frameborder="0" allowfullscreen></iframe> \
15                      </div> \
16                    </div> \
17                  </div> \
18                </div> \
19              </div>');
20        }
21
22        jQuery(".video-modal", context).each(function(){
23            jQuery(this).click(function() {
24
25                var theModal = jQuery(this).data("target"),
26                    videoSRC = jQuery(this).attr("data-video"),
27                    videoSRCauto = videoSRC + "?modestbranding=1&rel=0&controls=0&showinfo=0&html5=1&autoplay=1&enablejsapi=1";
28
29                if(jQuery(this).data("type") != "ext")
30                {
31                    jQuery(theModal + ' iframe').attr('src', '');
32                    jQuery(theModal + ' iframe').hide();
33                    jQuery(theModal + ' .embed-container').append('<video width="100%" height="450" controls autoplay><source src="'+videoSRC+'" type="video/mp4"></video>');
34                }
35                else
36                {
37                    jQuery(theModal + ' video').remove();
38                    jQuery(theModal + ' iframe').show();
39                    jQuery(theModal + ' iframe').attr('src', videoSRCauto);
40                    jQuery(theModal).on('hidden.bs.modal', function() {
41                        jQuery(theModal + ' iframe').attr('src', videoSRC);
42                    });
43                }
44            });
45        });
46    }
47  };
48}) (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.