31
31
32
32
< script src ="javascripts/jquery-1.9.1.min.js "> </ script >
33
33
< script src ="javascripts/jquery.steps.min.js "> </ script >
34
+ < script src ="javascripts/jquery.stickyscroll.js "> </ script >
34
35
<!--[if lt IE 9]>
35
36
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
36
37
<![endif]-->
37
38
</ head >
38
39
< body >
39
- < header >
40
+ < header id =" header " >
40
41
< div class ="inner ">
41
42
< h1 > jquery-steps</ h1 >
42
43
< h2 > A powerful jQuery wizard plugin that supports accessibility and HTML5.</ h2 >
@@ -60,7 +61,7 @@ <h3><span class="icons download"></span>Download</h3>
60
61
< section > </ section >
61
62
</ div >
62
63
63
- < footer role ="contentinfo ">
64
+ < footer id =" footer " role ="contentinfo ">
64
65
< p > Copyright 2013 by Rafael J. Staib</ p >
65
66
</ footer >
66
67
@@ -77,74 +78,77 @@ <h3><span class="icons download"></span>Download</h3>
77
78
enablePagination : false
78
79
} ) ;
79
80
80
- tabControl . find ( ".steps" ) . append ( '<div class="share">' +
81
- '<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://rstaib.github.io/jquery-steps" data-text="jQuery Steps" data-via="RafaelStaib" data-hashtags="jquerysteps">Tweet</a>' +
82
- '<div class="fb-like" data-href="http://rstaib.github.io/jquery-steps" data-send="false" data-layout="button_count" data-width="110" data-show-faces="false" data-font="arial"></div>' +
83
- '<iframe src="http://ghbtns.com/github-btn.html?user=rstaib&repo=jquery-steps&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>' +
84
- '</div>' ) ;
81
+ var headerHeight = $ ( "#header" ) . height ( ) ;
82
+ $ ( "#content-wrapper > .steps" ) . stickyscroll ( { t : headerHeight } ) ;
83
+
84
+ //tabControl.find(".steps").append('<div class="share">' +
85
+ // '<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://rstaib.github.io/jquery-steps" data-text="jQuery Steps" data-via="RafaelStaib" data-hashtags="jquerysteps">Tweet</a>' +
86
+ // '<div class="fb-like" data-href="http://rstaib.github.io/jquery-steps" data-send="false" data-layout="button_count" data-width="110" data-show-faces="false" data-font="arial"></div>' +
87
+ // '<iframe src="http://ghbtns.com/github-btn.html?user=rstaib&repo=jquery-steps&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>' +
88
+ //'</div>');
85
89
86
90
// Twitter Star Button
87
- ! function ( d , s , id ) { var js , fjs = d . getElementsByTagName ( s ) [ 0 ] , p = / ^ h t t p : / . 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' ) ;
91
+ // !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');
88
92
89
93
// Facebook Like Button
90
- ( 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/en_GB/all.js#xfbml=1" ; fjs . parentNode . insertBefore ( js , fjs ) ; } ( document , 'script' , 'facebook-jssdk' ) ) ;
94
+ // (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/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
91
95
} ) ;
92
96
93
97
// Google Analytics
94
- ( function ( i , s , o , g , r , a , m ) { i [ 'GoogleAnalyticsObject' ] = r ; i [ r ] = i [ r ] || function ( ) {
95
- ( i [ r ] . q = i [ r ] . q || [ ] ) . push ( arguments ) } , i [ r ] . l = 1 * new Date ( ) ; a = s . createElement ( o ) ,
96
- m = s . getElementsByTagName ( o ) [ 0 ] ; a . async = 1 ; a . src = g ; m . parentNode . insertBefore ( a , m )
97
- } ) ( window , document , 'script' , '//www.google-analytics.com/analytics.js' , 'ga' ) ;
98
+ // (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
99
+ // (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
100
+ // m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
101
+ // })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
98
102
99
- ga ( 'create' , 'UA-40997516-1' , 'rstaib.github.io' ) ;
100
- ga ( 'send' , 'pageview' ) ;
103
+ // ga('create', 'UA-40997516-1', 'rstaib.github.io');
104
+ // ga('send', 'pageview');
101
105
102
106
// Anchor Event Tracking
103
- $ ( function ( )
104
- {
105
- var filetypes = / \. ( z i p | e x e | p d f | d o c * | x l s * | p p t * | m p 3 | j s | m d ) $ / i,
106
- baseHref = "" ;
107
- if ( $ ( "base" ) . attr ( "href" ) != undefined )
108
- {
109
- baseHref = $ ( "base" ) . attr ( "href" ) ;
110
- }
111
-
112
- $ ( "a" ) . each ( function ( )
113
- {
114
- var href = $ ( this ) . attr ( "href" ) ;
115
- if ( href && ( href . match ( / ^ h t t p s ? \: / i) ) && ( ! href . match ( document . domain ) ) )
116
- {
117
- $ ( this ) . click ( function ( )
118
- {
119
- ga ( "send" , "event" , "External" , "Click" , href . replace ( / ^ h t t p s ? \: \/ \/ / i, "" ) ) ;
120
- if ( $ ( this ) . attr ( "target" ) != null && $ ( this ) . attr ( "target" ) . toLowerCase ( ) !== "_blank" )
121
- {
122
- setTimeout ( function ( ) { location . href = href ; } , 200 ) ;
123
- return false ;
124
- }
125
- } ) ;
126
- }
127
- else if ( href && href . match ( / ^ m a i l t o \: / i) )
128
- {
129
- $ ( this ) . click ( function ( )
130
- {
131
- ga ( "send" , "event" , "Email" , "Click" , href . replace ( / ^ m a i l t o \: / i, "" ) ) ;
132
- } ) ;
133
- }
134
- else if ( href && href . match ( filetypes ) )
135
- {
136
- $ ( this ) . click ( function ( )
137
- {
138
- ga ( "send" , "event" , "Download" , "Click" , href ) ;
139
- if ( $ ( this ) . attr ( "target" ) != null && $ ( this ) . attr ( "target" ) . toLowerCase ( ) !== "_blank" )
140
- {
141
- setTimeout ( function ( ) { location . href = baseHref + href ; } , 200 ) ;
142
- return false ;
143
- }
144
- } ) ;
145
- }
146
- } ) ;
147
- } ) ;
107
+ // $(function()
108
+ // {
109
+ // var filetypes = /\.(zip|exe|pdf|doc*|xls*|ppt*|mp3|js|md)$/i,
110
+ // baseHref = "";
111
+ // if ($("base").attr("href") != undefined)
112
+ // {
113
+ // baseHref = $("base").attr("href");
114
+ // }
115
+
116
+ // $("a").each(function()
117
+ // {
118
+ // var href = $(this).attr("href");
119
+ // if (href && (href.match(/^https?\:/i)) && (!href.match(document.domain)))
120
+ // {
121
+ // $(this).click(function()
122
+ // {
123
+ // ga("send", "event", "External", "Click", href.replace(/^https?\:\/\//i, ""));
124
+ // if ($(this).attr("target") != null && $(this).attr("target").toLowerCase() !== "_blank")
125
+ // {
126
+ // setTimeout(function() { location.href = href; }, 200);
127
+ // return false;
128
+ // }
129
+ // });
130
+ // }
131
+ // else if (href && href.match(/^mailto\:/i))
132
+ // {
133
+ // $(this).click(function()
134
+ // {
135
+ // ga("send", "event", "Email", "Click", href.replace(/^mailto\:/i, ""));
136
+ // });
137
+ // }
138
+ // else if (href && href.match(filetypes))
139
+ // {
140
+ // $(this).click(function()
141
+ // {
142
+ // ga("send", "event", "Download", "Click", href);
143
+ // if ($(this).attr("target") != null && $(this).attr("target").toLowerCase() !== "_blank")
144
+ // {
145
+ // setTimeout(function() { location.href = baseHref + href; }, 200);
146
+ // return false;
147
+ // }
148
+ // });
149
+ // }
150
+ // });
151
+ // });
148
152
</ script >
149
153
</ body >
150
154
</ html >
0 commit comments