-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
128 lines (107 loc) · 3.44 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
<!DOCTYPE html>
<html>
<head>
<title>apptPicker Demo</title>
<!-- mobile meta (hooray!) -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- Stylesheets: -->
<link rel="stylesheet" type="text/css" href="./dist/css/demo.min.css">
<link rel="stylesheet" type="text/css" href="./dist/css/style.min.css">
</head>
<body>
<header class="header">
<div class="container">
<h1 class="brand">
apptPicker.js
</h1>
<span class="poweredby first">powered by</span>
<span class="poweredby second">6eDesign.net</span>
</div>
</header>
<section class="container content">
<div class="row">
<div class="sixcol first panel">
<div>
<label class="pl" for="timeframe">Select a Time Range: </label>
<input class="pl" type="text" id="timeframe" placeholder="Select A Time Range" readonly>
<div class="cf"></div>
<hr>
</div>
<div>
<div
id="exApptPicker"
class="apptPicker"
data-start="7:00am"
data-end="7:00pm"
data-interval="15"
data-subinterval="120"
data-height="318px"
data-opentext="Pick an Appt Window"
data-inputid="timeframe"
data-changetxt="false"
data-pickerid="picker_0"
>
</div>
</div>
<div class="cf"></div>
</div>
<div class="sixcol last" style="min-height: 470px;">
<h1 class="subheading">Introducting apptPicker</h1>
<h4>by 6eDesign.net</h4>
<p>
A brand new, lightweight (~4KB <em>gzipped</em>: no dependencies, jquery, nada), JavaScript plugin for picking time ranges in the browser.
</p>
<img src="./dist/img/demo/demo-image1.png" style="max-width: 95%; height: auto;">
<p>
Check out the <a href="https://www.github.com/6eDesign/apptPicker">Code & Documentation</a> on my Github page.
</div>
</div>
<div class="row">
<div class="twelvecol first">
<h3>apptPicker is...</h3>
<hr>
<p>Customizeable, lightweight, and unique.</p>
<h3>Using apptPicker</h3>
<p>apptPicker can be embedded directly into the DOM with <strong>HTML</strong>: </p>
<pre style="width: 97%;">
<code data-language="html">
<!-- Include an Input (optional): -->
<input type="text" id="exApptPicker" readonly />
<!-- Include a div with settings as data-attributes: -->
<div class="apptPicker" data-start="5:00am" data-end="5:00pm" data-inputid="exApptPicker"></div>
<!-- Include the dist.min.js apptPicker file: -->
<!--<script type="text/javascript" src="./dist/js/dist.min.js"></script>-->
</code>
</pre>
</div>
<div class="twelvecol first">
<p><strong>OR</strong> apptPickers can be created at any time (after DOM load) with JavaScript
<pre style="width: 97%">
<code data-language="javascript">
var apptPicker = apptPicker('targetDivId').create({
start: '6:00am',
end: '6:00pm',
interval: 15,
subinterval: 120
});
</code>
</pre>
<p>apptPicker comes with an extensible API including 'on', 'toggleOpen', and 'getTimes':</p>
<pre style="width: 97%;">
<code data-language="javascript">
var apptPicker = apptPicker('targetDivId').on('change',function(times){
console.log(times);
});
</code>
</pre>
</div>
<div class="cf"></div>
</div>
</section>
<!-- JavaScripts: -->
<script type="text/javascript" src="./dist/js/demo.min.js"></script>
<!-- /Javascripts -->
</body>
</html>