Initial commit: Backup der Webseiten

- zoesch.de
- blitzkiste.net
- gruene-hassberge (norbert.zoesch.de)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Felix Zösch
2025-12-13 01:17:15 +01:00
commit 07c290a453
4607 changed files with 1202735 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,117 @@
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
var pluses = /\+/g;
function encode(s) {
return config.raw ? s : encodeURIComponent(s);
}
function decode(s) {
return config.raw ? s : decodeURIComponent(s);
}
function stringifyCookieValue(value) {
return encode(config.json ? JSON.stringify(value) : String(value));
}
function parseCookieValue(s) {
if (s.indexOf('"') === 0) {
// This is a quoted cookie as according to RFC2068, unescape...
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
}
try {
// Replace server-side written pluses with spaces.
// If we can't decode the cookie, ignore it, it's unusable.
// If we can't parse the cookie, ignore it, it's unusable.
s = decodeURIComponent(s.replace(pluses, ' '));
return config.json ? JSON.parse(s) : s;
} catch(e) {}
}
function read(s, converter) {
var value = config.raw ? s : parseCookieValue(s);
return $.isFunction(converter) ? converter(value) : value;
}
var config = $.cookie = function (key, value, options) {
// Write
if (value !== undefined && !$.isFunction(value)) {
options = $.extend({}, config.defaults, options);
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setTime(+t + days * 864e+5);
}
return (document.cookie = [
encode(key), '=', stringifyCookieValue(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// Read
var result = key ? undefined : {};
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all. Also prevents odd result when
// calling $.cookie().
var cookies = document.cookie ? document.cookie.split('; ') : [];
for (var i = 0, l = cookies.length; i < l; i++) {
var parts = cookies[i].split('=');
var name = decode(parts.shift());
var cookie = parts.join('=');
if (key && key === name) {
// If second argument (value) is a function it's a converter...
result = read(cookie, value);
break;
}
// Prevent storing a cookie that we couldn't decode.
if (!key && (cookie = read(cookie)) !== undefined) {
result[name] = cookie;
}
}
return result;
};
config.defaults = {};
$.removeCookie = function (key, options) {
if ($.cookie(key) === undefined) {
return false;
}
// Must not alter options, thus extending a fresh object...
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
return !$.cookie(key);
};
}));

View File

@@ -0,0 +1,44 @@
/**
Equal Heights Plugin
Equalize the heights of elements. Great for columns or any elements
that need to be the same size (floats, etc).
Version 1.01
Updated 1/30/2014
Copyright (c) 2008 Rob Glazebrook (cssnewbie.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Usage: $(object).equalHeights([minHeight], [maxHeight]);
Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
than 300 pixels tall. Elements with too much content will gain a scrollbar.
**/
(function($) {
$.fn.equalHeights = function(minHeight, maxHeight) {
tallest = (minHeight) ? minHeight : 0;
this.each(function() {
if($(this).height() > tallest) {
tallest = $(this).height();
}
});
if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
return this.each(function() {
$(this).height(tallest);
});
}
})(jQuery);

View File

