1 2 3//für carousel slider 4document.addEventListener( 'DOMContentLoaded', function() { 5 const splide = new Splide( '.splide', { 6 type: 'loop', 7 perPage: 5, 8 breakpoints: { 9 1024: { 10 perPage: 4, 11 }, 12 812: { 13 perPage: 3, 14 }, 15 640: { 16 perPage: 2, 17 }, 18 500: { 19 perPage: 1, 20 }, 21 } 22 }); 23 splide.mount(); 24}); 25 26 27 28 29$(window).load(function(){ 30"use strict"; 31 32// Fancybox 33if ($(".fancybox").length !== 0){ 34 $(".fancybox").fancybox(); 35} 36 37if ($("#accordion").length !== 0){ 38$(function() { 39 $( "#accordion" ).accordion({ 40 collapsible: true 41 }); 42 }); 43} 44 45 46if ($(".flexslider").length !== 0){ 47// Flexslider 48$('.g360_fotoslider').flexslider({ 49animation: "slide", 50slideshow: true, 51directionNav:true, 52controlNav: true, 53slideshowSpeed: 4000, 54animationSpeed: 600, 55pauseOnAction: true, 56pauseOnHover: false, 57touch: true, 58video: false, 59animationLoop: true, 60smoothHeight: false, 61after: function() {} 62}); 63 64$('.featureslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000, 65 before: function() { 66 $( ".content_headline" ).animate({left: -200,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 67 $( ".content_exerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 68 $( ".content_button" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 69 }, 70 71 after: function() { 72 $( ".content_headline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 73 $( ".content_exerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 74 $( ".content_button" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 75 } 76}); // featureslider 77 78 79$('.contentslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000, 80 before: function() { 81 $( ".fthema" ).animate({top: -200,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 82 $( ".fheadline" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 83 $( ".fexerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 84 $( ".fcontent_button" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 85 }, 86 87 after: function() { 88 $( ".fthema" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 89 $( ".fheadline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 90 $( ".fexerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 91 $( ".fcontent_button" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 92 } 93 94}); // contentslider 95 96$('.ttcontentslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000, 97 before: function() { 98 }, 99 100 after: function() { 101 } 102 103}); // ttcontentslider 104 105 106 107 108} // if flexslider 109 110 111 112 113 114 115 116// GET Company Data 117var companyid = master_company_id; // ID 118var dataobject = 'adress'; // Object 119var showurl = 1; // URL anzeigen? 120if ($( ".fm_roomtimes" ).length != 0) {var roomid = $(".fm_roomtimes").data('roomid');} else {var roomid = '';} 121if ($( ".fm_servicetimes" ).length != 0) {var serviceid = $(".fm_servicetimes").data('serviceid');} else {var serviceid = '';} 122if ($( ".fm_upnextbox" ).length != 0) {var upnextlimit = $(".fm_upnextbox").data('upnextlimit');} else {var upnextlimit = '';} 123 124jQuery.ajax({ 125 type:"POST", 126 dataType: 'json', 127 data: {companyid:companyid,dataobject:dataobject,showurl:showurl,roomid:roomid,serviceid:serviceid,upnextlimit:upnextlimit}, 128 url: "https://www.fitmachen.com/api/api_get_companydata.php", 129 cache: false, 130 success: function(response){ 131 // multiple 132 if ($( ".fm_adressbox" ).length != 0) {$(".fm_adressbox").html(response.adresse);} 133 if ($( ".fm_phone" ).length != 0) {$(".fm_phone").html(response.telefon);} 134 if ($( ".fm_mapbox" ).length != 0) {$('.fm_mapbox').html(response.map);} 135 if ($( ".fm_timebox" ).length != 0) {$('.fm_timebox').html(response.timebox);} 136 if ($( ".fm_roomtimes" ).length != 0) {$('.fm_roomtimes').html(response.roomstimes);} 137 if ($( ".fm_servicetimes" ).length != 0) {$('.fm_servicetimes').html(response.servicetimes);} 138 if ($( ".fm_upnextbox" ).length != 0) {$('.fm_upnextbox').html(response.upnext);} 139 if ($( ".fm_runningbox" ).length != 0) {$('.fm_runningbox').html(response.running);} 140 if ($( ".fm_todaybox" ).length != 0) {$('.fm_todaybox').html(response.today);} 141 if ($( ".fm_nextcourse" ).length != 0) {$('.fm_nextcourse').html(response.nextcourse);} 142 if ($( ".fm_todaytimes" ).length != 0) {$('.fm_todaytimes').html(response.todaytimes);} 143 if ($( ".fm_socialmedia_icons" ).length != 0) {$('.fm_socialmedia_icons').html(response.socialmediaicons);} 144 if ($( ".fm_socialmedia_text" ).length != 0) {$('.fm_socialmedia_text').html(response.socialmedialist);} 145 // init stuff? 146 } 147}); // ENDE 148 149 150 151// GET Formular 152//if ($( ".fm_formbox" ).length != 0) { 153 // GET OBJECT 154// var companyid = master_company_id; // ID 155// var formularid = 1; // Formular id 156 // jQuery.ajax({ 157// type:"POST", 158// data: {companyid:companyid,formularid:formularid}, 159// url: "https://www.fitmachen.com/api/api_getform.php", 160// cache: false, 161// success: function(response){ 162// $('.fm_formbox').html(response); 163 // init stuff? 164// } 165// }); 166 // ENDE 167//} // if length 168 169 170// GET Formular 171if ($( ".fm_formbox" ).length != 0) { 172 $( ".fm_formbox" ).each(function( index ) { 173 var thisElement = $( this ); 174 var formularid = $( thisElement ).data('formularid'); 175 var companyid = master_company_id; // ID 176 if (!formularid) {var formularid = 6;} // Custom ID 177 jQuery.ajax({ 178 type:"POST", 179 data: {companyid:companyid,formularid:formularid}, 180 url: "https://www.fitmachen.com/api/api_getform.php", 181 cache: false, 182 success: function(response){ 183 $('.fm_formbox').html(response); 184 } 185 }); 186 }); 187} // if .fm_formbox 188 189 190 191 192 193// GET Team 194// GET TEAM 195if ($( ".fm_team" ).length != 0) { 196 var companyid = master_company_id; // ID 197 var datacat = team_cat_id; // ID 198 //var teamcatid = '41,42'; // ID 199 //var datacat = ''; // Category IDs (Komma) 200 jQuery.ajax({ 201 type:"POST", 202 dataType: 'json',
203 data: {companyid:companyid,datacat:datacat}, 204 url: "https://www.fitmachen.com/api/api_get_companyteam.php", 205 cache: false, 206 success: function(response){ 207 $(".fm_team").html(response.team); 208 } 209 }); // ENDE 210} 211 212 213 214if ($( ".fm_formbox_probe" ).length != 0) { 215 // GET OBJECT 216 var companyid = master_company_id; // ID 217 var formularid = probe_formular_id; // ID 218 //var formularid = 4; // Formular id 219 jQuery.ajax({ 220 type:"POST", 221 data: {companyid:companyid,formularid:formularid}, 222 url: "https://www.fitmachen.com/api/api_getform.php", 223 cache: false, 224 success: function(response){ 225 $('.fm_formbox_probe').html(response); 226 // init stuff? 227 } 228 }); 229 // ENDE 230} // if length 231 232 233//KUrsübersicht 234if ($( ".fm_sheduleoverview" ).length != 0) { 235 var toolUrl = 'https://www.fitmachen.com/api/api_get_shedulecats.php'; 236 var compid = master_company_id; 237 var bgcolor = 1; // ja=1, nein = 0 238 // Do the Magic 239 jQuery.ajax({ 240 type:"POST", 241 data: {compid:compid,bgcolor:bgcolor}, 242 url: toolUrl, 243 cache: false, 244 success: function(response){ 245 $(".fm_sheduleoverview").html(response); 246 } 247 }); 248} // if length 249 250 251 252// Define Kursplan 253 254 if ($( ".fm_shedule" ).length != 0) { 255 // Define Vars 256 var toolUrl = 'https://www.fitmachen.com/api/api_get_shedule.php'; 257 var compid = master_company_id; 258 var servicecat = schedule_service_cat; // Kategorie des Services, welches im Plan berücksichtigt werden soll 259 var cids = $('.fm_shedule').data('cids'); 260 // Do the Magic 261 jQuery.ajax({ 262 type:"POST", 263 data: {compid:compid,servicecat:servicecat,cids:cids}, 264 url: toolUrl, 265 cache: false, 266 success: function(response){$(".fm_shedule").html(response);} 267 }); 268 }; 269 270 271 272//youtube 273 274if ($( ".fm_ytplaylist" ).length != 0) { 275 276 // 2. This code loads the IFrame Player API code asynchronously. 277 var tag = document.createElement('script'); 278 tag.src = "https://www.youtube.com/iframe_api"; 279 var firstScriptTag = document.getElementsByTagName('script')[0]; 280 firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 281 282 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];}}}; 283 284 $( ".fm_ytplaylist" ).each(function( index ) { 285 var thisElement = $( this ); 286 var plid = $( this ).data('plid'); 287 if (plid === '') {plid = 1;} // fixe ID 288 var ytPageUrl = $( this ).data('ytpageurl'); 289 if (ytPageUrl === '') {ytPageUrl = '';} // fixe Landingpage 290 var wraplist = $( this ).data('wraplist'); 291 var ulclass = $( this ).data('ulclass'); 292 var firstvid = $( this ).data('firstvid'); 293 var videoid = getUrlParameter('videoid'); 294 var myHost = window.location.hostname; 295 jQuery.ajax({ 296 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, 297 success: function(response){ 298 //alert(response.debugger); 299 var fullVideo = response.fullVideo; 300 var videolist = response.videolist; 301 var ytoutput = fullVideo+videolist; 302 303 var fullList = response.fullList; 304 var teaserList = response.teaserList; 305 var ytslider = fullList+teaserList; 306 307 $( thisElement ).html(ytslider); 308 309 var visibleItems = 5; 310 // remove all generated items in it ... 311 $('.fm_yt_carousel').removeData("flexslider"); 312 $( ".fm_yt_carousel .flex-control-nav" ).remove(); 313 $( ".fm_yt_carousel .flex-direction-nav" ).remove(); 314 315 // and (re)init flexslider 316 if($(window).width() < 768) {visibleItems = 3;} else {visibleItems = 5;} // define min and max ... depending on screensize 317 if($(window).width() < 500) {visibleItems = 2;} // define min and max ... depending on screensize 318 319 $('.fm_yt_carousel').flexslider({ 320 animation: 'slide', 321 slideshow: false, 322 itemWidth: 180, 323 itemMargin: 10, 324 minItems: visibleItems, 325 maxItems: visibleItems, 326 asNavFor: '.fm_yt_slider' 327 }); 328 329 330 $('.fm_yt_slider').flexslider({ 331 animation: "fade", 332 slideshow: false, 333 directionNav:true, 334 controlNav: false, 335 slideshowSpeed: 7000, 336 animationSpeed: 600,
337 pauseOnAction: true, 338 pauseOnHover: false, 339 touch: true, 340 video: true, 341 animationLoop: true, 342 smoothHeight: false, 343 sync: ".fm_yt_carousel", 344 before: function() { 345 // Dirty-HACK: Simply reload iframe when sliding. thats stops it ;) 346 var vid = $('.fm_yt_carousel').children('.flex-viewport').children('.slides').children('.flex-active-slide').data('vid'); 347 $( '#'+vid ).attr( 'src', function ( i, val ) { return val; }); 348 } 349 }); 350 351 352 } 353 }); 354 }); 355}; 356 357 358 359// Testimonials 360if ($( ".fm_testimonials" ).length != 0) { 361 // GET OBJECT 362 var companyid = master_company_id; // ID 363 var catids = testimonialsteaser_catid; 364 var stype = 'injoy_big'; 365 var image_size = 'small'; 366 var motherclass = 'contentslider,flexslider'; 367 var ulclass = 'slides'; 368 var liclass = 'anything,nochwas'; 369 var figureclass = 'myava'; 370 var wrap_name_with_div = 'myname'; 371 var wrap_age_with_div = 'myage'; 372 var wrap_location_with_div = 'mylocation'; 373 var wrap_exerpt_with_div = 'myexerpt'; 374 var wrap_statement_with_div = 'mystatement'; 375 var testimonialsPageUrl = '/ueber-uns/kundenstimmen.html'; 376 377 jQuery.ajax({ 378 type:'POST', 379 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,testimonialsPageUrl:testimonialsPageUrl}, 380 url: 'https://www.fitmachen.com/api/api_get_testimonials.php', 381 cache: false, 382 success: function(response){ 383 $('.fm_testimonials').html(response); 384 385 386 $('.contentslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000, 387 before: function() { 388 $( ".fthema" ).animate({top: -200,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 389 $( ".fheadline" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 390 $( ".fexerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 391 $( ".fcontent_button" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 392 }, 393 394 after: function() { 395 $( ".fthema" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 396 $( ".fheadline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 397 $( ".fexerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 398 $( ".fcontent_button" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 399 } 400 401}); // contentslider 402 } 403 }); 404 // ENDE 405} // if length 406 407 408 409//testimonials all 410if ($( ".fm_testimonials_list" ).length != 0) { 411 // GET OBJECT 412var companyid = master_company_id; // ID (Hier dein Code) 413 var catids = testimonialslist_catid; 414 var stype = 'normal'; // injoy_big | normal 415 var image_size = 'small'; 416 var motherclass = 'fm'; 417 var ulclass = 'fm_testimonials,normal'; 418 var liclass = ''; 419 var figureclass = ''; 420 var wrap_name_with_div = ''; 421 var wrap_age_with_div = ''; 422 var wrap_location_with_div = ''; 423 var wrap_exerpt_with_div = ''; 424 var wrap_statement_with_div = ''; 425 var lightbox = 'fancybox'; 426 427 jQuery.ajax({ 428 type:"POST", 429 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,lightbox:lightbox}, 430 url: "https://www.fitmachen.com/api/api_get_testimonials.php", 431 cache: false, 432 success: function(response){ 433 $('.fm_testimonials_list').html(response); 434 $(".fancybox").fancybox(); 435 436 // init stuff? 437 } 438 }); 439 // ENDE 440} // if length 441 442
443// GET Facebook Like-Box 444var companyid = master_company_id; // ID (Hier dein Code) 445var motherPageUrl = window.location.href; jQuery.ajax({ 446 type:"POST", 447 dataType:'json', 448 data: {companyid:companyid,motherPageUrl:motherPageUrl}, 449 url: "https://www.fitmachen.com/api/facebook_safeshare/api_get_safewidget.php", 450 cache: false, 451 success: function(response){ 452 if ($(".fm_facebook_likebox").length != 0) { 453 $(".fm_facebook_likebox").html(response.widget); 454 $('.g360_share').on('click',function(e) { 455 var winTop = (screen.height / 2) - (600 / 2);var winLeft = (screen.width / 2) - (400 / 2); 456 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"); 457 }); 458 }; 459 } 460}); 461 462 463 464 465// GET Facebook Alben + Stream 466var companyid = master_company_id; 467//var companyid = 48; 468var lightbox = 'fancybox'; 469var feed = 1; 470 var albums = 1; 471 var excludeAlbums = fbexcludeAlbums; 472 var events = 0; 473 var feedlimit = 15; 474 var ownposts = 1; 475 var userposts = 0; // just photos 476 var motherPageUrl = window.location.href; 477 // Function: Get an Parameter from URL 478 $.urlParam = function(name){ 479 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 480 if (results==null){return null;}else{return results[1] || 0;}} 481 var aid = $.urlParam('aid'); // Get the aid Parameter from URL with Function above. 482 var before = $.urlParam('before'); // Get the before Parameter from URL with Function above. 483 var after = $.urlParam('after'); // Get the before Parameter from URL with Function above. 484 // /SETTINGS 485 jQuery.ajax({ 486 type:"POST", 487 dataType: 'json', 488 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}, 489 url: "https://www.fitmachen.com/api/facebook_connect/api_facebook_content.php", 490 cache: false, 491 success: function(response){ 492 if ($( ".fm_facebook_albums" ).length != 0) { $(".fm_facebook_albums").html(response.albums);if (aid) {$(".fm_facebook_albums").html(response.gallery);}} 493 if ($( ".fm_facebook_feed" ).length != 0) { $(".fm_facebook_feed").html(response.feed);} 494 if ($( ".fm_facebook_events" ).length != 0) { $(".fm_facebook_events").html(response.events);} 495 // Fancybox 496 if ($(".fancybox").length !== 0){$(".fancybox").fancybox();} 497 } 498 }); 499 500 501 502 503// GET single Facebook Album 504var singlealbumid = fbsinglealbumid; // albumId 505var lightbox = "fancybox"; 506var backbutton = 0; 507var albumheader = 1; 508$.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 509if (results==null){return null;}else{return results[1] || 0;}} 510var aid = $.urlParam('aid'); // Get the aid Parameter from URL with Function above. 511if (aid === null) { 512 jQuery.ajax({ 513 type:"POST",dataType: 'json',data: {singlealbumid:singlealbumid,lightbox:lightbox,backbutton:backbutton,albumheader:albumheader}, 514 url: "https://www.fitmachen.com/api/facebook_connect/api_facebook_content.php",cache: false, 515 success: function(response){ 516 if ($( ".fm_facebook_singlealbum" ).length != 0) { $(".fm_facebook_singlealbum").html(response.singlealbum);} 517 if ($(".fancybox").length !== 0){$(".fancybox").fancybox();} 518 } 519 }); 520}else{ 521 $( ".fm_facebook_singlealbum" ).parent().parent().parent().remove(); 522 }; 523 524 525 526 527 528 529//probetraining button 530if ($( ".fm_trial_form" ).length != 0) { 531 // GET OBJECT 532var companyid = master_company_id; 533 var buttontxt = 'Probetraining vereinbaren'; 534 var title = 'Jetzt Probetraining vereinbaren'; 535 var desc = '<strong>Testen Sie uns - 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.'; 536 var trial_landingpage = ''; 537 var bordercolor = '000000'; 538 var borderradius = 10; 539 var custompage = ''; 540 var i = 0; 541 var count = $( ".fm_trial_form" ).length; 542 543 if ($( ".fm_trial_form" ).length != 0) { 544 $( ".fm_trial_form" ).each(function( index ) { 545 i++; 546 $(this).html('<div id="fm_button_'+i+'" class="fm_button fm_trialbutton" data-id="'+i+'" data-custompage="'+custompage+'" data-bordercolor="'+bordercolor+'" data-borderradiu
546s="'+borderradius+'" data-title="'+title+'" data-desc="'+desc+'" data-companyid="'+companyid+'" data-triallandingpage="'+trial_landingpage+'">'+buttontxt+'</div>'); 547 }); 548 } 549} // if length 550 551//probetraining button ENDE 552 553 554 555//probetraining form solo 556 if ($( ".fm_trial_justform" ).length != 0) { 557var companyid = master_company_id; 558 var title = 'Jetzt kostenloses Probetraining vereinbaren'; 559 var desc = 'Unser Trainer meldet sich bei Ihnen um Ihren Termin zu bestätigen.'; 560 var trial_landingpage = ''; 561 jQuery.ajax({ 562 type:"POST", 563 data: {companyid:companyid,title:title,desc:desc,trial_landingpage:trial_landingpage}, 564 url: "https://www.fitmachen.com/api/api_get_trialform.php", 565 cache: false, 566 success: function(response){ 567 $('.fm_trial_justform').html(response); 568 // init stuff? 569 //$( ".fm_trial_justform .fm_dynamiccontent" ).fadeToggle( "fast", function() {}); 570 } 571  }); 572} // if length 573 574//probetraining form solo ENDE 575 576 577//kontaktformular 578var companyid = master_company_id; 579var buttontxt = 'Jetzt senden'; 580var contact_landingpage = ''; 581jQuery.ajax({ 582 type:"POST", 583 data: {companyid:companyid,buttontxt:buttontxt,contact_landingpage:contact_landingpage}, 584 url: "https://www.fitmachen.com/api/api_get_contactform.php", 585 cache: false, 586 success: function(response){ 587 $('.fm_contact_form').html(response); 588 } 589}); 590 591//kontaktformular ENDE 592 593 594 595 596//Impressum 597if ($( ".fm_imprint" ).length != 0) { 598var companyid = master_company_id; 599 jQuery.ajax({ 600  type:"POST", 601  data: {companyid:companyid}, 602  url: "https://www.fitmachen.com/api/api_get_imprint.php", 603  cache: false, 604  success: function(response){ 605   $('.fm_imprint').html(response); 606   // init stuff? 607   } 608 });  609} 610 611 612 613 614// Studionews Ãbersicht 615if ($( ".fm_news" ).length != 0) { 616 var companyid = master_company_id; 617 var datacat = newsall_datacat; // Category 618 var limit = "10"; // Limit 619 var lightbox = "fancybox"; // Lightboxtype 620 var outputtype = "flex"; // flex,normal,slim,list,boxes 621 var wrapclass = ""; // variable Wrapper Class 622 var ulclass = ""; // variable UL Class 623 var justhiglights = "0"; // 0,1 624 var asideWidget = "1"; // 0,1 625 var asideWidgetPosition = "right"; // right,bottom 626 var newsPageUrl = '/aktuelles/studio-news'; 627 var curl = window.location.href; 628 // Function: Get an Parameter from URL 629 $.urlParam = function(name){ 630 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 631 if (results==null){return null;}else{return results[1] || 0;}} 632 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 633 jQuery.ajax({ 634 type:"POST", 635 dataType: 'json', 636 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}, 637 url: "https://www.fitmachen.com/api/api_get_news.php", 638 cache: false, 639 success: function(response){ 640 $(".fm_news").html(response.newsout); 641 // init stuff? 642 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 643 $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 644 $('.fm_iconinside').linkIcons(); // (re)init linkicons 645 } 646 }); 647}; // if .fm_news 648// Studionews Ãbersicht ENDE 649 650 651 652 653// GET Studionews Teaser 654if ($( ".fm_newsteaser" ).length != 0) { 655 var companyid = master_company_id; 656 var datacat = newsall_datacat; // Category 657 var limit = "6"; // Limit 658 var lightbox = "fancybox"; // Lightboxtype 659 var outputtype = "boxes"; // flex,normal,slim,list,boxes 660 var wrapclass = "carousel flexslider"; // variable Wrapper Class 661 var ulclass = "slides"; // variable UL Class 662 var imgplaceholder = 'https://www.fitmachen.com/files/news_dummy_injoy.jpeg'; // Placeholder-Image. 663 var justhiglights = "0"; // 0,1 664 var asideWidget = "0"; // 0,1 665 var asideWidgetPosition = "right"; // right,bottom 666 var newsPageUrl = '/aktuelles/studio-news'; 667 var curl = window.location.href; 668 669 // Function: Get an Parameter from URL 670 $.urlParam = function(name){ 671 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 672 if (results==null){return null;}else{return results[1] || 0;}} 673 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 674 jQuery.ajax({ 675 type:"POST", 676 dataType: 'json',
677 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}, 678 url: "https://www.fitmachen.com/api/api_get_news.php", 679 cache: false, 680 success: function(response){ 681 $(".fm_newsteaser").html(response.newsout); 682 // init stuff? 683 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 684 //$( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 685 $('.fm_iconinside').linkIcons(); // (re)init linkicons 686 687 // init flexslider 688 $('.fm_newsteaser').flexslider({animation: "slide", slideshow: false, controlNav: true, directionNav: true, slideshowSpeed: 8000, animationSpeed: 500, itemWidth: 200,itemMargin: 30,minItems: 2,maxItems: 4}); // init flexslider 689 690 } 691 }); 692}; // Ende News Teaser 693 694 695 696 697 698// GET Studionews Seitenleisite 699if ($( ".fm_news_aside" ).length != 0) { 700 var companyid = master_company_id; 701 var datacat = newsaside_datacat; // Category 702 var limit = "5"; // Limit 703 var lightbox = "fancybox"; // Lightboxtype 704 var outputtype = "list"; // flex,normal,slim,list,boxes 705 var wrapclass = ""; // variable Wrapper Class 706 var ulclass = ""; // variable UL Class 707 var justhiglights = "0"; // 0,1 708 var asideWidget = "1"; // 0,1 709 var asideWidgetPosition = "right"; // right,bottom 710 var newsPageUrl = '/aktuelles/studio-news'; 711 var curl = window.location.href; 712 // Function: Get an Parameter from URL 713 $.urlParam = function(name){ 714 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 715 if (results==null){return null;}else{return results[1] || 0;}} 716 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 717 jQuery.ajax({ 718 type:"POST", 719 dataType: 'json', 720 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}, 721 url: "https://www.fitmachen.com/api/api_get_news.php", 722 cache: false, 723 success: function(response){ 724 $(".fm_news_aside").html(response.newsout); 725 // init stuff? 726 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 727 $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 728 $('.fm_iconinside').linkIcons(); // (re)init linkicons 729 } 730 }); 731}; // if .fm_news 732 733 734 735 736 737 738// GET Studionews Sonderhinweis Startseite 739if ($( ".fm_news_specialhome" ).length != 0) { 740 var companyid = master_company_id; 741 var datacat = newsspecialhome_datacat; // Category 742 var limit = "2"; // Limit 743 var lightbox = "fancybox"; // Lightboxtype 744 var outputtype = "slim"; // flex,normal,slim,list,boxes 745 var wrapclass = ""; // variable Wrapper Class 746 var ulclass = ""; // variable UL Class 747 var justhiglights = "1"; // 0,1 748 var asideWidget = "0"; // 0,1 749 var asideWidgetPosition = "bottom"; // right,bottom 750 var newsPageUrl = '/aktuelles/studio-news'; 751 var curl = window.location.href; 752 // Function: Get an Parameter from URL 753 $.urlParam = function(name){ 754 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 755 if (results==null){return null;}else{return results[1] || 0;}} 756 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 757 jQuery.ajax({ 758 type:"POST", 759 dataType: 'json', 760 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}, 761 url: "https://www.fitmachen.com/api/api_get_news.php", 762 cache: false, 763 success: function(response){ 764 $(".fm_news_specialhome").html(response.newsout); 765 // init stuff? 766 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 767 $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 768 $('.fm_iconinside').linkIcons(); // (re)init linkicons 769 } 770 }); 771}; // ENDE Studionews Sonderhinweis Startseite 772 773 774 775 776 777 778// GET Studionews Sonderhinweis Kurse 779if ($( ".fm_news_specialcourse" ).length != 0) { 780 var companyid = master_company_id; 781 var datacat = newsspecialcourse_datacat; // Category 782 var limit = "2"; // Limit 783 var lightbox = "fancybox"; // Lightboxtype 784 var outputtype = "slim"; // flex,normal,slim,list,boxes 785 var wrapclass = ""; // variable Wrapper Class 786 var ulclass = ""; // variable UL Class 787 var justhiglights = "1"; // 0,1 788 var asideWidget = "0"; // 0,1 789 var asideWidgetPosition = "bottom"; // right,bottom 790 var newsPageUrl = '/aktuelles/studio-news'; 791 var curl = window.location.href; 792 // Function: Get an Parameter from URL 793 $.urlParam = function(name){ 794 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 795 if (results==null){return null;}else{return results[1] || 0;}} 796 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 797 jQuery.ajax({ 798 type:"POST", 799 dataType: 'json',
800 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}, 801 url: "https://www.fitmachen.com/api/api_get_news.php", 802 cache: false, 803 success: function(response){ 804 $(".fm_news_specialcourse").html(response.newsout); 805 // init stuff? 806 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 807 $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 808 $('.fm_iconinside').linkIcons(); // (re)init linkicons 809 } 810 }); 811}; // ENDE Studionews Sonderhinweis Kurse 812 813 814 815 816 817 818// GET Studionews Sonderhinweis Zeiten 819if ($( ".fm_news_specialtimes" ).length != 0) { 820 var companyid = master_company_id; 821 var datacat = newsspecialtimes_datacat; // Category 822 var limit = "2"; // Limit 823 var lightbox = "fancybox"; // Lightboxtype 824 var outputtype = "slim"; // flex,normal,slim,list,boxes 825 var wrapclass = ""; // variable Wrapper Class 826 var ulclass = ""; // variable UL Class 827 var justhiglights = "1"; // 0,1 828 var asideWidget = "0"; // 0,1 829 var asideWidgetPosition = "bottom"; // right,bottom 830 var newsPageUrl = '/aktuelles/studio-news'; 831 var curl = window.location.href; 832 // Function: Get an Parameter from URL 833 $.urlParam = function(name){ 834 var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); 835 if (results==null){return null;}else{return results[1] || 0;}} 836 var nid = $.urlParam('nid'); // Get the nid Parameter from URL with Function above. 837 jQuery.ajax({ 838 type:"POST", 839 dataType: 'json', 840 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}, 841 url: "https://www.fitmachen.com/api/api_get_news.php", 842 cache: false, 843 success: function(response){ 844 $(".fm_news_specialtimes").html(response.newsout); 845 // init stuff? 846 $('.grid').masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 847 $( "li.fm_highlightpop" ).each(function( index ) {$( this ).children('.fm_togglecontent').delay( 1000 ).slideToggle( "slow", function() {});}); 848 $('.fm_iconinside').linkIcons(); // (re)init linkicons 849 } 850 }); 851}; // ENDE Studionews Sonderhinweis Zeiten 852 853 854// GET SHAREBAR 855var ogUrl = encodeURIComponent($('meta[property="og:url"]').attr('content')); 856if (!ogUrl) {ogUrl = encodeURIComponent(window.location.href);} // fallback 857var ogDescription = encodeURIComponent($('meta[property="og:description"]').attr('content')); 858var ogDescriptionNormal = $('meta[property="og:description"]').attr('content'); 859var ogImage = encodeURIComponent($('meta[property="og:image"]').attr('content')); 860var ogSitename = encodeURIComponent($('meta[property="og:site_name"]').attr('content')); 861var ogTitle = encodeURIComponent($('meta[property="og:title"]').attr('content')); 862var shareTitle = ogTitle; 863var shareLink = ogUrl; 864var sharePicture = ogImage; 865var shareCaption = ogSitename; 866var shareDesc = ogDescription; 867var redirect_uri = encodeURIComponent(window.location.href); 868var oneLiner = shareTitle+': '+shareDesc+' ... gefunden bei '+ogSitename+': '+shareLink; // for Whatsapp, Twitter ... 869ogDescriptionNormal = ogDescriptionNormal.trim(); 870ogDescriptionNormal = ogDescriptionNormal.substr(0, 114); // Shortn to 114 871ogDescriptionNormal = encodeURIComponent(ogDescriptionNormal); 872// WHATS APP 873var 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>'; 874// FACEBOOK 875var 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>'; 876// TWITTER 877var 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>'; 878// Google 879var 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>'; 880// Pinterest 881var 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>'; 882var shareOptions = '<ul class="fm_shareoptions">'+link_facebook+link_whatsapp+link_twitter+link_google+link_pinterest+'</ul>'; 883if ($( ".fm_sharebar" ).length != 0) {$(".fm_sharebar").html(shareOptions);} 884// GET SHAREBAR 885 886 887 888 889// GET Featureslider 890 if ($( ".fm_slider" ).length != 0) { 891var companyid = master_company_id; 892var lightbox = 'fancybox'; // Lightbox-Plugin 893 jQuery.ajax({ 894 type:"POST", 895 dataType: 'json', 896 data: {companyid:companyid,lightbox:lightbox}, 897 url: "https://www.fitmachen.com/api/api_get_featureslider.php", 898 cache: false, 899 success: function(response){ 900 $(".fm_slider").html(response.slider); 901 902 // init flexslider 903 $('.fm_featureslider').flexslider({animation: "fade",slideshow: true,controlNav: true,directionNav: false,slideshowSpeed: 8000,animationSpeed: 2000, 904 before: function() { 905 $( ".fm_content_headline" ).animate({left: -200,opacity: 0}
905, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 906 $( ".fm_content_exerpt" ).animate({left: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 907 $( ".fm_fsliderbutton" ).animate({top: 100,opacity: 0}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 908 }, 909 after: function() { 910 $( ".fm_content_headline" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 911 $( ".fm_content_exerpt" ).animate({left: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 912 $( ".fm_fsliderbutton" ).animate({top: 0,opacity: 1}, {duration: 500,specialEasing: {left: "easeOutQuad"},complete: function() {}}); 913 } 914 }); // init flexslider 915 $(".fancybox").fancybox(); 916 $(".fancyboxiframe").fancybox({'type': 'iframe'}); 917 $('.fm_iconinside').linkIcons(); // (re)init linkicons 918 } // success 919 920 }); // ajax 921 922 } // if length 923 924 925 926 927 928//masonry verzoegerung 929function masonryStart() { 930$(".grid").masonry({itemSelector: '.grid-item',transitionDuration: 0,percentPosition: true}); 931} 932 933// document ready 934$(function() { 935 setTimeout(masonryStart, 2000); 936}); 937 938 939 940}); // on load 941 942 943 944 945 946 947 948 949$(window).bind('load resize orientationchange', function(){ 950"use strict"; 951 952 953// FLEXSLIDER 954// CAROUSEL 955if ($(".carousel").length != 0){ 956var visibleItems = 4; 957// remove all generated items in it ... 958$('.carousel').removeData("flexslider"); 959$( ".carousel .flex-control-nav" ).remove(); 960$( ".carousel .flex-direction-nav" ).remove(); 961// and (re)init flexslider 962if($(window).width() < 768) {visibleItems = 2;} else {visibleItems = 4;} // define min and max ... depending on screensize 963if($(window).width() < 500) {visibleItems = 1;} // define min and max ... depending on screensize 964$('.carousel').flexslider({animation: 'slide',slideshow: false,itemWidth: 180,itemMargin: 10,minItems: visibleItems,maxItems: visibleItems}); 965} 966 967 968 if ($(".fm_yt_carousel").length != 0){ 969 var visibleItems = 5; 970 // remove all generated items in it ... 971 $('.fm_yt_carousel').removeData("flexslider"); 972 $( ".fm_yt_carousel .flex-control-nav" ).remove(); 973 $( ".fm_yt_carousel .flex-direction-nav" ).remove(); 974 // and (re)init flexslider 975 if($(window).width() < 768) {visibleItems = 3;} else {visibleItems = 5;} // define min and max ... depending on screensize 976 if($(window).width() < 500) {visibleItems = 2;} // define min and max ... depending on screensize 977 978 $('.fm_yt_carousel').flexslider({ 979 animation: 'slide', 980 slideshow: false, 981 itemWidth: 180, 982 itemMargin: 10, 983 minItems: visibleItems, 984 maxItems: visibleItems, 985 asNavFor: '.fm_yt_slider' 986 }); 987 988 } 989 990 991 992 993 994// SCROLL TO HASH 995jQuery.fn.scrollTo = function(elem) { $(this).scrollTop($(this).scrollTop() - $(this).offset().top + $(elem).offset().top); return this; }; 996var lhash = window.location.hash;if (lhash) {$("#wrapper").scrollTo(lhash);} 997 998 999}); 1000 1001 1002$(document).ready(function(){ 1003// suche 1004$( ".fa-search" ).click(function() { 1005 1006 $( "#page_search" ).slideToggle( "fast", "linear" ); 1007 $('#g360_pagewrapper').animate({scrollTop: $('#g360_pagewrapper').offset().top-100},'fast'); 1008 1009 1010}); 1011 1012$(".fa-times-circle-o").click(function() { 1013 $( "#page_search" ).slideToggle( "fast", "linear" ); 1014}); 1015 1016 var isMobile = { 1017 Android: function() {return navigator.userAgent.match(/Android/i);}, 1018 BlackBerry: function() {return navigator.userAgent.match(/BlackBerry/i);}, 1019 iOS: function() {return navigator.userAgent.match(/iPhone|iPad|iPod/i);}, 1020 Opera: function() {return navigator.userAgent.match(/Opera Mini/i);}, 1021 Windows: function() {return navigator.userAgent.match(/IEMobile/i);}, 1022 any: function() {return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());} 1023 }; 1024 1025 1026 if(isMobile.any()){ 1027 // we are on a mobile device 1028 $('html').addClass('fm_mobiledevice'); 1029 }else{ 1030 // we are on a desktop device 1031 } 1032 1033// Newsletter subscription 1034// https://fitmachen.com/api_rest/newsletterMembers/1 1035$("form#widget-subscribe-form").on ("submit", function (event) { 1036 event.preventDefault (); // Prevent Default functionality 1037 // var url = event.currentTarget.action; // Get the action-url of the form 1038 var url = "https://www.fitmachen.com/api_rest/newsletterMembers/" + master_company_id; 1039 // console.log ("footer master_company_id " + master_company_id); 1040 // console.log ( $(this).serialize () ); 1041 1042 $.ajax ({ 1043 url: url, 1044 type: "post", 1045 dataType: "json", 1046 data: $(this).serialize () 1047 }) 1048 .done (function (data, textStatus, jqXHR) { 1049 console.log ("Vorgang erfolgreich durchgeführt"); 1050 alert ("Vorgang erfolgreich durchgeführt. Bitte bestätigen Sie Ihre Anmeldung über den Link in der E-Mail, die wir Ihnen gesendet haben."); 1051 }) 1052 .fail (function (jqXHR, textStatus, errorThrown) { 1053 console.log ("Fehler aufgetreten", textStatus); 1054 //alert ("Fehler aufgetreten: " + textStatus); 1055 alert ("Fehler aufgetreten: " + jqXHR.responseJSON.message); 1056 }); 1057}); 1058 1059 1060});
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.