Keywords : partei, politiker, wahl, bundestagswahl, spd, cdu, fdp, grüne, linke, wahlkampf |
H2 tags : Big MoverHöchster Zuwachs an Kontakten; Big ShakerHöchster Zuwachs an Nachrichten; Aktuelle Themen »Was wird gerade diskutiert; Aktivität - Live »
Was online passiert; Blog; Nach der Wahl ist vor der Wahl? Die neuen Landtage und Social Media; Der unerwartete Gast - die Berliner CDU legt einen Zahn zu; Das Internet als Waffe? Der Online-Wahlkampf der NPD im März 2011; Parteibuch;
$( document ).ready( function ( ) {
var selector = ".wahl-services-parteien_switch .wshs_button",
imageSelector = "#wahl_services_switch_parteien_",
imageContent = $( '.wahl-services-parteien_switch .image-box' ),
Services = ["twitter","YouTube","facebook","flickr","meinVZ","Xing"],
ServiceToImage = {"TWITTER":{"image":"","title":"Entwicklung auf twitter"},"YOUTUBE":{"image":"","title":"Entwicklung auf YouTube"},"FACEBOOK":{"image":"","title":"Entwicklung auf facebook"},"FLICKR":{"image":"","title":"Entwicklung auf flickr"},"MEINVZ":{"image":"","title":"Entwicklung auf meinVZ"},"XING":{"image":"","title":"Entwicklung auf Xing"}},
header = $( '.wahl-services-parteien_switch .content h2' ),
embedButton = $( '.wahl-services-parteien_switch button' ),
embedValue = $( '.wahl-services-parteien_switch input' ).hide(),
activeServiceName = false;
var loading_start = function ( ) {
imageContent.addClass( 'loading' );
imageContent.fadeTo( "normal", 0.33 );
};
var loading_end = function ( ) {
imageContent.removeClass( 'loading' );
imageContent.fadeTo( "normal", 1 );
};
var aHrefs = $( selector ).click( function ( e ) {
loading_start();
var _this = $( this );
var _name = _this.attr('name');
$( selector ).removeClass( 'active' );
var active = false;
var activeName = false;
$.each( Services, function ( i, s ) {
s = String(s).toUpperCase();
if( _name == 'wahl_service_change_image_' + s.toLowerCase() ) {
activeName = s.toLowerCase();
activeServiceName = s;
active = $( 'a[name='+'wahl_service_change_image_' + s.toLowerCase()+']' );
active.addClass( 'active' );
var img = new Image();
img.onload = function ( ) {
embedValue.attr( 'value', ServiceToImage[ activeServiceName ] );
imageContent.html( ServiceToImage[ s ][ 'image' ] );
loading_end();
}
img.onerror = function ( ) {
imageContent.html( 'Ooops, here is an error.' );
loading_end();
}
img.src = $( ServiceToImage[ s ][ 'image' ] ).attr( 'src' );
header.html( ServiceToImage[ s ][ 'title' ] );
}
} );
return false;
} );
aHrefs.eq(0).click();
} );
FB.init("9c61a98e0b048d5770fc41356ba4b867");
Wahlkreissuche; wahl.de auf anderen Plattformen; Da fehlt noch jemand?; Wahl Vision - Aktivität auf einer Karte |