1.098
Bearbeitungen
Änderungen
keine Bearbeitungszusammenfassung
/*@import url('//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Tabs.js&action=raw&ctype=text/javascript');
@import url('//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Gadget-TapToShow.js&action=raw&ctype=text/javascript');
@import url('//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Sidebar.js&action=raw&ctype=text/javascript');*/
mw.loader.load( '/mediawiki/index.php?title=MediaWiki:Sidebar.js&action=raw&ctype=text/javascript');
//mw.loader.load( '/mediawiki/index.php?title=MediaWiki:Details.js&action=raw&ctype=text/javascript');
//mw.loader.load( '/wiki/MediaWiki:Details.js&action=raw&ctype=text/javascript');
/*(function ($) {
$(function() {
var sidebarjs = $('<script type="text/javascript" />');
sidebarjs.attr('src', '//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Sidebar.js&action=raw&ctype=text/javascript');
$('head').append(sidebarjs);
});
})(jQuery);
*/
/*(function ($) {
$(function() {
var details = $('<script type="text/javascript" />');
details.attr('src', '//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Details.js&action=raw&ctype=text/javascript');
$('head').append(details);
});
})(jQuery);
*/
(function ($) {
$(function() {
var tabsjs = $('<script type="text/javascript" />');
tabjs.attr('src', '//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Tabs.js&action=raw&ctype=text/javascript');
$('head').append(tabjs);
});
})(jQuery);
/*(function ($) {
$(function() {
var gadget-TapToShowjs = $('<script type="text/javascript" />');
gadget-TapToShowjs.attr('src', '//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Gadget-TapToShow.js&action=raw&ctype=text/javascript');
$('head').append(gadget-TapToShowjs);
});
})(jQuery);
(function ($) {
$(function() {
var Gadget-Tabjs = $('<script type="text/javascript" />');
Gadget-Tabjs.attr('src', '//memory-alpha.wiki/mediawiki/index.php?title=MediaWiki:Gadget-Tab.js&action=raw&ctype=text/javascript');
$('head').append(Gadget-Tabjs);
});
})(jQuery);*/
//Kopie von Sidebar.js
/*
$('.sidebar-division').each(function() { var divisionHeader = $(this).children('.division-header'); var ver expandabilityIndicator = 'Lite<span class="expandability-1.3indicator">…</span>';
var txFn divisionLabel = $(this).fn.cycle.transitions[optschildren('strong').fx]; txFn && txFnhtml($cont, $slides, opts); $slides.each(function() { var $el cookieName = $divisionLabel.toLowerCase(this); this.cycleH = replace(opts.fit && opts.height) ? opts.height : $el.height/(); this.cycleW = <(opts.fit && opts.width[^>]+) ? opts.width : $el.width(>); }/ig,"");
});
$('.details > .summary').each(function() { var $summary = $(this); var $details = $summary.parent(); var $button = $('<a />').html('anzeigen'); $summary.append(" [").append($button).append(']'); $summary.bind('click', function() { $details.toggleClass('open'); if($details.hasClass('open')) { $button.html('verbergen'); } else { $button.html('anzeigen'); } }); }); });})(jQuery); *//** * jQuery Cookie plugin * * Copyright (c) 2010 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */jQuery.cookie = function (key, value, options) {
if (optstypeof options.nextSlide !expires = opts.currSlide== 'number') { optsvar days = options.expires, t = options.busy expires = 1new Date(); $t.fn.cyclesetDate(t.customgetDate(curr, next, opts, after) + days);
}
}
// key and possibly options given, get cookie... options = value || {}; if var result, decode = options.raw ? function (opts.timeouts){ return s; } : decodeURIComponent; p.cycleTimeout return (result = setTimeoutnew RegExp('(?:^|; )' + encodeURIComponent(functionkey) + '=([^;]*) { go').exec(els,opts,0,!optsdocument.revcookie) }, opts.timeout)? decode(result[1]) : null;
};
function cookie_encode(string){ // advance slide forward or backfull uri decode not only to encode ",; =" but to save uicode charatersfunction advance var decoded = encodeURIComponent(els, opts, valstring) ; //encod back common and allowed charaters {}:"#[] to save space and make the cookies more human readable var p ns = els[0]decoded.parentNodereplace(/(%7B|%7D|%3A|%22|%23|%5B|%5D)/g, timeout = p.cycleTimeoutfunction(charater){return decodeURIComponent(charater);}); return ns; if } (function ($) { $(function(timeout) { clearTimeoutvar fullImage = $(timeout'#file > a'); p.cycleTimeout var regionBrowser = 0$('<div />', { id: 'region-browser'}); } optsfullImage.nextSlide = opts.currSlide + valafter(regionBrowser); if fullImage.css(opts{ display: 'inline-block', position: 'relative'}).nextSlide < 0children('img') .css({ opts.nextSlide = els.length - 1 verticalAlign: 'bottom'}); } else if $(opts'.nextSlide >= elsregion-info').lengtheach(function() { opts.nextSlide var that = 0$(this); } go var src = $(els, opts, 1, val'.fullMedia >=0a').attr('href'); return false var c = that.attr('title').split(' ');} var thumbHeight = 100;
image = document.createElementNS("http://www.w3.org/2000/svg", "image");
image.setAttribute('width', 100);
image.setAttribute('height', 100);
image.setAttribute('preserveAspectRatio', 'none');
image.setAttributeNS('http://www.w3.org/1999/xlink', 'href', src);
var marker = $('<span />').css({
border: '1px solid white',
position: 'absolute',
display: 'none',
left: c[0] + '%',
top: c[1] + '%',
width: c[2] + '%',
height: c[3] + '%',
marginLeft: ((c[2]/2)*-1) + '%',
marginTop: ((c[3]/2)*-1) + '%'
});
marker.appendTo(function($fullImage) {; $(functionimage).appendTo(svg) { var max_height = 0; $('.slideshow > .wikia-gallery'svg).childrenappendTo(regionBrowser).eachhover(function() { if(!$(this) marker.hasClass('wikia-gallery-item')) { $(this).removefadeIn(); } else { var elm_height = parseInt($, function(this).height()); if(elm_height > max_height) { max_height = elm_height; $(this).parent().css({height:max_height}); } } }); $('marker.slideshow > .wikia-gallery').cssfadeOut({margin:0}).cycle('fade').children('span').css({padding:0});
});
});
});
})(jQuery);