<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"></script>
<script>
$(document).ready(function () {
$(function () {
$("#slider1").slider({
range: "min",
value: 36,
min: 12,
max: 36,
slide: function (event, ui) {
$(".amount1").val(ui.value);
writesum();
}
});
$(".amount1").val($("#slider1").slider("value"));
});
$(function () {
$("#slider2").slider({
range: "min",
value: 50000,
min: 1,
max: 50000,
slide: function (event, ui) {
$(".amount2").val(ui.value);
writesum();
}
});
$(".amount2").val($("#slider2").slider("value"));
});
function writesum() {
var months = $('.amount1').val();
var credits = $('.amount2').val();
var payment = parseFloat(Number(credits) / Number(months))
var rounded = payment.toFixed(2);
$('.amount3').val(rounded);
}
});
</script>
<style>
.ui-slider { position: relative; text-align: left; background: yellow; border-radius:7px; border-radius:7px; border-radius:7px; box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, 0.5); box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, 0.5)}
.ui-slider .ui-slider-handle { outline-color: transparent; background: blue; position: absolute; top: -8px; left: -8px; z-index: 2; border-radius: 70px; width: 30px; height:30px; cursor: pointer; }
.ui-slider .ui-slider-range { border-radius:7px; border-radius:7px; border-radius:7px; box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, 0.5); box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, 0.5)width: 100px; background: yellow; position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.amount1
{
width: 15px;
color: blue;
font-weight: bold;
border: none;
}
.amount2
{
width: 35px;
color: blue;
font-weight: bold;
border: none;
}
.amount3
{
margin-left: 10px;
color: blue;
font-weight: bold;
width: 150px;
border: none;
}
.container
{
width: 150px;
height: 50px;
margin-left: 100px;
}
.sonuccontainer
{
float: left;
width: 400px;
height: 50px;
}
.bilgilendirme
{
margin-top: 4px;
float: left;
}
</style>
</head>
<body>
<input type="text" class="amount1" />
<div class="container">
<div id="slider1"></div>
</div>
<input type="text" class="amount2" />
<div class="container">
<div id="slider2"></div>
</div>
<div class="sonuccontainer">
<div class="bilgilendirme">aylık ödeme miktarınız</div>
<input type="text" class="amount3" />
</div>
</body>
</html>
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |