forked from space10-community/conversational-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage-answers.html
executable file
·154 lines (131 loc) · 7.11 KB
/
image-answers.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
<link rel="stylesheet" href="build/conversational-form-docs.min.css">
<script type="text/javascript" src="https://cf-4053.kxcdn.com/conversational-form/0.9.6/conversational-form.min.js" crossorigin></script>
</head>
<body>
<script src="build/conversational-form-examples.min.js" id="examples-script"></script>
<main class="content">
<menu id="small-screen-menu">
<h2>Conversational Form examples</h2>
<div class="switch-btn">
<label class="switch">
<input type="checkbox" onclick="window.conversationalFormExamples.toggleConversation(event)">
<div class="slider round"></div>
</label>
</div>
<div class="hamburger-btn" onclick="window.conversationalFormExamples.toggleMenuState(event)">
<svg viewBox="0 0 29 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
<g transform="translate(-325.000000, -87.000000)" stroke="#FFFFFF" stroke-width="2">
<g transform="translate(325.000000, 87.000000)">
<path d="M27.4802431,7 L1.23827993,7"></path>
<path d="M27.4802431,1 L1.23827993,1"></path>
<path d="M27.4802431,13 L1.23827993,13"></path>
</g>
</g>
</g>
</svg>
</div>
</menu>
<div class="switch-btn" id="cf-toggle-btn" data-label="Enable Conversational Form" data-label-toggled="Disable Conversational Form">
<label class="switch">
<input type="checkbox" onclick="window.conversationalFormExamples.toggleConversation(event)">
<div class="slider round"></div>
</label>
</div>
<section id="info" role="info">
<div class="close-btn" onclick="window.conversationalFormExamples.toggleMenuState()">
<svg viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
<g transform="translate(-328.000000, -83.000000)" stroke="#FFFFFF" stroke-width="2">
<g id="close" transform="translate(329.000000, 84.000000)">
<path d="M19.6371966,19.2779351 L1.08132646,0.722064927"></path>
<path d="M19.4923318,0.722064927 L0.936461672,19.2779351"></path>
</g>
</g>
</g>
</svg>
</div>
<article>
<h1 id="writer">
Use images for checkbox and radio buttons
</h1>
<h2>
Attribute cf-image
</h2>
</article>
</section>
<section id="form" role="form">
<div class="form-outer">
<!-- Conversational Form will auto-run because of attribute "cf-form" -->
<form id="form" cf-form>
<div class="radio-control" >
<input cf-label="AI" type="radio" cf-image="https://cdn.space10.io/media/1134/1.png" name="image-preference" tabindex="1" value="0">
<input cf-label="Meatball" type="radio" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" name="image-preference" tabindex="2" value="1">
</div>
<div class="mix-radio-control" >
<input cf-label="AI" type="radio" cf-image="https://cdn.space10.io/media/1134/1.png" name="mix-test" tabindex="1" value="0">
<input cf-label="Meatball" type="radio" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" name="mix-test" tabindex="2" value="1">
<input cf-label="Nope" type="radio" name="mix-test" tabindex="2" value="none">
</div>
<li class="control2">
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-2" value="0" class="checkbox">Meatball
</label>
<label>
<input cf-questions="You can add images to the control items -->" cf-image="https://cdn.space10.io/media/1134/1.png" type="checkbox" name="account-information" id="account_information-flue-1" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">AI
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1119/labs-2-1.jpg" id="account_information-flue-3" checked value="1" class="checkbox">Meatball
</label>
<label>
<input type="checkbox" name="account-information" cf-image="https://cdn.space10.io/media/1134/1.png" id="account_information-flue-3" checked value="1" class="checkbox">Fish
</label>
</li>
<input type="text" cf-questions="Prevent form submit :)" name="text" value="">
</form>
</div>
</section>
<section id="cf-context" role="cf-context" cf-context>
</section>
</main>
</body>
</html>