PageSourceSearch

https://ffc-frankfurt.de/fileadmin/javascript/jquery_plugins_page_elements.js

js ffc-frankfurt.de collected 2026-10-02 13:48:31 UTC 55,345 bytes, 1,332 lines download raw bytes

1// jQuery('html').addClass('js');
2
3
4//jQuery(window).load(function() {
5//	jQuery('.tt_news_video .news-image a').clone().appendTo('.tt_news_video .news-morelink');
6//});
7
8//------------------------------------------------------------------
9
10//jQuery(window).load(function() {
11//var auto_refresh = setInterval( 
12//function () 
13//{ 
14//jQuery('.tx-incoretwitter-pi1').fadeIn("slow"); 
15//}, 1000); // refresh every 1000 milliseconds
16//});
17
18//---------------------------------------------------------------------- 
19//jQuery(window).load(function() {
20//jQuery(".news-latest-item").each(function (n) {
21// jQuery(".news-morelink"Zvg-dieburg.de).bind("click", (function () {jQuery(".news-content").trigger("click");}));
22//});
23//});
24//---------------------------------------------------------------------- 
25
26/* jQuery(window).resize( function() {
27function smoothResize() {
28				// animate the width on resize
29				jQuery('#uid23 .ym-col1').animate({
30					'width' : jQuery(window).width()-15
31				});
32		}
33		// This calls the function 'smoothResize' when the browser has finished resizing
34		clearTimeout(this.id);
35		this.id = setTimeout(smoothResize, 50);
36});
37*/
38//------------------------------------------------------------------------------------
39// tt_content: nebeneinander liegende Abschnitte im Spalten-Layout gleich hoch:
40
41jQuery(window).load(function () {
42    //  	 jQuery(document).ready(function() {
43
44
45    //xxxxxxx
46    jQuery('#portrait-content .ym-grid ').addClass('ym-equalize');
47    //	jQuery('#schiedsrichter-beispielcontent .ym-grid ').addClass('ym-equalize');
48    //xxxxxxxxxx
49
50    column_size();
51
52    jQuery('#portrait-content .csc-textpic-image img ').animate({
53        opacity: 1.0
54    }, 10, function () {
55    });
56
57
58    jQuery(window).resize(column_size);
59
60
61    function column_size() {
62
63        // 		Alte JS-Loesung für Portrait-Seiten:
64        /* 		jQuery('#content_leftmiddle #portrait-content .ym-grid').each(function(n) {
65            var highestCol = 0;
66            var highestCol = Math.max(jQuery(this).find('.ym-gl #content_50_left .csc-textpic figure').outerHeight(), jQuery(this).find('.ym-gr #content_50_middle>.csc-default').height());
67            jQuery(this).find('#content_50_left>.csc-default').height(highestCol);
68            jQuery(this).find('#content_50_left').height(highestCol);
69            jQuery(this).find('#content_50_middle').height(highestCol);
70        });
71*/
72
73        jQuery('#content_leftmiddle #schiedsrichter-beispielcontent .ym-grid').each(function (n) {
74            var highestCol = 0;
75            var highestCol = Math.max(jQuery(this).find('.ym-gl #content_50_left').height(), jQuery(this).find('.ym-gr #content_50_middle').height());
76            jQuery(this).find('.ym-gl').height(highestCol);
77            jQuery(this).find('.ym-gr').height(highestCol);
78            jQuery(this).find('.ym-gl .ym-gbox').height(highestCol);
79            jQuery(this).find('.ym-gr .ym-gbox').height(highestCol);
80        });
81
82    }
83});
84
85//------------------------------------------------------------------------------------
86
87jQuery(document).ready(function () {
88// xxxxx
89    // 		jQuery('#content_leftmiddle  .csc-default:last-of-type').last().addClass('last_element');
90// xxxxx
91// 		jQuery("#content_leftmiddle .fullwidth").each(function(){
92// 			var is_it_elem = true;
93// 			jQuery(this).find(".csc-default").each(function(){
94// 				if (jQuery(this).children(".csc-textpic, .csc-textpic-text table").length=0) {is_it_elem = false};	
95// 			});
96// 			if (is_it_elem) {jQuery(this).find("table").parent(".csc-default").addClass("text-table")}
97// 		});
98    jQuery("#content_leftmiddle .fullwidth .csc-default>table").parent(".csc-default").addClass("text-table")
99});
100
101//------------------------------------------------------------------------------------
102
103jQuery(document).ready(function () {
104    jQuery('img[usemap]').rwdImageMaps();
105});
106//------------------------------------------------------------------------------------
107//  responsive navigation
108
109jQuery(document).ready(function () {
110
111    // 	 jQuery("body").prepend("<div class=\"menu-trigger-1\"></div>"+"<div class=\"menu-trigger-2\"></div>"+"<div class=\"menu-trigger-3\"></div>");
112    jQuery("body").prepend("<div class=\"top-scrollmark\"></div><div class=\"menu-wrapper\"><div class=\"menu-trigger-1\"></div>" + "<div class=\"menu-trigger-2\"></div>" + "<div class=\"menu-trigger-3\"></div></div>" + "<div class=\"menu-toggle\"><img src=\"fileadmin/templates/images/mobile-menu-icon.png\"></div>");
113
114    jQuery(function () {
115
116
117        if (jQuery(window).width() < 585) {
118            jQuery('#navigation_2 .menu .subhover').remove();
119            jQuery('#navigation_1 .sep').remove();
120
121        }
122
123
124        jQuery(".menu-toggle").click(function () {
125            jQuery(snm1).slicknav("close");
126            jQuery(snm2).slicknav("close");
127            jQuery(snm3).slicknav("close");
128
129            jQuery(".menu-wrapper").slideToggle("slow");
130            jQuery(".menu-trigger-1").slideToggle("slow");
131            jQuery(".menu-trigger-2").slideToggle("slow");
132            jQuery(".menu-trigger-3").slideToggle("slow");
133
134            if (jQuery(this).hasClass("open")) {
135                jQuery(this).fadeOut(500, function () {
136                    jQuery(this).css("top", 12).removeClass("open").fadeIn(500);
137                });
138            } else {
139                jQuery(this).fadeOut(500, function () {
140                    jQuery(this).css("top", 100).addClass("open").fadeIn(500);
141                    jQuery(snm1).slicknav("open");
142                });
143            }
144        })
145
146        var snm1 = jQuery('#navigation_1').slicknav({
147            prependTo: ".menu-trigger-1",
148            label: '',
149            duration: 0,
150            closeOnClick: true,
151            easingOpen: "swing",
152            easingClose: "swing",
153            open: function (trigger1) {
154                jQuery(snm2).slicknav("close");
155                jQuery(snm3).slicknav("close");
156            }
157        });
158
159        var snm2 = jQuery('#navigation_2 .nav-bar-blue>ul').slicknav({
160            prependTo: ".menu-trigger-2",
161            label: ' mehr ...',
162            duration: 0,
163            closeOnClick: false,
164            easingOpen: "swing",
165            easingClose: "swing",
166            open: function (trigger2) {
167                jQuery(snm1).slicknav("close");
168                jQuery(snm3).slicknav("close");
169            }
170        });
171
172        if (jQuery('#navigation_3 ul').length > 0) {
173            var snm3 = jQuery('#navigation_3 ul').slicknav({
174                prependTo: ".menu-trigger-3",
175                label: ' mehr ...',
176                duration: 0,
177                closeOnClick: false,
178                easingOpen: "swing",
179                easingClose: "swing",
180                // init: function(){alert("init")},
181                open: function (trigger3) {
182                    // 				jQuery('#navigation_1').slicknav("close");
183                    // 				jQuery('#navigation_2').slicknav("close");
184                    // alert(jQuery("#navigation_2").html());
185                    jQuery(snm1).slicknav("close");
186                    jQuery(snm2).slicknav("close");
187                }
188            });
189        }
190
191        jQuery(".slicknav_menutxt a").each(function () {
192            jQuery(this).click(function () {
193                jQuery(".slicknav_menutxt a").parents(".slicknav_menu").slicknav("close");
194            });
195        });
196
197
198        jQuery(".slicknav_menutxt a").removeAttr("onfocus");
199        jQuery(".slicknav_icon.slicknav_no-text").remove();
200        var arrow_closed = "<span class = \"slicknav_arrow_closed\">&#9658;</span>";
201        var arrow_open = "<span class = \"slicknav_arrow_open\">&#9660;</span>";
202        var arrow_1 = "<span class = \"slicknav_arrow slicknav_arrow_1\">&gt;</span>";
203        var arrow_2 = "<span class = \"slicknav_arrow slicknav_arrow_2\">&gt;&gt;</span>";
204        var arrow_3 = "<span class = \"slicknav_arrow slicknav_arrow_3\">&gt;&gt;&gt;</span>";
205        var sep = "<span class = \"sep\">&gt;</span>";
206
207        var selected_1 = jQuery(".menu-trigger-1 .slicknav_nav .active").text();
208        jQuery(".menu-trigger-1 .slicknav_menutxt").append(selected_1);
209        var selected_2 = jQuery(".menu-trigger-2 .slicknav_nav .active").text();
210        if (selected_2.length > 0) {
211            jQuery(".menu-trigger-2 .slicknav_menutxt").empty();
212            jQuery(".menu-trigger-2 .slicknav_menutxt").append(selected_2);
213        }
214
215        var selected_3 = jQuery(".menu-trigger-3 .slicknav_nav .active").text();
216        if (selected_3.length > 0) {
217            jQuery(".menu-trigger-3 .slicknav_menutxt").empty();
218            jQuery(selected_3).appendTo(".menu-trigger-3 .slicknav_menutxt");
219            jQuery(".menu-trigger-3 .slicknav_menutxt").append(selected_3);
220        }
221    });
222});
223
224//------------------------------------------------------------------------------------
225// 	Verlinkunf der blauen Balken der Spiel-Info-Kaesten
226
227function get_domain_URL() {
228    var pathArray = window.location.href.split('/');
229    var protocol = pathArray[0];
230    var host = pathArray[2];
231    var url = protocol + '://' + host;
232    return url;
233}
234
235
236jQuery(document).ready(function () {
237
238    // Allianz-Frauen-Bundesliga
239    var link = "?id=145"
240    jQuery("#spielinfo_bl h6").wrap("<a href=\"" + link + "\"></a>");
241
242    // DFB-Pokal
243    var link = "?id=134"
244    jQuery("#spielinfo_dfb h6").wrap("<a href=\"" + link + "\"></a>");
245
246    // Champions-League
247    var link = "?id=135"
248    jQuery("#spielinfo_cl h6").wrap("<a href=\"" + link + "\"></a>");
249
250    // 2. Mannschaft
251    var link = "?id=502"
252    jQuery("#spielinfo_2ms h6").wrap("<a href=\"" + link + "\"></a>");
253
254    // 3. Mannschaft
255    var link = "?id=514"
256    jQuery("#spielinfo_3ms h6").wrap("<a href=\"" + link + "\"></a>");
257
258    // 4. Mannschaft
259    var link = "?id=532"
260    jQuery("#spielinfo_4ms h6").wrap("<a href=\"" + link + "\"></a>");
261
262    // U17 / B-Juniorinnen
263    var link = "?id=850"
264    jQuery("#spielinfo_u17 h6").wrap("<a href=\"" + link + "\"></a>");
265
266    // U16
267    var link = "?id=894"
268    jQuery("#spielinfo_u16 h6").wrap("<a href=\"" + link + "\"></a>");
269
270    // U15
271    var link = "?id=562"
272    jQuery("#spielinfo_u15 h6").wrap("<a href=\"" + link + "\"></a>");
273
274    // U13
275    var link = "?id=574"
276    jQuery("#spielinfo_u13 h6").wrap("<a href=\"" + link + "\"></a>");
277
278
279});
280
281//------------------------------------------------------------------------------------
282jQuery(document).ready(function () {
283    var is_team_list = jQuery('#content_leftmiddle  #team-list').length;
284    if (is_team_list > 0) {
285        jQuery('.footer-print').addClass('page_team_list');
286    }
287});
288
289
290jQuery(document).ready(function () {
291
292    //------------------------------------------------------------------------------------
293    //	FFC in tabellen hervorheben:
294    jQuery("#content_leftmiddle .csc-default:not('#doNotHighlightFFC') .cfcleague-matchtable td:contains('1. FFC Frankfurt')").addClass("ffc");
295    jQuery("#content_leftmiddle .csc-default:not('#doNotHighlightFFC') .cfcleague-leaguetable td:contains('1. FFC Frankfurt')").addClass("ffc");
296
297// 	 jQuery(".cfcleague-matchtable td:contains('1. FFC Frankfurt')").addClass("ffc");
298// 	 jQuery(".cfcleague-leaguetable td:contains('1. FFC Frankfurt')").addClass("ffc");
299
300
301    if (jQuery('#doNotHighlightFFC .match-team-guest').length > 0) {
302        var teamName = jQuery('#doNotHighlightFFC .match-team-home').html();
303        var teamNameBreak = teamName.replace(/\//g, "/<br />");
304        jQuery('#doNotHighlightFFC .match-team-home').html(teamNameBreak);
305    }
306
307    if (jQuery('#doNotHighlightFFC .match-team-guest').length > 0) {
308        var teamName = jQuery('#doNotHighlightFFC .match-team-guest').html();
309        var teamNameBreak = teamName.replace(/\//g, "/<br />");
310        jQuery('#doNotHighlightFFC .match-team-guest').html(teamNameBreak);
311    }
312
313    //------------------------------------------------------------------------------------
314    // Team-Umbenennung zum Jahreswechsel:
315
316    // Duisburg fuer 2013->2014 umbenennen:
317
318    jQuery(".cfcleague-matchtable tr td:contains('Duisburg')").each(function (i) {
319        year = jQuery(this).parent('tr').find('.year').text();
320        if (year < 2014) {
321            jQuery(this).html('FCR 2001 Duisburg');
322        }
323    });
324
325    // Bad Neuenahr fuer 2013->2014 umbenennen:
326    jQuery(".cfcleague-matchtable tr td:contains('Neuenahr')").each(function (i) {
327        year = jQuery(this).parent('tr').find('.year').text();
328        if (year < 2014) {
329            jQuery(this).html('SC 07 Bad Neuenahr');
330        }
331    });
332
333    //------------------------------------------------------------------------------------
334    //	DFB Gewinnermannschaft in Tabellen hervorheben
335
336    jQuery(".cfcleague-matchtable tr").each(function (i) {
337        var result = jQuery(this).find(".cfcleague-matchtable-result").text();
338
339        var result_split = result.split(':');
340        var result_home = result_split[0];
341        var result_guest = result_split[1];
342        if (jQuery.isNumeric(result_home)) {
343            if (parseInt(result_home) > parseInt(result_guest)) {
344                jQuery(this).find("td.match-team-home").addClass("win-team");
345                jQuery(this).find("td.match-team-guest").addClass("lose-team");
346            }
347            if (parseInt(result_home) < parseInt(result_guest)) {
348                jQuery(this).find("td.match-team-guest").addClass("win-team");
349                jQuery(this).find("td.match-team-homet").addClass("lose-team");
350            }
351        }
352    });
353
354    //------------------------------------------------------------------------------------
355    //	TSV Pfungstadt: zurueckgezogen waehrend Saison
356
357// 		jQuery(".cfcleague-matchtable tr td:contains('\(TSV Pfungstadt zg.\)')").each(function (i) {
358    jQuery(".cfcleague-matchtable tr td:contains('TSV Pfungstadt zg.')").each(function (i) {
359        var resultText = jQuery(this).parent('tr').find('td.cfcleague-matchtable-result').text('n. an.');
360
361    });
362
363
364});
365
366//------------------------------------------------------------------------------------
367//	Penalty in League-Tabelle anzeigen
368
369
370//------------------------------------------------------------------------------------
371// Kaderliste, Steckbrief Dezimalpunkt
372
373jQuery(document).ready(function () {
374    var height = jQuery(".cfcleague-teamview-liste td.height").each(function () {
375        var height = jQuery(this);
376        var str = height.text();
377        height.text(str.replace(/\./g, ','));
378    });
379
380    var height = jQuery("#cfcleague-profileview-steckbrief .prof_height .prof_value");
381    var str = height.text();
382    height.text(str.replace(/\./g, ','));
383});
384
385//------------------------------------------------------------------------------------
386// Kader: hover effect for team list
387
388
389jQuery(document).ready(function () {
390    var winWidth = jQuery(window).width();
391    if (winWidth > 585) {
392
393
394        var is_mozilla = (jQuery.browser.mozilla == true);
395        var cont = jQuery('#content_leftmiddle');
396        jQuery('#team-list tr.cfcleaguefe-teamview-player').each(function (i) {
397            var row = jQuery(this);
398            var img = jQuery(this).find(".player_img_cell");
399            if (jQuery(this).find(".player_img_cell .wrap img ").length > 0) {
400// 			 jQuery(this).css('cursor','pointer');
401                jQuery(this).hover(
402                    function () {
403
404// #A4BFD9
405                        if (is_mozilla) {
406                            row.css('outline', '4px solid #EDEDED')
407                        } else {
408                            row.css('background-color', '#EDEDED');
409                            row.find('td').css('border-left-color', '#EDEDED');
410                            row.find('td').css('border-right-color', '#EDEDED');
411                        }
412                        row.find('td').css('color', 'black');
413
414                        jQuery(img).animate({
415                            right: "-=137px"
416                        }, {
417                            duration: 200,
418                            specialEasing: {
419                                width: "linear",
420                                height: "easeOutBounce"
421                            },
422                            complete: function () {
423                            }
424
425                        });
426                        jQuery(this).find(".player_img_cell").css('z-index', '5');
427                    }, function () {
428
429                        if (is_mozilla) {
430                            row.css('outline', 'none')
431                        } else {
432                            row.css('background-color', '#fff');
433                            row.find('td').css('border-left-color', '#fff');
434                            row.find('td').css('border-right-color', '#fff');
435                        }
436                        row.find('td').css('color', '#6a6a6a');
437
438                        jQuery(this).find(".player_img_cell").css('z-index', '-5');
439                        jQuery(img).animate({
440                            right: "+=137px"
441                        });
442                    }
443                );
444
445
446            }
447            ;
448        });
449
450
451    }
452});
453
454//------------------------------------------------------------------------------------
455//	Tabellen-Layout fix
456jQuery(document).ready(function () {
457
458//  	jQuery('.slider-stripes img').attr('alt', 'einTest')
459
460    //	jQuery('.cfcleague-matchtable table tr:first').clone().append('.cfcleague-matchtable table tr:first');
461});
462//------------------------------------------------------------------------------------
463// wrapper auf Seiten mit Tabellen kennzeichnen (fuer Mindestbreite)):
464jQuery(document).ready(function () {
465//  	jQuery('.ym-wrapper:has(.content-table)').addClass('has_table');
466    jQuery('.ym-wrapper #content_leftmiddle').has("table").parents(".ym-wrapper").addClass('has_table');
467});
468
469//------------------------------------------------------------------------------------
470// Foto-Galerie: Fuer Liste der Bilder gemeinsamer weisser Hintergrund
471jQuery(document).ready(function () {
472    jQuery(".tx-yag-item-thumb-outerframe").parents("#photo-alben-list").css("background-color", "#fff");
473});
474
475
476//------------------------------------------------------------------------------------
477jQuery(window).load(function () {
478
479    jQuery('.news-latest-container .news-teaser, #sponsoren-slider ').animate({
480        opacity: 1.0
481    }, 100, function () {
482    });
483});
484//------------------------------------------------------------------------------------
485jQuery(document).ready(function () {
486//  jQuery('.news-single-item img').eq(0).attr("rel","image_src");
487});
488
489//------------------------------------------------------------------------------------
490
491//	Hoehenabhaengiges Abschneiden der Untertitel bei List News/Videos
492
493function resize_textfield() {
494
495    //	Textfeldhoehe unter skalierendem Bild anpassen
496    jQuery('.news_with_image').each(function (n) {
497//  		var h = jQuery(this).height() - jQuery(this).find('.news-top').height() - jQuery(this).find('.news-image').height() - 18;
498//  		var h = jQuery(this).height() - jQuery(this).find('.news-top').height() - jQuery(this).find('.news-image').height() - 22;
499        var h = jQuery(this).height() - jQuery(this).find('.news-top').height() - jQuery(this).find('.news-image').height() + 10;
500
501// 		jQuery(this).find('.news-title').css({height: h + 'px'});
502
503        jQuery(this).find('.news-title').dotdotdot({
504            after: '.news-morelink1'
505        });
506    });
507
508
509    jQuery('.news_with_image .news-title').dotdotdot({
510        after: '.news-morelink'
511    });
512
513    jQuery('.news_no_image').dotdotdot({
514        after: '.news-morelink2'
515    });
516
517    jQuery('#photo-alben-list .tx-yag-gallery-albumdescription').dotdotdot();
518
519    jQuery('.tt_news_video .news-title').dotdotdot();
520
521}
522
523
524//  jQuery(document).ready(function() {
525jQuery(window).load(function () {
526
527    //	news mit Bild auszeichnen:
528    jQuery('#content_leftmiddle .news-latest-item:not(:has(img),:has(iframe))').addClass('news_no_image');
529    jQuery('#content_leftmiddle .news-latest-item:has(img)').each(function () {
530        jQuery(this).addClass('news_with_image');
531        jQuery(this).find(".news-content").remove();
532        jQuery(this).find(".news-morelink2").remove();
533    })
534
535    //	Abstand hinter Titel, vor more-link einfuegen:
536    jQuery('.news_with_image .news-title-text').append('<span class=\"separator\">&nbsp;&nbsp;</span>');
537    jQuery('.news-partner .news-subheader').append('<span class=\"separator\">&nbsp;&nbsp;</span>');
538
539    jQuery('.news-list-container .tt_news_news').fadeIn()
540
541
542    //--------------------------------------------------------------
543//	Format fuer Links (Pfeilchen etc.)
544
545//  jQuery(document).ready(function() {
546
547    // news mit Bild auszeichnen:
548    jQuery('#content_leftmiddle .news-latest-item:not(:has(img),:has(iframe))').addClass('news_no_image');
549
550    // diese Links nicht formatieren:
551    jQuery('#news-teaser-slider a').addClass("do-not-format");
552    jQuery('#content-team-slider a').addClass("do-not-format");
553    jQuery('.tx-jfmulticontent-pi1 a').addClass("do-not-format");
554    jQuery('#teaser-bildergalerie a').addClass("do-not-format");
555    jQuery('.news-single-item .news-top a').addClass("do-not-format");
556    jQuery('.news_no_image .news-image a').addClass("do-not-format");
557    jQuery('.news-partner .news-latest-item .news-category a').addClass("do-not-format");
558    jQuery('.news-partner .news-latest-item .news-image a').addClass("do-not-format");
559    jQuery('.news-browse a').addClass("do-not-format");
560    jQuery('.cfcleague-scopeselection a').addClass("do-not-format");
561    jQuery('.tt-products a').addClass("do-not-format");
562    jQuery('#top-scorer a').addClass("do-not-format");
563    jQuery('.tx-indexedsearch a').addClass("do-not-format");
564    jQuery('#uid622 #content_leftmiddle ul>a').addClass("do-not-format");
565    jQuery('#uid830 #content_leftmiddle ul>a').addClass("do-not-format");
566    jQuery('#photo-alben-list .tx-yag-pi1 a').addClass("do-not-format");
567    jQuery('.cfcleague-teamview-players a').addClass("do-not-format");
568    jQuery('#spielinfo_bl a').addClass("do-not-format");
569    jQuery('#spielinfo_dfb a').addClass("do-not-format");
570    jQuery('#spielinfo_cl a').addClass("do-not-format");
571    jQuery('#spielinfo_2ms a').addClass("do-not-format");
572    jQuery('#spielinfo_3ms a').addClass("do-not-format");
573    jQuery('#spielinfo_4ms a').addClass("do-not-format");
574    jQuery('#spielinfo_u17 a').addClass("do-not-format");
575    jQuery('#spielinfo_u15 a').addClass("do-not-format");
576    jQuery('#spielinfo_u13 a').addClass("do-not-format");
577    jQuery('#navigation_season a').addClass("do-not-format");
578
579
580    // 	Ausnahmen von dieser blacklist:
581    jQuery('.tt-products .shop-info-trading-conditions-infotxt1>a').removeClass("do-not-format");
582    jQuery('.tt-products .shop-confirmation-ansprechpartner-text>a').removeClass("do-not-format");
583    jQuery('.tt-products .shop-list-button-detailansicht >a').removeClass("do-not-format");
584    jQuery('.tt-products .shop-single-product-beschreibung  a').removeClass("do-not-format");
585// 	jQuery('#uid817 #link-to-single-view .tt-products a').removeClass("do-not-format");
586
587    // Formatieren der Links:
588    var link_format = jQuery("#content_leftmiddle .csc-default, #content_right .csc-default, #fixed_elements_right .csc-default");
589    jQuery(link_format).delay(100).find("a:[href^=mailto]:not(.do-not-format), a:[href^=http]:not(:has(img)):not(.do-not-format), a:[href^=fileadmin]:not(.do-not-format) , a[href]:not(:has(img)):not(.do-not-format)").append('&nbsp;&gt;&gt;').addClass("link-format");
590
591//  });
592    //--------------------------------------------------------------
593
594    // 	resize
595    resize_textfield();
596    jQuery(window).resize(resize_textfield);
597
598});
599
600//--------------------------------------------------------------
601// title (tooltip) der News-Slider-Buttons setzen:
602jQuery(document).ready(function () {
603    jQuery("a.carouselprev").attr('title', 'zurück');
604    jQuery("a.carouselprev img").attr('title', 'zurück');
605    jQuery("a.carouselnext").attr('title', 'vor');
606    jQuery("a.carouselnext img").attr('title', 'vor');
607});
608
609//------------------------------------------------------------------------------------
610// leeren News-page browser entfernen:	
611
612jQuery(window).load(function () {
613    jQuery('.news-browse:empty').remove();
614});
615
616//------------------------------------------------------------------------------------
617//	Select-Boxen in Shop: Beschriftung als ersten Eintrag 
618
619//  jQuery(document).ready(function() {
620//  	jQuery(".variant_p-color_list select").prepend("<option value='' selected='selected'>FARBE  -- bitte ausw&auml;hlen ---</option>");
621//  	jQuery(".variant_p-size_list select").prepend("<option value='' selected='selected'>GR&Ouml;SSE  -- bitte ausw&auml;hlen ---</option>");
622//  	jQuery(".variant_p-flock_list select").prepend("<option value='' selected='selected'>FLOCK     -- bitte ausw&auml;hlen ---</option>");
623//  	jQuery(".variant_p-aermellaenge_list select").prepend("<option value='' selected='selected'>&Auml;RMELL&Auml;NGE  -- bitte ausw&auml;hlen ---</option>");
624//  	jQuery(".variant_p-platz_list select").prepend("<option value='' selected='selected'>PLATZ  -- bitte ausw&auml;hlen ---</option>");
625//  	jQuery(".variant_p-preis_list select").prepend("<option value='' selected='selected'>PREIS  -- bitte ausw&auml;hlen ---</option>");
626//  });
627
628//------------------------------------------------------------------------------------
629//	Ticket Shop: Tabelle mit Spielen:
630
631jQuery(document).ready(function () {
632
633
634// 	var footnoteTextList = "Achtung! Spielverlegung geplant.";
635    var footnoteTextList = "Bitte beachten: Der offene Ticket-Verkauf startet auf dieser Seite nach Ende der Rückmeldefrist für Dauerkarteninhaber ab Mittwoch den 13. April 2016. Wir bitten daher noch um ein wenig Geduld";
636
637
638    // 	Ticket Liste mit Spielen:
639
640    jQuery('.shop-list.ticket .shop-list-product-information table').siblings().remove();
641
642    jQuery('.shop-list.ticket .shop-list-product-information table tr').each(function () {
643        jQuery(this).find('td').eq(4).after("<td><img src=\"fileadmin/templates/images/icons_neu/ticket-xxl.png\" title=\"Ticket(s) kaufen\"></td>");
644        jQuery(this).find('td').eq(2).before("<td class=\"datecode\"></td>");
645    });
646
647    // Links in Tabellenzellen uebertragen
648    jQuery('.shop-list.ticket form .shop-list-product-information>a').each(function () {
649        href = jQuery(this).attr('href');
650        jQuery(this).find('td:last').wrapInner('<a href>', '</a>');
651        jQuery(this).find('td a').attr('href', href);
652    });
653    jQuery('.shop-list.ticket form .shop-list-product-information a table').unwrap();
654
655    //	Tabelle zusammenfuegen, header einfuegen
656    var firsttable = jQuery('.shop-list.ticket .contenttable').first();
657
658    firsttable.find('tr').first().before('<tr><th class="liga">Wettbewerb</th><th class="spieltag">Spieltag</th><th class="datecode"></th><th class="date"">Datum</th><th class="time">Uhrzeit</th><th class="guest">Gegner</th><th class="tickets">Tickets</th></tr>');
659    var lastrow = firsttable.find('tr:last');
660    jQuery('.shop-list.ticket .contenttable:not(:first)').each(function () {
661        lastrow.after(jQuery(this).find('tr'));
662    });
663
664    // Dummy-Eintrag: Spiel in Liste, das nicht verlinkt wird:
665// 		lastrow.after('<tr><td>UWCL</td><td>1/2-Final-Rückspiel</td><td class="datecode"></td><td>01.05.2016</td><td>15.15</td><td>VfL Wolfsburg</td><td>
665<span class="anotation"><img src="fileadmin/templates/images/icons_neu/ticket-xxl.png" title="Ticket(s) kaufen"><span class="toFootnote">*</span></span></td></tr>');
666
667
668    jQuery('.shop-list.ticket form:not(:first)').remove();
669
670    // Spalte mit date tag zur sortierung anlegen:
671    jQuery('.shop-list.ticket .shop-list-product-information table tr').each(function () {
672        var dateString = jQuery(this).find('td').eq(3).text().split('.');
673        jQuery(this).find('td').eq(2).append(dateString[2] + dateString[1] + dateString[0]);
674    })
675    jQuery('.shop-list.ticket .shop-list-product-information table tr').tinysort('td:eq(2)');
676
677    // css fuer Tabelle nachholen:
678    firsttable.find('tr').eq(1).find('td').css('border-right', 'transparent 0px solid');
679    firsttable.find('tr').eq(1).find('td:not(:first)').css('padding-left', '5px');
680
681    // ticket list: Bemerkung / Fussnote zu einzelnen Spielen
682    firsttable.find('tr').each(function () {
683
684        var spielTagCell = jQuery(this).find('td').eq(1);
685        var spielDatumCell = jQuery(this).find('td').eq(3);
686        var spielTicketCell = jQuery(this).find('td').eq(6);
687        var spielTagStrg = spielTagCell.text();
688        var spielDatumStrg = spielDatumCell.text();
689
690        // Ticket mit ID: kein Link auf Einzelansicht, statt dessen Fussnote
691        if (spielTicketCell.find("a").length > 0) {
692            var spielID = parseInt(spielTicketCell.find("a").attr("href").split("tt_products%5Bproduct%5D=")[1]);
693// 			if ((spielTagStrg == '19' && spielDatumStrg=='24.04.2016') || (spielTagStrg == '20' && spielDatumStrg=='01.05.2016')) {
694            if (spielID == -999) {
695// 				spielDatumCell.append('<span class="toFootnote">*</span>').wrapInner('<span class="anotation"></span>');
696                spielTicketCell.find("a img").unwrap();
697                spielTicketCell.append('<span class="toFootnote">*</span>').wrapInner('<span class="anotation"></span>');
698                if (jQuery(".shop-list.ticket .footnote").length == 0) {
699                    jQuery('.shop-list.ticket form').after("<div class='footnote'><span class='toFootnote'>*</span><span>" + footnoteTextList + "</span></div>")
700                }
701            }
702        }
703    })
704    // Fussnote, hier ausblenden wenn nicht mehr gebraucht:
705// 		jQuery('.shop-list.ticket form').after("<div class='footnote'><span class='toFootnote'>*</span><span>"+footnoteTextList+"</span></div>")
706
707	// bind GET alert to click event
708    $this = jQuery('.shop-list.ticket form[name="ShopListForm1"] a[href$="tt_products%5Bproduct%5D=121"]');
709    $this.on('click', function(ev) {
710        alert("Eintrittskarten für das FFC-Heimspiel am 16. August gegen den 1. FFC Turbine Potsdam sind am Veranstaltungstag ab 16.30 Uhr vor Ort an der Tageskasse zu erwerben.");
711		console.log('checkID');
712        ev.preventDefault();
713        return false;
714        console.log('stop');
715	});
716
717
718    function GetHrefParameter(sParam) {
719        var sPageURL = window.location.search.substring(1);
720        var sURLVariables = sPageURL.split('&');
721        for (var i = 0; i < sURLVariables.length; i++) {
722            var sParameterName = sURLVariables[i].split('=');
723            if (sParameterName[0] == sParam) {
724                return sParameterName[1];
725            }
726        }
727    }
728
729
730
731});
732
733
734jQuery(document).ready(function () {
735    // ................................
736    // 		Ticket Einzelansicht:
737    // Tabelle invertieren:
738    jQuery('.shop-single.ticket .shop-single-product-beschreibung table').each(function () {
739        var table = jQuery(this);
740        var newrows = [];
741        table.find("tr").each(function () {
742            var i = 0;
743            jQuery(this).find("td").each(function () {
744                i++;
745                if (newrows[i] === undefined) {
746                    newrows[i] = jQuery("<tr></tr>");
747                }
748                newrows[i].append(jQuery(this));
749            });
750        });
751        table.find("tr").remove();
752        jQuery.each(newrows, function () {
753            table.append(this);
754        });
755
756        // zusaetzliche Spalte:
757        table.find("tr").eq(0).find("td").before('<td>Liga:</td>');
758        table.find("tr").eq(1).find("td").before('<td>Spieltag:</td>');
759        table.find("tr").eq(2).find("td").before('<td>Datum:</td>');
760        table.find("tr").eq(3).find("td").before('<td>Uhrzeit:</td>');
761        table.find("tr").eq(4).find("td").before('<td>Gastmannschaft:</td>');
762
763        // ticket single: Bemerkung / Fussnote zu einzelnen Spielen
764        var spielTagCell = table.find("tr").eq(1).find("td").eq(1);
765        var spielDatumCell = table.find("tr").eq(2).find("td").eq(1);
766        var spielTagStrg = spielTagCell.text();
767        var spielDatumStrg = spielDatumCell.text();
768        if ((spielTagStrg == '19' && spielDatumStrg == '24.04.2016') || spielTagStrg == '20' && spielDatumStrg == '01.05.2016') {
769            spielDatumCell.append('<span class="toFootnote">*</span>').wrapInner('<span class="anotation"></span>')
770            jQuery('.shop-single.ticket .shop-single-product-beschreibung').after("<div class='footnote'><span class='toFootnote'>*</span><span>Achtung! Spielverlegung geplant.</span></div>")
771        }
772        ;
773
774
775    })
776});
777
778
779//------------------------------------------------------------------------------------
780//	Shop: submit confirmation fuer Trikots/Shirts:
781
782jQuery(document).ready(function () {
783
784    if (jQuery(".tt-products .shop-single form[name='item_144']").length > 0) {
785        jQuery(this).find(".price-note").text("inkl. gesetzl. MwSt.");
786    }
787});
788//------------------------------------------------------------------------------------
789//	Shop: Hinweise / Elemente fuer Shop-Einzel-Ansicht
790
791jQuery(document).ready(function () {
792
793    if (jQuery(".tt-products .shop-single").length > 0) {
794
795        var catID = GetURLParameter("tt_products%5Bcat%5D");
796        var productID = GetURLParameter("tt_products%5Bproduct%5D");
797
798        //----------------------------------------------
799        // Trikots Product IDs:
800        // 		Trikot 14/15				productID==80
801        // 		Trikot Torwart 14/15		productID==91
802        // 		Trikot Kids 14/15			productID==95
803        // 		Trikot 15/16				productID==141
804        // 		Trikot Kids 15/16			productID==153
805        //			CD								productID==158
806        // 		Trikot 16/17						productID=162
807        // 		Trikot Kids 16/17					productID=165
808        // 		Trikot Torwart 16/17				productID=164
809        // 		Trikot Torwart Kids 16/17		productID=166
810        //
811        //			T-Shirt						productID=89
812        //----------------------------------------------
813
814        // Lieferhinweise alle Trikots:
815        if (productID == 162 || productID == 165 || productID == 164 || productID == 166) {
816            // Trikots:
817            jQuery("input.shop-single-submit").click(function () {
818// 				return confirm("Wegen Liefer-Engpässen beim Hersteller ist eine Lieferung nur noch im neuen Jahr und daher nicht mehr zu Weihnachten möglich.");
819// 				return confirm("Eine rechtzeitige Zustellung zu Weihnachten kann nicht gewährleistet werden");
820// 					return confirm("Eine rechtzeitige Zustellung vor Weihnachten ist leider nicht mehr möglich.");
821            })
822        } else {
823            // alle Produkte ausser Trikots:
824// 				jQuery("input.shop-single-submit").click(function(){
825// 					return confirm("Um eine rechtzeitige Weihnachtslieferung zu gewährleisten ist ein Geldeingang bis spätestens kommenden Mittwoch, den 21.12.2016  notwendig.");
826// 					return confirm("Liebe Kunden, bitte beachten Sie, dass sich aufgrund von Krankheit die Bestellbearbeitung ca. 10 - 13 Tage verzögert. Wir hoffen auf Ihr wertes Verständnis");
827// 				})
828        }
829
830        // Groessentabelle anbringen:
831        if (productID == 80 || productID == 91 || productID == 95 || productID == 141) {
832            jQuery(".size-table, .size-table-pdf").addClass("showMe");
833            jQuery(".size-table img:visible").tooltip({content: "<img src='fileadmin/user_upload/Dokumente/Groessentabelle_780x560.png' title='Groessentabelle' />"});
834        }
835
836
837        // Lieferhinweise nur aktuelle Trikots:
838        if (productID == 141 || productID == 153) {
839            // Trikots:
840            jQuery("input.shop-single-submit").click(function (e) {
841// 					return confirm("Aufgrund von Lieferengpässen beim Ausrüster adidas ist dieser Artikel leider nicht mehr lieferbar");
842                var answer = confirm("Aufgrund von Lieferengpässen beim Ausrüster adidas ist dieser Artikel leider nicht mehr lieferbar");
843                e.preventDefault();
844                // 				return confirm("Wegen Liefer-Engpässen beim Hersteller ist eine Lieferung nur noch im neuen Jahr und daher nicht mehr zu Weihnachten möglich.");
845                //   				return confirm("Die Lieferzeit dieses Artikels beträgt 4-8 Wochen. Eine Zustellung vor Weihnachten kann daher nicht garantiert werden.");
846            })
847        }
848
849        // CD: append mp3 player and link to band:
850        if (productID == 158) {
851            console.log("CD");
852            jQuery(".shop-single-product-img").append("<div class='HTMLplayer'><div class='title'>Hörprobe:</div><audio controls><source src='fileadmin/user_upload/Shop/Hoerprobe_FFC-Lied.mp3' type='audio/mpeg'>Ihr Browser unterstützt leider nicht dieses Audio-Element.</audio></div>");
853        }
854
855
856    }
857
858    if (jQuery(".tt-products .shop-list").length > 0) {
859        var catID = GetURLParameter("tt_products%5Bcat%5D");
860        if (catID == 15) {
861            jQuery(".shop-list .shop-list-item").each(function () {
862                var thisItem = jQuery(this);
863                var productID = thisItem.find(".productID").text();
864                productID_new = productID.split("-")[3];
865                if (productID_new == 141 || productID_new == 153) {
866                    var infoText = "<div class='innerWrap'>Aufgrund von Lieferengpässen beim Ausrüster adidas ist dieser Artikel leider nicht mehr lieferbar</div>";
867                    thisItem.find(".addInfo").html(infoText);
868                }
869            })
870        }
871    }
872
873
874});
875//------------------------------------------------------------------------------------
876//	Shop: Sold out:
877
878jQuery(document).ready(function () {
879    var numArticles = jQuery(".stock-number").text();
880    if (numArticles == 0) {
881        jQuery("#orderDetails").addClass("hideNotInStock");
882        jQuery("#notInStockMessage").html("<div class='messageText test'>Dieser Artikel ist leider nicht mehr lieferbar.</div>");
883    }
884});
885
886//------------------------------------------------------------------------------------
887//	Shop: Sale - Preise
888
889jQuery(document).ready(function () {
890
891    jQuery(".tt-products .old_price").each(function () {
892
893        var old_price_str = jQuery(this).find('.val').text();
894        var old_price_flt = parseFloat(old_price_str);
895        if (old_price_flt > 0.0) {
896            jQuery(this).css("display", "inline-block");
897            var item = jQuery(this).parents(".shop-list-item, .shop-single");
898            jQuery(item).addClass("sale").find(".sale-icon");
899            jQuery(item).find(".sale-icon").css("display", "block");
900        }
901    })
902});
903//------------------------------------------------------------------------------------
904//	Shop: Neuheiten
905
906function GetURLParameter(sParam) {
907    var sPageURL = window.location.search.substring(1);
908    var sURLVariables = sPageURL.split('&');
909    for (var i = 0; i < sURLVariables.length; i++) {
910        var sParameterName = sURLVariables[i].split('=');
911        if (sParameterName[0] == sParam) {
912            return sParameterName[1];
913        }
914    }
915}
916
917jQuery(document).ready(function () {
918
919    // Umleiten von Kategorien-Seite:
920    jQuery("#uid726 .tt-products .cat-list a[href*='tt_products%5Bcat%5D=25']").attr('href', 'index.php?id=829');
921
922    if (jQuery(".tt-products .shop-list-item, .tt-products .shop-single").length > 0) {
923        var cat = GetURLParameter("tt_products%5Bcat%5D");
924        if (cat == 25 || jQuery("#uid829").length > 0) {
925            jQuery(" .shop-list-item .new-icon").css("display", "block");
926            jQuery(" .shop-single .new-icon").css("display", "inline-block");
927        }
928    }
929});
930
931//------------------------------------------------------------------------------------
932//	Shop: Paypal
933
934jQuery(document).ready(function () {
935
936
937    if (jQuery(".tt-products .paypalSubmit").length > 0) {
938        paypalForm = jQuery("form.paypalForm");
939        jQuery("form#paymentForm").before(paypalForm);
940        jQuery(".tt-products #paymentForm").addClass("withPaypal");
941        finalize = GetURLParameter("products_finalize");
942        if (finalize != 1) {
943            jQuery(".tt-products #paymentForm input.submit_finalize").addClass("hideMe");
944        } else {
945
946        }
947    }
948});
949
950
951//------------------------------------------------------------------------------------
952// Shop: Spieltagsangebot
953jQuery(document).ready(function () {
954
955    // Weiterleitungs-Buttons hinter Text platzieren:
956    jQuery('#sp-angebot-main  .tt-products .shop-list .shop-list-button-detailansicht').appendTo('#sp-angebot-main');
957
958    // Linktext uebernehmen, ggf. mehrere Paragraphen hintereinander
959    jQuery('#spieltagsangebot-linktext p').each(function (i) {
960        var text = jQuery(this).text();
961        jQuery('#sp-angebot-main .shop-list-button-detailansicht a').eq(i).text(text);
962    })
963
964    // Weiterleitung bei Klick auf Bild deaktivieren:
965    jQuery('#sp-angebot-main .shop-list-product-img a').click(function (event) {
966        event.preventDefault();
967    });
968
969
970    // Links im Teaser
971    var href = jQuery('#sp-angebot-teaser .csc-default p a').attr('href');
972    jQuery('#sp-angebot-teaser .tt-products .shop-list a').attr('href', href);
973
974    // speziell fuer sandbox shop:
975    //	 cat-ID  -> Specials etc.
976    jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=46']").attr('href', 'index.php?id=943');
977    //	 cat-ID  -> Spieltagsangebot
978    jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=24']").attr('href', 'index.php?id=950');
979    // sale:
980    jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=39']").attr('href', 'index.php?id=947');
981
982
983});
984
985//------------------------------------------------------------------------------------
986//	Shop Suche Einzel: Link zurueck auf Such-Ergebnisse / Sale-Liste:
987
988jQuery(document).ready(function () {
989    var href = jQuery("#uid297 .shop-single-backtolist a");
990    if (href.length > 0) {
991        var href_str = jQuery("#uid297 .shop-single-backtolist a").attr("href").split('/');
992        // Such-Liste:
993        if (jQuery.inArray("suche", href_str) > -1) {
994            jQuery("#uid297 .shop-single-backtolist a").html("&lt;&lt;&nbsp;Zur&uuml;ck zu den Suchergebnissen");
995        }
996        // Sale-Liste:
997        if (jQuery.inArray("sale-liste.html", href_str) > -1) {
998            jQuery("#uid297 .shop-single-backtolist a").html("&lt;&lt;&nbsp;Zur&uuml;ck zu den Angeboten");
999        }
1000    }
1001});
1002
1003//------------------------------------------------------------------------------------
1004//	Shop Einzel-Ansicht: Versandkostenhinweis ändern für ausgewählte versandkostenfreie Artikel
1005
1006jQuery(document).ready(function () {
1007    //jQuery('.shipping_cost_tt-products-single-176').addClass('hideShippingCostNote');
1008    jQuery('.shipping_cost_tt-products-single-176').html('inkl. Versandkosten');
1009});
1010//------------------------------------------------------------------------------------
1011//	Shop: "ab"-Preise bei ausgewählten Artikeln
1012
1013jQuery(document).ready(function () {
1014
1015    var ab_preise = [];
1016    ab_preise.push(54);		// Bembel
1017    ab_preise.push(41);		// Aufkleber skyline
1018    ab_preise.push(37);		// wimpel erfolge
1019    ab_preise.push(108);		// geschenkgutschein
1020    ab_preise.push(152);		// mannschaftsposter 2015/2016 unsigniert
1021    ab_preise.push(134);		// mannschaftsposter 2014/2015
1022
1023
1024    if (jQuery(".tt-products .shop-list .shop-list-product-information .shop-list-product-title a").length > 0) {
1025        jQuery(".tt-products .shop-list .shop-list-product-information").each(function () {
1026            var uid = parseInt(jQuery(this).find(".shop-list-product-title a").attr("href").split("tt_products%5Bproduct%5D=")[1]);
1027            var is_ab_preis = (jQuery.inArray(uid, ab_preise) > -1);
1028            if (is_ab_preis) {
1029                var text_currency = jQuery(this).find(".shop-list-price-numbers").html();
1030                var new_text = "ab " + text_currency;
1031                jQuery(this).find(".shop-list-price-numbers").html(new_text);
1032            }
1033        })
1034    }
1035});
1036
1037//------------------------------------------------------------------------------------
1038//	Shop: Link auf Unterkategorie-Seite "Special & Aktionen", auf Liste "Sale"
1039
1040jQuery(document).ready(function () {
1041    //	 cat-ID 18 -> Special und Aktionen
1042    jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=18']").attr('href', 'index.php?id=726');
1043    jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=23']").attr('href', 'index.php?id=818');
1044// 	jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=25']").attr('href', 'index.php?id=829');
1045
1046
1047    // Titel auf Sale-Listen-Seite aendern:
1048    jQuery("#uid818 .shop-list-category-title").eq(0).text("Angebote");
1049    jQuery("#uid818 .shop-list-category-title:not(:first)").remove();
1050
1051    // Titel auf Sale-Listen-Seite aendern:
1052    jQuery("#uid829 .shop-list-category-title").eq(0).text("Neuheiten");
1053    jQuery("#uid829 .shop-list-category-title:not(:first)").remove();
1054
1055    //---------------------------------------------------------------------------------
1056    // Zum Schulanfang:
1057
1058    // Umleiten von Kategorien-Seite:
1059    jQuery("#uid726 .tt-products .cat-list a[href*='tt_products%5Bcat%5D=33']").attr('href', 'index.php?id=821');
1060    // Titel auf "Zum Schulanfang"-Seite aendern:
1061    jQuery("#uid821 .shop-list-category-title").eq(0).text("Zum Schulanfang");
1062    jQuery("#uid821 .shop-list-category-title:not(:first)").remove();
1063    // backlink:
1064    jQuery("#uid821 .shop-list-backtooverview a").text("<< Zurück zu Specials & Aktionen");
1065    jQuery("#uid821 .shop-list-backtooverview a").attr('href', 'index.php?id=726');
1066});
1067
1068
1069//---------------------------------------------------------------------------------
1070
1071
1072//------------------------------------------------------------------------------------
1073//	Shop: Link direkt von Kategorie auf Single (wenn nur ein Produkt in Kategorie)
1074
1075jQuery(document).ready(function () {
1076
1077    //	 Shirts: cat-ID 15 -> article-ID 72
1078//  	jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=15']").attr('href', 'http://ffc-frankfurt.de.www204.your-server.de/ffc/fans/fanshop/artikel/artikel-einzel?tt_products%5Bcat%5D=15&tt_products%5Bproduct%5D=72');
1079
1080    // Autogramme: cat-ID 17 -> article-ID 64
1081//  	jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=17']").attr('href', 'http://ffc-frankfurt.de.www204.your-server.de/ffc/fans/fanshop/artikel/artikel-einzel?tt_products%5Bcat%5D=17&tt_products%5Bproduct%5D=64');
1082
1083    // Bälle: cat-ID 18 -> article-ID 71
1084//  	jQuery(".tt-products .cat-list a[href*='tt_products%5Bcat%5D=18']").attr('href', 'http://ffc-frankfurt.de.www204.your-server.de/ffc/fans/fanshop/artikel/artikel-einzel?tt_products%5Bcat%5D=18&tt_products%5Bproduct%5D=71');
1085
1086});
1087
1088//------------------------------------------------------------------------------------
1089//	Shop: Thumbnails bei >1 Bildern
1090/*
1091jQuery(document).ready(function() {
1092	
1093	var n_img = jQuery(".tt-products .shop-single #zoom a").length;
1094	var tn = jQuery(".tt-products .shop-single #thumbnails");
1095
1096	
1097	
1098	if (n_img > 1 ) {
1099		var first_img = jQuery(".tt-products .shop-single #zoom a:first").clone(true);
1100		jQuery(".tt-products .shop-single #zoom a:not(:first)").each(function(i){
1101			jQuery(this).appendTo(tn).wrap("<div class=\"tn-wrap\"></div>");
1102		});
1103		first_img.prependTo(tn).wrap("<div class=\"tn-wrap\"></div>");
1104		jQuery(".tt-products .shop-single #thumbnails .zoomImg").remove();
1105
1106// 		var zoom_width = jQuery("#zoom").width();
1107	}
1108	
1109	jQuery(".tt-products .shop-single #zoom a").zoom({duration:600});
1110	jQuery(".tt-products .shop-single .tn-wrap a").eq(0).removeClass("lightbox").removeAttr("data-fancybox-group");
1111
1112	jQuery(".tt-products .shop-single .tn-wrap").click(function(e){
1113		jQuery(".tt-products .shop-single .tn-wrap a").addClass("lightbox");
1114		jQuery(".tt-products .shop-single .tn-wrap a").attr("data-fancybox-group","gallery");
1115		target = jQuery(".tt-products .shop-single #zoom");
1116		target.find("a").remove();
1117		clicked = jQuery(this).find("a").clone(true);
1118		clicked.prependTo(target);
1119		jQuery(this).find("a").removeClass("lightbox").removeAttr("data-fancybox-group");
1120		jQuery(".tt-products .shop-single #zoom a").zoom({duration:600})
1121	})
1122
1123});
1124
1125*/
1126
1127
1128//------------------------------------------------------------------------------------
1129// hover effect for news slider navigation
1130
1131/*
1132jQuery(document).ready(function() {
1133	jQuery('#news-teaser-slider .carouselContainer').hover(
1134	function() {
1135// 		jQuery('#news-teaser-slider .carouselbuttons').fadeIn();
1136		jQuery('#news-teaser-slider .carouselbuttons').fadeIn();
1137		jQuery('#news-teaser-slider .carouselbuttons .pagination').fadeIn();
1138	},
1139	function() {
1140// 		jQuery('#news-teaser-slider .carouselbuttons').fadeOut();
1141		jQuery('#news-teaser-slider .carouselbuttons').fadeOut();
1142		jQuery('#news-teaser-slider .carouselbuttons .pagination').fadeOut();
1143	})
1144});
1145*/
1146//------------------------------------------------------------------------------------
1147//	wrap shop items in rows of three
1148
1149//  jQuery(window).load(function() {
1150jQuery(document).ready(function () {
1151
1152    var divs = jQuery("#tt-products-list-936 form, #tt-products-listoffers-1863 form,  #tt-products-list-1873 form,  #tt-products-listhighlights-1912 form");
1153    for (var i = 0; i < divs.length; i += 3) {
1154        divs.slice(i, i + 3).wrapAll("<div class='shop-list-row'></div>");
1155    }
1156});
1157
1158//------------------------------------------------------------------------------------
1159//	Shop List: Ueberschriftenfelder gleich hoch in jeder Reihe
1160//---------------------
1161//	Methode 1:
1162
1163jQuery.fn.equalizeHeights = function () {
1164    var maxHeight = this.map(function (i, e) {
1165        return jQuery(e).height();
1166    }).get();
1167
1168    return this.height(Math.max.apply(this, maxHeight));
1169};
1170
1171
1172jQuery(window).load(function () {
1173    //  	 jQuery(document).ready(function() {
1174    jQuery('.shop-list-row').each(function (n) {
1175        //	nicht aktiv:
1176        //  		jQuery(this).find('.shop-list-product-information h3').equalizeHeights();
1177    });
1178});
1179
1180
1181//---------------------
1182//	Methode 2:
1183
1184
1185jQuery(window).load(function () {
1186    // 	 jQuery(document).ready(function() {
1187
1188    jQuery(".shop-list-row").each(function (n) {
1189        var maxHeight = -10;
1190        jQuery(this).find('.shop-list-product-information h3').each(function (m) {
1191            if (jQuery(this).height() > maxHeight) {
1192                maxHeight = jQuery(this).height();
1193            }
1194            ;
1195            jQuery(this).addClass(function () {
1196                return "column" + m;
1197            });
1198        });
1199        //	nicht aktiv:
1200        //	jQuery('.shop-list-product-information h3').height(maxHeight);
1201
1202    });
1203});
1204
1205//------------------------------------------------------------------------------------
1206
1207//	link wrap um Image in Warenkorb entfernen:
1208jQuery(document).ready(function () {
1209    jQuery(".shop-basket-product-table-cell a:has(img)").each(function () {
1210        jQuery(this).replaceWith(jQuery(this).children());
1211    });
1212});
1213//------------------------------------------------------------------------------------
1214
1215//	link wrap um Image in Warenkorb entfernen:
1216jQuery(document).ready(function () {
1217    jQuery("#uid320 .powermail_fieldwrap_submit").prepend("<label for=\"powermail_field_submit\" class=\"powermail_submit_label\">Absenden</label>")
1218});
1219
1220
1221//------------------------------------------------------------------------------------
1222//	Dummy-Zeilen fuer Tabellen-Layout einfuegen: 	
1223
1224function add_dummy_rows(table_element) {
1225    jQuery(table_element).each(function (n) {
1226        dummyrow1 = jQuery(this).find("tr:has(td)").eq(0).clone().addClass("dummy-tr-top");
1227        dummyrow2 = jQuery(dummyrow1).clone().addClass("dummy-tr-bot");
1228        jQuery(this).find('tbody tr:has(td):first').after(dummyrow1);
1229        jQuery(this).find('tbody tr:last').after(dummyrow2);
1230        jQuery(this).find("tr.dummy-tr-top td").empty();
1231        jQuery(this).find("tr.dummy-tr-bot td").empty();
1232    });
1233}
1234
1235jQuery(document).ready(function () {
1236    add_dummy_rows(".cfcleague-teamview-players table");
1237    add_dummy_rows(".cfcleague-leaguetable table");
1238    add_dummy_rows("table.cfcleague-matchtable");
1239    add_dummy_rows("table.contenttable");
1240});
1241
1242
1243//------------------------------------------------------------------------------------
1244
1245jQuery(document).ready(function () {
1246    function DoubleScroll(element) {
1247        var scrollbar = document.createElement('div');
1248        scrollbar.appendChild(document.createElement('div'));
1249        scrollbar.style.overflow = 'auto';
1250        scrollbar.style.overflowY = 'hidden';
1251        scrollbar.style.width = '150px';
1252        scrollbar.firstChild.style.width = element.scrollWidth + 'px';
1253        scrollbar.firstChild.style.paddingTop = '1px';
1254        scrollbar.firstChild.appendChild(document.createTextNode('\xA0'));
1255        scrollbar.onscroll = function () {
1256            $
1257            element.scrollLeft = scrollbar.scrollLeft;
1258        };
1259        element.onscroll = function () {
1260            scrollbar.scrollLeft = element.scrollLeft;
1261        };
1262        element.parentNode.insertBefore(scrollbar, element);
1263    }
1264
1265    //DoubleScroll(document.getElementById('doublescroll'));
1266    //DoubleScroll(document.getElementById('#content_leftmiddle .content-table .csc-default'));
1267});
1268
1269//------------------------------------------------------------------------------------
1270
1271jQuery(document).ready(function () {
1272    jQuery(window).resize(function () {
1273        jQuery('.tx-jfmulticontent-pi1').css("width", "100%");
1274    });
1275});
1276
1277//------------------------------------------------------------------------------------
1278// Hauptmenue JS: hover-menue
1279
1280jQuery(document).ready(function () {
1281
1282    function toggle_hover_menu() {
1283        var winWidth = jQuery(window).width();
1284        if (winWidth > 585) {
1285            jQuery(".li1").mouseenter(function (e) {
1286                var this_ = jQuery(this);
1287                var active = this_.find("a.active");
1288                if (jQuery(active).length > 0) {
1289                } else {
1290                    jQuery(".subnav .subhover").remove();
1291                    var submenue = this_.find(".subhover").clone();
1292                    this_.addClass("hover");
1293                    jQuery(".subklicked").hide();
1294                    jQuery(".subnav").append(submenue);
1295                    jQuery(".subnav .subhover").show();
1296
1297// console.log("html: "+jQuery(".subnav").parent().html());		
1298
1299
1300                }
1301            });
1302            jQuery(".li1").mouseleave(function (e) {
1303                var this_ = jQuery(this);
1304                var active = this_.find("a.active");
1305                var bottom = this_.offset().top + this_.outerHeight();
1306                if (e.pageY >= bottom) {
1307                } else {
1308                    jQuery(".subklicked").show();
1309                    jQuery(".subnav .subhover").remove();
1310                }
1311            });
1312            jQuery(".subnav").mouseleave(function () {
1313                jQuery(".subklicked").show();
1314                jQuery(".subnav .subhover").remove();
1315            });
1316        } else {
1317// 					jQuery('#navigation_2 .menu .subhover').remove();
1318
1319
1320            jQuery(".li1").unbind("mouseenter");
1321            jQuery(".li1").unbind("mouseleave");
1322            jQuery(".subnav").unbind("mouseleave");
1323        }
1324    }
1325
1326    toggle_hover_menu();
1327    jQuery(window).resize(toggle_hover_menu);
1328
1329});
1330
1331
1332//---------------------------------------------

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.