forked from NHSHD-Bed-Finder/camhs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples-toggle.html
executable file
·97 lines (89 loc) · 4.83 KB
/
examples-toggle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6 ie-lt10 ie-lt9 ie-lt8 ie-lt7 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 ie-lt10 ie-lt9 ie-lt8 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 ie-lt10 ie-lt9 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9 ie-lt10 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>GOV.UK</title>
<meta name="author" content="Tom Harrop" />
<meta name="Copyright" content="Open Government Licence v3.0, except where otherwise stated" />
<!--[if gt IE 8]><!--><link href="govuk-assets/stylesheets/govuk-template.css?0.12.0" media="screen" rel="stylesheet" type="text/css" /><!--<![endif]-->
<!--[if IE 6]><link href="govuk-assets/stylesheets/govuk-template-ie6.css?0.12.0" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 7]><link href="govuk-assets/stylesheets/govuk-template-ie7.css?0.12.0" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 8]><link href="govuk-assets/stylesheets/govuk-template-ie8.css?0.12.0" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
<link href="govuk-assets/stylesheets/govuk-template-print.css?0.12.0" media="print" rel="stylesheet" type="text/css" />
<link href="govuk-assets/application.css" media="all" rel="stylesheet" type="text/css" />
<link href="govuk-assets/stylesheets/fonts.css?0.12.0" media="all" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/form.storage.js"></script>
<script type="text/javascript" src="scripts/application.js"></script>
<script type="text/javascript" src="scripts/details.polyfill.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheets/styles.css" />
</head>
<body>
<header data-includefile="header"></header>
<main id="content" role="main">
<div data-includefile="banner-alpha"></div>
<!-- DELETE FROM HERE -->
<h1 class="heading-xlarge">Toggle content with radio</h1>
<p>How did you travel to work today?</p>
<form name="test-form">
<div class="form-group">
<label class="block-label selectable" for="radio-1">
<input class="selectable" id="radio-1" type="radio" name="radio-order-how" value="online" data-storage="Car">
Car
</label>
<div class="connected optional-section optional-section-radio-order-how" data-toggle-value="online" style="display: none;">
<div class="form-group">
<label class="form-label-bold" for="col-number">Tell us the car's registration number
</label>
</div>
<div class="form-group">
<input type="text" class="form-control" id="account-number" name="account-number" data-storage="online">
</div>
<div class="form-group">
<details>
<summary role="button" aria-controls="details-content-0" tabindex="0" aria-expanded="false"><span class="summary">Where can I find the registration number?</span></summary>
<div class="panel-indent" id="details-content-0" aria-hidden="true" style="display: none;">
<p>
Registration numbers are written on large yellow (rear) or white (front) plastic plates on the car and are generally hard to miss.
</p>
</div>
</details>
</div>
</div>
<label class="block-label selectable" for="radio-2">
<input id="radio-2" type="radio" name="radio-order-how" value="unicycle" data-storage="Unicycle">
Unicycle
</label>
<div class="connected optional-section optional-section-radio-order-how" data-toggle-value="unicycle" style="display: none;">
<div class="form-group">
<label class="form-label-bold" for="account-number">How did you learn to unicycle?</label>
</div>
<div class="form-group">
<input type="text" class="form-control" id="account-number" name="account-number">
</div>
<div class="form-group">
<details>
<summary role="button" aria-controls="details-content-1" tabindex="0" aria-expanded="false"><span class="summary">Why are you asking me this?</span></summary>
<div class="panel-indent" id="details-content-1" aria-hidden="true" style="display: none;">
<p>
We would like more information about when, or why, you learned to unicycle. E.g.
<em>"I was raised as a circus performer"</em>
or
<em>"Bicycle tyre consumption is double what it should be"</em>
</p>
</div>
</details>
</div>
</div>
</div>
</form>
<a href="examples-changebutton.html" class="button">Continue</a>
<!-- STOP DELETING! -->
</main>
<footer data-includefile="footer"></footer>
</body>
</html>