<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<h1>자동차 경주</h1>
<h4>경주할 자동차 대수를 입력 후 경주 시작을 누르시면 됩니다.</h4>
<h4>이름적용 체크 박스 체크 후엔 자동차의 이름을 지정 할 수 있습니다.</h4>
<h4>자동차 최대 입력 대수는 30대 입니다.</h4>
<h4>트랙 최대 길이는 100 입니다.</h4>
<h4>속도제한은 없습니다. 1000당 1초 입니다.</h4>
<h4>만든 사람은 잘생긴 야매 개발자 In★ 입니다. 경주 할때마다 감사함을 느끼세요.</h4>
<label for="nameCheck">이름적용</label><input id="nameCheck" type='checkbox' onchange="countCar();" />
<br>
<label for="nameCheck">트랙길이</label><input id="trackLength" type='number' onchange="countCar();" value="10"/>
<br>
<label for="nameCheck">속도(ms)</label><input id="raceSpeed" type='number' value="400"/>
<br>
<br>
<label>경주할 자동차 대수</label>
<input type="number" id="inputCarCnt" onchange="countCar();"/>
<button onclick="startRace();">경주시작</button>
<button onclick="countCar();">리셋</button>
<div id="carNameContainer">
</div>
<div id="trackContainer" class="track-container">
</div>
<div id="finshBox">
</div>
</body>
</html>
Output
300px
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. |