Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added JS to select previous events tab

  • Loading branch information...
commit cdff1964106ab254026b819bd98edc0f8784f6cb 1 parent e9e0321
rodnaph authored March 19, 2012

Showing 1 changed file with 11 additions and 6 deletions. Show diff stats Hide diff stats

  1. 17  index.html
17  index.html
@@ -150,16 +150,21 @@
150 150
         <script type="text/javascript" src="js/bootstrap.min.js"></script>
151 151
         <script type="text/javascript" src="attendn/js/attendn.js"></script>
152 152
         <script type="text/javascript">
153  
-            $('ul.nav-tab').tab('show');
154  
-            
155 153
             // iframes had attributes important to functionality but not strictly allowed in this doctype
156 154
             // add them in after as they are an enhancement likely to be enjoyed only by browsers supporting JS anyway.
157 155
             $(function() {
158 156
                 $('iframe.iframe-video').attr({
159  
-                        allowFullScreen:'allowFullScreen',
160  
-                        mozallowfullscreen:'mozallowfullscreen',
161  
-                        webkitAllowFullScreen:'webkitAllowFullScreen'
162  
-                    });
  157
+                    allowFullScreen:'allowFullScreen',
  158
+                    mozallowfullscreen:'mozallowfullscreen',
  159
+                    webkitAllowFullScreen:'webkitAllowFullScreen'
  160
+                });
  161
+                var tabs = [ '#previous-events' ];
  162
+                $.each( tabs, function(i,name) {
  163
+                    if ( window.location.hash == name ) {
  164
+                        $( '.nav-tabs a[href=' +name+ ']' )
  165
+                            .tab( 'show' );
  166
+                    }
  167
+                });
163 168
             });
164 169
         </script>
165 170
 

0 notes on commit cdff196

Please sign in to comment.
Something went wrong with that request. Please try again.