-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
240 lines (212 loc) · 9.65 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Digital TAC</title>
<meta name="description" content="Reusable components created using JavaScript, CSS 3D transforms and CSS Animations.">
<meta name="author" content="Digital TAC">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/animation.css">
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="js/featherlight/featherlight.min.css" />
<script src="js/modernizr.custom.js"></script>
<script src="js/jquery.min.js"></script>
</head>
<body>
<article class="kontext">
<div class="layer one show">
<h2>Digital TAC</h2>
<p>Reusable components</p>
</div>
<div class="layer two">
<div class="bl-content">
<h2>UI TAC</h2>
<p>Reusable UI components</p>
<ul id="bl-work-items">
<li data-panel="panel-1"><a href="#"><img src="images/carousel.jpg" /></a><h3>Carousel</h3></li>
<li data-panel="panel-2"><a href="#"><img src="images/tab-view.jpg" /></a><h3>Tabs</h3></li>
<li data-panel="panel-3"><a href="#"><img src="images/pull-down-menu.jpg" /></a><h3>Pull-down menu</h3></li>
<li data-panel="panel-4"><a href="#"><img src="images/header.jpg" /></a><h3>Header</h3></li>
<li data-panel="panel-5"><a href="#"><img src="images/footer.jpg" /></a><h3>Footer</h3></li>
<li data-panel="panel-6"><a href="#"><img src="images/grid.jpg" /></a><h3>Grid</h3></li>
<li data-panel="panel-7"><a href="#"><img src="images/video.jpg" /></a><h3>Video</h3></li>
</ul>
</div>
</div>
<div class="layer three">
<div class="bl-content">
<h2>Mobile TAC</h2>
<p>Reusable mobile components</p>
</div>
</div>
</article>
<ul class="bullets"></ul>
<div class="credit">by Digital TAC</div>
<!-- Panel items for the works -->
<div class="bl-panel-items" id="bl-panel-work-items">
<div data-panel="panel-1">
<div>
<a href="components/carousel1/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1366 data-featherlight-iframe-height=600><img src="images/carousel1.jpg" /></a>
<h3>Slider</h3>
<p>Sliders are an excellent way to display information such as images in an organized and compact manner and visually compelling way.</p>
<ul><li>Version: 1.0</li>
<li>Author: Syed Ha Naqvi/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/carousel1.zip" download >Download code</a>
</div>
<div>
<a href="components/carousel2/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1366 data-featherlight-iframe-height=600><img src="images/carousel2.jpg" /></a>
<h3>Circular Carousels</h3>
<p>In Circular Carousels, slides can wrap, effectively creating an endless carousel</p>
<ul><li>Version: 1.0</li>
<li>Author: Chandan Bora/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/carousel2.zip" download >Download code</a>
</div>
<div>
<a href="components/carousel3/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1366 data-featherlight-iframe-height=600><img src="images/carousel3.jpg" /></a>
<h3>Non-circular Carousel</h3>
<p>A non-circular slideshow will not advance past the last slide.</p>
<ul><li>Version: 1.0</li>
<li>Author: Chandan Bora/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/carousel3.zip" download >Download code</a>
</div>
</div>
<div data-panel="panel-2">
<div>
<a href="components/tabs/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1000 data-featherlight-iframe-height=500><img src="images/tab-view.jpg" /></a>
<h3>Tab view</h3>
<p>Extended Bootstrap Tabs with ability to align tabs in multiple ways, add borders, rotated titles, load tab content via ajax.</p>
<ul><li>Version: 1.0</li>
<li>Author: Syed Ha Naqvi/India/IBM, </li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/tabs.zip" download >Download code</a>
</div>
</div>
<div data-panel="panel-3">
<div>
<a href="components/header/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1000 data-featherlight-iframe-height=500><img src="images/pull-down-menu.jpg" /></a>
<h3>Pull down menu</h3>
<p>Of all of the different types of menus, a dropdown menu provides the most benefits.</p>
<ul><li>Version: 1.0</li>
<li>Author: Syed Ha Naqvi/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/header.zip" download="pull-down-menu.zip" >Download code</a>
</div>
</div>
<div data-panel="panel-4">
<div>
<a href="components/header/index.html" data-featherlight="iframe" data-featherlight-iframe-width=1000 data-featherlight-iframe-height=500><img src="images/header.jpg" /></a>
<h3>Header</h3>
<p>The first and foremost thing that will stand out in a website is its header.</p>
<ul><li>Version: 1.0</li>
<li>Author: Syed Ha Naqvi/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/header.zip" download >Download code</a>
</div>
</div>
<div data-panel="panel-5">
<div>
<a href="components/footer/index.html" data-featherlight="iframe" data-featherlight-iframe-width=655 data-featherlight-iframe-height=486><img src="images/footer.jpg" /></a>
<h3>Footer</h3>
<p>Footer may not be the area of the greatest design or most impressive content but it is a place where users frequently look for information.</p>
<ul><li>Version: 1.0</li>
<li>Author: Chandan Bora/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/footer.zip" download >Download code</a>
</div>
</div>
<div data-panel="panel-6">
<div>
<a href="components/grid/index.html" data-featherlight="iframe" data-featherlight-iframe-width=950 data-featherlight-iframe-height=472><img src="images/grid.jpg" /></a>
<h3>Grid</h3>
<p>Grid-based layouts help users to better understand the information as it's shown in a more structured and logical way.</p>
<ul><li>Version: 1.0</li>
<li>Author: Chandan Bora/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/grid.zip" download >Download code</a>
</div>
</div>
<div data-panel="panel-7">
<div>
<a href="components/video/index.html" data-featherlight="iframe" data-featherlight-iframe-width=655 data-featherlight-iframe-height=422><img src="images/video.jpg" /></a>
<h3>Video</h3>
<p>HTML5 introduces built-in media support offering the ability to easily embed media into HTML documents.</p>
<ul><li>Version: 1.0</li>
<li>Author: Chandan Bora/India/IBM</li>
<li>Published Date: 30-Sept-2016</li></ul>
<a class="download-code" href="components/video.zip" download >Download code</a>
</div>
</div>
<nav>
<span class="bl-next-work">> Next Category</span>
<span class="bl-icon bl-icon-close"></span>
</nav>
</div>
<script src="js/transitions.js"></script>
<script src="js/boxlayout.js"></script>
<script src="js/featherlight/featherlight.min.js"></script>
<script>
// Create a new instance of kontext
var k = kontext( document.querySelector( '.kontext' ) );
// API METHODS:
// k.prev(); // Show prev layer
// k.next(); // Show next layer
// k.show( 3 ); // Show specific layer
// k.getIndex(); // Index of current layer
// k.getTotal(); // Total number of layers
// DEMO-SPECIFIC:
var bulletsContainer = document.body.querySelector( '.bullets' );
// Create one bullet per layer
for( var i = 0, len = k.getTotal(); i < len; i++ ) {
var bullet = document.createElement( 'li' );
bullet.className = i === 0 ? 'active' : '';
bullet.setAttribute( 'index', i );
bullet.onclick = function( event ) {
k.show( event.target.getAttribute( 'index' ) )
};
bullet.ontouchstart = function( event ) {
k.show( event.target.getAttribute( 'index' ) )
};
bulletsContainer.appendChild( bullet );
}
// Update the bullets when the layer changes
k.changed.add( function( layer, index ) {
var bullets = document.body.querySelectorAll( '.bullets li' );
for( var i = 0, len = bullets.length; i < len; i++ ) {
bullets[i].className = i === index ? 'active' : '';
}
} );
document.addEventListener( 'keyup', function( event ) {
if( event.keyCode === 37 ) k.prev();
if( event.keyCode === 39 ) k.next();
}, false );
var touchX = 0;
var touchConsumed = false;
document.addEventListener( 'touchstart', function( event ) {
touchConsumed = false;
lastX = event.touches[0].clientX;
}, false );
document.addEventListener( 'touchmove', function( event ) {
event.preventDefault();
if( !touchConsumed ) {
if( event.touches[0].clientX > lastX + 10 ) {
k.prev();
touchConsumed = true;
}
else if( event.touches[0].clientX < lastX - 10 ) {
k.next();
touchConsumed = true;
}
}
}, false );
</script>
<script>
$(function() {
Boxlayout.init();
});
</script>
</body>
</html>