PageSourceSearch

https://szkene.hu/js/jquery.theater.js

js szkene.hu collected 2026-10-02 11:35:00 UTC 3,154 bytes, 95 lines download raw bytes

1(function($){ //jQuery.noConflict()compliant
2$.fn.extend({
3mediaLink: function (opts) {
4    var opts = jQuery.extend({}, jQuery.mediaLink.defaults, opts);
5    return this.each(function () {
6      if ($(opts.mediaTarget).length == 0) {
7          $('<div id="'+opts.mediaTarget.substr(1)+'" class="mediacontainer">').insertBefore(this);
8          $("div", this).clone().html("Multimédia").appendTo(opts.mediaTarget);
9      }
10      if ($("ul", opts.mediaTarget).length == 0)
11    	  $('<ul>').appendTo(opts.mediaTarget);
12      $("li",this).each(function(){
13        var u = jQuery.url.setUrl($("a",this).attr('href'));
14        if (typeof(u.attr("host")) != undefined && u.attr("host") != null && u.attr("host").match(/(youtube\.com|youtu\.be|vimeo\.com)/) ) {
15          $("ul", opts.mediaTarget).append(this);
16        }
17      });
18      $("a", this).media({}, function(elem) {
19        $("ul", opts.mediaTarget).append($(elem).parent());
20      });
21      $("ul:empty", opts.mediaTarget).parent().remove();
22      $("a", opts.mediaTarget).youtube(opts.youtubeOptions);
23      $("ul:not(:has(li))", this).parent().remove();
24    });
25},
26jegylinkek: function (actualOpts) {
27	var opts = jQuery.extend({}, jQuery.jegylinkek.defaults, actualOpts);
28	var ids = new Array();
29	this.each(function() {
30		var id = $(this).data(opts.dataProperty);
31		if (id) { 
32			$(this).addClass(opts.idClassName +'-'+id);
33			if ($.inArray(id, ids) == -1)
34				ids[ids.length] = id;
35		}
36	});
37	if (ids.length > 0) {
38	  var params = {};
39	  params[opts.ajaxURLidparam] = ids;
40	  $.getJSON(opts.ajaxURL, params, function(data) {
41		$.each(data, function(id, extra_ids) {
42			$.each(extra_ids, function (idx, extra_id) {
43				$("<a>").attr("href", opts.getURL.call(this, extra_id)).attr('target', opts.target).addClass('jegyvasarlas piroslink').html(opts.link).appendTo(opts.appendToTarget.replace('[[ID]]', opts.idClassName +'-'+id));
44			});
45		});
46	  });
47	}
48},
49cycleLoadImages: function (url, options) {
50	return this.each(function() {
51		var target = this;
52		$.getJSON(url, {}, function(data) {
53			$.each(data, function(idx, src){
54				$("<img>").attr("src", src).appendTo(target);
55			});
56			$(target).cycle(options);
57		});
58	});
59}
60});
61})(jQuery);
62
63(function($){ //jQuery.noConflict()compliant
64	function MediaLinkSettings() { // Default settings object
65		this.defaults = {
66			mediaTarget: "#multimedia",
67			youtubeOptions: {}
68	    };
69		this.setDefaults = function (opts) {
70			jQuery.extend(this.defaults, opts);
71		};
72	}
73	$.mediaLink = new MediaLinkSettings();
74	
75	function JegylinkekSettings() { // Default settings object
76		this.defaults = {
77				appendToTarget : 'table.musor tr.[[ID]] td.musorelem',
78				dataProperty: 'eloadas_id',
79				idClassName: 'eloadas',
80				link: "Jegyvásárlás",
81				ajaxURL: '/ajax.php?q=jegyvasarlas_extra_ids',
82				ajaxURLidparam: 'eloadasok',
83				getURL: function (extra_id) {
84					return extra_id.url;
85				},
86				target: '_blank'
87			};
88		this.setDefaults = function (opts) {
89			jQuery.extend(this.defaults, opts);
90		};
91	}
92	$.jegylinkek = new JegylinkekSettings();
93	
94	
95})(jQuery);

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.