Jump to content
  • 0

Кредитный Калькулятор


Omega24v
 Share

Question

Есть пример калькулятора "кредитования", расскажите как сделать такой же подсчет суммы выплат, для ниже приведенного калькулятора..... http://shure-kryg.ru/tttest/

$(document).ready(function(){  $( "#slider" ).slider({value : 50000,  min :	15000,  max : 150000,  step : 5000,  create: function( event, ui ) {   val = $( "#slider" ).slider("value");  $( "#contentSlider" ).html( val + "руб." ); }, slide: function( event, ui ) {  $( "#contentSlider" ).html( ui.value + "руб." );  if (ui.value < 15000) {   $( "#slider3" ).slider({value : 1500});    $( "#contentSlider3" ).html("1500");    }    else {    	var rrt = ui.value;    	var  rrt1 = "10";    	var  rrt2 = "5";    	var  rrt3 = "3";    	var  rrt4 = (rrt - rrt1) * rrt3;    	var  rrt5 = Number(rrt4) + Number(rrt2);    	$( "#slider3" ).slider({value : rrt5});        $( "#contentSlider3" ).html(rrt5);    	   	    			}            }         });});$(document).ready(function(){  $( "#slider2" ).slider({value : 12,  min : 6,  max : 48,  step : 1,  create: function( event, ui ) {   val = $( "#slider2" ).slider("value");  $( "#contentSlider2" ).html( val + "\u0020месяцев"); }, slide: function( event, ui ) {  $( "#contentSlider2" ).html( ui.value + "\u0020месяцев" );      if (ui.value < 2900) {   $( "#slider" ).slider({value : 2900});    $( "#contentSlider3" ).html("2900");    }       else {    	var  rrt = ui.value;    	var  rrt1 = "10";    	var  rrt2 = "0";    	var  rrt3 = "20";    	var  rrt4 = (rrt - rrt1)/rrt3;    	var  rrt5 = Number(rrt4) + Number(rrt2);    	$( "#slider3" ).slider({value : rrt5});        $( "#contentSlider3" ).html(rrt5); 		}               }        });});$(document).ready(function(){  $( "#slider3" ).slider({value : 5400,  min : 1000,  max : 20000,  step : 1000,  create: function( event, ui ) {   val = $( "#slider3" ).slider("value");  $( "#contentSlider3" ).html( val + "руб."); }        });}); 
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy