jQuery(document).ready(function ($) { var themeVersion = '2.6'; // Check für JS-Installation entfernen $('#hdr').addClass('js-installed'); // Add version to logo $('#logo').append( $('' + themeVersion + '') ); // Clear spaces $('#content .devType, #menu .room a').each(function() { $(this).html($(this).html().replace(/ /g, '')); }); $('#content > br').remove(); $('.makeSelect').parent().find('br').remove(); // Add missing classes for elements $('.SVGplot').prevAll('a').addClass('plot-nav'); // Icon selection $('button.dist').wrapAll('
'); $('button.dist').css({width: '50px', height: '50px', margin: '5px', padding: '0'}); $('button.dist > *').css({maxWidth: '40px', maxHeight: '40px', display: 'block', margin: '0px auto'}); $('input[type=text][name=icon-filter]').keyup(function() { var val = $(this).val().toLowerCase(); if (val.length === 0) { jQuery('button.dist').show(); } else { jQuery('button.dist').hide().filter(function() { return $(this).attr('title').toLowerCase().indexOf(val) > -1; }).show(); } }); // Links in der Navigation hinzufügen var $navElement = jQuery('#menu .room').last().find('tbody'); $navElement.append( $('
Theme-Fehler melden (v' + themeVersion + ')
') ); // Automatische Breite für HDR Input $('#hdr input.maininput').css({width: $('#content').width() + 'px'}); $(window).resize(function() { $('#hdr input.maininput').css({width: $('#content').width() + 'px'}); }); // Klick auf Error-Message blendet diese aus $('body').on('click', '#errmsg', function() { $(this).hide(); }); $('.roomoverview .col1, .makeTable .col1').each(function(index) { $(this).parent().addClass('first-table-column'); }); });