File tree 5 files changed +25
-26
lines changed
5 files changed +25
-26
lines changed Original file line number Diff line number Diff line change
1
+ * ~
2
+ _site
Original file line number Diff line number Diff line change 12
12
</ div >
13
13
<!-- Placed at the end of the document so the pages load faster -->
14
14
{% include common-scripts.html %}
15
+ < script src ="/assets/js/start-carousel.js "> </ script >
15
16
< script >
16
- document . getElementById ( "not-signed-in" ) . addEventListener ( "click" , function ( e ) {
17
- e . preventDefault ( ) ;
18
- getTicket ( ) . then ( function ( session ) {
19
- updateLoginControls ( ) ;
20
- } ) ;
21
- } ) ;
22
- document . getElementById ( "log-out" ) . addEventListener ( "click" , function ( e ) {
23
- e . preventDefault ( ) ;
24
- destroyCachedTicket ( ) ;
25
- updateLoginControls ( ) ;
26
- } ) ;
27
- updateLoginControls ( ) ;
28
17
</ script >
29
18
</ body >
30
19
</ html >
Original file line number Diff line number Diff line change 12
12
{% include footer.html %}
13
13
<!-- Placed at the end of the document so the pages load faster -->
14
14
{% include common-scripts.html %}
15
- < script >
16
- document . getElementById ( "not-signed-in" ) . addEventListener ( "click" , function ( e ) {
17
- e . preventDefault ( ) ;
18
- getTicket ( ) . then ( function ( session ) {
19
- updateLoginControls ( ) ;
20
- } ) ;
21
- } ) ;
22
- document . getElementById ( "log-out" ) . addEventListener ( "click" , function ( e ) {
23
- e . preventDefault ( ) ;
24
- destroyCachedTicket ( ) ;
25
- updateLoginControls ( ) ;
26
- } ) ;
27
- updateLoginControls ( ) ;
28
- </ script >
29
15
</ body >
30
16
</ html >
Original file line number Diff line number Diff line change
1
+ ! function ( $ ) {
2
+ $ ( function ( ) {
3
+ $ ( '#myCarousel' ) . carousel ( { interval : 10000 } )
4
+ } )
5
+ } ( window . jQuery )
Original file line number Diff line number Diff line change @@ -80,3 +80,20 @@ function updateLoginControls() {
80
80
}
81
81
}
82
82
83
+ document . getElementById ( "not-signed-in" ) . addEventListener ( "click" , function ( e ) {
84
+ e . preventDefault ( ) ;
85
+ getTicket ( ) . then ( function ( session ) {
86
+ updateLoginControls ( ) ;
87
+ } ) ;
88
+ } ) ;
89
+ document . getElementById ( "log-out" ) . addEventListener ( "click" , function ( e ) {
90
+ e . preventDefault ( ) ;
91
+ destroyCachedTicket ( ) ;
92
+ updateLoginControls ( ) ;
93
+ } ) ;
94
+
95
+ ! function ( $ ) {
96
+ $ ( function ( ) {
97
+ updateLoginControls ( ) ;
98
+ } )
99
+ } ( window . jQuery )
You can’t perform that action at this time.
0 commit comments