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:
23
zoesch.de/galerie/themes/default/js/switchbox.js
Normal file
23
zoesch.de/galerie/themes/default/js/switchbox.js
Normal file
@@ -0,0 +1,23 @@
|
||||
(function () {
|
||||
var sbFunc = function(link, box) {
|
||||
jQuery(link).click(function() {
|
||||
var elt = jQuery(box);
|
||||
elt.css("left", Math.min( jQuery(this).position().left, jQuery(window).width() - elt.outerWidth(true) - 5))
|
||||
.css("top", jQuery(this).position().top + jQuery(this).outerHeight(true))
|
||||
.toggle();
|
||||
return false;
|
||||
});
|
||||
jQuery(box).on("mouseleave click", function() {
|
||||
jQuery(this).hide();
|
||||
});
|
||||
};
|
||||
|
||||
if (window.SwitchBox) {
|
||||
for (var i=0; i<SwitchBox.length; i+=2)
|
||||
sbFunc(SwitchBox[i], SwitchBox[i+1]);
|
||||
}
|
||||
|
||||
window.SwitchBox = {
|
||||
push: sbFunc
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user