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:
21
zoesch.de/galerie/themes/bootstrap_darkroom/js/common.js
Normal file
21
zoesch.de/galerie/themes/bootstrap_darkroom/js/common.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/* changeElementType: this function changes element types. e.g. <div> to <ul> */
|
||||
(function($) {
|
||||
$.fn.changeElementType = function(newType) {
|
||||
var attrs = {};
|
||||
if (!(this[0] && this[0].attributes))
|
||||
return;
|
||||
|
||||
$.each(this[0].attributes, function(idx, attr) {
|
||||
attrs[attr.nodeName] = attr.nodeValue;
|
||||
});
|
||||
this.replaceWith(function() {
|
||||
return $("<" + newType + "/>", attrs).append($(this).contents());
|
||||
});
|
||||
}
|
||||
})(jQuery);
|
||||
|
||||
/* common issue */
|
||||
$(document).ready(function () {
|
||||
$('#navbar-menubar .navbar-form').css({'color': $('.dropdown-menu>li>a').css('color')});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user