/* Created By: Aaron Rautenberg Website: http://www.dsignar.de Date: 10/02/2014 */ /*-------------------------------GLOBAL VARIABLES------------------------------------*/ /*-----------------------------------------------------------------------------------------------*/ $(document).ready(function(){ ///////////////////////////////////////////////////////////////////////////////////// // Select Box ///////////////////////////////////////////////////////////////////////////////////// $("#kurzzeitkennzeichen .dropdownbox").dropkick({ }); $("#ausfuhrkennzeichen .dropdownbox").dropkick({ }); $("#tageszulassung .dropdownbox").dropkick({ }); $('.dk_container').each(function() { $(this).attr('style','display:inline-block;'); }); $('.dk_toggle').each(function() { $(this).attr('style','width:12em;'); }); ///////////////////////////////////////////////////////////////////////////////////// // jQuery Fancybox ///////////////////////////////////////////////////////////////////////////////////// // infobox $(".infobox").addClass("box border"); $("#user_nomsg").find("img").attr("src","./content/0108/img/info.png"); $("#evbKauf").find("img").attr("src","./content/0108/img/info.png"); // warenkorb 4. inputbox - widerrufsbelehreung $(".inputbox").addClass("box border"); // Neu Registrierung - 2.Rechnungsanschrift $(".formbox a.info").each(function(index){ $(this).addClass('fancyboxButton').attr('href', '#inline'+index).find('span').attr('id','inline'+index); $(this).find('div').removeAttr('style'); $(this).find('h4').removeAttr('style'); $(this).find('p').removeAttr('style'); }); // Kontrollzentrum - Persönliche Daten Infotext $(".formedit a.info").each(function(index){ $(this).addClass('fancyboxButton').attr('href', '#inline'+index).find('span').attr('id','inline'+index); $(this).find('div').removeAttr('style'); $(this).find('h4').removeAttr('style'); $(this).find('p').removeAttr('style'); }); // Kontrollzentrum - Mein Konto $(".table_controlcenter").each(function(index){ $(this).find('td').removeAttr('style'); //$(this).find('td div').removeAttr('style'); }); // in allen links den tag löschen $("a").find("b").contents().unwrap(); // button breite löschen $(".btn_kasse8").removeAttr('style'); $(".formedit").each(function(index){ //$(this).addClass('fancyboxButton').attr('href', '#inline'+index).find('span').attr('id','inline'+index); $(this).find('select[name="gebtag"]').parent('div').addClass('geburtsdatum'); //$(this).find('h4').removeAttr('style'); //$(this).find('p').removeAttr('style'); }); // $("a.lbOn").addClass('fancyboxButton fancybox.iframe'); // Fancybox Global $(".fancyboxButton").fancybox({ padding : 10, margin : 20, maxWidth : 800, maxHeight : 600, fitToView : false, width : '70%', height : '70%', closeClick : false, openEffect : 'elastic', // 'elastic', 'fade' or 'none' openSpeed : 250, closeEffect : 'elastic', // 'elastic', 'fade' or 'none' closeSpeed : 250, }); ///////////////////////////////////////////////////////////////////////////////////// // jQuery UI ///////////////////////////////////////////////////////////////////////////////////// $(".accordion").accordion(); ///////////////////////////////////////////////////////////////////////////////////// // Login ///////////////////////////////////////////////////////////////////////////////////// $(".forgetLogin a").hover(function() { $(this).parents('div.forgetLogin').find('div.loginInfo').toggle(); }); $(".forgetKennwort a").hover(function() { $(this).parents('div.forgetKennwort').find('div.loginInfo').toggle(); }); ///////////////////////////////////////////////////////////////////////////////////// // Kontrollzentrum ///////////////////////////////////////////////////////////////////////////////////// $(".table_controlcenter").addClass('border'); $(".wk_table").addClass('border'); $(".formedit").addClass('border'); //$("input").removeAttr('style'); });