forked from swfdevpro/theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-validation.html
645 lines (612 loc) · 29.6 KB
/
form-validation.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="images/icon.png">
<title>Flat Dream</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,400italic,700,800' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:300,200,100' rel='stylesheet' type='text/css'>
<!-- Bootstrap core CSS -->
<link href="js/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="js/jquery.gritter/css/jquery.gritter.css" />
<link rel="stylesheet" href="fonts/font-awesome-4/css/font-awesome.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../../assets/js/html5shiv.js"></script>
<script src="../../assets/js/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="js/jquery.nanoscroller/nanoscroller.css" />
<link href="css/style.css" rel="stylesheet" />
</head>
<body class="animated">
<div id="cl-wrapper">
<div class="cl-sidebar">
<div class="cl-toggle"><i class="fa fa-bars"></i></div>
<div class="cl-navblock">
<div class="menu-space">
<div class="content">
<div class="sidebar-logo">
<div class="logo">
<a href="index2.html"></a>
</div>
</div>
<div class="side-user">
<div class="avatar"><img src="images/avatar6.jpg" alt="Avatar" /></div>
<div class="info">
<p>40 <b>GB</b> / 100 <b>GB</b><span><a href="#"><i class="fa fa-plus"></i></a></span></p>
<div class="progress progress-user">
<div class="progress-bar" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
<span class="sr-only">50% Complete (success)</span>
</div>
</div>
</div>
</div>
<ul class="cl-vnavigation">
<li><a href="#"><i class="fa fa-home"></i><span>Dashboard</span></a>
<ul class="sub-menu">
<li ><a href="index.html">Version 1</a></li>
<li ><a href="dashboard2.html"><span class="label label-primary pull-right">New</span>Version 2</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-desktop"></i><span>Layouts</span></a>
<ul class="sub-menu">
<li><a href="layout-boxed.html"><span class="label label-primary pull-right">New</span>Boxed Layout</a></li>
<li><a href="layout-topbar.html"><span class="label label-primary pull-right">New</span>Top Menu</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-smile-o"></i><span>UI Elements</span></a>
<ul class="sub-menu">
<li ><a href="ui-elements.html">General</a></li>
<li ><a href="ui-alerts.html">Alerts</a></li>
<li ><a href="ui-porlets.html"><span class="label label-primary pull-right">New</span>Porlets</a></li>
<li ><a href="ui-buttons.html">Buttons</a></li>
<li ><a href="ui-modals.html">Modals</a></li>
<li ><a href="ui-notifications.html">Notifications</a></li>
<li ><a href="ui-tiles.html"><span class="label label-primary pull-right">New</span>Tiles</a></li>
<li ><a href="ui-progress.html">Progress Bars</a></li>
<li ><a href="ui-icons.html">Icons</a></li>
<li ><a href="ui-grid.html">Grid</a></li>
<li ><a href="ui-tabs-accordions.html">Tabs & Accordions</a></li>
<li ><a href="ui-nestable-lists.html">Nestable Lists</a></li>
<li ><a href="ui-treeview.html">Tree View</a></li>
<li ><a href="ui-calendar.html"><span class="label label-primary pull-right">New</span>Calendar</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-list-alt"></i><span>Forms</span></a>
<ul class="sub-menu">
<li ><a href="form-elements.html">Components</a></li>
<li ><a href="form-multiselect.html"><span class="label label-primary pull-right">New</span>Multiselect</a></li>
<li class="active" ><a href="form-validation.html">Validation</a></li>
<li ><a href="form-wizard.html">Wizard</a></li>
<li ><a href="form-masks.html">Input Masks</a></li>
<li ><a href="form-wysiwyg.html">WYSIWYG Editor</a></li>
<li ><a href="form-upload.html">Multi Upload</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-table"></i><span>Tables</span></a>
<ul class="sub-menu">
<li ><a href="tables-general.html">General</a></li>
<li ><a href="tables-datatables.html"><span class="label label-primary pull-right">New</span>Data Tables</a></li>
<li ><a href="tables-xeditable.html"><span class="label label-primary pull-right">New</span>X-Editable</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-map-marker nav-icon"></i><span>Maps</span></a>
<ul class="sub-menu">
<li ><a href="maps.html">Maps</a></li>
<li ><a href="vector-maps.html">Vector Maps</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-envelope nav-icon"></i><span>Email</span></a>
<ul class="sub-menu">
<li ><a href="email-inbox.html">Inbox</a></li>
<li ><a href="email-read.html">Email Detail</a></li>
<li ><a href="email-compose.html"><span class="label label-primary pull-right">New</span>Email Compose</a></li>
</ul>
</li>
<li ><a href="typography.html"><i class="fa fa-text-height"></i><span>Typography</span></a></li>
<li ><a href="charts.html"><i class="fa fa-bar-chart-o"></i><span>Charts</span></a></li>
<li><a href="#"><i class="fa fa-file"></i><span>Pages</span></a>
<ul class="sub-menu">
<li ><a href="pages-blank.html">Blank Page</a></li>
<li ><a href="pages-blank-header.html">Blank Page Header</a></li>
<li ><a href="pages-blank-aside.html">Blank Page Aside</a></li>
<li ><a href="pages-blank-aside-header.html"><span class="label label-primary pull-right">New</span>Blank Page Aside Header</a></li>
<li ><a href="pages-profile.html"><span class="label label-primary pull-right">New</span>Profile</a></li>
<li><a href="pages-login.html">Login</a></li>
<li><a href="pages-sign-up.html"><span class="label label-primary pull-right">New</span>Sign Up</a></li>
<li><a href="pages-forgot.html"><span class="label label-primary pull-right">New</span>Forgot Password</a></li>
<li><a href="pages-404.html">404 Page</a></li>
<li><a href="pages-500.html">500 Page</a></li>
<li ><a href="pages-tour.html"><span class="label label-primary pull-right">New</span>Tour Guide</a></li>
<li ><a href="pages-gallery.html">Gallery</a></li>
<li ><a href="pages-search.html"><span class="label label-primary pull-right">New</span>Search</a></li>
<li ><a href="pages-timeline.html">Timeline</a></li>
<li ><a href="pages-code-editor.html">Code Editor</a></li>
</ul>
</li>
<li class=""><a href="javascript:;"><i class="fa fa-folder-open"></i><span class="title">Menu Levels</span><span class="arrow "></span></a>
<ul class="sub-menu">
<li><a href="javascript:;">Level 1</a></li>
<li><a href="javascript:;"><span class="title">Level 2</span><span class="arrow "></span></a>
<ul class="sub-menu">
<li><a href="javascript:;">Sub Menu</a></li>
<li><a href="ujavascript:;">Sub Menu </a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="text-right collapse-button" style="padding:7px 9px;">
<input type="text" class="form-control search" placeholder="Search..." />
<button id="sidebar-collapse" class="btn btn-default" style=""><i style="color:#fff;" class="fa fa-angle-left"></i></button>
</div>
</div>
</div>
<div class="container-fluid" id="pcont">
<!-- TOP NAVBAR -->
<div id="head-nav" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-collapse">
<ul class="nav navbar-nav navbar-right user-nav">
<li class="dropdown profile_menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img alt="Avatar" src="images/avatar6-2.jpg" /><span>Jane Smith</span> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">My Account</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
<li class="divider"></li>
<li><a href="#">Sign Out</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav not-nav">
<li class="button dropdown">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class=" fa fa-inbox"></i></a>
<ul class="dropdown-menu messages">
<li>
<div class="nano nscroller">
<div class="content">
<ul>
<li>
<a href="#">
<img src="images/avatar2.jpg" alt="avatar" /><span class="date pull-right">13 Sept.</span> <span class="name">Daniel</span> Hey! How are you?
</a>
</li>
<li>
<a href="#">
<img src="images/avatar_50.jpg" alt="avatar" /><span class="date pull-right">20 Oct.</span><span class="name">Adam</span> Hi! Can you fix my phone?
</a>
</li>
<li>
<a href="#">
<img src="images/avatar4_50.jpg" alt="avatar" /><span class="date pull-right">2 Nov.</span><span class="name">Michael</span> Regards!
</a>
</li>
<li>
<a href="#">
<img src="images/avatar3_50.jpg" alt="avatar" /><span class="date pull-right">2 Nov.</span><span class="name">Lucy</span> Hello, my name is Lucy
</a>
</li>
</ul>
</div>
</div>
<ul class="foot"><li><a href="#">View all messages </a></li></ul>
</li>
</ul>
</li>
<li class="button dropdown">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-globe"></i><span class="bubble">2</span></a>
<ul class="dropdown-menu">
<li>
<div class="nano nscroller">
<div class="content">
<ul>
<li><a href="#"><i class="fa fa-cloud-upload info"></i><b>Daniel</b> is now following you <span class="date">2 minutes ago.</span></a></li>
<li><a href="#"><i class="fa fa-male success"></i> <b>Michael</b> commented on your link <span class="date">15 minutes ago.</span></a></li>
<li><a href="#"><i class="fa fa-bug warning"></i> <b>Mia</b> commented on post <span class="date">30 minutes ago.</span></a></li>
<li><a href="#"><i class="fa fa-credit-card danger"></i> <b>Andrew</b> sent you a request <span class="date">1 hour ago.</span></a></li>
</ul>
</div>
</div>
<ul class="foot"><li><a href="#">View all activity </a></li></ul>
</li>
</ul>
</li>
<li class="button"><a class="toggle-menu menu-right push-body" href="javascript:;"><i class="fa fa-comments"></i></a></li>
</ul>
</div><!--/.nav-collapse animate-collapse -->
</div>
</div>
<div class="cl-mcont"> <div class="page-head">
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Forms</a></li>
<li class="active">Validation</li>
</ol>
</div>
<div class="row">
<div class="col-sm-6 col-md-6">
<div class="block-flat">
<div class="header">
<h3>Basic Form</h3>
</div>
<div class="content">
<form action="#" data-parsley-validate novalidate>
<div class="form-group">
<label>User Name</label> <input type="text" name="nick" parsley-trigger="change" required placeholder="Enter user name" class="form-control">
</div>
<div class="form-group">
<label>Email address</label> <input type="email" name="email" parsley-trigger="change" required placeholder="Enter email" class="form-control">
</div>
<div class="form-group">
<label>Password</label> <input id="pass1" type="password" placeholder="Password" required class="form-control">
</div>
<div class="form-group">
<label>Repeat Password</label> <input data-parsley-equalto="#pass1" type="password" required placeholder="Password" class="form-control">
</div>
<div class="checkbox">
<label> <input type="checkbox" name="remember"> Remember me </label> </div>
<button class="btn btn-primary" type="submit">Submit</button>
<button class="btn btn-default">Cancel</button>
</form>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6">
<div class="block-flat">
<div class="header">
<h3>Horizontal Form</h3>
</div>
<div class="content">
<form class="form-horizontal" role="form" data-parsley-validate novalidate>
<div class="form-group">
<label for="inputEmail3" class="col-sm-3 control-label">Email</label>
<div class="col-sm-7">
<input type="email" required parsley-type="email" class="form-control" id="inputEmail3" placeholder="Email">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Password</label>
<div class="col-sm-7">
<input type="password" required class="form-control" id="inputPassword3" placeholder="Password">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Web Site</label>
<div class="col-sm-7">
<input type="url" required parsley-type="url" class="form-control" placeholder="URL">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-7">
<div class="checkbox">
<label>
<input type="checkbox" name="remember_the_fallen"> Remember me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Registrer</button>
<button class="btn btn-default">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="block-flat">
<div class="header">
<h3>Validation Types</h3>
</div>
<div class="content">
<form class="form-horizontal group-border-dashed" action="#">
<div class="form-group">
<label class="col-sm-3 control-label">Required</label>
<div class="col-sm-6">
<input type="text" class="form-control" required placeholder="Type something" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Min Length</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-minlength="6" placeholder="Min 6 chars." />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Max Length</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-maxlength="6" placeholder="Max 6 chars." />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Range Length</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-length="[5,10]" placeholder="Text between 5 - 10 chars length" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Min Value</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-min="6" placeholder="Min value is 6" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Max Value</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-max="6" placeholder="Max value is 6" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Range Value</label>
<div class="col-sm-6">
<input class="form-control" required type="text range" min="6" max="100" placeholder="Number between 6 - 100" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Regular Exp</label>
<div class="col-sm-6">
<input type="text" class="form-control" required data-parsley-pattern="#[A-Fa-f0-9]{6}" placeholder="Hex. Color" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Equal To</label>
<div class="col-sm-3">
<input type="password" id="pass2" class="form-control" required placeholder="Password" />
</div>
<div class="col-sm-3">
<input type="password" class="form-control" required data-parsley-equalto="#pass2" placeholder="Re-Type Password" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Min check</label>
<div class="col-sm-6">
<div class="radio">
<label for="ck1"> <input id="ck1" name="ck1" type="checkbox" data-parsley-multiple="groups" value="bar" data-parsley-mincheck="2"> Option 1</label>
</div>
<div class="radio">
<label for="ck2"> <input id="ck2" name="ck2" type="checkbox" data-parsley-multiple="groups" value="bar2" data-parsley-mincheck="2"> Option 2</label>
</div>
<div class="radio">
<label for="ck3"> <input id="ck3" name="ck3" type="checkbox" data-parsley-multiple="groups" value="bar3" data-parsley-mincheck="2" required > Option 3</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Max check</label>
<div class="col-sm-6">
<div class="radio">
<label> <input type="checkbox" value="bar" name="e1" data-parsley-multiple="group1"> Option 1</label>
</div>
<div class="radio">
<label> <input type="checkbox" value="bar" name="e2" data-parsley-multiple="group1"> Option 2</label>
</div>
<div class="radio">
<label> <input type="checkbox" value="bar" name="e3" data-parsley-multiple="group1" data-parsley-maxcheck="1"> Option 3</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">E-Mail</label>
<div class="col-sm-6">
<input type="email" class="form-control" required parsley-type="email" placeholder="Enter a valid e-mail" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">URL</label>
<div class="col-sm-6">
<input parsley-type="url" type="url" class="form-control" required placeholder="URL" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Digits</label>
<div class="col-sm-6">
<input data-parsley-type="digits" type="text" class="form-control" required placeholder="Enter only digits" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Number</label>
<div class="col-sm-6">
<input data-parsley-type="number" type="text" class="form-control" required placeholder="Enter only numbers" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Alphanumeric</label>
<div class="col-sm-6">
<input data-parsley-type="alphanum" type="text" class="form-control" required placeholder="Enter alphanumeric value" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Textarea</label>
<div class="col-sm-6">
<textarea required class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Submit</button>
<button class="btn btn-default">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div> </div>
</div>
</div>
<!-- Right Chat-->
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-right side-chat">
<div class="header">
<h3>Chat</h3>
</div>
<div class="sub-header">
<div class="icon"><i class="fa fa-user"></i></div> <p>Online (4)</p>
</div>
<div class="content">
<p class="title">Family</p>
<ul class="nav nav-pills nav-stacked contacts">
<li class="online"><a href="#"><i class="fa fa-circle-o"></i> Michael Smith</a></li>
<li class="online"><a href="#"><i class="fa fa-circle-o"></i> John Doe</a></li>
<li class="online"><a href="#"><i class="fa fa-circle-o"></i> Richard Avedon</a></li>
<li class="busy"><a href="#"><i class="fa fa-circle-o"></i> Allen Collins</a></li>
</ul>
<p class="title">Friends</p>
<ul class="nav nav-pills nav-stacked contacts">
<li class="online"><a href="#"><i class="fa fa-circle-o"></i> Jaime Garzon</a></li>
<li class="outside"><a href="#"><i class="fa fa-circle-o"></i> Dave Grohl</a></li>
<li><a href="#"><i class="fa fa-circle-o"></i> Victor Jara</a></li>
</ul>
<p class="title">Work</p>
<ul class="nav nav-pills nav-stacked contacts">
<li><a href="#"><i class="fa fa-circle-o"></i> Ansel Adams</a></li>
<li><a href="#"><i class="fa fa-circle-o"></i> Gustavo Cerati</a></li>
</ul>
</div>
<div id="chat-box">
<div class="header">
<span>Richard Avedon</span>
<a class="close"><i class="fa fa-times"></i></a>
</div>
<div class="messages nano nscroller">
<div class="content">
<ul class="conversation">
<li class="odd">
<p>Hi Jane, how are you?</p>
</li>
<li class="text-right">
<p>Hello I was looking for you</p>
</li>
<li class="odd">
<p>Tell me what you need?</p>
</li>
<li class="text-right">
<p>Sorry, I'm late... see you</p>
</li>
<li class="odd unread">
<p>OK, call me later...</p>
</li>
</ul>
</div>
</div>
<div class="chat-input">
<div class="input-group">
<input type="text" class="form-control" placeholder="Enter a message...">
<span class="input-group-btn">
<button type="button" class="btn btn-primary">Send</button>
</span>
</div>
</div>
</div>
</nav>
<script src="js/jquery.js"></script>
<script src="js/jquery.cookie/jquery.cookie.js"></script>
<script src="js/jquery.pushmenu/js/jPushMenu.js"></script>
<script type="text/javascript" src="js/jquery.nanoscroller/jquery.nanoscroller.js"></script>
<script type="text/javascript" src="js/jquery.sparkline/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="js/jquery.ui/jquery-ui.js" ></script>
<script type="text/javascript" src="js/jquery.gritter/js/jquery.gritter.js"></script>
<script type="text/javascript" src="js/behaviour/core.js"></script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/bootstrap/dist/js/bootstrap.min.js"></script>
<style type="text/css">
#color-switcher{
position:fixed;
background:#272930;
padding:10px;
top:50%;
right:0;
margin-right:-109px;
}
#color-switcher .toggle{
cursor:pointer;
font-size:15px;
color: #FFF;
display:block;
position:absolute;
padding:4px 10px;
background:#272930;
width:25px;
height:30px;
left:-24px;
top:22px;
}
#color-switcher p{color: rgba(255, 255, 255, 0.6);font-size:12px;margin-bottom:3px;}
#color-switcher .palette{padding:1px;}
#color-switcher .color{width:15px;height:15px;display:inline-block;cursor:pointer;}
#color-switcher .color.purple{background:#7761A7;}
#color-switcher .color.green{background:#19B698;}
#color-switcher .color.red{background:#EA6153;}
#color-switcher .color.blue{background:#54ADE9;}
#color-switcher .color.orange{background:#FB7849;}
#color-switcher .color.prusia{background:#476077;}
#color-switcher .color.yellow{background:#fec35d;}
#color-switcher .color.pink{background:#ea6c9c;}
#color-switcher .color.brown{background:#9d6835;}
#color-switcher .color.gray{background:#afb5b8;}
</style>
<div id="color-switcher">
<p>Select Color</p>
<div class="palette">
<div class="color purple" data-color="purple"></div>
<div class="color green" data-color="green"></div>
<div class="color red" data-color="red"></div>
<div class="color blue" data-color="blue"></div>
<div class="color orange" data-color="orange"></div>
</div>
<div class="palette">
<div class="color prusia" data-color="prusia"></div>
<div class="color yellow" data-color="yellow"></div>
<div class="color pink" data-color="pink"></div>
<div class="color brown" data-color="brown"></div>
<div class="color gray" data-color="gray"></div>
</div>
<div class="toggle"><i class="fa fa-angle-left"></i></div>
</div>
<script type="text/javascript">
var link = $('link[href="css/style.css"]');
if($.cookie("css")) {
link.attr("href",'css/style-' + $.cookie("css") + '.css');
}
$(function(){
$("#color-switcher .toggle").click(function(){
var s = $(this).parent();
if(s.hasClass("open")){
s.animate({'margin-right':'-109px'},400).toggleClass("open");
}else{
s.animate({'margin-right':'0'},400).toggleClass("open");
}
});
$("#color-switcher .color").click(function(){
var color = $(this).data("color");
$("body").fadeOut(function(){
//link.attr('href','css/style-' + color + '.css');
$.cookie("css", color, {expires: 365, path: '/'});
window.location.href = "";
$(this).fadeIn("slow");
});
});
});
</script> <script src="js/jquery.parsley/dist/parsley.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('form').parsley();
});
</script>
<script type="text/javascript" src="js/jquery.flot/jquery.flot.js"></script>
<script type="text/javascript" src="js/jquery.flot/jquery.flot.pie.js"></script>
<script type="text/javascript" src="js/jquery.flot/jquery.flot.resize.js"></script>
<script type="text/javascript" src="js/jquery.flot/jquery.flot.labels.js"></script>
</body>
</html>