This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
183 lines (139 loc) · 9.72 KB
/
index.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Icon Picker | Use the Font Awesome Icons (Font Awesome Free v5.11.2) in your HTML forms. (1544 icons)</title>
<meta name="description" content="Icon Picker | Use the Font Awesome Icons (Font Awesome Free v5.11.2) in your HTML forms. (1544 icons)" />
<meta name="content-language" content="en" />
<meta name="language" content="English" />
<meta name="robots" content="index, follow, noodp, noydir" />
<meta name="googlebot" content="index, follow, noodp, noydir" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="canonical" href="https://furcan.github.io/IconPicker/" />
<meta name="abstract" content="Icon Picker | Use the Font Awesome Icons (Font Awesome Free v5.11.2) in your HTML forms. (1544 icons)">
<meta name="author" content="Furcan" />
<meta name="generator" content="Furcan" />
<meta name="designer" content="Furcan">
<meta name="copyright" content="©2019 Icon Picker. All Rights Reserved.">
<meta name="theme-color" content="#a94158" />
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
<link id="FontMuli" href="https://fonts.googleapis.com/css?family=Muli:300,400,600,700,900&display=swap&subset=latin-ext" rel="stylesheet">
<link id="FontConsolas" href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="dist/fontawesome-5.11.2/css/all.min.css">
<link rel="stylesheet" href="dist/iconpicker-1.5.0.css">
<link rel="stylesheet" href="index.css?v=1.5.0">
</head>
<body>
<div class="main-wrapper">
<div class="container container-1">
<div class="header-wrapper">
<a class="logo cantselect" href="https://furcan.github.io/IconPicker/">Icon Picker</a>
<span class="logo-desc">Use the Font Awesome Icons (Font Awesome Free v5.11.2) in your HTML forms. (1544 icons)</span>
<span class="logo-required">Font Awesome(v5.11.2) required</span>
</div>
<div class="info-wrapper">
<div class="info-content step-1">
<code id="DemoCodeCSS">
<span class="label">CSS</span>
<span class="l1"><link rel="stylesheet" href="<span>/IconPicker/dist/fontawesome-5.11.2/css/all.min.css</span>"></span>
<span class="l1"><link rel="stylesheet" href="<span>/IconPicker/dist/iconpicker-1.5.0.css</span>"></span>
</code>
<code id="DemoCodeJS">
<span class="label">JavaScript</span>
<span class="l1"><script src="<span>/IconPicker/dist/iconpicker-1.5.0.js</span>"></script></span>
</code>
</div>
<div class="info-content step-2">
<code id="DemoCodeButton">
<span class="label">HTML</span>
<span class="l1"><button type="button" <span class="clr">id=<span class="highlighted the-button">"GetIconPicker"</span></span> <span class="clr">data-iconpicker-input=<span class="highlighted the-input">"input#IconInput"</span></span> <span class="clr">data-iconpicker-preview=<span class="highlighted the-preview">"i#IconPreview"</span></span>>Select Icon</button></span>
</code>
</div>
<div class="info-content step-3">
<code id="DemoCodeInit">
<span class="label">Initialize</span>
<span class="l1 cmmnt">// Default options</span>
<span class="l1"><span class="fnc1">IconPicker</span>.<span class="fnc2">Init</span>({</span>
<span class="l1 l2 cmmnt">// Required: You have to set the path of IconPicker JSON file to "jsonUrl" option. e.g. '/content/plugins/IconPicker/dist/iconpicker-1.5.0.json'</span>
<span class="l1 l2"><span class="fnc1">jsonUrl:</span> <span class="bool">null</span>,</span>
<span class="l1 l2 cmmnt">// Optional: Change the buttons or search placeholder text according to the language.</span>
<span class="l1 l2"><span class="fnc1">searchPlaceholder:</span> <span class="str">'Search Icon'</span>,</span>
<span class="l1 l2"><span class="fnc1">showAllButton:</span> <span class="str">'Show All'</span>,</span>
<span class="l1 l2"><span class="fnc1">cancelButton:</span> <span class="str">'Cancel'</span>,</span>
<span class="l1 l2"><span class="fnc1">noResultsFound:</span> <span class="str">'No results found.'</span>, <span class="cmmnt">// v1.5.0 and the next versions</span></span>
<span class="l1 l2"><span class="fnc1">borderRadius:</span> <span class="str">'20px'</span>, <span class="cmmnt">// v1.5.0 and the next versions</span></span>
<span class="l1">});</span>
</code>
</div>
<div class="info-content step-4">
<code id="DemoCodeRun">
<span class="label">Run</span>
<span class="l1 cmmnt">// Select your Button element (ID or Class)</span>
<span class="l1"><span class="fnc1">IconPicker</span>.<span class="fnc2">Run</span>(<span class="str the-button">'#GetIconPicker'</span>);</span>
</code>
</div>
<div class="info-content step-5">
<code id="DemoCodeRunCallback">
<span class="label">Run - with a callback function (v1.4.0 and next versions)</span>
<span class="l1 cmmnt">// Select your Button element (ID or Class)</span>
<span class="l1"><span class="fnc1">IconPicker</span>.<span class="fnc2">Run</span>(<span class="str the-button">'#GetIconPicker'</span>,</span>
<span class="l1 l2"><span class="cllbck">function</span>() {</span>
<span class="l1 l2 l3 cmmnt">// a callback function after than an icon selected on the list.</span>
<span class="l1 l2">}</span>
<span class="l1">);</span>
</code>
</div>
<div class="info-content step-5">
<p class="copyright">© 2019 IconPicker. All rights reserved.</p>
<a class="github" target="_blank" rel="noopener" href="https://github.com/furcan"><i class="fab fa-github"></i>/furcan</a>
</div>
</div>
</div>
<div class="container container-2 fixed">
<div class="form-wrapper">
<span class="container-label form">Form Example</span>
<form id="DemoForm">
<div class="form-group">
<div class="form-input opacity">
<label for="Name">Module Name</label>
<input type="text" id="Name" name="Name" class="inpt" placeholder="Module Name" autocomplete="off" spellcheck="false" required />
</div>
<div class="form-input opacity">
<label for="Email">Module Description</label>
<textarea id="Description" name="Description" placeholder="Module Description" autocomplete="off" spellcheck="false" autocapitalize="none" rows="2" minlength="5" maxlength="2500" required></textarea>
</div>
<div class="form-input form-input-icon">
<label>Module Icon</label>
<div class="get-and-preview">
<div class="icon-preview" data-toggle="tooltip" title="Preview of selected Icon">
<i id="IconPreview" class="fab fa-github"></i>
</div>
<button type="button" id="GetIconPicker" data-iconpicker-input="input#IconInput" data-iconpicker-preview="i#IconPreview">Select Icon</button>
</div>
<div class="export">
<span class="info">A "Hidden" or "Text"(display:none; etc.) type of Input Element to set a "Font Awesome icon classname" and post with Form</span>
<input type="text" id="IconInput" name="Icon" required placeholder="Hidden etc. input for icon classname" autocomplete="off" spellcheck="false" />
</div>
</div>
</div>
<div class="form-group submit">
<input type="submit" value="Submit">
</div>
</form>
</div>
<div class="output-wrapper">
<span class="container-label action">Form Post</span>
<div id="DemoOutput">
<code id="DemoCode"></code>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/notiflix/dist/AIO/notiflix-aio-1.9.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="dist/iconpicker-1.5.0.js"></script>
<script src="index-tooltip.js"></script>
<script src="index.js?v=1.5.0"></script>
</body>
</html>