PageSourceSearch

https://www.xpress-fitness.at/fileadmin/templates/js/init_fm.1522160400.js

js xpress-fitness.at collected 2026-10-05 18:35:14 UTC 35,841 bytes, 849 lines download raw bytes

1$(window).load(function(){
2"use strict";
3
4// GET Company Data
5var companyid = master_company_id; // ID
6var dataobject = 'adress'; // Object
7var showurl = 1; // URL anzeigen?
8if ($( ".fm_roomtimes" ).length != 0) {var roomid = $(".fm_roomtimes").data('roomid');} else {var roomid = '';}
9if ($( ".fm_servicetimes" ).length != 0) {var serviceid = $(".fm_servicetimes").data('serviceid');} else {var serviceid = '';}
10if ($( ".fm_upnextbox" ).length != 0) {var upnextlimit = $(".fm_upnextbox").data('upnextlimit');} else {var upnextlimit = '';}
11
12jQuery.ajax({
13  type:"POST",
14  dataType: 'json',
15  data: {companyid:companyid,dataobject:dataobject,showurl:showurl,roomid:roomid,serviceid:serviceid,upnextlimit:upnextlimit}, 
16  url: "https://www.fitmachen.com/api/api_get_companydata.php",
17  cache: false,
18  success: function(response){
19    // multiple
20    if ($( ".fm_adressbox" ).length != 0) {$(".fm_adressbox").html(response.adresse);}
21    if ($( ".fm_phone" ).length != 0) {$(".fm_phone").html(response.telefon);}
22    if ($( ".fm_mapbox" ).length != 0) {$('.fm_mapbox').html(response.map);}
23    if ($( ".fm_timebox" ).length != 0) {$('.fm_timebox').html(response.timebox);}
24    if ($( ".fm_roomtimes" ).length != 0) {$('.fm_roomtimes').html(response.roomstimes);}
25    if ($( ".fm_servicetimes" ).length != 0) {$('.fm_servicetimes').html(response.servicetimes);}
26    if ($( ".fm_upnextbox" ).length != 0) {$('.fm_upnextbox').html(response.upnext);}
27    if ($( ".fm_runningbox" ).length != 0) {$('.fm_runningbox').html(response.running);}
28    if ($( ".fm_todaybox" ).length != 0) {$('.fm_todaybox').html(response.today);}
29    if ($( ".fm_nextcourse" ).length != 0) {$('.fm_nextcourse').html(response.nextcourse);}
30    if ($( ".fm_todaytimes" ).length != 0) {$('.fm_todaytimes').html(response.todaytimes);}
31    if ($( ".fm_socialmedia_icons" ).length != 0) {$('.fm_socialmedia_icons').html(response.socialmediaicons);}
32       if ($( ".fm_socialmedia_text" ).length != 0) {$('.fm_socialmedia_text').html(response.socialmedialist);}
33    // init stuff?
34  }
35}); // ENDE
36
37
38
39// GET Formular
40if ($( ".fm_formbox" ).length != 0) {
41  // GET OBJECT
42  var companyid = master_company_id; // ID
43  var formularid = 1; // Formular id
44  jQuery.ajax({
45   type:"POST",
46   data: {companyid:companyid,formularid:formularid}, 
47   url: "https://www.fitmachen.com/api/api_getform.php",
48   cache: false,
49   success: function(response){
50    $('.fm_formbox').html(response);
51    // init stuff?
52    }
53   });  
54  // ENDE
55} // if length
56
57
58
59
60// GET Team
61// GET TEAM
62if ($( ".fm_team" ).length != 0) {
63  var companyid = master_company_id; // ID
64  var datacat = team_cat_id; // ID
65  //var teamcatid = '41,42'; // ID
66  //var datacat = ''; // Category IDs (Komma)  
67  jQuery.ajax({
68    type:"POST",
69    dataType: 'json',
70    data: {companyid:companyid,datacat:datacat}, 
71    url: "https://www.fitmachen.com/api/api_get_companyteam.php",
72    cache: false,
73    success: function(response){
74      $(".fm_team").html(response.team);
75    }
76  }); // ENDE
77}
78
79
80
81if ($( ".fm_formbox_probe" ).length != 0) {
82  // GET OBJECT
83  var companyid = master_company_id; // ID
84  var formularid = probe_formular_id; // ID
85  //var formularid = 4; // Formular id
86  jQuery.ajax({
87   type:"POST",
88   data: {companyid:companyid,formularid:formularid}, 
89   url: "https://www.fitmachen.com/api/api_getform.php",
90   cache: false,
91   success: function(response){
92    $('.fm_formbox_probe').html(response);
93    // init stuff?
94    }
95   });  
96  // ENDE
97} // if length
98
99
100//KUrsübersicht
101if ($( ".fm_sheduleoverview" ).length != 0) {
102  var toolUrl = 'https://www.fitmachen.com/api/api_get_shedulecats.php';
103  var compid = master_company_id;
104  var bgcolor = 1; // ja=1, nein = 0
105  // Do the Magic
106  jQuery.ajax({
107   type:"POST",
108   data: {compid:compid,bgcolor:bgcolor},
109   url: toolUrl,
110   cache: false,
111   success: function(response){
112    $(".fm_sheduleoverview").html(response);
113  }
114 });
115} // if length
116
117
118
119// Define Kursplan
120
121  if ($( ".fm_shedule" ).length != 0) {
122    // Define Vars
123    var toolUrl = 'https://www.fitmachen.com/api/api_get_shedule.php';
124        var compid = master_company_id;
125      var servicecat = schedule_service_cat; // Kategorie des Services, welches im Plan berücksichtigt werden soll
126    var cids = $('.fm_shedule').data('cids');
127    // Do the Magic 
128    jQuery.ajax({
129      type:"POST",
130      data: {compid:compid,servicecat:servicecat,cids:cids}, 
131      url: toolUrl,
132      cache: false,
133      success: function(response){$(".fm_shedule").html(response);}
134    });
135  };
136
137
138
139//youtube
140
141if ($( ".fm_ytplaylist" ).length != 0) {
142  
143  // 2. This code loads the IFrame Player API code asynchronously.
144  var tag = document.createElement('script');
145  tag.src = "https://www.youtube.com/iframe_api";
146  var firstScriptTag = document.getElementsByTagName('script')[0];
147  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
148  
149  var getUrlParameter = function getUrlParameter(sParam) {var sPageURL = decodeURIComponent(window.location.search.substring(1)),sURLVariables = sPageURL.split('&'),sParameterName,i;for (i = 0; i < sURLVariables.length; i++) {sParameterName = sURLVariables[i].split('=');if (sParameterName[0] === sParam) {return sParameterName[1] === undefined ? true : sParameterName[1];}}};
150  
151  $( ".fm_ytplaylist" ).each(function( index ) {
152    var thisElement = $( this );
153    var plid = $( this ).data('plid');
154    if (plid === '') {plid = 1;} // fixe ID
155    var ytPageUrl = $( this ).data('ytpageurl');
156    if (ytPageUrl === '') {ytPageUrl = '';} // fixe Landingpage
157    var wraplist = $( this ).data('wraplist');
158    var ulclass = $( this ).data('ulclass');
159    var firstvid = $( this ).data('firstvid');
160    var videoid = getUrlParameter('videoid');
161    var myHost = window.location.hostname;
162    jQuery.ajax({
163      type:"POST",dataType: 'json',data: {plid:plid,ytPageUrl:ytPageUrl,wraplist:wraplist,ulclass:ulclass,videoid:videoid,firstvid:firstvid,myHost:myHost},url:"https://www.fitmachen.com/api/api_get_ytplaylist.php",cache:false,
164      success: function(response){
165        //alert(response.debugger);
166        var fullVideo = response.fullVideo;
167        var videolist = response.videolist;
168        var ytoutput = fullVideo+videolist;
169        
170        var fullList = response.fullList;
171        var teaserList = response.teaserList;
172        var ytslider = fullList+teaserList;
173        
174        $( thisElement ).html(ytslider);
175
176          var visibleItems = 5;
177          // remove all generated items in it ...
178          $('.fm_yt_carousel').removeData("flexslider");
179          $( ".fm_yt_carousel .flex-control-nav" ).remove();
180          $( ".fm_yt_carousel .flex-direction-nav" ).remove();
181          
182        // and (re)init flexslider
183          if($(window).width() < 768) {visibleItems = 3;} else {visibleItems = 5;} // define min and max ... depending on screensize
184          if($(window).width() < 500) {visibleItems = 2;} // define min and max ... depending on screensize
185
186          $('.fm_yt_carousel').flexslider({
187            animation: 'slide',
188            slideshow: false,
189            itemWidth: 180,
190            itemMargin: 10,
191            minItems: visibleItems,
192            maxItems: visibleItems,
193            asNavFor: '.fm_yt_slider'
194          });
195          
196          
197          $('.fm_yt_slider').flexslider({
198            animation: "fade",
199            slideshow: false,
200            directionNav:true,
201            controlNav: false,
202            slideshowSpeed: 7000,
203            animationSpeed: 600,
204            pauseOnAction: true,
205            pauseOnHover: false,
206            touch: true,
207            video: true,
208            animationLoop: true,
209            smoothHeight: true,
210            sync: ".fm_yt_carousel",
211            before: function() {
212              // Dirty-HACK: Simply reload iframe when sliding. thats stops it ;)
213              var vid = $('.fm_yt_carousel').children('.flex-viewport').children('.slides').children('.flex-active-slide').data('vid');
214              $( '#'+vid ).attr( 'src', function ( i, val ) { return val; });
215            }
216          });
217          
218
219      }
220    });
221  });
222};
223
224
225
226// Testimonials
227if ($( ".fm_testimonials" ).length != 0) {
228  // GET OBJECT
229  var companyid = master_company_id; // ID
230  var catids = testimonialsteaser_catid;
231  var stype = 'injoy_big'; 
232  var image_size = 'small';
233  var motherclass = 'contentslider,flexslider';
234  var ulclass = 'slides';
235  var liclass = 'anything,nochwas';
236  var figureclass = 'myava';
237  var wrap_name_with_div = 'myname';
238  var wrap_age_with_div = 'myage';
239  var wrap_location_with_div = 'mylocation';
240  var wrap_exerpt_with_div = 'myexerpt';
241  var wrap_statement_with_div = 'mystatement';
242  var testimonialsPageUrl = '/ueber-uns/kundenstimmen.html';
243  
244  jQuery.ajax({
245   type:'POST',
246   data: {companyid:companyid,catids:catids,stype:stype,image_size:image_size,motherclass:motherclass,ulclass:ulclass,liclass:liclass,wrap_name_with_div:wrap_name_with_div,wrap_age_with_div:wrap_age_with_div,wrap_location_with_div:wrap_location_with_div,wrap_exerpt_with_div:wrap_exerpt_with_div,wrap_statement_with_div:wrap_statement_with_div,figureclass:figureclass}, 
247   url: 'https://www.fitmachen.com/api/api_get_testimonials.php',
248   cache: false,
249   success: function(response){
250    $('.fm_testimonials').html(response);
251    
252    
253   $('.contentslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000,  
254  before: function() {
255    $( ".fthema" ).animate({top: -200,opacity: 0}
255, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
256    $( ".fheadline" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
257    $( ".fexerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
258    $( ".fcontent_button" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
259  },
260  
261  after: function() {
262    $( ".fthema" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
263    $( ".fheadline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
264    $( ".fexerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
265    $( ".fcontent_button" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
266  }
267  
268}); // contentslider
269    }
270   });  
271  // ENDE
272} // if length
273
274
275
276//testimonials all
277if ($( ".fm_testimonials_list" ).length != 0) {
278  // GET OBJECT
279var companyid = master_company_id; // ID (Hier dein Code) 
280  var catids = testimonialslist_catid;
281  var stype = 'normal'; // injoy_big | normal
282  var image_size = 'small';
283  var motherclass = 'fm';
284  var ulclass = 'fm_testimonials,normal';
285  var liclass = '';
286  var figureclass = '';
287  var wrap_name_with_div = '';
288  var wrap_age_with_div = '';
289  var wrap_location_with_div = '';
290  var wrap_exerpt_with_div = '';
291  var wrap_statement_with_div = '';
292  
293  jQuery.ajax({
294   type:"POST",
295   data: {companyid:companyid,catids:catids,stype:stype,image_size:image_size,motherclass:motherclass,ulclass:ulclass,liclass:liclass,wrap_name_with_div:wrap_name_with_div,wrap_age_with_div:wrap_age_with_div,wrap_location_with_div:wrap_location_with_div,wrap_exerpt_with_div:wrap_exerpt_with_div,wrap_statement_with_div:wrap_statement_with_div,figureclass:figureclass}, 
296   url: "https://www.fitmachen.com/api/api_get_testimonials.php",
297   cache: false,
298   success: function(response){
299    $('.fm_testimonials_list').html(response);
300    // init stuff?
301    }
302   });  
303  // ENDE
304} // if length
305
306
307// GET Facebook Like-Box
308var companyid = master_company_id; // ID (Hier dein Code) 
309var motherPageUrl = window.location.href; jQuery.ajax({
310  type:"POST",
311  dataType:'json',
312  data: {companyid:companyid,motherPageUrl:motherPageUrl},
313  url: "https://www.fitmachen.com/api/facebook_safeshare/api_get_safewidget.php",
314  cache: false,
315  success: function(response){    
316    if ($(".fm_facebook_likebox").length != 0) {  
317      $(".fm_facebook_likebox").html(response.widget);
318      $('.g360_share').on('click',function(e) {
319        var winTop = (screen.height / 2) - (600 / 2);var winLeft = (screen.width / 2) - (400 / 2);
320        window.open("https://www.facebook.com/sharer/sharer.php?u="+response.fanpageurl, "_blank", "toolbar=no, scrollbars=no, resizable=no, top="+winTop+", left="+winLeft+", width=600, height=400");
321      });
322    };
323  }
324});
325
326
327
328
329// GET Facebook Alben + Stream
330var companyid = master_company_id;
331//var companyid = 48;
332var lightbox = 'fancybox';
333var feed = 1;
334  var albums = 1;
335  var excludeAlbums = fbexcludeAlbums;
336  var events = 0;
337  var feedlimit = 12;
338  var ownposts = 1;
339  var userposts = 0; // just photos
340  var motherPageUrl = window.location.href; 
341  // Function: Get an Parameter from URL
342  $.urlParam = function(name){
343    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
344    if (results==null){return null;}else{return results[1] || 0;}}  
345  var aid = $.urlParam('aid'); // Get the aid Parameter from URL with Function above.
346  var before = $.urlParam('before'); // Get the before Parameter from URL with Function above.
347  var after = $.urlParam('after'); // Get the before Parameter from URL with Function above.
348  // /SETTINGS
349  jQuery.ajax({
350    type:"POST",
351    dataType: 'json',
352    data: {companyid:companyid,albums:albums,feed:feed,events:events,motherPageUrl:motherPageUrl,aid:aid,lightbox:lightbox,excludeAlbums:excludeAlbums,before:before,after:after,userposts:userposts,ownposts:ownposts,feedlimit:feedlimit},
353    url: "https://www.fitmachen.com/api/facebook_connect/api_facebook_content.php",
354    cache: false,
355    success: function(response){
356      if ($( ".fm_facebook_albums" ).length != 0) { $(".fm_facebook_albums").html(response.albums);if (aid) {$(".fm_facebook_albums").html(response.gallery);}}
357      if ($( ".fm_facebook_feed" ).length != 0) { $(".fm_facebook_feed").html(response.feed);}
358      if ($( ".fm_facebook_events" ).length != 0) { $(".fm_facebook_events").html(response.events);}
359      // Fancybox
360      if ($(".fancybox").length !== 0){$(".fancybox").fancybox();}
361    }
362  });
363  
364  
365  
366
367
368// GET single Facebook Album
369var singlealbumid = fbsinglealbumid; // albumId 
370var lightbox = "fancybox"; 
371var backbutton = 0; 
372var albumheader = 1; 
373$.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
374if (results==null){return null;}else{return results[1] || 0;}} 
375var aid = $.urlParam('aid'); // Get the aid Parameter from URL with Function above.
376if (aid === null) {
377  jQuery.ajax({
378    type:"POST",dataType: 'json',data: {singlealbumid:singlealbumid,lightbox:lightbox,backbutton:backbutton,albumheader:albumheader},
379    url: "https://www.fitmachen.com/api/facebook_connect/api_facebook_content.php",cache: false,
380    success: function(response){
381      if ($( ".fm_facebook_singlealbum" ).length != 0) { $(".fm_facebook_singlealbum").html(response.singlealbum);}
382      if ($(".fancybox").length !== 0){$(".fancybox").fancybox();}
383    }
384  });  
385}else{
386  $( ".fm_facebook_singlealbum" ).parent().parent().parent().remove(); 
387  };
388
389
390
391  
392
393
394
395
396
397//probetraining button
398var companyid = master_company_id;
399var buttontxt = 'Probetraining vereinbaren'; 
400var title = 'Jetzt Probetraining vereinbaren'; 
401var desc = '<strong>Testen Sie den Testsieger - kostenlos und unverbindlich!</strong><br> Wählen Sie einfach Ihren Wunschtermin und tragen Sie Ihre Kontaktdaten ein. Unser Trainer meldet sich bei Ihnen um Ihren Termin zu bestätigen.'; 
402var bordercolor = '000000'; 
403var borderradius = 10; 
404var i = 0; // so lassen var count = $( ".fm_trial_form" ).length;
405
406if ($( ".fm_trial_form" ).length != 0) {
407  $( ".fm_trial_form" ).each(function( index ) {
408    i++;
409    $(this).html('<div id="fm_button_'+i+'" class="fm_button fm_trialbutton" data-id="'+i+'" data-bordercolor="'+bordercolor+'" data-borderradius="'+borderradius+'" data-title="'+title+'" data-desc="'+desc+'" data-companyid="'+companyid+'">'+buttontxt+'</div>');
410  });  
411}  
412//probetraining button ENDE
413
414
415                                                                                                           
416//probetraining form solo
417if ($( ".fm_trial_justform" ).length != 0) {
418var companyid = master_company_id;
419  var title = 'Jetzt kostenloses Probetraining vereinbaren';
420  var desc = 'Unser Trainer meldet sich bei Ihnen um Ihren Termin zu bestätigen.';
421  jQuery.ajax({
422    type:"POST",
423    data: {companyid:companyid,title:title,desc:desc}, 
424    url: "https://www.fitmachen.com/api/api_get_trialform.php",
425    cache: false,
426    success: function(response){
427      $('.fm_trial_justform').html(response);
428      // init stuff?
429    }
430   });
431} // if length
432//probetraining form solo ENDE
433
434
435//kontaktformular
436var companyid = master_company_id;
437var buttontxt = 'Jetzt senden';
438jQuery.ajax({
439   type:"POST",
440   data: {companyid:companyid,buttontxt:buttontxt}, 
441   url: "https://www.fitmachen.com/api/api_get_contactform.php",
442   cache: false,
443   success: function(response){
444    $('.fm_contact_form').html(response);
445    }
446});  
447//kontaktformular ENDE
448  
449  
450  
451 
452//Impressum
453if ($( ".fm_imprint" ).length != 0) {
454var companyid = master_company_id;
455		jQuery.ajax({
456			 type:"POST",
457			 data: {companyid:companyid}, 
458			 url: "https://www.fitmachen.com/api/api_get_imprint.php",
459			 cache: false,
460			 success: function(response){
461			  $('.fm_imprint').html(response);
462			  // init stuff?
463			  }
464		});  
465}
466	
467	
468	
469
470// Studionews Übersicht
471if ($( ".fm_news" ).length != 0) {
472    var companyid = master_company_id;
473  var datacat = newsall_datacat; // Category
474  var limit = "10"; // Limit
475  var lightbox = "fancybox"; // Lightboxtype
476  var outputtype = "flex"; // flex,normal,slim,list,boxes
477  var wrapclass = ""; // variable Wrapper Class
478  var ulclass = ""; // variable UL Class
479  var justhiglights = "0"; // 0,1
480  var asideWidget = "1"; // 0,1
481  var asideWidgetPosition = "right"; // right,bottom
482  var newsPageUrl = '/aktuelles/studio-news.html';
483  var curl = window.location.href;
484  // Function: Get an Parameter from URL
485  $.urlParam = function(name){
486    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
487    if (results==null){return null;}else{return results[1] || 0;}}  
488    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
489  jQuery.ajax({
490    type:"POST",
491    dataType: 'json',
492    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass}, 
493    url: "https://www.fitmachen.com/api/api_get_news.php",
494    cache: false,
495    success: function(response){
496      $(".fm_news").html(response.newsout);
497      // init stuff?
498      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
499      $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
500      $('.fm_iconinside').linkIcons(); // (re)init linkicons
501    }
502  });
503}; // if .fm_news
504// Studionews Übersicht ENDE
505
506
507
508
509// GET Studionews Teaser
510if ($( ".fm_newsteaser" ).length != 0) {
511  var companyid = master_company_id;
512  var datacat = newsall_datacat; // Category
513  var limit = "6"; // Limit
514  var lightbox = "fancybox"; // Lightboxtype
515  var outputtype = "boxes"; // flex,normal,slim,list,boxes
516  var wrapclass = "carousel flexslider"; // variable Wrapper Class
517  var ulclass = "slides"; // variable UL Class
518  var imgplaceholder = 'https://www.fitmachen.com/files/news_dummy_injoy.jpeg'; // Placeholder-Image. 
519  var justhiglights = "0"; // 0,1
520  var asideWidget = "0"; // 0,1
521  var asideWidgetPosition = "right"; // right,bottom
522  var newsPageUrl = '/aktuelles/studio-news.html';
523  var curl = window.location.href;
524 
525  // Function: Get an Parameter from URL
526  $.urlParam = function(name){
527    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
528    if (results==null){return null;}else{return results[1] || 0;}}  
529    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
530  jQuery.ajax({
531    type:"POST",
532    dataType: 'json',
533    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass,imgplaceholder:imgplaceholder}, 
534    url: "https://www.fitmachen.com/api/api_get_news.php",
535    cache: false,
536    success: function(response){
537      $(".fm_newsteaser").html(response.newsout);
538      // init stuff?
539      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
540      //$( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
541      $('.fm_iconinside').linkIcons(); // (re)init linkicons
542    
543     // init flexslider
544      $('.fm_newsteaser').flexslider({animation: "slide", slideshow: false, controlNav: true, randomize:true, directionNav: true, slideshowSpeed: 8000, animationSpeed: 2000, initDelay:"1000", itemWidth: 200,itemMargin: 30,minItems: 2,maxItems: 4,
545        }); // init flexslider
546    
547    }
548  });
549}; // Ende News Teaser
550
551
552
553
554
555// GET Studionews Seitenleisite
556if ($( ".fm_news_aside" ).length != 0) {
557    var companyid = master_company_id;
558  var datacat = newsaside_datacat; // Category
559  var limit = "5"; // Limit
560  var lightbox = "fancybox"; // Lightboxtype
561  var outputtype = "list"; // flex,normal,slim,list,boxes
562  var wrapclass = ""; // variable Wrapper Class
563  var ulclass = ""; // variable UL Class
564  var justhiglights = "0"; // 0,1
565  var asideWidget = "1"; // 0,1
566  var asideWidgetPosition = "right"; // right,bottom
567  var newsPageUrl = '/aktuelles/studio-news.html';
568  var curl = window.location.href;
569  // Function: Get an Parameter from URL
570  $.urlParam = function(name){
571    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
572    if (results==null){return null;}else{return results[1] || 0;}}  
573    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
574  jQuery.ajax({
575    type:"POST",
576    dataType: 'json',
577    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass}, 
578    url: "https://www.fitmachen.com/api/api_get_news.php",
579    cache: false,
580    success: function(response){
581      $(".fm_news_aside").html(response.newsout);
582      // init stuff?
583      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
584      $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
585      $('.fm_iconinside').linkIcons(); // (re)init linkicons
586    }
587  });
588}; // if .fm_news
589
590
591
592
593
594
595// GET Studionews Sonderhinweis Startseite
596if ($( ".fm_news_specialhome" ).length != 0) {
597    var companyid = master_company_id;
598  var datacat = newsspecialhome_datacat; // Category
599  var limit = "2"; // Limit
600  var lightbox = "fancybox"; // Lightboxtype
601  var outputtype = "slim"; // flex,normal,slim,list,boxes
602  var wrapclass = ""; // variable Wrapper Class
603  var ulclass = ""; // variable UL Class
604  var justhiglights = "0"; // 0,1
605  var asideWidget = "0"; // 0,1
606  var asideWidgetPosition = "bottom"; // right,bottom
607  var newsPageUrl = '/aktuelles/studio-news.html';
608  var curl = window.location.href;
609  // Function: Get an Parameter from URL
610  $.urlParam = function(name){
611    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
612    if (results==null){return null;}else{return results[1] || 0;}}  
613    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
614  jQuery.ajax({
615    type:"POST",
616    dataType: 'json',
617    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass}, 
618    url: "https://www.fitmachen.com/api/api_get_news.php",
619    cache: false,
620    success: function(response){
621      $(".fm_news_specialhome").html(response.newsout);
622      // init stuff?
623      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
624      $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
625      $('.fm_iconinside').linkIcons(); // (re)init linkicons
626    }
627  });
628}; // ENDE Studionews Sonderhinweis Startseite
629
630
631
632
633
634
635// GET Studionews Sonderhinweis Kurse
636if ($( ".fm_news_specialcourse" ).length != 0) {
637    var companyid = master_company_id;
638  var datacat = newsspecialcourse_datacat; // Category
639  var limit = "2"; // Limit
640  var lightbox = "fancybox"; // Lightboxtype
641  var outputtype = "slim"; // flex,normal,slim,list,boxes
642  var wrapclass = ""; // variable Wrapper Class
643  var ulclass = ""; // variable UL Class
644  var justhiglights = "0"; // 0,1
645  var asideWidget = "0"; // 0,1
646  var asideWidgetPosition = "bottom"; // right,bottom
647  var newsPageUrl = '/aktuelles/studio-news.html';
648  var curl = window.location.href;
649  // Function: Get an Parameter from URL
650  $.urlParam = function(name){
651    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
652    if (results==null){return null;}else{return results[1] || 0;}}  
653    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
654  jQuery.ajax({
655    type:"POST",
656    dataType: 'json',
657    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass}, 
658    url: "https://www.fitmachen.com/api/api_get_news.php",
659    cache: false,
660    success: function(response){
661      $(".fm_news_specialcourse").html(response.newsout);
662      // init stuff?
663      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
664      $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
665      $('.fm_iconinside').linkIcons(); // (re)init linkicons
666    }
667  });
668}; // ENDE Studionews Sonderhinweis Kurse
669
670
671
672
673
674
675// GET Studionews Sonderhinweis Zeiten
676if ($( ".fm_news_specialtimes" ).length != 0) {
677    var companyid = master_company_id;
678  var datacat = newsspecialtimes_datacat; // Category
679  var limit = "2"; // Limit
680  var lightbox = "fancybox"; // Lightboxtype
681  var outputtype = "slim"; // flex,normal,slim,list,boxes
682  var wrapclass = ""; // variable Wrapper Class
683  var ulclass = ""; // variable UL Class
684  var justhiglights = "0"; // 0,1
685  var asideWidget = "0"; // 0,1
686  var asideWidgetPosition = "bottom"; // right,bottom
687  var newsPageUrl = '/aktuelles/studio-news.html';
688  var curl = window.location.href;
689  // Function: Get an Parameter from URL
690  $.urlParam = function(name){
691    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
692    if (results==null){return null;}else{return results[1] || 0;}}  
693    var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above.
694  jQuery.ajax({
695    type:"POST",
696    dataType: 'json',
697    data: {companyid:companyid,datacat:datacat,limit:limit,outputtype:outputtype,justhiglights:justhiglights,lightbox:lightbox,nid:nid,curl:curl,asideWidget:asideWidget,asideWidgetPosition:asideWidgetPosition,newsPageUrl:newsPageUrl,wrapclass:wrapclass,ulclass:ulclass}, 
698    url: "https://www.fitmachen.com/api/api_get_news.php",
699    cache: false,
700    success: function(response){
701      $(".fm_news_specialtimes").html(response.newsout);
702      // init stuff?
703      $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true});
704      $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});});
705      $('.fm_iconinside').linkIcons(); // (re)init linkicons
706    }
707  });
708}; // ENDE Studionews Sonderhinweis Zeiten
709
710
711// GET SHAREBAR
712var ogUrl = encodeURIComponent($('meta[property="og:url"]').attr('content'));
713if (!ogUrl) {ogUrl = encodeURIComponent(window.location.href);} // fallback
714var ogDescription = encodeURIComponent($('meta[property="og:description"]').attr('content'));
715var ogDescriptionNormal = $('meta[property="og:description"]').attr('content');
716var ogImage = encodeURIComponent($('meta[property="og:image"]').attr('content'));
717var ogSitename = encodeURIComponent($('meta[property="og:site_name"]').attr('content'));
718var ogTitle = encodeURIComponent($('meta[property="og:title"]').attr('content'));
719var shareTitle = ogTitle;
720var shareLink = ogUrl;
721var sharePicture = ogImage; 
722var shareCaption = ogSitename;
723var shareDesc = ogDescription;
724var redirect_uri =  encodeURIComponent(window.location.href);
725var oneLiner = shareTitle+': '+shareDesc+' ... gefunden bei '+ogSitename+': '+shareLink; // for Whatsapp, Twitter ...
726ogDescriptionNormal = ogDescriptionNormal.trim();
727ogDescriptionNormal = ogDescriptionNormal.substr(0, 114); // Shortn to 114
728ogDescriptionNormal = encodeURIComponent(ogDescriptionNormal);
729// WHATS APP
730var link_whatsapp = '<li class="fm_share whatsapp fm_mobilonly"><a target="_blank" href="WhatsApp://send?text='+oneLiner+'" title="Share via Whatsapp"><i class="fa fa-whatsapp"></i></a></li>';
731// FACEBOOK
732var link_facebook = '<li class="fm_share facebook"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='+shareLink+'" title="Share via Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>';
733// TWITTER
734var link_twitter = '<li class="fm_share twitter"><a target="_blank" href="http://twitter.com/home?status='+shareLink+' : '+ogDescriptionNormal+'" title="Share via Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>';
735// Google
736var link_google = '<li class="fm_share google"><a target="_blank" href="https://plus.google.com/share?url='+shareLink+'" title="Share via Google+"><i class="fa fa-google-plus" aria-hidden="true"></i></a>';
737// Pinterest
738var link_pinterest = '<li class="fm_share pinterest"><a target="_blank" href="https://www.pinterest.com/pin/create/link/?url='+shareLink+'&media='+sharePicture+'&description='+shareDesc+'"  title="Share via Pinterest"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a>';
739var shareOptions = '<ul class="fm_shareoptions">'+link_facebook+link_whatsapp+link_twitter+link_google+link_pinterest+'</ul>';
740if ($( ".fm_sharebar" ).length != 0) {$(".fm_sharebar").html(shareOptions);}
741// GET SHAREBAR
742
743
744
745
746// GET Featureslider
747  if ($( ".fm_slider" ).length != 0) {
748var companyid = master_company_id;  
749var lightbox = 'fancybox'; // Lightbox-Plugin  
750    jQuery.ajax({
751      type:"POST",
752      dataType: 'json',
753      data: {companyid:companyid,lightbox:lightbox}, 
754      url: "https://www.fitmachen.com/api/api_get_featureslider.php",
755      cache: false,
756      success: function(response){
757        $(".fm_slider").html(response.slider);
758        
759        // init flexslider
760        $('.fm_featureslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000,  
761          before: function() {
762            $( ".fm_content_headline" ).animate({left: -200,opacity: 0}
762, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
763            $( ".fm_content_exerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
764            $( ".fm_fsliderbutton" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
765          },
766          after: function() {
767            $( ".fm_content_headline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
768            $( ".fm_content_exerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
769            $( ".fm_fsliderbutton" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}});
770          }
771        }); // init flexslider
772      $(".fancybox").fancybox();
773      $(".fancyboxiframe").fancybox({'type': 'iframe'});
774      $('.fm_iconinside').linkIcons(); // (re)init linkicons
775      } // success
776  
777    }); // ajax
778    
779  } // if length
780
781
782
783if ($( ".fm_adventcal" ).length != 0) {
784	var curl = window.location.href;
785	var companyid = $( '.fm_adventcal' ).data('companyid');
786	if (companyid === '') {companyid = 1;} // fixe ID
787  	var debugmode = '0';
788	var calenderid = $( '.fm_adventcal' ).data('calenderid');
789	if (calenderid === '') {calenderid = 1;} // fixe ID
790		jQuery.ajax({
791		 type:"POST",
792		 data: {companyid:companyid,calenderid:calenderid,debugmode:debugmode ,curl:curl}, 
793		 url: "https://www.fitmachen.com/api/api_get_adventcal.php",
794		 cache: false,
795		 success: function(response){
796			$('.fm_adventcal').html(response);
797			// init stuff?
798			var mothertile_w = $('#fm_tile_mother').outerWidth();
799			$( "li.fm_adventcal_tile" ).each(function() {$( this ).css("height", mothertile_w+'px');});}
800		});
801	}
802	
803	
804
805
806
807
808}); // on load
809
810
811
812
813
814
815
816
817$(document).ready(function(){
818// suche
819
820
821$('.fm_mapbox').click(function () {
822    $('.fm_mapbox iframe').css("pointer-events", "auto");
823});
824
825$( ".fm_mapbox" ).mouseleave(function() {
826  $('.fm_mapbox iframe').css("pointer-events", "none"); 
827});
828
829
830
831
832  var isMobile = {
833    Android: function() {return navigator.userAgent.match(/Android/i);},
834    BlackBerry: function() {return navigator.userAgent.match(/BlackBerry/i);},
835    iOS: function() {return navigator.userAgent.match(/iPhone|iPad|iPod/i);},
836    Opera: function() {return navigator.userAgent.match(/Opera Mini/i);},
837    Windows: function() {return navigator.userAgent.match(/IEMobile/i);},
838    any: function() {return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());}
839  };
840  
841  if(isMobile.any()){  
842  // we are on a mobile device
843  $('html').addClass('fm_mobiledevice');
844  }else{
845    // we are on a desktop device
846  }
847
848
849});

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.