Skip to content

Commit ff59428

Browse files
author
Dimitris Krestos
committed
Update demo page
1 parent fb63664 commit ff59428

File tree

3 files changed

+31
-25
lines changed

3 files changed

+31
-25
lines changed

index.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="description" content="Yet another plugin for tabs">
77

88
<!-- STYLES -->
9-
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
9+
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
1010
<link rel="stylesheet" type="text/css" href="stylesheets/reset.css">
1111
<link rel="stylesheet" type="text/css" href="stylesheets/typography.css">
1212
<link rel="stylesheet" type="text/css" href="stylesheets/styles.css">
@@ -53,7 +53,6 @@ <h2>A jQuery plugin for tabs</h2>
5353
<!-- <h3>About</h3> -->
5454
<section id="body" role="main">
5555
<article>
56-
<h2><strong>Tabslet</strong></h2>
5756
<h2>...is yet another jQuery plugin for tabs and more...</h2>
5857
<h2>...is compatible with IE7+, Chrome, Firefox, Safari and jQuery 1.8.1, 1.9.1, 1.10.1, 2.0.2.</h2>
5958
<h2>...supports <a class="anchorLink" href="#custom_event">custom events</a>, <a class="anchorLink" href="#rotation">rotation</a> and <a class="anchorLink" href="#animation">animation</a></h2>
@@ -235,19 +234,5 @@ <h2>The attribute "data-toggle"</h2>
235234
<script src="javascripts/initializers.js"></script>
236235
<!-- JS ends -->
237236

238-
<!-- AddThis Smart Layers BEGIN -->
239-
<!-- Go to http://www.addthis.com/get/smart-layers to customize -->
240-
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-52597abd7eca09ea"></script>
241-
<script type="text/javascript">
242-
addthis.layers({
243-
'theme' : 'transparent',
244-
'share' : {
245-
'position' : 'right',
246-
'numPreferredServices' : 5
247-
}
248-
});
249-
</script>
250-
<!-- AddThis Smart Layers END -->
251-
252237
</body>
253238
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1+
/**
2+
* Tabs plugin
3+
*
4+
* @copyright Copyright 2012, Dimitris Krestos
5+
* @license Apache License, Version 2.0 (http://www.opensource.org/licenses/apache2.0.php)
6+
* @link http://vdw.staytuned.gr
7+
* @version v1.2.0
8+
*/
9+
10+
/* Sample html structure
11+
12+
<div class='tabs'>
13+
<ul class='horizontal'>
14+
<li><a href="#tab-1">Tab 1</a></li>
15+
<li><a href="#tab-2">Tab 2</a></li>
16+
<li><a href="#tab-3">Tab 3</a></li>
17+
</ul>
18+
<div id='tab-1'></div>
19+
<div id='tab-2'></div>
20+
<div id='tab-3'></div>
21+
</div>
22+
23+
*/
24+
125
(function($,window,undefined){"use strict";$.fn.tabslet=function(options){var defaults={mouseevent:"click",attribute:"href",animation:false,autorotate:false,delay:6e3,active:1};var options=$.extend(defaults,options);$(this).each(function(){function next(){i=++i%elements.length;options.mouseevent=="hover"?elements.eq(i).trigger("mouseover"):elements.eq(i).click();var e=setTimeout(next,options.delay);$this.mouseover(function(){clearTimeout(e)})}var $this=$(this);$this.find("> div").hide();$this.find("> div").eq(options.active-1).show();$this.find("> ul li").eq(options.active-1).addClass("active");var fn=eval(function(){$(this).trigger("_before");$this.find("> ul li").removeClass("active");$(this).addClass("active");$this.find("> div").hide();var e=$(this).find("a").attr(options.attribute);if(options.animation){$this.find(e).animate({opacity:"show"},"slow",function(){$(this).trigger("_after")})}else{$this.find(e).show();$(this).trigger("_after")}return false});var init=eval("$this.find('> ul li')."+options.mouseevent+"(fn)");init;var elements=$this.find("> ul li"),i=options.active-2;if(options.autorotate){setTimeout(next,0)}})};$(document).ready(function(){$('[data-toggle="tabslet"]').tabslet()})})(jQuery)

stylesheets/styles.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
BODY {
1919

2020
font-size: 13px; /* Override typography */
21-
font-family: 'Lato', sans-serif;
21+
font-family: "Open Sans", helvetica, arial, sans-serif;
2222
}
2323

2424
#wrapper {
@@ -64,7 +64,6 @@ HEADER {
6464
HEADER H1 {
6565
color: inherit;
6666
font-size: 48px;
67-
font-weight: 900;
6867
line-height: 48px;
6968
padding-top: 120px;
7069
text-transform: uppercase;
@@ -105,15 +104,11 @@ SECTION#body {
105104

106105
SECTION#body H2 {
107106
color: white;
107+
font-size: 18px;
108+
font-weight: 100;
108109
line-height: 25px;
109110
}
110111

111-
SECTION#body H2 STRONG {
112-
font-size: 20px;
113-
font-weight: 400;
114-
line-height: 1.5;
115-
}
116-
117112
SECTION {
118113
background: #F1F1F1;
119114
/*margin-top: 80px;*/
@@ -127,7 +122,7 @@ SECTION {
127122

128123
ARTICLE {
129124
margin: 0 auto;
130-
padding: 40px 0;
125+
padding: 20px 0;
131126
max-width: 940px;
132127
}
133128

@@ -236,6 +231,8 @@ FOOTER {
236231
color: white;
237232
display: block;
238233
float: left;
234+
font-size: 14px;
235+
font-weight: 500;
239236
line-height: 48px;
240237
margin-top: 20px;
241238
text-decoration: none;

0 commit comments

Comments
 (0)