-
Notifications
You must be signed in to change notification settings - Fork 1
/
installation.html
executable file
·599 lines (456 loc) · 20.9 KB
/
installation.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jalendar2 - Premium Calendar Tool</title>
<link rel="stylesheet" href="style/bootstrap.min.css">
<link rel="stylesheet" href="style/documentation.css">
<!-- Jalendar files -->
<link rel="stylesheet" href="jalendar/style/jalendar.min.css" type="text/css" />
<script type="text/javascript" src="jalendar/js/jquery-1.11.3.min.js"></script><!--jQuery-->
<script type="text/javascript" src="jalendar/js/jalendar.min.js"></script>
<!-- Jalendar files #end -->
<link rel="stylesheet" href="style/default.min.css" media="screen" type="text/css">
<script src="js/highlight.pack.js"></script>
<script src="js/documentation.js"></script>
<script type="text/javascript">
$(function () {
$('#yourId').jalendar({
color: '#577e9a', // Unlimited Colors
color2: '#57c8bf', // Unlimited Colors
lang: 'TR'
});
$('#yourIdInput').jalendar({
color: '#577e9a', // Unlimited Colors
color2: '#57c8bf', // Unlimited Colors
lang: 'TR'
});
$('#yourId2').jalendar({
color: '#fff',
type: 'linker',
customUrl: 'http://yourcustomurl.com/yourcustomurl?var=',
dateType: 'mm-dd-yyyy',
titleColor: '#333',
weekColor: '#EA5C49',
todayColor: '#EA5C49'
});
$('#yourId3').jalendar({
type: 'selector',
dateType: 'yyyy-mm-dd',
dayWithZero: false,
});
$('#yourId3Input').jalendar({
color: '#4E99CE',
type: 'selector',
dateType: 'yyyy-mm-dd',
lang: 'TR',
dayWithZero: false,
});
$('#yourId4').jalendar({
color: '#37C4A7',
type: 'range',
dayWithZero: false,
selectingAfterToday: true,
lang: 'TR'
});
$('#yourId4Input').jalendar({
color: '#4ECE8C',
type: 'range',
dayWithZero: false,
lang: 'TR'
});
});
</script>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/tr_TR/sdk.js#xfbml=1&version=v2.4";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="container-fluid">
<div class="row header header-mini">
<ul class="nav">
<li><a href="index.html">Getting Started</a></li>
<li><a href="#" class="selected">Installation & Documentation</a></li>
<li><a href="changelog.html">Change-log (v1.7)</a></li>
<li><a href="http://codecanyon.net/item/jalendar2-calendar-pack-event-range-and-more/12662442?ref=bqra">Purchase and Download</a></li>
<li><a href="mailto:bora_dan@hotmail.com?Subject=Jalendar2 Support">Support</a></li>
</ul>
<div class="container">
<div class="logo text-center"><img src="img/logo.png" alt="" /></div>
<p class="mini-desc text-center">Installation</p>
</div>
</div>
<div class="container white">
<div class="row">
<div class="col-xs-12">
<h1>Download Jquery</h1>
<p>
Jalendar has a few easy way to quickly get started. Firstly you can download jquery 1.10 or newer version from <a href="http://jquery.com" target="_blank">jquery</a> website. And add to jquery file path to your between <head> tag.
<br /><br />
After that, you must add jalendar plugin files and folders —<b>/js/ and /style/</b>— to your project and add to that lines you <head> tag again. Between your <head> tag should see like this after these;
</p>
<pre class="html">
<code><head>
...
<link rel="stylesheet" href="jalendar/style/jalendar.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script><!--jQuery-->
<script type="text/javascript" src="jalendar/js/jalendar.js"></script>
...
</head></code>
</pre>
After these steps, your jalendar plugin is ready. Let's see Jalendar options.
<hr />
<br />
<h1>Running plugin</h1>
Let's we add javascript function in your .js file for running Jalendar plugin. Id names should be same.
<br />
This is the Jalendar Event option. It is default option. You can change that with "type:" parameter from plugin. More info is in the List of properties section.
<br /><br />
<div class="row">
<div class="col-sm-6">
<pre class="js">
<code>$('#yourId').jalendar();</code>
</pre>
Basicly you should create a div in your html where you want, add id what you want and add class that named <b>jalendar</b>. This seems like this;
<br /><br /><br />
<pre class="html">
<code><div id="yourId" class="jalendar"></div></code>
</pre>
<script>$(function(){ $('#demo').jalendar(); });</script>
<div id="demo" class="jalendar" style="display: inline-block;"></div>
</div>
<div class="col-sm-6">
<pre class="js">
<code>$('#yourId').jalendar({type: 'selector'});</code>
</pre>
If you want to use jalendar with an input you should create a div and define class <b>jalendar-input</b>. Then put your <b>input type="text"</b> in <b>.jalendar-input</b> div. And then create a div that class name <b>.jalendar</b> and define your id next to input. This seems like this;
<pre class="html">
<code><div class="jalendar-input">
<input type="text" readonly />
<div id="yourDemoInput" class="jalendar"></div>
</div></code>
</pre>
<script>$(function(){ $('#yourDemoInput').jalendar({ type: 'selector'} ); });</script>
<div class="jalendar-input">
<input type="text" placeholder="Select Date" readonly />
<div id="yourDemoInput" class="jalendar"></div>
</div>
</div>
</div>
<hr />
<br />
<h1>List of properties</h1>
<pre>
<code>
customDay: // You can define date what you want. Calendar will open with this day
// (Ex: 31/10/1987) [Default: Today]
color: // You can define unlimited color code
color2: // You can define unlimited color code
dayWithZero: // You can use days without zero (Default: true)
monthWithZero: // You can use months without zero (Default: true)
done: // This is the callback function. You can run any function when your date selected
// (Ex: function() { } )
// (Info: $('#your-id input.data1').val() is selected day data1,
// and for 'type: range' your selected day data2 is $('#your-id input.data2').val() )
// [Default: null]
lang: // Supports 13 languages.
// (Ex: "EN", "TR", "ES", "DE", "FR", "IT", "FIL", "RU", "NL", "ZH", "HI", "PT", "PL")
// [Default: "EN"]
// (Info: English, Türkçe, Espanol, Deutsch,
// French, Italian, Filipino, Russian,
// Dutch, Chinese, Hindi, Porteguese, Polish)
type: // There are 4 different option.
// (Ex: "event", "linker", "selector", "range") [Default: event]
customUrl: // You can define your link on each date
// (Ex: "http://yoururl.com/yourpath=") [Available with type: "linker"]
sundayStart: // You can change week start day for Sunday or Monday
// [Default: false]
dateType: // You can change date format.
// (Ex: "yyyy-mm-dd", "dd-mm-yyyy", "mm-dd-yyyy", "yyyy-dd-mm") [Default: dd-mm-yyyy]
selectingBeforeToday: // You can disable selecting and clicking to day which after today
// (Ex: true) [Default: false]
selectingAfterToday: // You can disable selecting and clicking to day which before today
// (Ex: true) [Default: false]
dayColor: // Day colors have unlimited option
titleColor: // Title color have unlimited option
weekColor: // Week names colors have unlimited option
todayColor: // Today color have unlimited option
</code>
</pre>
<p>
You can define these properties to your jalendar function in javascript. For example;
</p>
<pre class="js">
<code>$('#yourId').jalendar({
color: '#577e9a', // Unlimited
color2: '#57c8bf', // Unlimited
lang: 'TR'
});</code>
</pre>
<hr />
<br />
<h1>HTML properties for Events</h1>
<pre class="html">
<code>
<div id="yourId" class="jalendar">
<div class="added-event"
data-type="holiday"
data-type="task"
data-type="event" (default)
data-link="http://pikselmatik.com"
data-date="19-11-2015"
data-title="WWDC 13 on San Francisco, LA">
</div>
...
</div>
</code>
</pre>
<hr />
<br />
<h1>CSS</h1>
You can change width property with:
<pre class="css">
<code>
.jalendar {
width: 320px !important;
}
</code>
</pre>
<hr />
<br />
<h1>Examples</h1>
<div class="row demos detail">
<div class="see-demos">See the Demos <i class="fa fa-caret-down"></i></div>
<div class="tab" data-name="a">
<a href="javascript:;" class="selected">Jalendar <small>Event</small></a>
<a href="javascript:;">Jalendar <small>Linker</small></a>
<a href="javascript:;">Jalendar <small>Selector</small></a>
<a href="javascript:;">Jalendar <small>Range</small></a>
</div>
<div class="tab-container" data-name="a">
<div class="tab-content selected">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Event</small></h1>
<pre class="html">
<code><div id="yourId" class="jalendar">
<div class="added-event" data-link="http://google.com" data-date="19-9-2015" data-title="WWDC 13 on San Francisco, LA"></div>
...
<div class="added-event" data-date="1-10-2015" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div>
</div></code>
</pre>
<pre class="js">
<code>$('#yourId').jalendar({
color: '#577e9a', // Unlimited
color2: '#57c8bf', // Unlimited
lang: 'TR'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div id="yourId" class="jalendar">
<div class="added-event" data-date="19-9-2020" data-title="WWDC 13 on San Francisco, LA"></div>
<div class="added-event" data-date="18-8-2020" data-title="Dribbble Community Meetup"></div>
<div class="added-event" data-date="17-8-2020" data-title="Design System Talks"></div>
<div class="added-event" data-date="16-8-2020" data-title="Code and Design Conference"></div>
<div class="added-event" data-date="1-10-2020" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Event <u>with Input</u></small></h1>
<pre class="html">
<code><div class="jalendar-input">
<input type="text" placeholder="Select Event Date" readonly />
<div id="yourIdInput" class="jalendar">
<div class="added-event" data-date="19-9-2015" data-title="WWDC 13 on San Francisco, LA"></div>
...
<div class="added-event" data-date="1-10-2015" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div>
</div>
</div></code>
</pre>
<pre class="js">
<code>$('#yourId').jalendar({
color: '#577e9a', // Unlimited
color2: '#57c8bf', // Unlimited
lang: 'TR'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div class="jalendar-input">
<input type="text" placeholder="Select Event Date" readonly />
<div id="yourIdInput" class="jalendar">
<div class="added-event" data-date="19-9-2015" data-title="WWDC 13 on San Francisco, LA"></div>
<div class="added-event" data-date="17-8-2015" data-title="Figma Talks"></div>
<div class="added-event" data-date="17-8-2015" data-title="Design System Event"></div>
<div class="added-event" data-date="16-8-2015" data-title="Dribbble Community Meetup"></div>
<div class="added-event" data-date="1-10-2015" data-title="Tarkan İstanbul Concert on Harbiye Açık Hava Tiyatrosu"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-content">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Linker</small></h1>
<pre class="html">
<code><div id="yourId2" class="jalendar"></div></code>
</pre>
<pre class="js">
<code>$('#yourId2').jalendar({
color: '#fff',
type: 'linker',
customUrl: 'http://yourcustomurl.com/yourcustomurl?var=',
dateType: 'mm-dd-yyyy',
titleColor: '#666',
weekColor: '#EA5C49',
todayColor: '#EA5C49'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div id="yourId2" class="jalendar"></div>
</div>
</div>
</div>
</div>
<div class="tab-content">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Selector</small></h1>
<pre class="html">
<code><div id="yourId3" class="jalendar"></div></code>
</pre>
<pre class="js">
<code>$('#yourId3').jalendar({
type: 'selector',
dateType: 'yyyy-mm-dd'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div id="yourId3" class="jalendar"></div>
</div>
</div>
<hr />
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Selector <u>with Input</u></small></h1>
<pre class="html">
<code><div class="jalendar-input">
<input type="text" readonly />
<div id="yourId3Input" class="jalendar"></div>
</div></code>
</pre>
<pre class="js">
<code>$('#yourId3Input').jalendar({
type: 'selector',
dateType: 'yyyy-mm-dd'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div class="jalendar-input">
<input type="text" placeholder="Select Date" readonly />
<div id="yourId3Input" class="jalendar"></div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-content">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Range</small></h1>
<pre class="html">
<code><div id="yourId4" class="jalendar"></div></code>
</pre>
<pre class="js">
<code>$('#yourId4').jalendar({
color: '#37C4A7',
type: 'range',
lang: 'TR'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div id="yourId4" class="jalendar"></div>
</div>
</div>
<hr />
<div class="row">
<div class="col-sm-8">
<h1>Jalendar <small>Range <u>with Input</u></small></h1>
<pre class="html">
<code><div class="jalendar-input">
<input type="text" readonly />
<div id="yourId4Input" class="jalendar"></div>
</div></code>
</pre>
<pre class="js">
<code>$('#yourId4Input').jalendar({
color: '#37C4A7',
type: 'range',
lang: 'TR'
});</code>
</pre>
</div>
<div class="col-sm-4">
<div class="jalendar-input">
<input type="text" placeholder="Select Date Range" />
<div id="yourId4Input" class="jalendar"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="sharing">
<div>
<a href="https://twitter.com/bqra" class="twitter-follow-button" data-show-count="false">Follow @bqra</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Check out this amazing jquery calendar plugin" data-via="bqra" data-hashtags="jalendar">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div>
<div class="fb-follow" data-layout="button_count" data-href="http://www.facebook.com/bora.dan87"></div>
</div>
<div>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/bqra" data-count-href="/bqra/followers" data-count-api="/users/bqra#followers" data-count-aria-label="# followers on GitHub" aria-label="Follow @bqra on GitHub">Follow @bqra</a>
</div>
</div>
<p>
Designed and built by Bora Dan. Maintained by Pikselmatik.com <br />
Codes are licensed under Codecanyon.net <br />
You can download it from codecanyon. Currently Version 1.7
</p>
</div>
</div>
</div>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>