Help
RSS
API
Feed
Maltego
Contact
Domain > www.cyclefit.nl
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2019-09-13
86.39.240.66
(
ClassC
)
2024-09-06
86.39.240.67
(
ClassC
)
Port 80
HTTP/1.1 302 FoundDate: Fri, 06 Sep 2024 07:49:02 GMTServer: ApacheLocation: https://www.cyclefit.nl/sapphire/main.php?url/Content-Length: 231Content-Type: text/html; charsetiso-8859-1 !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN>html>head>title>302 Found/title>/head>body>h1>Found/h1>p>The document has moved a hrefhttps://www.cyclefit.nl/sapphire/main.php?url/>here/a>./p>/body>/html>
Port 443
HTTP/1.1 200 OKDate: Fri, 06 Sep 2024 07:49:03 GMTServer: ApacheExpires: Thu, 19 Nov 1981 08:52:00 GMTPragma: no-cacheCache-Control: no-cache, max-age0, must-revalidateSet-Cookie: PHPSESSIDkjvnm1f6ialiubfkfn0v9tdrk3; path/; HttpOnlySet-Cookie: bypassStaticCachedeleted; expiresThu, 01-Jan-1970 00:00:01 GMT; path/; httponlySet-Cookie: bypassStaticCachedeleted; expiresThu, 01-Jan-1970 00:00:01 GMT; path/; httponlyVary: Accept-Encoding,User-AgentTransfer-Encoding: chunkedContent-Type: text/html; charsetutf-8 !DOCTYPE html>html xmlns:fbhttps://ogp.me/ns/fb#>!--if !IE>!-->html langen-US>!--!endif-->!--if IE 6 >html langen-US classie ie6>!endif-->!--if IE 7 >html langen-US classie ie7>!endif-->!--if IE 8 >html langen-US classie ie8>!endif-->head>!-- Global site tag (gtag.js) - Google Analytics -->base hrefhttps://www.cyclefit.nl/>!--if lte IE 6>/base>!endif-->title>CycleFit » About/title>meta charsetutf-8>meta http-equivX-UA-Compatible contentIEedge />meta nameviewport contentwidthdevice-width, initial-scale1.0, maximum-scale1.0, user-scalable0>meta http-equivContent-Type contenttext/html; charsetutf-8>meta nameauthor contentRob van Eck Design - https://www.robvaneckdesign.nl />meta namegoogle-site-verification content1_nx0YK_z4T80v6pIW0vXcj2f34GuFxQjosIw77QRxI />script>if((window.devicePixelRatioundefined?1:window.devicePixelRatio)>1) document.cookieHTTP_IS_RETINA1;path/;/script>!--if IE >link relstylesheet typetext/css mediascreen hrefthemes/responsive/css/ie-fixes.css />!endif-->!--if lt IE 9>meta http-equivrefresh content0;URLhttps://www.cyclefit.nl/upgrade/index.html />!endif--> link relstylesheet hrefthemes/responsive/css/font-awesome.css typetext/css mediascreen />link relstylesheet hrefthemes/responsive/javascript/mediabox/mediabox.css typetext/css mediascreen />script typetext/javascript srchttps://www.google.com/jsapi>/script>link relshortcut icon hrefthemes/responsive/images/favicon/favicon.ico?v2 />link relapple-touch-icon sizes114x114 hrefthemes/responsive/images/favicon/apple-touch-icon-114x114-precomposed.png?v2 />noscript>div idnoscript>This website requires javascript to function optimally. Please enable javascript in your browser settings./div>/noscript> script> localStorage.setItem(shownMigrationModal, FALSE); /script>link relstylesheet typetext/css hrefhttps://www.cyclefit.nl/themes/responsive/css/layout.css?m1711139460 />link relstylesheet typetext/css hrefhttps://www.cyclefit.nl/themes/responsive/css/typography.css?m1556968621 />link relstylesheet typetext/css hrefhttps://www.cyclefit.nl/themes/responsive/css/form.css?m1530978197 />link relstylesheet typetext/css hrefhttps://www.cyclefit.nl/themes/responsive/css/reset.css?m1530978197 />/head>body classHomepage site > div idpreload>/div> div idmediaboxwrapper> div idmediaboxloading>/div> div idmediaboxclose classmb_close>/div> div idmediabox> div idmediaboxcontentwrapper> div idmediaboxcontent>/div> /div> /div>/div> div idtopbar> div classcenter> div idnav-open-button>i classicon-reorder>/i>/div>div idnavwrapper classclearfix> div idlogo classhomelogo> a hrefhome?localeen_US titleVisit the page Home>/a> /div> nav idmain classnv1 clearfix> ul classlevel1 clearfix> !-- 640 only --> div idlng-dd> select> option value/home/>English (US)/option> option value/verantwoorde-positionering/>Nederlands/option> option value/ueber-cyclefit/>Deutsch/option> option value/propos-de-cyclefit/>français/option> /select> /div> !-- --> li idButMenu1 classcurrent level1 children> a href/ classlevel1 titleVisit the page The perfect riding position>About/a> ul classlevel2 clearfix> li classlink level2 clearfix nochildren > a href/home/why-cyclefit/ classlevel2 titleVisit the page Why CycleFit>Why CycleFit/a> /li> li classlink level2 clearfix nochildren > a href/home/for-whom/ classlevel2 titleVisit the page For Whom?>For Whom?/a> /li> li classlink level2 clearfix nochildren > a href/home/more-info/ classlevel2 titleVisit the page More info>More info/a> /li> li classlink level2 clearfix nochildren > a href/home/request-an-account/ classlevel2 titleVisit the page Request an Account>Request an Account/a> /li> li classlink level2 clearfix nochildren > a href/home/watch-demo/ classlevel2 titleVisit the page How are measurements taken?>How are measurements taken?/a> /li> li classlink level2 clearfix nochildren > a href/find-your-bike-shop/ classlevel2 titleVisit the page Find nearest Dealer>Find nearest Dealer/a> /li> /ul> /li> li idButMenu2 classlink level1 > a href/find-your-bike-shop/ classlevel1 titleVisit the page Find your Bike Shop>Dealers/a> /li> li idButMenu3 classlink level1 > a href/contact/ classlevel1 titleVisit the page Contact>Contact/a> /li> li idButMenu4 classlink level1 > a href/mycyclefit/ classlevel1 titleVisit the page MyCycleFit>MyCycleFit/a> /li> /ul> /nav>/div> /div> div idlng-select> div idlng-open-button> i classicon-globe>/i> /div> nav idlng classnv1> ul classlevel2 clearfix> li classen_US current>a href/home/ hreflangen-US titleThe perfect riding position>English (US)/a>/li> li classnl_NL> a href/verantwoorde-positionering/ hreflangnl-NL titleVerantwoorde positionering>Nederlands/a> /li> li classde_DE> a href/ueber-cyclefit/ hreflangde-DE titleVerantworte Empfehlung>Deutsch/a> /li> li classfr_FR> a href/propos-de-cyclefit/ hreflangfr-FR titleRecommandations avisées>français/a> /li> /ul> /nav>/div> /div> header idmain> div idslider class stylebackground:url(/assets/Uploads/header/_resampled/SetWidth1080-Road-web.jpg);> div idslide1 classslide stylebackground:url(/assets/Uploads/header/_resampled/SetWidth1080-Road-web.jpg); > /div> div idslide2 classslide stylebackground:url(/assets/Uploads/header/_resampled/SetWidth1080-Mtb-web.jpg); > /div> /div>/header> div idmigrate-modal classmigrateModalOverlay> div classmigrateModal> In this version of the Cyclefit software you can no longer enter measurements from 01-05-2024. If you do not yet have a login for the updated software, please contact a hrefmailto:info@cyclefit.com>info@cyclefit.com/a> button idmigrate-modal-close>Close/button> /div> /div> div idcontent-wrapper> div classcenter clearfix typography> section> div idcf-info classgrid33 col-2 folded> h1>The perfect riding position/h1> p classfirst>Advising and adjusting the correct saddle and handlebar height is currently often done without a professional measurement system. Correct and accurate measurements, in these cases, are often achieved by sheer chance. For the many people who are spending more and more money on bicycles and components, perfect adjustment is very important./p>p>For this reason, the high demands on service for bicycle adjustment in the industry are understandable. Also, the attention given to professional bicycle fit in scientific literature and magazines prove that cyclists are demanding more and more precision. More and more dealers are beginning to utilize computerized fit systems in order to provide precise adjustment for their customers/p> a idcf-info-unfold href# titleRead more> i classicon-plus>/i>Read more /a> /div> div idcf-login classgrid33 col-1> h2>MyCycleFit/h2> form idCustomLoginForm_LoginForm action/home/LoginForm methodpost enctypeapplication/x-www-form-urlencoded> p idCustomLoginForm_LoginForm_error classmessage styledisplay: none>/p> fieldset> input classhidden typehidden idCustomLoginForm_LoginForm_AuthenticationMethod nameAuthenticationMethod valueMemberAuthenticator /> div idEmail classfield text >label classleft forCustomLoginForm_LoginForm_Email>Email/label>div classmiddleColumn>input typetext classtext idCustomLoginForm_LoginForm_Email nameEmail value />/div>/div> div idPassword classfield password >label classleft forCustomLoginForm_LoginForm_Password>Password/label>div classmiddleColumn>input classtext typepassword idCustomLoginForm_LoginForm_Password namePassword value />/div>/div> p idRemember classfield checkbox > input typecheckbox idCustomLoginForm_LoginForm_Remember nameRemember value1 /> label classright forCustomLoginForm_LoginForm_Remember>Remember me next time?/label> /p> div classclear>!-- -->/div> /fieldset> div classActions> input classaction idCustomLoginForm_LoginForm_action_dologin typesubmit nameaction_dologin valueLog in titleLog in /> p idForgotPassword>a hrefSecurity/lostpassword>Ive lost my password/a>/p> /div> /form> /div> div idfirst_block classgrid grid33 col-1 button> a href/home/why-cyclefit/ titleVisit the page Why CycleFit> i class icon-move>/i> span>Why CycleFit/span> /a> /div> div classgrid grid33 col-1 button> a href/home/for-whom/ titleVisit the page For Whom?> i classicon-question-sign>/i> span>For Whom?/span> /a> /div> div classgrid grid33 col-1 button> a href/home/more-info/ titleVisit the page More info> i classicon-info-sign>/i> span>More info/span> /a> /div> div classgrid grid33 col-1 button> a href/home/request-an-account/ titleVisit the page Request an Account> i classicon-key>/i> span>Request an Account/span> /a> /div> div classgrid grid33 col-1 button> a href/home/watch-demo/ titleVisit the page How are measurements taken?> i classicon-play-circle>/i> span>How are measurements taken?/span> /a> /div> div classgrid grid33 col-1 button> a href/find-your-bike-shop/ titleVisit the page Find nearest Dealer> i classicon-map-marker>/i> span>Find nearest Dealer/span> /a> /div> /section> /div> /div> footer> div classcenter clearfix> div classlogo> a hrefhttp://www.innovativecycling.com target_blank titleVisit innovativecycling.com>/a> /div> p>CycleFit is part of Innovative Cycling/p> /div>/footer> script typetext/javascript>var switchTo5xfalse;/script>script typetext/javascript srchttps://code.jquery.com/jquery-1.8.2.js>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/jquery-ui-1.10.2.custom.min.js?m1530978198>/script>script typetext/javascript srchttps://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/GA.js?m1530978198>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/mediabox/mediabox.js?m1530978202>/script>script typetext/javascript srchttps://ws.sharethis.com/button/buttons.js>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/script.js?m1530978198>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/GoogleChartFunctions.js?m1530978198>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/debounce.js?m1530978198>/script>script typetext/javascript srchttps://www.cyclefit.nl/themes/responsive/javascript/modernizr.js?m1530978198>/script>script typetext/javascript>//!CDATA//Plot stack and reach is leeg als je edit Measurement aanpast,//daarnaast moeten deze ook gevuld worden met gegevens die voorgaand zijn ingevuld voor het selecteren van edit MeasurementjQuery.noConflict();(function($) { //Variabelen om functies wel of niet aan te roepen var editMeasurement 0; var editMeasurements 0; var editMeasurementsNew 0; var editFrameValue 0; var cfUrl document.getElementsByTagName(base)0.href; $(document).ready(function() { validateAllForms(); }); $(document).ajaxComplete(function(){ validateAllForms(); }); //Variabelen op 1 zetten zodat alle waardes worden terug gezet van de vorige meting $(body).on(click, #backToMeasurement, function() { newEditMeasurement(); }); $(body).on(click, #backToMeasurementControl, function() { newEditMeasurement(); editKind $(#kind).val(); editType $(#type).val(); if(editKind Classic) { editCategory $(#cat).val(); editInseam $(#inseam).val(); editUpperleg $(#upperleg).val(); editTorso $(#torso).val(); editArm $(#arm).val(); editUnderarm $(#underarm).val(); editShoulder $(#shoulder).val(); editLfoot $(#lfoot).val(); editRfoot $(#rfoot).val(); editSaddle $(#saddle).val(); if(editSaddle 0) { editSaddlelength $(#saddlelength).val(); } else { editSaddlelength undefined; } editCrankoptions $(#crankoptions).val(); if(editCrankoptions 1) { editCranklength $(#cranklength).val(); } else { editCranklength undefined; } editPedal $(#pedal).val(); editHandlebar $(#handlebar).val(); if(editHandlebar 0) { editReachstuur $(#reachstuur).val(); editDropstuur $(#dropstuur).val(); } else { editReachstuur undefined; editDropstuur undefined; } editShifter $(#shifter).val(); if(editShifter 0) { editShifterreach $(#shifterreach).val(); editShiftercorrection $(#shiftercorrection).val(); } else { editShifterreach undefined; editShiftercorrection undefined; } editPlot $(#plot).val(); } else if(editKind FrameFinder) { // Haal gegevens uit hidden fields editMeetmanier $(#meetmanier).val(); editHandlebar $(#handlebar).val(); editShifter $(#shifter).val(); editHoekstuurpen $(#hoekstuurpen).val(); editMeetmanierterugstand $(#meetmanierterugstand).val(); editSaddle $(#saddle).val(); editMeasuretool $(#measuretool).val(); if(editMeasuretool ! 1) { editXsaddle $(#xsaddle).val(); editYsaddle $(#ysaddle).val(); editXhandlebar $(#xhandlebar).val(); editYhandlebar $(#yhandlebar).val(); } else { editSaddleheight $(#zadelhoogte).val(); editTerugstandzadel $(#terugstandzadel).val(); editDistsaddlehandlebar $(#distancesaddlehandlebar).val(); editDropsaddlehandlebar $(#dropsaddlehandlebar).val(); } } var editFrameBrandArr new Array(); var editFrameModelArr new Array(); for(var i 1; i 15; i++) { editFrameBrandArr.push($(#inFrameBrand+i).val()); editFrameModelArr.push($(#inFrameModel+i).val()); } memberID $(#memberID).val(); }); function newEditMeasurement() { editMeasurements 1; editMeasurement 1; editInput 1; } $(body).on(click, #deepSearchButton, function() { var x $(#deepSearchField).val(); var link window.location.protocol + // + window.location.hostname + window.location.pathname; window.open(link+?search+x, _blank); }); function validateAllForms(){ //Waardes terug zetten in velden if(editMeasurements 1) { $(selectnamein_Type).val(editType); if(editKind Classic) { $(selectnamein_Cat).val(editCategory); $(inputnamein_Binnenbeenlengte).val(editInseam).toggleClass(hint, false); $(inputnamein_Bovenbeenlengte).val(editUpperleg).toggleClass(hint, false); $(inputnamein_Romplengte).val(editTorso).toggleClass(hint, false); $(inputnamein_Armlengte).val(editArm).toggleClass(hint, false); $(inputnamein_Onderarmlengte).val(editUnderarm).toggleClass(hint, false); $(inputnamein_Schouderbreedte).val(editShoulder).toggleClass(hint, false); $(inputnamein_VoetlengteLinks).val(editLfoot).toggleClass(hint, false); $(inputnamein_VoetlengteRechts).val(editRfoot).toggleClass(hint, false); if(editSaddle 0) { $(selectnameSaddle).val(manual); $(inputnamein_Zadellengte).val(editSaddlelength).toggleClass(hint, false); } else { $(selectnameSaddle).val(editSaddle); } $(selectnamein_CrankOptie).val(editCrankoptions); if(editCrankoptions 1) { $(inputnamein_Cranklengte).val(editCranklength); } $(selectnamePedal).val(editPedal); if(editType 1 || editType 19 || editType 20) { if(editHandlebar manual || editHandlebar 0) { $(selectnameHandlebar).val(manual).change(); $(inputnamein_ReachStuurRace).val(editReachstuur).toggleClass(hint, false); $(inputnamein_DropStuurRace).val(editDropstuur).toggleClass(hint, false); } else { $(selectnameHandlebar).val(editHandlebar); } if(editShifter 0) { $(selectnameShifterGrip).val(manual).change(); $(inputnamein_ShifterReach).val(editShifterReach).toggleClass(hint, false); $(inputnamein_ShifterCorrection).val(editShiftercorrection).toggleClass(hint, false); } else { $(selectnameShifterGrip).val(editShifter); } } } else if(editKind FrameFinder) { $(inputnamein_Meetmaniervalue + editMeetmanier + ).attr(checked, checked); if(editMeetmanier ! 1) { if(editHandlebar manual || editHandlebar 0) { $(selectnameHandlebar).val(manual).change(); $(inputnamein_ReachStuurRace).val(editReachstuur).toggleClass(hint, false); $(inputnamein_DropStuurRace).val(editDropstuur).toggleClass(hint, false); } else { $(selectnameHandlebar).val(editHandlebar); } } if(editMeetmanier 3) { if(editShifter manual || editShifter 0) { $(selectnameShifterGrip).val(manual).change(); $(inputnamein_ShifterReach).val(editShifterReach).toggleClass(hint, false); $(inputnamein_ShifterCorrection).val(editShiftercorrection).toggleClass(hint, false); } else { $(selectnameShifterGrip).val(editShifter); } } $(inputnamein_Hoekstuurpen).val(editHoekstuurpen); $(inputnamein_MeetmanierTerugstandvalue + editMeetmanierterugstand + ).attr(checked, checked); $(selectnameSaddle).val(editSaddle); $(selectnameMeasureTool).val(editMeasuretool).change(); if(editMeasuretool ! 1) { $(inputnamein_Xz).val(editXsaddle).toggleClass(hint, false); $(inputnamein_Yz).val(editYsaddle).toggleClass(hint, false); $(inputnamein_Xs).val(editXhandlebar).toggleClass(hint, false); $(inputnamein_Ys).val(editYhandlebar).toggleClass(hint, false); } else { $(inputnamein_Zadelhoogte).val(editSaddleheight).toggleClass(hint, false); $(inputnamein_TerugstandZadel).val(editTerugstandzadel).toggleClass(hint, false); $(inputnamein_AfstandZadelStuur).val(editDistsaddlehandlebar).toggleClass(hint, false); $(inputnamein_HoogteVerschilZadelStuur).val(editDropsaddlehandlebar).toggleClass(hint, false); } } } //Variabelen om alle informatie op te slaan voor als je het wilt bewerken $(body).on(click, inputnameaction_doCFResults, function() { editMeasurementsNew 1; editType $(selectnamein_Type).val(); //Kijken of classic meting editCategory $(selectnamein_Cat).val(); //Kijken of FrameFinder meting editHoekstuurpen $(inputnamein_HoekStuurpen).val(); if(editCategory) { editKind Classic; } else if(editHoekstuurpen) { editKind FrameFinder; } else { editKind Basic; } if(editKind Classic) { editInseam $(inputnamein_Binnenbeenlengte).val(); editUpperleg $(inputnamein_Bovenbeenlengte).val(); editTorso $(inputnamein_Romplengte).val(); editArm $(inputnamein_Armlengte).val(); editUnderarm $(inputnamein_Onderarmlengte).val(); editShoulder $(inputnamein_Schouderbreedte).val(); editLfoot $(inputnamein_VoetlengteLinks).val(); editRfoot $(inputnamein_VoetlengteRechts).val(); editSaddle $(selectnameSaddle).val(); editCrankoptions $(selectnamein_CrankOptie).val(); editCranklength $(inputnamein_Cranklengte).val(); editPedal $(selectnamePedal).val(); editHandlebar $(selectnameHandlebar).val(); if(editHandlebar 0 || editHandlebar manual) { editReachstuur $(inputnamein_ReachStuurRace).val(); editDropstuur $(inputnamein_DropStuurRace).val(); } editShifter $(selectnameShifterGrip).val(); if(editShifter 0 || editShifter manual) { editShifterReach $(inputnamein_ShifterReach).val(); editShiftercorrection $(inputnamein_SHifterCorrection).val(); } editPlot $(selectnamein_Plot).val(); } else if(editKind FrameFinder) { editMeetmanier $(inputnamein_Meetmanier:checked).val(); editHandlebar $(selectnameHandlebar).val(); if(editHandlebar 0 || editHandlebar manual) { editReachstuur $(inputnamein_ReachStuurRace).val(); editDropstuur $(inputnamein_DropStuurRace).val(); } editShifter $(selectnameShifterGrip).val(); if(editShifter 0 || editShifter manual) { editShifterReach $(inputnamein_ShifterReach).val(); editShiftercorrection $(inputnamein_SHifterCorrection).val(); } editHoekstuurpen $(inputnamein_HoekStuurpen).val(); editMeetmanierterugstand $(inputnamein_MeetmanierTerugstand:checked).val(); editSaddle $(selectnameSaddle).val(); editMeasuretool $(selectnameMeasureTool).val(); editXsaddle $(inputnamein_Xz).val(); editYsaddle $(inputnamein_Yz).val(); editXhandlebar $(inputnamein_Xs).val(); editYhandlebar $(inputnamein_Ys).val(); editSaddleheight $(inputnamein_Zadelhoogte).val(); editTerugstandzadel $(inputnamein_TerugstandZadel).val(); editDistsaddlehandlebar $(inputnamein_AfstandZadelStuur).val(); editDropsaddlehandlebar $(inputnamein_HoogteVerschilZadelStuur).val(); } editFrameBrandArr new Array(); editFrameModelArr new Array(); for(var i 1; i 15; i++) { editFrameBrandArr.push($(selectnamein_frame_brand_+i+).val()); editFrameModelArr.push($(selectnamein_frame_model_+i+).val()); } }); $(form).change(function() { editMeasurements 0; }); /* add comma and point to range validator */ $.validator.methods.range function (value, element, param) { var globalizedValue value.replace(,, .); return this.optional(element) || (globalizedValue > param0 && globalizedValue param1); } $.validator.methods.number function (value, element) { return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\s\.,\d{3})+)(?:\.,\d+)?$/.test(value); } $.extend($.validator.messages, { required: This field is required, maxlength: $.format(This field allowes a maximum of {0} characters), minlength: $.format(This field requires at least {0} characters), rangelength: $.format(This field requires at least {0} and a maximum of {1} characters), email: A valid email is required, url: A valid URL is required (https://), date: A valid date is required, number: A valid number is required, digits: Only digits are allowed, equalTo: This input does not match, range: $.format(Please enter a value between {0} and {1}), max: $.format(Please enter a value smaller then/equal to), min: $.format(Please enter a value greater then/equal to), creditcard: A valid creditcard number is required, }); /* select validator */ $.validator.addMethod( valueNotEquals, function(value, element, arg){ return arg ! value; }, Value must not equal arg.); /* DOB */ $.validator.addMethod( mydate, function(value, element) { if(value){ return value.match(/^0-3?0-9\-01?0-9\-12900-90-9$/); }else{ return true; } } ); /* EditProfilePage Control Customers - Edit customer */ $(#EditProfileFormCustomer_EditProfileForm).validate({ rules: { Gender: { required: true, valueNotEquals: Please select }, FirstName: {required: true, minlength: 2}, Surname: {required: true, minlength: 2}, Address: {required: true, minlength: 2}, Postcode: {required: true, minlength: 4, maxlength: 10}, City: {required: true, minlength: 2}, Province: {required: true, minlength: 2}, Country: {required: true, minlength: 2}, DOB: { required: false, mydate:true }, Telephone: { number: true, }, Mobile: { number: true, }, Locale: { required: true, valueNotEquals: Please select }, Email: { required: true, email: true, }, Password_Password: {required: true, minlength: 5}, Password_ConfirmPassword: {required: true, minlength: 5, equalTo: #Password-_Password}, }, messages:{ Locale: This field is required, DOB: A valid date is: DD-MM-YYYY, Email: { remote: Sorry, that email address already exists } } }); /* EditProfilePage */ $(#EditProfileFormOthers_EditProfileForm).validate({ rules: { Company: {required: true, minlength: 2}, Address: {required: true, minlength: 2}, Postcode: {required: true, minlength: 4, maxlength: 10}, City: {required: true, minlength: 2}, Province: {required: true, minlength: 2}, Country: {required: true, minlength: 2}, Telephone: { required: true, number: true, }, Fax: { number: true, }, //VAT: { required: true, minlength: 2}, Website: { url: true, }, Gender: { required: true, valueNotEquals: Please select }, FirstName: {required: true, minlength: 2}, Surname: {required: true, minlength: 2}, Mobile: { number: true, }, DOB: { required: false, mydate:true }, Locale: { required: true, valueNotEquals: Please select }, requestedType: { required: true, valueNotEquals: Please select }, Kind: { required: true, valueNotEquals: Please select }, Email: { required: true, email: true, }, Password_Password: {required: true, minlength: 5}, Password_ConfirmPassword: {required: true, minlength: 5, equalTo: #Password-_Password}, }, messages:{ Locale: This field is required, DOB: A valid date is: DD-MM-YYYY, requestedType: This field is required, Kind: This field is required, Email: { remote: Sorry, that email address already exists } } }); /* Step 1 - create customer Control Customers - New customer */ $(#RegistrationFormCustomer_RegistrationForm).validate({ rules: { Gender: { required: true, valueNotEquals: Please select }, FirstName: {required: true, minlength: 2}, Surname: {required: true, minlength: 2}, Locale: { required: true, valueNotEquals: Please select }, Email: { required: true, email: true, remote: /home/ + checkemail }, Password_Password: {required: true, minlength: 5}, Password_ConfirmPassword: {required: true, minlength: 5, equalTo: #Password-_Password}, Agree: { required: true, }, }, messages:{ Locale: This field is required, DOB: A valid date is: DD-MM-YYYY, Email: { remote: Sorry, that email address already exists } } }); /* Request an Account */ $(#RegistrationFormOthers_RegistrationForm).validate({ rules: { Company: { required: true, minlength: 2}, Address: { required: true, minlength: 2}, Postcode: { required: true, minlength: 4, maxlength: 10}, City: { required: true, minlength: 2}, Province: { required: true, minlength: 2}, Country: { required: true, minlength: 2}, Telephone: { required: true, number: true, }, Fax: { number: true, }, //VAT: { required: true, minlength: 2}, Website: { url: true, }, Gender: { required: true, valueNotEquals: Please select }, FirstName: { required: true, minlength: 2}, Surname: { required: true, minlength: 2}, Mobile: { number: true, }, DOB: { required: false, mydate:true }, Locale: { required: true, valueNotEquals: Please select }, requestedType: { required: true, valueNotEquals: Please select }, Kind: { required: true, valueNotEquals: Please select }, Email: { required: true, email: true, remote: /home/ + checkemail }, Password_Password: { required: true, minlength: 5}, Password_ConfirmPassword: {required: true, minlength: 5, equalTo: #Password-_Password}, Agree: { required: true, }, }, messages:{ Locale: This field is required, DOB: A valid date is: DD-MM-YYYY, requestedType: This field is required, Kind: This field is required, Email: { remote: Sorry, that email address already exists } } }); /* Step 1, select existing member */ /**/ $(#Form_MemberSearchForm).validate({ ignore: , rules: { MemberSearch: { required: true, }, MemberSearchID: { required: true, //remote: /home/ + checkmemberid } } /* messages:{ MemberSearchID: { //remote: none existing member } }*/ }); /* Step 3 validation */ $(#CycleFitClassic_cfClassic).validate({ rules: { in_Type: { required: true, }, in_Cat: { required: true, }, in_Binnenbeenlengte: { required: true, range: 25, 150}, in_Bovenbeenlengte: { required: false, range: 25, 100}, in_Romplengte: { required: false, range: 25, 100}, in_Armlengte: { required: false, range: 30, 100}, //in_Onderarmlengte: { required: true, range: 10, 100}, in_Schouderbreedte: { required: true, range: 20, 70}, in_VoetlengteLinks: { required: true, range: 11, 50}, in_VoetlengteRechts: { required: true, range: 11, 50}, in_Schoenmaat: { required: false, range: 35, 55}, /**/ in_ZooldikteSchoen: { required: false, range: 0, 40}, //in_Zadellengte: { required: true, range: 5, 40}, /*in_Zithoek: { required: true, range: 0, 100}, in_Cranklengte: { required: true, range: 5, 40},*/ Pedal: { required: true, }, Saddle: { required: true, }, in_CrankOptie: { required:true, }, Handlebar: { required: true, }, in_ReachStuurRace: { required: true, }, in_DropStuurRace: { required: true, }, ShifterGrip: { required: true, }, in_ShifterReach: { required: true, }, in_ShifterCorrection: { required: true, }, }, messages:{ in_Binnenbeenlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Bovenbeenlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Romplengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Armlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Onderarmlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Schouderbreedte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Voetlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, /**/ in_ZooldikteSchoen: { range: $.format(Please enter a value between {0} and {1} mm) }, in_Zadellengte: { range: $.format(Please enter a value between {0} and {1} cm) }, in_Cranklengte: { range: $.format(Please enter a value between {0} and {1} mm) }, } }); $(#CycleFitCleat_cfCleat).validate({ rules: { //in_Voetlengte: { required: true, range: 11, 50}, in_VoetlengteLinks: { required: true, range: 11, 50}, in_VoetlengteRechts: { required: true, range: 11, 50}, Pedal: { required: true, }, }, messages:{ in_Voetlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, } }); $(#CycleFitFrameFinder_cfFrameFinder).validate({ rules: { in_Type: { required: true, }, //in_StuurUitgangspos: { required: true}, in_HoekStuurpen: { required: true, range: -60, 60}, in_MeetmanierTerugstand: { required: true }, Saddle: { required:true }, MeasureTool: { required: true }, in_Xz: { required: true }, in_Yz: { required: true }, in_Xs: { required: true }, in_Ys: { required: true }, in_frame_brand_1: { required: true }, in_frame_model_1: { required: true } }, messages:{ //in_StuurUitgangspos: { range: $.format(Please enter a value between {0} and {1} cm) }, in_HoekStuurpen: { range: $.format(Please enter a value between {0}° and {1}°) } } }); if(editMeasurements 1) { $(selectnamein_Type).change(); if(editKind Classic) { $(selectnameSaddle).change(); $(selectnamein_CrankOptie).change(); $(selectnameHandlebar).change(); $(selectnameShifterGrip).change(); } else if(editKind FrameFinder) { $(inputnamein_Meetmanier).change(); } } } $.fn.extend({ initializeFormStep3: function(){ /* Step 3: used on all forms */ /* convert commas into points */ $(#step3-ajaxWrapper input).on(blur, function() { var newVal $(this).val().replace(,, .); $(this).val(newVal); }); /* Step 3: CF Basic */ $(#CycleFitBasic_cfBasic).validate({ rules: { in_Type: { required: true, }, in_Binnenbeenlengte: { required: true, range: 24, 150}, }, messages:{ in_Binnenbeenlengte: { range: $.format(Please enter a value between {0} and {1} cm) }, } }); /* Step 3: CF Classic / Adv */ /* add hints to this step */ $(#step3-ajaxWrapper input.text).each(function() { var default_value this.value; if(default_value) { $(this).toggleClass(hint, true); $(this).attr(placeholder, default_value); $(this).val(); } $(this).focus(function(){ $(this).toggleClass(hint, false); }); $(this).blur(function(){ if(this.value ) { $(this).toggleClass(hint, false); } }); }); /* cfClassic specific... check if form exists */ if ($(#CycleFitClassic_cfClassic).length>0) { /* hide in_Zithoek */ $(#in_Zithoek).hide(); /* defaults */ $(#Saddle optionvalue346).prop(selected, true); $(#in_CrankOptie optionvalue2).prop(selected, true); $(#Pedal optionvalue5).prop(selected, true); $(#Handlebar optionvalue1).prop(selected, true); $(#ShifterGrip optionvalue4).prop(selected, true); /* hide in_Cat dependable options dropdown */ var in_cat_val {}; $(selectnamein_Cat option).each(function(){ in_cat_val$(this).val() $(this).text(); }); if(editMeasurement ! 1) { // Removes all options for the select box $(selectnamein_Cat option).remove(); // disable Plot Stack & Reach question, because there isnt a in_Type value atm $(selectnamein_Plot).attr(disabled, true); $(#in_Plot.field).toggleClass(disabled, true); } // on change in_Type $(selectnamein_Type).change(function() { var TypeVal $(selectnamein_Type).val(), CatVal $(selectnamein_Cat).val(); $(#Pedal optionvalue3).prop(selected, true); if (TypeVal 1){ $(selectnamein_Cat option).remove(); $(selectnamein_Cat).val(1); $(selectnamein_Cat).append( $(option>/option>).val(1).html(in_cat_val1) ); $(selectnamein_Cat).append( $(option selected>/option>).val(2).html(in_cat_val2) ); $(selectnamein_Cat).append( $(option>/option>).val(3).html(in_cat_val3) ); }else if (TypeVal 2 || TypeVal 19) { $(selectnamein_Cat option).remove(); $(selectnamein_Cat).append( $(option>/option>).val(1).html(in_cat_val1) ); $(selectnamein_Cat).val(1); }else if (TypeVal 3 || TypeVal 4 || TypeVal 5 || TypeVal 6 || TypeVal 7 || TypeVal 15 || TypeVal 16 || TypeVal 18 || TypeVal 20) { $(selectnamein_Cat option).remove(); $(selectnamein_Cat).val(1); $(selectnamein_Cat).append( $(option>/option>).val(1).html(in_cat_val1) ); $(selectnamein_Cat).append( $(option>/option>).val(2).html(in_cat_val2) ); $(#Pedal optionvalue5).prop(selected, true); }else if (TypeVal 8 || TypeVal 9 || TypeVal 10 || TypeVal 11 || TypeVal 12 || TypeVal 13 || TypeVal 14 || TypeVal 17) { $(selectnamein_Cat option).remove(); $(selectnamein_Cat).append( $(option>/option>).val(2).html(in_cat_val2) ); $(selectnamein_Cat).val(2); $(#Pedal optionvalue5).prop(selected, true); } if(TypeVal 2 || TypeVal 3) { hideAndClearFrames(); $(#CycleFitClassic_cfClassic_Cf_Frames).fadeOut(0); $(#in_Plot).fadeOut(0); } else { $(#CycleFitClassic_cfClassic_Cf_Frames).fadeIn(300); $(#in_Plot).fadeIn(300); } // PLOT // in type is not please select if($(selectnamein_Type).val() ! ){ // enable plot $(selectnamein_Plot).attr(disabled, false); $(#in_Plot.field).toggleClass(disabled, false); } }); //If Schoenmaat is filled in $(inputnamein_Schoenmaat).on(input, function() { var schoenmaat $(inputnamein_Schoenmaat).val(); if(schoenmaat ! ) { $(inputnamein_VoetlengteLinks).attr(disabled, true); $(inputnamein_VoetlengteRechts).attr(disabled, true); $(inputnamein_VoetlengteLinks).required false; $(inputnamein_VoetlengteRechts).required false; $(#in_VoetlengteLinks).fadeOut(0); $(#in_VoetlengteRechts).fadeOut(0); } else { $(inputnamein_VoetlengteLinks).attr(disabled, false); $(inputnamein_VoetlengteRechts).attr(disabled, false); $(inputnamein_VoetlengteLinks).required true; $(inputnamein_VoetlengteRechts).required true; $(#in_VoetlengteLinks).fadeIn(300); $(#in_VoetlengteRechts).fadeIn(300); } }); $(inputnamein_VoetlengteLinks, inputnamein_VoetlengteRechts).on(input, function() { var voetlengte $(inputnamein_VoetlengteLinks).val() + $(inputnamein_VoetlengteRechts).val(); if(voetlengte ! ) { $(inputnamein_Schoenmaat).attr(disabled, true); $(#in_Schoenmaat).fadeOut(0); $(inputnamein_VoetlengteLinks).required true; $(inputnamein_VoetlengteRechts).required true; } else { $(inputnamein_Schoenmaat).attr(disabled, false); $(#in_Schoenmaat).fadeIn(300); $(inputnamein_VoetlengteLinks).required false; $(inputnamein_VoetlengteRechts).required false; } }); // Function below but for edit measurements if(editInput 1) { editInput 0; $(selectnamein_Plot).val(0); hideAndClearFrames(); var TypeVal $(selectnamein_Type).val(); if (TypeVal 1 || TypeVal 19 || TypeVal 20){ $(#Handlebar).fadeIn(300); $(#Handlebar select).required true; $(#ShifterGrip).fadeIn(300); $(#ShifterGrip select).required true; }else{ $(#Handlebar).fadeOut(0); $(#in_ReachStuurRace).fadeOut(0); $(#in_DropStuurRace).fadeOut(0); $(#Handlebar select).required false; $(#in_ReachStuurRace input).required false; $(#in_DropStuurRace input).required false; $(#ShifterGrip).fadeOut(0); $(#in_ShifterReach).fadeOut(0); $(#in_ShifterCorrection).fadeOut(0); $(#in_ShifterReach input).required false; $(#in_ShifterCorrection input).required false; } if (TypeVal 2 || TypeVal 3){ $(#in_Onderarmlengte).fadeIn(300); }else{ $(#in_Onderarmlengte).fadeOut(150); } if(TypeVal 19){ pisteFixShifter(); pisteFixCrankLength(); }else{ pisteRemoveFixedCrankLength(); } } /* show / hide fields by type: in_Onderarmlengte, Handlebar, shifters */ $(#in_Onderarmlengte).fadeOut(0); $(selectnamein_Type).change(function() { editMeasurements 0; $(selectnamein_Plot).val(0); hideAndClearFrames(); var TypeVal $(selectnamein_Type).val(); if (TypeVal 1 || TypeVal 8 || TypeVal 19 || TypeVal 20 ){ $(#Handlebar).fadeIn(300); $(#ShifterGrip).fadeIn(300); $(#Handlebar select).rules(add, {required:true}); $(#ShifterGrip select).rules(add, {required:true}); }else{ $(#Handlebar).fadeOut(0); $(#in_ReachStuurRace).fadeOut(0); $(#in_DropStuurRace).fadeOut(0); $(#Handlebar select).rules(remove, required); $(#in_ReachStuurRace input).rules(remove, required); $(#in_DropStuurRace input).rules(remove, required); $(#ShifterGrip).fadeOut(0); $(#in_ShifterReach).fadeOut(0); $(#in_ShifterCorrection).fadeOut(0); $(#in_ShifterReach input).rules(remove, required); $(#in_ShifterCorrection input).rules(remove, required); } if (TypeVal 2 || TypeVal 3){ $(#in_Onderarmlengte).fadeIn(300); }else{ $(#in_Onderarmlengte).fadeOut(150); } if(TypeVal 19){ pisteFixShifter(); pisteFixCrankLength(); }else{ pisteRemoveFixedCrankLength(); } }); /* Zool dikte meten: hide/show zooldikte */ $(#in_ZooldikteSchoen).fadeOut(0); /* hide manual input */ $(selectnamein_ZooldikteSchoenMeten).bind(change, function () { if ($(this).val() 1) { $(#in_ZooldikteSchoen input).rules(add, {required:true, range: 5, 40 }); $(#in_ZooldikteSchoen).fadeIn(300); }else{ $(#in_ZooldikteSchoen input).rules(remove, required); $(#in_ZooldikteSchoen).fadeOut(150); } }); /* saddle: hide/show saddle lenght.. */ $(#in_Zadellengte).fadeOut(0); /* hide manual input */ $(selectnameSaddle).bind(change, function () { if ($(this).val() manual) { $(#in_Zadellengte input).rules(add, {required:true, range: 5, 40 }); $(#in_Zadellengte).fadeIn(300); }else{ $(#in_Zadellengte input).rules(remove, required); $(#in_Zadellengte).fadeOut(150); } }); /* crank lenght / options : CF Classic */ $(#in_Cranklengte).fadeOut(0); $(selectnamein_CrankOptie).bind(change, function () { if ($(this).val() 1) { $(#in_Cranklengte).fadeIn(300); $(#in_Cranklengte input).rules(add, {required:true, range: 150, 200 }); }else{ $(#in_Cranklengte).fadeOut(200); } return false; }); /* handlebar: hide/show handlebar manual inputs */ $(#in_ReachStuurRace).fadeOut(0); $(#in_DropStuurRace).fadeOut(0); $(selectnameHandlebar).bind(change, function () { if ($(this).val() manual) { $(#in_ReachStuurRace input).rules(add, {required:true, range: 0, 140 }); $(#in_DropStuurRace input).rules(add, {required:true, range: 0, 160 }); $(#in_ReachStuurRace).fadeIn(300); $(#in_DropStuurRace).fadeIn(300); }else{ $(#in_ReachStuurRace input).rules(remove, required); $(#in_DropStuurRace input).rules(remove, required); $(#in_ReachStuurRace).fadeOut(150); $(#in_DropStuurRace).fadeOut(150); } }); /* shifter: hide/show shifter manual inputs */ $(#in_ShifterReach).fadeOut(0); $(#in_ShifterCorrection).fadeOut(0); $(selectnameShifterGrip).bind(change, function () { if ($(this).val() manual) { $(#in_ShifterReach input).rules(add, {required:true, range: 0, 40 }); $(#in_ShifterCorrection input).rules(add, {required:true, range: 5, 40 }); $(#in_ShifterReach).fadeIn(300); $(#in_ShifterCorrection).fadeIn(300); }else{ $(#in_ShifterReach input).rules(remove, required); $(#in_ShifterCorrection input).rules(remove, required); $(#in_ShifterReach).fadeOut(150); $(#in_ShifterCorrection).fadeOut(150); } }); /* plot chart */ function hideAndClearFrames(){ $(selectnamein_Plot).val(0); /* reset plot select, to NO */ $(div.in_frame_wrap).fadeOut(0); //$(div.in_frame_model_brand select).val(); $(.in_frame_wrap).each(function() { $(this).find(select > option:gt(0)).remove(); }); $(#addFrameBut).fadeOut(0); } if(editMeasurements 1){ $(selectnamein_Plot).val(editPlot); } if ($(selectnamein_Plot).val() 0) { /* reset the frames the person might have selected */ hideAndClearFrames(); }else{ $(#addFrameBut).fadeIn(300); searchFrames(); } /* add frame button */ var addFrameButIndex 3; $(#addFrameBut).on(click, function(){ $(.in_frame_wrap).each(function( index, element ) { var wrap $(this); if(index addFrameButIndex){ wrap.fadeIn(300); addFrameButIndex++; return false; } }); return false; }); /* on plot change... */ $(selectnamein_Plot, selectnamein_Type).bind(change, function () { var TypeVal $(selectnamein_Type).val(); if ($(selectnamein_Plot).val() 0) { /* reset the frames the person might have selected */ hideAndClearFrames(); }else{ $(#addFrameBut).fadeIn(300); searchFrames(); } }); } /* rotation foot: CF Classic + CF Cleat */ var VVLR123 #in_VerdraaiingVoetL1, #in_VerdraaiingVoetR1; $(VVLR123).fadeOut(0); $(selectnamein_VerdraaiingVoetMeten).bind(change, function () { if ($(this).val() 1) { $(VVLR123).fadeIn(300); $(#in_VerdraaiingVoetL1 input).rules(add, {required:true, range: 0, 90 }); $(#in_VerdraaiingVoetR1 input).rules(add, {required:true, range: 0, 90 }); }else{ $(VVLR123).fadeOut(200); } return false; }); /* cfFrameFinder specific... check if form exists */ if ($(#CycleFitFrameFinder_cfFrameFinder).length>0) { // show handlebar shifter questions // add validation for handlebars shifters hideHandlebar(); hideShifters(); // select first type.. (race) is faster.. $(#in_Type optionvalue1).prop(selected, true); // check radio buttons (easier for client) //$(#CycleFitFrameFinder_cfFrameFinder_in_StuurUitgangspos_1).prop(checked, true); $(#CycleFitFrameFinder_cfFrameFinder_in_Meetmanier_1).prop(checked, true); $(#CycleFitFrameFinder_cfFrameFinder_in_MeetmanierTerugstand_1).prop(checked, true); // begin the form with Xs.. Ys.. etc showStraightInput(); // disable straight / diagonal inputs disableStraightDiagonal(); /* saddle: hide/show saddle lenght.. */ $(#in_Zadellengte).fadeOut(0); /* hide manual input */ // set defaults $(#in_HoekStuurpen input).removeClass(hint); $(#in_HoekStuurpen input).val(-6); /* Type change */ $(selectnamein_Type).bind(change, function () { if ($(this).val() 1) { // validatie erbij - meetmanier show $(#in_Meetmanier).fadeIn(300); addValidationMeetmanier(); }else{ // validatie eraf - meetmanier hiden $(#in_Meetmanier).fadeOut(0); removeValidationMeetmanier(); } // fill the dropdowns searchFrames(); }); // hide fields + remove validation in some scenarios $(#in_Meetmanier input).bind(change, function () { if ($(inputnamein_Meetmanier:checked).val() 1) { hideHandlebar(); hideShifters(); removeValidationHandlebar(); removeValidationShifters(); }else if($(inputnamein_Meetmanier:checked).val() 2) { showHandlebar(); hideShifters(); addValidationHandlebar(); removeValidationShifters(); }else{ showHandlebar(); showShifters(); addValidationHandlebar(); addValidationShifters(); } return false; }); /* saddle: hide/show saddle manual inputs */ $(selectnameSaddle).bind(change, function () { if ($(this).val() manual) { $(#in_Zadellengte input).rules(add, {required:true, range: 5, 40 }); $(#in_Zadellengte).fadeIn(300); }else{ $(#in_Zadellengte input).rules(remove, required); $(#in_Zadellengte).fadeOut(150); } }); /* handlebar: hide/show handlebar manual inputs */ $(#in_ReachStuurRace).fadeOut(0); $(#in_DropStuurRace).fadeOut(0); $(selectnameHandlebar).bind(change, function () { if ($(this).val() manual) { $(#in_ReachStuurRace input).rules(add, {required:true, range: 0, 140 }); $(#in_DropStuurRace input).rules(add, {required:true, range: 0, 160 }); $(#in_ReachStuurRace).fadeIn(300); $(#in_DropStuurRace).fadeIn(300); }else{ $(#in_ReachStuurRace input).rules(remove, required); $(#in_DropStuurRace input).rules(remove, required); $(#in_ReachStuurRace).fadeOut(150); $(#in_DropStuurRace).fadeOut(150); } }); /* shifter: hide/show shifter manual inputs */ $(#in_ShifterReach).fadeOut(0); $(#in_ShifterCorrection).fadeOut(0); $(selectnameShifterGrip).bind(change, function () { if ($(this).val() manual) { $(#in_ShifterReach input).rules(add, {required:true, range: 0, 40 }); $(#in_ShifterCorrection input).rules(add, {required:true, range: 5, 40 }); $(#in_ShifterReach).fadeIn(300); $(#in_ShifterCorrection).fadeIn(300); }else{ $(#in_ShifterReach input).rules(remove, required); $(#in_ShifterCorrection input).rules(remove, required); $(#in_ShifterReach).fadeOut(150); $(#in_ShifterCorrection).fadeOut(150); } }); // measurement tool question .. $(selectnameMeasureTool).bind(change, function () { disableStraightDiagonal(); var value $(this).val(); if (value) { var id $(this).val(); //load data var jqxhr $.ajax({ type: POST, url: cfUrl+home/ddMeasureToolsExtra/?id+id, contentType: application/json; charsetutf-8, data: , dataType: json, cache: false, success: function (data, textStatus, jqXhr) { if (data ! null) { $.each( data, function( key, value ) { if(value 1){ // if StraightInput true.. do straightInput showStraightInput(); addValidationStraight(); }else{ showDiagonalInput(); addValidationDiagonal(); } }); } } }); } }); /* plot chart */ /* hide all frame wraps */ $(.in_frame_wrap).hide(); // fill the frame dropdowns searchFrames(); /* add frame button */ var addFrameButIndex 3; $(#addFrameBut).on(click, function(){ $(.in_frame_wrap).each(function( index, element ) { var wrap $(this); if(index addFrameButIndex){ wrap.fadeIn(300); addFrameButIndex++; return false; } }); return false; }); /* for each frame_wrap ... */ $(#addFrameBut).fadeIn(300); function removeValidationMeetmanier(){ $(inputnamein_Meetmanier).rules(remove, required); } function addValidationMeetmanier(){ $(inputnamein_Meetmanier).rules(add, {required:true }); } function hideHandlebar(){ $(#Handlebar, #in_ReachStuurRace, #in_DropStuurRace).hide(); } function hideShifters(){ $(#ShifterGrip, #in_ShifterReach, #in_ShifterCorrection).hide(); } function showHandlebar(){ $(#Handlebar).show(); } function showShifters(){ $(#ShifterGrip).show(); } function removeValidationHandlebar(){ $(#Handlebar select).rules(remove, required); } function removeValidationShifters(){ $(#ShifterGrip select).rules(remove, required); } function addValidationHandlebar(){ $(#Handlebar select).rules(add, {required:true }); } function addValidationShifters(){ $(#ShifterGrip select).rules(add, {required:true }); } function showDiagonalInput(){ $(.straight.field).fadeOut(0); $(.diagonal.field).fadeIn(300); $(input.diagonal).attr(disabled, false); $(.field.diagonal).toggleClass(disabled, false); $(.diagonal.input).focus(); $(.diagonal.input).blur(); } function showStraightInput(){ $(.straight.field).fadeIn(300); $(.diagonal.field).fadeOut(0); $(input.straight).attr(disabled, false); $(.field.straight).toggleClass(disabled, false); $(.straight.input).focus(); $(.straight.input).blur(); } function addValidationStraight(){ $(input.straight).each(function(){ $(this).rules(add, { required: true }); }); $(input.diagonal).each(function(){ $(this).rules(remove, required); }); } function addValidationDiagonal(){ $(input.straight).each(function(){ $(this).rules(remove, required); }); $(input.diagonal).each(function(){ $(this).rules(add, { required: true }); }); } function disableStraightDiagonal(){ $(input.straight).attr(disabled, true); $(input.diagonal).attr(disabled, true); $(.field.straight).toggleClass(disabled, true); $(.field.diagonal).toggleClass(disabled, true); } } function searchFrames(){ if(editMeasurement 1){ if(editFrameValue 0){ var TypeVal editType; editFrameValue 1; } else { var TypeVal $(selectnamein_Type).val(); editFrameValue 1; } } if(editMeasurement ! 1) { var TypeVal $(selectnamein_Type).val(); } $(.in_frame_wrap).each(function( index, element ) { var wrap $(this), brand $(this).find(.in_frame_brand), model $(this).find(.in_frame_model); // clear previous values brand.find(select option).remove(); model.find(select option).remove(); if(index 3){ wrap.fadeIn(300); } brand.find(select).append( $(option>/option>).val().html(Loading...) ); //load data var jqxhr $.ajax({ type: POST, url: cfUrl+home/ddFrameBrand/?cat+TypeVal, contentType: application/json; charsetutf-8, data: , dataType: json, cache: false, success: function (data, textStatus, jqXhr) { // remove loading... string brand.find(select option).remove(); // add please select brand.find(select).append( $(option>Please select/option>)); if (data ! null) { $.each( data, function( index, object ) { brand.find(select).append( $(option>/option>).val(object.id).html(object.brand) ); }); } } }) .done(function () { try { for(var i 0; i 15; i++) { $(selectnamein_frame_brand_+(i+1)+).val(editFrameBrandArri).change(); } } catch(err) {} model.find(select).append( $(option>/option>).val().html(Please select a brand first) ); brand.find(select).bind(change, function () { if ($(this).val()) { var brandName brand.find(option:selected).text(); // remove please select a brand first string model.find(select option).remove(); // add loading string model.find(select).append( $(option>/option>).val().html(Loading...) ); //load data var jqxhr $.ajax({ type: POST, url: cfUrl+home/ddFrameModel/?brand+brandName+&cat+TypeVal+, contentType: application/json; charsetutf-8, data: , dataType: json, cache: false, success: function (data, textStatus, jqXhr) { // remove loading... string model.find(select option).remove(); // add please select model.find(select).append( $(option>Please select/option>)); if (data ! null) { $.each( data, function( index, object ) { model.find(select).append( $(option>/option>).val(object.id).html(object.type) ); }); } } }) .done(function () { try { for(var i 0; i 15; i++) { $(selectnamein_frame_model_+(i+1)+).val(editFrameModelArri); } } catch(err) {} }) .always(function(){ }) .fail(function () { }); } }); }); }); } // piste helpers // when type 19 is choosen.. (piste) //fix shifter and set value function pisteFixShifter(){ document.getElementById(ShifterGrip).style.display none; document.getElementById(CycleFitClassic_cfClassic_ShifterGrip).value 4; } function pisteRemoveFixedShifter(){ document.getElementById(ShifterGrip).style.display block; } // fix crank length to 165 mm function pisteFixCrankLength(){ $(#in_Cranklengte input).toggleClass(hint, false); $(#in_Cranklengte input).val(165); $(#in_Cranklengte input).attr(readonly, true); $(#in_Cranklengte).toggleClass(disabled, true); $(selectnamein_CrankOptie).val(1).change(); $(#in_CrankOptie select).attr(disabled, true); $(#in_CrankOptie).toggleClass(disabled, true); document.getElementById(in_CrankOptie).style.display none; $(#in_Cranklengte).fadeOut(0); $(#ShifterGrip).fadeOut(0); } function pisteRemoveFixedCrankLength(){ $(#in_Cranklengte input).val(); $(#in_Cranklengte input).attr(readonly, false); $(#in_Cranklengte).toggleClass(disabled, false); $(#in_CrankOptie select).attr(disabled, false) $(#in_CrankOptie).toggleClass(disabled, false) $(#in_CrankOptie).show(); document.getElementById(in_CrankOptie).style.display block; } } });}(jQuery));//>/script>script typetext/javascript>stLight.options({publisher: 09886ef2-8e27-42fa-a57d-4313e523497d, doNotHash: false, doNotCopy: false, hashAddressBar: false});/script>/body>/html>
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]