PageSourceSearch

https://denod.cz/res/jquery.ez.js

js denod.cz collected 2026-10-03 02:42:01 UTC 29,549 bytes, 857 lines download raw bytes

1(function($){  
2 $.fn.ezRowOrder = function(options){
3  var defaults = {
4   bAutoCommit: true,
5   sURL: null,
6   sRequestType: "POST",
7   sRowSelector: 'tr'
8  };
9  var options = $.extend({}, defaults, options);
10  var oTable, tbody;
11
12  var send = function(){
13   var aRows = [];
14   var rows = $(options.sRowSelector,tbody);
15   rows.each(function(){
16    aRows.push($(this).data('order'));
17   });
18   $.ajax({
19    url: options.sURL,
20    type: options.sRequestType,
21    data: {rows: aRows.join(',') },
22    dataType: 'json',
23    success: function(data){
24     if(data.status == -1) {$().ezAlert('error', data.error); return;}
25     if(data.status){
26      if(data.redir != null) $(window.location).attr('href', data.redir);
27      if(data.script != null){
28       eval(data.script);
29       play();
30      }
31     } else { $().ezAlert('warning', data.error); }
32    },
33    error: function(jqXHR) {
34     $().ezAlert('error', jqXHR.statusText);
35    }
36   });
37  };
38
39  return this.each(function(){
40   oTable = $(this).dataTable();
41   oTable.fnDraw();
42   $("tbody", oTable).disableSelection().sortable({
43    cursor: "move",
44    update: function (event, ui) {
45     if(options.bAutoCommit) send();
46     //var $dataTable = oTable;
47     tbody = $(this);
48    }
49   });
50  });
51 };
52})(jQuery);
53
54
55
56
57
58
59
60
61/*
62(function($){  
63 $.fn.ezUpload = function(options){
64  var defaults = {  
65   name: 'file',
66   url: '/upload.php',
67   client:'',
68   success: function(){alert(client.statusText);}
69  }; 
70  var client = new XMLHttpRequest();
71  var options = $.extend({}, defaults, options); 
72  var prepareUpload = function(event){
73   console.log(event)
74   var formData = new FormData();
75   formData.append(options.name, event.target.files[0], event.target.files[0].filename );
76   client.open("post", options.url, true);
77   client.send(formData);  // Send to server  
78
79    if(data.status == -1) alert(data.errors);
80    if(data.status){
81     if(data.redir != null) $(window.location).attr('href', data.redir);
82     if(data.script != null) {
83      eval(data.script);
84      play();
85     }
86    } else {
87     $.each(data.errors,function(k,v){
88      //$('label[for='+k+']').append('<span class="error">'+v+'</span>');
89      $('label[for='+k+']').after('<span class="error">'+v+'</span>')
90      $('#'+k,form).addClass('error').on('click',function(){
91       $(this).removeClass('error');
92      });
93     });
94    }
95
96
97  }
98  return this.each(function(){
99   var el = $(this);
100   el.on('change', prepareUpload);
101   client.onreadystatechange = function() {
102    if(client.readyState == 4 && client.status == 200) {
103     options.success();
104    }
105   }  
106  });
107 };
108})(jQuery);
109
110*/
111
112 //move he last list item before the first item. The purpose of this is if the user clicks to slide left he will be able to see the last item.
113 $('#carousel_ul li:first').before($('#carousel_ul li:last')); 
114 //when user clicks the image for sliding right        
115 $('#right_scroll img').click(function(){
116  //get the width of the items ( i like making the jquery part dynamic, so if you change the width in the css you won't have o change it here too ) '
117  var item_width = $('#carousel_ul li').outerWidth() + 10;
118  //calculae the new left indent of the unordered list
119  var left_indent = parseInt($('#carousel_ul').css('left')) - item_width;
120  //make the sliding effect using jquery's anumate function '
121  $('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){    
122  //get the first list item and put it after the last list item (that's how the infinite effects is made) '
123   $('#carousel_ul li:last').after($('#carousel_ul li:first')); 
124   //and get the left indent to the default -210px
125   $('#carousel_ul').css({'left' : '-210px'});
126  }); 
127 });
128 //when user clicks the image for sliding left
129 $('#left_scroll img').click(function(){
130  var item_width = $('#carousel_ul li').outerWidth() + 10;
131  /* same as for sliding right except that it's current left indent + the item width (for the sliding right it's - item_width) */
132  var left_indent = parseInt($('#carousel_ul').css('left')) + item_width;
133  $('#carousel_ul:not(:animated)').animate({'left' : left_indent},500,function(){    
134  /* when sliding to left we are moving the last item before the first list item */            
135   $('#carousel_ul li:first').before($('#carousel_ul li:last')); 
136   /* and again, when we make that change we are setting the left indent of our unordered list to the default -210px */
137   $('#carousel_ul').css({'left' : '-210px'});
138  });
139 });
140
141//--- ezAlerts -----------------------------------------------------------------
142(function($){
143 var settings = {
144  inEffect: {opacity: 'show'},
145  inEffectDuration: 600,
146  stayTime: 3000,
147  text: '',
148  sticky: false,
149  type: 'notice',
150  position: 'top-right',
151  closeText: '',
152  close: null
153 };
154
155 var methods = {
156  init: function(options){
157   if(options){
158    $.extend( settings, options );
159   }
160  },
161  show: function(options){
162   var localSettings = {};
163   $.extend(localSettings, settings, options);
164   var toastWrapAll, toastItemOuter, toastItemInner, toastItemClose, toastItemImage;
165   toastWrapAll	= (!$('.toast-container').length) ? $('<div></div>').addClass('toast-container').addClass('toast-position-' + localSettings.position).appendTo('body') : $('.toast-container');
166   toastItemOuter	= $('<div></div>').addClass('toast-item-wrapper');
167   toastItemInner	= $('<div></div>').hide().addClass('toast-item toast-type-' + localSettings.type).appendTo(toastWrapAll).html($('<p>').append (localSettings.text)).animate(localSettings.inEffect, localSettings.inEffectDuration).wrap(toastItemOuter);
168   toastItemClose	= $('<div></div>').addClass('toast-item-close').prependTo(toastItemInner).html(localSettings.closeText).click(function() { $().ezAlert('remove',toastItemInner, localSettings) });
169   toastItemImage  = $('<div></div>').addClass('toast-item-image').addClass('toast-item-image-' + localSettings.type).prependTo(toastItemInner);
170   if(navigator.userAgent.match(/MSIE 6/i)){toastWrapAll.css({top: document.documentElement.scrollTop});}
171   if(!localSettings.sticky){
172    setTimeout(function(){$().ezAlert('remove', toastItemInner, localSettings);}, localSettings.stayTime);
173   }
174   return toastItemInner;
175  },
176  notice: function(message){
177   var options = {text: message, type: 'notice'};
178   return $().ezAlert('show', options);
179  },
180  success: function(message){
181   var options = {text : message, type : 'success'};
182   return $().ezAlert('show', options);
183  },
184  error: function(message){
185   var options = {text : message, type : 'error'};
186   return $().ezAlert('show', options);
187  },
188  warning: function(message){
189   var options = {text : message, type : 'warning'};
190   return $().ezAlert('show', options);
191  },
192		remove: function(obj, options){
193   obj.animate({opacity: '0'}, 600, function(){
194    obj.parent().animate({height: '0px'}, 300, function(){
195     obj.parent().remove();
196    });
197   });
198   if(options && options.close !== null){options.close();}
199  }
200 };
201 $.fn.ezAlert = function(method) {
202  if(methods[method]){return methods[ method ].apply(this, Array.prototype.slice.call(arguments, 1));
203  } else if(typeof method === 'object' || ! method){return methods.init.apply(this, arguments);
204  } else {$.error('Method ' +  method + ' does not exist on jQuery.ezAlert');
205  }
206 };
207})(jQuery);
208
209//--- ezBox --------------------------------------------------------------------
210(function($){  
211 $.fn.ezBox = function(options){
212  var dot = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
213  var els = this;
214  var win = $(window);
215  var defaults = {  
216   overlay: true,
217   screen: function(el){
218    var aspectRatio = el.width() / el.height();
219    if((win.width() / win.height()) < aspectRatio) {
220     el.css({width:win.width()*0.9, height:'auto'});
221     return {width:(win.width()*0.9)+4, height:'auto', marginLeft:'-'+el.width()/2+'px', marginTop:'-'+el.height()/2+'px'}
222    } else {
223     el.css({width:'auto', height:win.height()*0.9});
224     return {width:'auto', height:(win.height()*0.9)+4, marginLeft:'-'+el.width()/2+'px', marginTop:'-'+el.height()/2+'px'};
225    }
226   }
227  }; 
228  var options = $.extend({}, defaults, options); 
229  var overlay = $('#overlay');
230  var container, content, actel;
231  var init = function(){
232   if(overlay.length == 0) overlay = $('<div/>',{id:'overlay'}).hide().appendTo('body');
233   if(options.overlay == true) overlay.show();
234   container = $('<div/>',{id:'container'}).addClass('container').css(options.screen(actel));
235   content = $('<img/>',{src:actel.attr('href')}).appendTo(container);
236   var nextbtn = $('<img/>',{src:dot}).addClass('nextbtn').appendTo(container);
237   var prevbtn = $('<img/>',{src:dot}).addClass('prevbtn').appendTo(container);
238   nextbtn.on('click',function(){next();});
239   prevbtn.on('click',function(){prev();});
240   container.appendTo('body');
241   container.css(options.screen(content));
242   win.resize(function(){container.css(options.screen(content));});
243   overlay.on('click',function(){destroy();});
244  };
245  var destroy = function(){
246   container.remove();
247   overlay.hide().unbind();
248  };
249  var next = function(){
250   var index = els.index(actel)+1;
251   if(index >= els.length) index = 0;
252   actel = $(els[index]);
253   content.attr('src',actel.attr('href'));
254   container.css(options.screen(content));
255  };
256  var prev = function(){
257   var index = els.index(actel)-1;
258   if(index == -1) index = els.length - 1;
259   actel = $(els[index]);
260   content.attr('src',actel.attr('href'));
261   container.css(options.screen(content));
262  };
263  $('body').keyup(function(e){
264   if(e.which===27){destroy();} // Escape key
265   if(e.which===37){prev();} // left key
266   if(e.which===39){next();} // right key 
267  });
268  return this.each(function(){
269   var el = $(this);
270   el.on('click',function(e){
271    actel = el;
272    e.preventDefault();
273    init(el);
274   });
275
276  });
277 };
278})(jQuery);
279
280//--- ezCarousel ---------------------------------------------------------------
281(function($){  
282 $.fn.ezCarousel = function(options){
283  var dot = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
284  var defaults = {  
285   qty: 1,
286   speed: 500,
287   play: false,
288   interval: 7000,
289   article: 'article',
290   btn_prefix: 'ezcarousel',
291   buttons: function(el){
292    var nextbtn = $('<img/>',{src:dot}).addClass(options.btn_prefix+'_next');
293    var prevbtn = $('<img/>',{src:dot}).addClass(options.btn_prefix+'_prev');
294    nextbtn.on('click',function(){next();});
295    prevbtn.on('click',function(){prev();});
296    el.parent().append(prevbtn).append(nextbtn);
297   }
298  }; 
299  var options = $.extend({}, defaults, options); 
300  var container, article, article_width, rotator;
301  var init = function(el){
302   article = $(options.article, el);
303   if(article.length <= options.qty) return;
304   article_width = '-'+article.outerWidth(true)+'px';
305   var container_width = article.length * (article.outerWidth(true));
306   container = $('<div/>').css({position:'absolute', left:article_width, width:container_width});;
307   article.appendTo(container);
308   container.appendTo(el);
309   $(options.article+':first',container).before($(options.article+':last',container)); 
310   options.buttons(el);
311   if(options.play) play();
312  };
313  var play = function(){
314   clearInterval(rotator);
315   rotator = setInterval(function() {next();}, options.interval);
316   return false;
317  };
318  var next = function(){
319   var item_width = article.outerWidth(true);
320   var left_indent = parseInt(container.css('left')) - item_width;
321   container.not(':animated').animate({left:left_indent},options.speed,function(){    
322    $(options.article+':last',container).after($(options.article+':first',container)); 
323    container.css({left:article_width});
324   });
325   if(options.play) {play();}
326  };
327  var prev = function(){
328    var item_width = article.outerWidth(true);
329    var left_indent = parseInt(container.css('left')) + item_width;
330    container.not(':animated').animate({left:left_indent},options.speed,function(){    
331     $(options.article+':first',container).before($(options.article+':last',container));
332     container.css({left:article_width});
333    });
334    if(options.play) {play();}
335  };
336  $('body').keyup(function(e){
337   //if(e.which===37){prev();} // left key
338   //if(e.which===39){next();} // right key 
339  });
340  return this.each(function(){
341   var el = $(this);
342   init(el);
343  });
344 };
345})(jQuery);
346
347//--- ezContext ----------------------------------------------------------------
348(function($){
349 var settings = {
350 };
351 
352 var methods = {
353  show: function(e,obj){
354   var element = e.currentTarget;
355   //settings = jQuery.extend(settings,args);
356   menu	= (!$(obj.menu.attr('class')).length) ? obj.menu.hide().appendTo('body') : obj.menu.hide();
357   pos = methods.position(e);
358   console.log(pos);
359   $(document).unbind('click');
360   $('li', menu).unbind('click');
361   //$(menu).delegate('li', 'click', function() {
362   $('li', menu).click(function(){
363    $(document).unbind('click');
364    var el = $(this);
365    menu.hide();
366    $.each(obj.bindings, function(id, func) {
367     if(el.attr('class') == id) func(element);
368     return;
369    });
370    return false;
371   });
372   menu.css({position:'absolute', top:pos.top, left:pos.left, zIndex:10000}).fadeIn();
373   $(document).one('click', function(){menu.hide()});
374  },
375  position: function(e) {
376   var d = {}, x, y;
377   if(self.innerHeight){
378    d.pageYOffset = self.pageYOffset;
379    d.pageXOffset = self.pageXOffset;
380    d.innerHeight = self.innerHeight;
381    d.innerWidth = self.innerWidth;
382   } else if(document.documentElement && document.documentElement.clientHeight){
383    d.pageYOffset = document.documentElement.scrollTop;
384    d.pageXOffset = document.documentElement.scrollLeft;
385    d.innerHeight = document.documentElement.clientHeight;
386    d.innerWidth = document.documentElement.clientWidth;
387   } else if(document.body){
388    d.pageYOffset = document.body.scrollTop;
389    d.pageXOffset = document.body.scrollLeft;
390    d.innerHeight = document.body.clientHeight;
391    d.innerWidth = document.body.clientWidth;
392   }
393   (e.pageX) ? x = e.pageX : x = e.clientX + d.scrollLeft;
394   (e.pageY) ? y = e.pageY : y = e.clientY + d.scrollTop;
395   return {left:x, top:y};
396  }
397 };
398 $.fn.ezContext = function(e,obj) {
399  return methods.show(e,obj);
400 };
401})(jQuery);
402
403//--- ezImageArea --------------------------------------------------------------
404(function($){  
405 $.fn.ezImageArea = function(options){
406  var defaults = {  
407   overlay: true,
408  }; 
409  var options = $.extend({}, defaults, options); 
410  return this.each(function(){
411   var el = $(this);
412   el.sortable({items:'span', scroll: true, placeholder: 'placeholder'});
413   $('.add',el).click(function(e){
414    e.preventDefault();
415    window.KCFinder = {
416     callBackMultiple: function(files){
417      window.KCFinder = null;
418      $(files).each(function(){
419       var link = this;
420       if((link != 'undefined') && (link != '')){
421        var span = $('<span/>').addClass('picture').append($('<img/>',{src:link}).addClass('thumb')).append($('<input/>',{type:'hidden', name:el.attr('name')+'[]', value:link}));
422        el.append(span);
423       }
424      });
425     }
426    };
427    window.open('res/kcfinder/browse.php?type=files', 'kcfinder_multiple', 'status=0, toolbar=0, location=0, menubar=0, ' + 'directories=0, resizable=1, scrollbars=0');
428   });
429   el.on('click', 'span.rmpic', function(){
430    $(this).parent().remove();
431   });
432   el.on('mouseenter', 'span.picture', function(event){
433    $(this).append('<span class="rmpic"></span>');
434   });
435   el.on('mouseleave', 'span.picture', function(event){
436    $(this).parent().find(".rmpic").remove();
437   });
438
439  });
440 };
441})(jQuery);
442
443//--- ezModal ------------------------------------------------------------------
444(function($) {
445
446 $.fn.ezModal = function(options) {
447  var defaults = {  
448   animation: 'fadeAndPop', //fade, fadeAndPop, none
449   animationspeed: 300,
450   closeonbackgroundclick: true,
451   closeButton: $('<a/>').attr('class','ezModal-close').text('x')
452  }; 
453  //Extend dem' options
454  var options = $.extend({}, defaults, options); 
455  return this.each(function() {
456   var modal = $(this),
457    topMeasure = parseInt(modal.css('top')),
458    topOffset = modal.height() + topMeasure,
459    locked = false,
460    modalBG = $('#ezModal-bg');
461    if(modalBG.length == 0){
462     modalBG = $('<div id="ezModal-bg" />').insertAfter(modal);
463    }
464    modal.append(options.closeButton); 
465    options.closeButton.bind('click.modalEvent', function(){
466     modal.trigger('reveal:close')
467    });   
468
469			modal.bind('reveal:open', function () {
470			  modalBG.unbind('click.modalEvent');
471				$('.' + options.dismissmodalclass).unbind('click.modalEvent');
472				if(!locked) {
473					lockModal();
474					if(options.animation == "fadeAndPop") {
475					 modal.css('margin-left',-(modal.width()/2));
476						modal.css({'top': $(document).scrollTop()-topOffset,"display":"block", 'opacity' : 0, 'visibility' : 'visible'});
477						modalBG.fadeIn(options.animationspeed/2);
478						modal.delay(options.animationspeed/2).animate({
479							"top": $(document).scrollTop()+topMeasure + 'px',
480							"opacity" : 1
481						}, options.animationspeed,unlockModal());					
482					}
483					if(options.animation == "fade") {
484					 modal.css('margin-left',-(modal.width()/2));
485						modal.css({"display":"block",'opacity' : 0, 'visibility' : 'visible', 'top': $(document).scrollTop()+topMeasure});
486						modalBG.fadeIn(options.animationspeed/2);
487						modal.delay(options.animationspeed/2).animate({
488							"opacity" : 1
489						}, options.animationspeed,unlockModal());					
490					} 
491					if(options.animation == "none") {
492					 modal.css('margin-left',-(modal.width()/2));
493						modal.css({"display":"block",'visibility' : 'visible', 'top':$(document).scrollTop()+topMeasure});
494						modalBG.css({"display":"block"});	
495						unlockModal()				
496					}
497				}
498				modal.unbind('reveal:open');
499			}); 	
500
501			//Closing Animation
502			modal.bind('reveal:close', function () {
503			  if(!locked) {
504					lockModal();
505					if(options.animation == "fadeAndPop") {
506						modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
507						modal.animate({
508							"top":  $(document).scrollTop()-topOffset + 'px',
509							"opacity" : 0
510						}, options.animationspeed/2, function() {
511							modal.css({'top':topMeasure, 'opacity' : 1, 'visibility' : 'hidden'}).hide();
512							unlockModal();
513						});
514					}  	
515					if(options.animation == "fade") {
516						modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
517						modal.animate({
518							"opacity" : 0
519						}, options.animationspeed, function() {
520							modal.css({'opacity' : 1, 'visibility' : 'hidden', 'top' : topMeasure}).hide();
521							unlockModal();
522						});					
523					}  	
524					if(options.animation == "none") {
525						modal.css({'visibility' : 'hidden', 'top' : topMeasure}).hide();
526						modalBG.hide();	
527					}		
528				}
529				modal.unbind('reveal:close');
530				
531			});     
532
533   modal.trigger('reveal:open')
534   //Close Modal Listeners
535/*
536   var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent', function () {
537    modal.trigger('reveal:close')
538   });
539*/
540   if(options.closeonbackgroundclick){
541    modalBG.css({"cursor":"pointer"});
542		 	modalBG.bind('click.modalEvent', function(){
543     modal.trigger('reveal:close')
544    });
545   }
546		 $('body').keyup(function(e){
547    if(e.which===27){ modal.trigger('reveal:close'); } // 27 is the keycode for the Escape key
548   });
549   function unlockModal(){locked = false;}
550   function lockModal(){locked = true;}	
551  });//each call
552 }//orbit plugin call
553})(jQuery);
554
555//--- ezRotator ----------------------------------------------------------------
556(function($) {  
557 $.fn.ezRotator = function(args){
558	 settings = jQuery.extend({qty:1, fadeSpeed:600, pauseSpeed:5000, child:null
559		},args);
560  return this.each(function(){
561   var rotator = $(this);                
562   var items = $(rotator.children(), rotator);
563   if(items.length <= settings.qty) return;
564   var prevbtn = $('<span class="_prev">prev</span>');
565   var nextbtn = $('<span class="_next">next</span>');
566   rotator.parent().append(prevbtn).append(nextbtn);
567   items.each(function() {$(this).hide();})
568   var item = $(rotator).children(':first').fadeIn(settings.fadeSpeed);
569   var next_item = function(item) {
570    return item.next().length ? item.next() : $(rotator).children(':first');
571   };
572   var prev_item = function(item) {
573    return item.prev().length ? item.prev() : $(rotator).children(':last');
574   };
575   prevbtn.click(function(){
576    $(item).fadeOut(settings.fadeSpeed, function(){
577     item = prev_item($(this));
578     $(item).fadeIn(settings.fadeSpeed);
579    });
580    return false;
581   });
582   nextbtn.click(function(){
583    $(item).fadeOut(settings.fadeSpeed, function(){
584     item = next_item($(this));
585     $(item).fadeIn(settings.fadeSpeed);
586    });
587    return false;
588   });
589   var play = function() {
590    rotation = setInterval(function() {
591     nextbtn.trigger('click');
592    }, settings.pauseSpeed);
593   };
594   play();
595  });
596 };
597})(jQuery); 
598
599//--- ezSocialLikeIt -----------------------------------------------------------
600(function($){  
601 $.fn.ezSocialLikeIt = function(args){
602	 settings = jQuery.extend({url:false},args);
603  return this.each(function(){
604   var social = $(this);
605   var google = $('.ss-googleplus',social);
606   if(google.length > 0) {
607    var div = $('<div/>').addClass('g-plusone').attr('data-size','medium');
608    if(settings.url != false) div.attr('data-href',settings.url);
609    google.append(div);
610    var po = document.createElement('script'); 
611    po.type = 'text/javascript'; 
612    po.async = true;
613    po.src = 'https://apis.google.com/js/plusone.js';
614    var s = document.getElementsByTagName('script')[0]; 
615    s.parentNode.insertBefore(po, s);
616   }
617   var twitter = $('.ss-twitter',social);
618   if(twitter.length > 0) {
619    var a = $('<a/>').addClass('twitter-share-button').attr('href','https://twitter.com/share').attr('data-via','twitterapi').attr('data-lang','en');
620    if(settings.url != false) a.attr('data-url',settings.url);
621    twitter.append(a);
622    !function(d,s,id){
623     var js,fjs=d.getElementsByTagName(s)[0];
624     if(!d.getElementById(id)){
625      js=d.createElement(s);
626      js.id=id;
627      js.src="https://platform.twitter.com/widgets.js";
628      fjs.parentNode.insertBefore(js,fjs);
629     }
630    }(document,"script","twitter-wjs");
631   }
632   var facebook = $('.ss-facebook',social);
633   if(facebook.length > 0) {
634    var div = $('<div/>').addClass('fb-like').attr('data-send','false').attr('data-layout','button_count').attr('data-width','450').attr('data-show-faces','false');
635    if(settings.url != false) div.attr('data-href',settings.url);
636    facebook.append(div);
637    (function(d, s, id) {
638     var js, fjs = d.getElementsByTagName(s)[0];
639     if(d.getElementById(id)) return;
640     js = d.createElement(s); js.id = id;
641     js.src = "//connect.facebook.net/cs_CZ/all.js#xfbml=1";
642     fjs.parentNode.insertBefore(js, fjs);
643    }(document, 'script', 'facebook-jssdk'));
644   }
645   var linkedin = $('.ss-linkedin',social);
646   if(linkedin.length > 0) {
647    var script = $('<script/>').attr('type','text/javascript').attr('src','//platform.linkedin.com/in.js');
648    var script2 = $('<script/>').attr('type','IN/Share').attr('data-counter','right');
649    if(settings.url != false) script2.attr('data-url',settings.url);
650    linkedin.append(script).append(script2);
651   }
652  });
653 };
654})(jQuery);
655
656//--- ezTabs -------------------------------------------------------------------
657(function($){  
658 $.fn.ezTabs = function(args){
659	 return this.each(function(){
660	  var eztabs = $(this);
661   $('li',eztabs).click(function(){
662    var index = $(this).index();
663    $('li',eztabs).removeClass('active');
664    $(this).addClass('active');
665    $('div.content',eztabs).removeClass('active');
666    $('div.content',eztabs).eq(index).addClass('active');
667   });
668  });
669 };
670})(jQuery);
671
672//--- ezTree -------------------------------------------------------------------
673(function($) {  
674 var settings = {
675  nodeClick: null,
676  nodeRightClick: null
677 };
678 $.fn.ezTree = function(args){
679	 settings = jQuery.extend(settings,args);
680	 //settings = jQuery.extend({nodeClick: null	},args);
681
682	 return this.each(function(){
683	  $(this).undelegate();
684	  var eztree = $(this);
685   eztree.find('ul').not(':first').hide().each(function() {
686    var li = $(this).parent();
687    if(li.children('ul').length != 0) {li.addClass('parent');}
688   });
689   $(this).delegate('a', 'contextmenu', function(e) {
690    e.preventDefault();
691    if(e.button === 2) {
692     settings.nodeRightClick(e,this);
693    }
694    return false;
695   });
696   $(this).delegate('a', 'click', function(e) {
697    e.preventDefault();
698    e.stopPropagation();
699    if(settings.nodeClick != undefined) settings.nodeClick($(this));
700    var li = $(this).parent();
701    li.find('>ul').slideToggle();
702    return false;
703   });
704  });
705 };
706})(jQuery);
707
708//--- ezWindow -----------------------------------------------------------------
709(function($) {  
710 $.fn.ezWindow_old = function(args){
711  $.fn.ezWindow.render = function() {
712   if(settings.dialog) {
713    overlay.fadeIn();
714   }
715   setCenterPosition();
716   ezwindow.show();
717  };
718  $.fn.ezWindow.close = function() {
719   overlay.hide();
720   ezwindow.hide();
721  };
722	 settings = jQuery.extend({
723   overlayBgColor:'#000',
724			overlayOpacity:0.8,
725   width: 640, height:480, dialog: true, onload: null
726		},args);
727		if($('#overlay').length == 0) var overlay = $('<div id="overlay"></div>').hide();
728		else var overlay = $('#overlay');
729  overlay.css({
730   backgroundColor:settings.overlayBgColor,
731			opacity:settings.overlayOpacity,
732   position:'fixed',
733   top:0,
734   bottom:0,
735   left:0,
736   right:0,
737   zIndex:2000
738		}).click(function(){
739   $(this).hide();
740   ezwindow.hide();
741   $('span.error',ezwindow).remove();
742  });
743  $('html').append(overlay);
744  var ezwindow = $(this);
745  $(window).resize(function() {
746   setCenterPosition();
747  });
748  return this.each(function(){
749   //var ezwindow = $(this);
750   settings.onload(ezwindow);
751   ezwindow.css({position:'fixed', width:settings.width, height:settings.height});
752			//ezwindow.css({top:yScroll, left:xScroll});
753  });
754
755  function setCenterPosition(){
756   var a = ezwindow.width()/2;
757   var b = ezwindow.height()/2;
758   var xleft = window.innerWidth/2 - a;
759			var ytop = window.innerHeight/2 - b;
760			if(ytop<0) ytop=0;
761			ezwindow.css({top:ytop, left:xleft});
762			//return new Array(pageWidth,pageHeight,windowWidth,windowHeight);
763  }
764 };
765})(jQuery);
766
767(function($){  
768 $.fn.ezWindow = function(options){
769  var dot = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
770  var els = this;
771  var win = $(window);
772  var defaults = {  
773   overlay: true,
774   animation: 'fadeAndPop',
775   animationspeed: 600,
776   closeButton: $('<a/>').attr('class','ezClose').text('+'),
777   screen: function(el){
778    var aspectRatio = el.width() / el.height();
779    if((win.width() / win.height()) < aspectRatio) {
780     el.css({width:win.width()*0.9, height:'auto'});
781     return {width:(win.width()*0.9)+4, height:'auto', marginLeft:'-'+el.width()/2+'px', marginTop:'-'+el.height()/2+'px'}
782    } else {
783     el.css({width:'auto', height:win.height()*0.9});
784     return {width:'auto', height:(win.height()*0.9)+4, marginLeft:'-'+el.width()/2+'px', marginTop:'-'+el.height()/2+'px'};
785    }
786   },
787   onload: function(){}
788  }; 
789  var options = $.extend({}, defaults, options); 
790  var overlay = $('#overlay');
791  var container, content, actel,width,height;
792  var init = function(el){
793   if(overlay.length == 0) overlay = $('<div/>',{id:'overlay'}).appendTo('body');
794   if(options.overlay == true) overlay.show(); //overlay.fadeIn(options.animationspeed/2);
795   container = $('<div/>').addClass('ezwindow');//.css(options.screen(actel)); 
796   container.load(el.attr('href'), function(){
797    container.appendTo('body');
798    container.append(options.closeButton);
799    options.closeButton.on('click',function(){destroy();});
800    show({width:container.outerWidth(true), height:container.outerHeight(true)});
801    options.onload(container);
802   });
803   
804   //win.resize(function(){container.css(options.screen(content));});
805   overlay.on('click',function(){destroy();});
806   
807  };
808  var test = function(e){
809   if((win.width() < e.width) || (win.height() < e.height)) return true;
810   return false;
811  }
812  var show = function(e){
813
814   if(options.animation == 'fadeAndPop') {
815    if(test(e)) {
816     container.css('left',(win.width()/2)-(e.width/2)+'px');
817     container.css({'position':'absolute', 'top':$(document).scrollTop()-e.height, 'display':'block', 'opacity':0, 'visibility':'visible'});
818     container.delay(options.animationspeed/2).animate({'top': $(document).scrollTop()+(win.height()/2) + 'px', 'opacity':1}, options.animationspeed);	
819    } else {
820     container.css('left',(win.width()/2)-(e.width/2)+'px');
821     container.css({'top':0, 'display':'block', 'opacity':0, 'visibility':'visible'});
822     container.delay(options.animationspeed/2).animate({'top': (win.height()/2)-(e.height/2) + 'px', 'opacity':1}, options.animationspeed);
823    }	
824   }    
825  }
826  var destroy = function(){
827   if(options.animation == "fadeAndPop") {
828    container.animate({'top':'0px', 'opacity':0}, options.animationspeed/2, function() {
829     container.remove();
830     overlay.hide().unbind();
831    });
832   }
833  };
834  $('body').keyup(function(e){
835   if(e.which===27){destroy();} // Escape key
836  });
837  return this.each(function(){
838   var el = $(this);
839   el.on('click',function(e){
840    actel = el;
841    e.preventDefault();
842    init(el);
843   });
844
845  });
846 };
847})(jQuery);
848
849
850
851
852//--- ezTabs -------------------------------------------------------------------
853
854
855
856//--- ezTabs -------------------------------------------------------------------
857

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.