@@ -0,0 +1,90 @@
var gRatingOptions, gRatingButtons, gUserRating;
function makeNiceRatingForm(options)
{
gRatingOptions = options;
var form = $('#rateForm');
if (!form) return; //? template changed
gRatingButtons = form.find('span');
gUserRating = "";
gRatingButtons.each(function() {
if ($(this).hasClass('rateButtonStarFull')) {
gUserRating = $(this).data('value');
}
});
gRatingButtons.each(function() {
$(this).data('initialRateValue', $(this).data('value'));
pwgAddEventListener($(this).get(0), "click", updateRating);
pwgAddEventListener($(this).get(0), "mouseout", function() {updateRatingStarDisplay( gUserRating );});
pwgAddEventListener($(this).get(0), "mouseover", function(e) {
updateRatingStarDisplay(e.target ? $(e.target).data('initialRateValue') : $(e.srcElement).data('initialRateValue'));
});
});
updateRatingStarDisplay(gUserRating);
}
function updateRatingStarDisplay(userRating)
{
gRatingButtons.each(function() {
$(this).addClass(userRating !=="" && userRating >= $(this).data('initialRateValue') ? 'rateButtonStarFull' : 'rateButtonStarEmpty');
$(this).removeClass(userRating !=="" && userRating >= $(this).data('initialRateValue') ? 'rateButtonStarEmpty' : 'rateButtonStarFull');
});
}
function updateRating(e)
{
var elem = e.target || e.srcElement;
var rateButton = $(elem);
if (rateButton.data('disabled') == true || rateButton.data('initialRateValue') == gUserRating) {
return false; //nothing to do
}
gRatingButtons.each(function() {
rateButton.data('disabled', true);
});
var y = new PwgWS(gRatingOptions.rootUrl);
y.callService(
"pwg.images.rate", {image_id: gRatingOptions.image_id, rate: rateButton.data('initialRateValue') } ,
{
method: "POST",
onFailure: function(num, text) {
alert(num + " " + text);
document.location = $('#rateForm').attr('action') + "&rate=" + rateButton.data('initialRateValue');
},
onSuccess: function(result) {
gUserRating = rateButton.data('initialRateValue');
gRatingButtons.each(function() {
rateButton.data('disabled', false);
});
if (gRatingOptions.onSuccess) gRatingOptions.onSuccess(result);
if (gRatingOptions.updateRateElement) gRatingOptions.updateRateElement.innerHTML = gRatingOptions.updateRateText;
if (gRatingOptions.ratingSummaryElement)
{
var t = gRatingOptions.ratingSummaryText;
var args =[result.score, result.count, result.average], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ );
while (idx<args.length) t=t.replace(rexp, args[idx++]);
gRatingOptions.ratingSummaryElement.innerHTML = t;
}
}
}
);
return false;
}
(function() {
if (typeof _pwgRatingAutoQueue!="undefined" && _pwgRatingAutoQueue.length)
{
for (var i=0; i<_pwgRatingAutoQueue.length; i++)
makeNiceRatingForm(_pwgRatingAutoQueue[i]);
}
_pwgRatingAutoQueue = {
push: function(opts) {
makeNiceRatingForm(opts);
}
}
})();

View File

@@ -0,0 +1,75 @@
$(document).ready(function() {
// Any plugin buttons using pwg-icon class should also use glyphicon class for correct display
//$('.pwg-icon').addClass('glyphicon');
// Grid view button click
$('#btn-grid').click(function() {
if ($(this).hasClass('active')) {
return;
}
$.cookie('view', 'grid');
$('#btn-grid').addClass('active');
$('#btn-list').removeClass('active');
$('#content')
.removeClass('content-list')
.addClass('content-grid')
.height('auto')
.find('.col-outer').each(function() {
$(this).removeClass('col-lg-12 col-md-12 col-sm-12 col-xs-12')
.addClass($(this).data('grid-classes'))
.one(
'webkitTransitionEnd',
function () {
$('#content').find('.col-inner').equalHeights();
})
})
.find('.col-inner')
.height('auto');
});
// List view button click
$('#btn-list').click(function() {
if ($(this).hasClass('active')) {
return;
}
$.cookie('view', 'list');
$('#btn-list').addClass('active');
$('#btn-grid').removeClass('active');
$('#content')
.removeClass('content-grid')
.addClass('content-list')
.height('auto')
.find('.col-outer').each(function() {
$(this).removeClass($(this).data('grid-classes'))
.addClass('col-lg-12 col-md-12 col-sm-12 col-xs-12')
.one(
'webkitTransitionEnd',
function () {
$('#content').find('.col-inner').equalHeights();
})
})
.find('.col-inner')
.height('auto');
});
// Side bar
var sidebar = $("#sidebar");
var theImage = $('#theImage')
if (sidebar.length && theImage.length) {
sidebar.css('top', (theImage.offset().top + 20) + 'px');
$('#info-link').click(function () {
var sidebar = $('#sidebar');
if (parseInt(sidebar.css('right')) < 0) {
sidebar.animate({right: "+=250"}, 500);
} else {
sidebar.animate({right: "-=250"}, 500);
}
return false;
});
}
});
function bd_popup(url) {
window.open(url, 'bd_popup', 'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no');
}