35 lines
920 B
HTML
35 lines
920 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en" >
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Rolling Radio Buttons</title>
|
||
|
<link rel="stylesheet" href="./style.css">
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<form>
|
||
|
<input id="a" type="radio" name="os" value="Android" data-radio-index="0" checked>
|
||
|
<label for="a">Android</label>
|
||
|
<input id="b" type="radio" name="os" value="Linux" data-radio-index="1">
|
||
|
<label for="b">Linux</label>
|
||
|
<input id="c" type="radio" name="os" value="macOS" data-radio-index="2">
|
||
|
<label for="c">macOS</label>
|
||
|
<input id="d" type="radio" name="os" value="Windows" data-radio-index="3">
|
||
|
<label for="d">Windows</label>
|
||
|
<div class="circles">
|
||
|
<div class="circle"></div>
|
||
|
<div class="circle"></div>
|
||
|
<div class="circle"></div>
|
||
|
<div class="circle circle-checked"></div>
|
||
|
<div class="circle"></div>
|
||
|
<div class="circle"></div>
|
||
|
<div class="circle"></div>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<script src="./script.js"></script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|