1.096
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.cycleTimeout; if function(timeoutcharater) { clearTimeoutreturn decodeURIComponent(timeoutcharater);}); p.cycleTimeout = 0 return ns; } opts.nextSlide (function ($) { $(function() { var fullImage = opts.currSlide + val$('#file > a'); if var regionBrowser = $(opts.nextSlide '< 0) div />', { opts.nextSlide = els.length id: 'region- 1browser'}); } else if fullImage.after(optsregionBrowser); fullImage.nextSlide >= els.length) css({ opts.nextSlide = 0; display: 'inline-block', position: 'relative' } go).children(els, opts, 1, val>=0'img');.css({ return false; verticalAlign: 'bottom'});
$('.fnregion-info').cycle.custom = each(function(curr, next, opts, cb) { var $l = $(curr), $n that = $(nextthis); $n.css(opts.cssBefore); var fn src = function() {$n.animate(opts.animIn, opts.speedIn, opts'.easeIn, cbfullMedia > a')}; $l.animateattr(opts.animOut, opts.speedOut, opts.easeOut, function() { $l.css(opts.cssAfter'href'); if (!opts var c = that.sync) fnattr('title'); }); if (opts.sync) fnsplit(' ');} var thumbHeight = 100;
var ratio = thumbHeight // @see: http://malsup.com/jquery/cycle/lite/$.fn.cycle.defaults = { animIn: {}, animOut: {}, fx: 'fade', after: null, before: null, cssBefore: {}, cssAfter: {}, delay: 0, fit: 0, height: 'auto', metaAttr: 'cycle', next: null, pause: 0, prev: null, speed: 1000, slideExpr: null, sync: 1, timeout: 4000 }c[3];
svg.setAttribute('viewBox', (c[0] - (c[2] / 2)) + ' ' + (c[1] - (c[3] / 2)) + ' ' + c[2] + ' ' + c[3]);
svg.setAttribute('height', thumbHeight);
svg.setAttribute('width', c[2] * ratio);
svg.setAttribute('style', 'margin: 1em 1em 0 0');
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);
});
});
});
})(jQuery);