Sie betrachten eine alte Version der Seite. Zur neuesten Version gehen.
$( '.transclusion-container .additional' ).each(function() {
var $elem = $(this); var $toggle = $('<a href="#">mehr< class="bs-icon-arrow-down"></a>'); $toggle.on( 'click', function( e ) {
debugger;
$elem.toogleClasstoggleClass( 'show' ); e.defaultPrevented = true; return false; }); $toggle.insertBefore( $elem );
});
$( '.languageselector' ).each(function() {
var languages = [ 'de', 'en', 'cz', 'pl', 'hu' ];
var $selector = $('<select>');
for( var i = 0; i < languages.length; i++ ) {
var language = languages[i];
var $option = $('<option>');
$option.html( language );
$option.val( language );
$selector.append( $option );
}
$(this).append( $selector );
});
$( '.transclusion-container .additional' ).each(function() { var $elem = $(this); var $toggle = $('<a href="#" class="bs-icon-arrow-down">mehr</a>'); $toggle.on( 'click', function( e ) { debugger; $elem.toogleClass $elem.toggleClass( 'show' ); e.defaultPrevented = true; }); $toggle.insertBefore( $elem ); }); return false; }); $toggle.insertBefore( $elem ); }); $( '.languageselector' ).each(function() { var languages = [ 'de', 'en', 'cz', 'pl', 'hu' ]; var $selector = $('<select>'); for( var i = 0; i < languages.length; i++ ) { var language = languages[i]; var $option = $('<option>'); $option.html( language ); $option.val( language ); $selector.append( $option ); } $(this).append( $selector ); });
(13 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | $( '.additional' ).each(function() { | + | $( '.transclusion-container .additional' ).each(function() { |
var $elem = $(this); | var $elem = $(this); | ||
− | var $toggle = $('<a href="#"> | + | var $toggle = $('<a href="#" class="bs-icon-arrow-down"></a>'); |
$toggle.on( 'click', function( e ) { | $toggle.on( 'click', function( e ) { | ||
− | + | $elem.toggleClass( 'show' ); | |
− | $elem. | ||
e.defaultPrevented = true; | e.defaultPrevented = true; | ||
+ | return false; | ||
}); | }); | ||
$toggle.insertBefore( $elem ); | $toggle.insertBefore( $elem ); | ||
+ | }); | ||
+ | |||
+ | $( '.languageselector' ).each(function() { | ||
+ | var languages = [ 'de', 'en', 'cz', 'pl', 'hu' ]; | ||
+ | var $selector = $('<select>'); | ||
+ | for( var i = 0; i < languages.length; i++ ) { | ||
+ | var language = languages[i]; | ||
+ | var $option = $('<option>'); | ||
+ | $option.html( language ); | ||
+ | $option.val( language ); | ||
+ | |||
+ | $selector.append( $option ); | ||
+ | } | ||
+ | $(this).append( $selector ); | ||
}); | }); |