File tree 5 files changed +114
-17
lines changed
5 files changed +114
-17
lines changed Original file line number Diff line number Diff line change 1
- <div class="slide">
2
- <div class="alignment">
3
- <div class="panel panel-primary lab">
4
- <div class="panel-heading">Lab</div>
5
- <div class="panel-body">
6
- {{ lab | markdownify }}
7
- </div>
8
- <!--<div class="panel-footer">Footer</div>-->
9
- </div>
1
+ <div class="panel panel-primary lab">
2
+ <div class="panel-heading">Lab</div>
3
+ <div class="panel-body">
4
+ {{ lab | markdownify }}
10
5
</div>
11
6
</div>
Original file line number Diff line number Diff line change 1
1
$ ( function ( ) {
2
- // Global-ish vars
3
2
var timeLeftInterval = 0 ;
4
3
4
+ $ ( "#slide-only-toggle" ) . change ( function ( ) {
5
+ var checkState = $ ( "#slide-only-toggle" ) . attr ( "checked" ) ;
6
+ $ ( ".materials > *" ) . toggleClass ( "hidden" ) ;
7
+ $ ( ".slide" ) . toggleClass ( "hidden" ) ;
8
+ } ) ;
9
+
5
10
6
11
// WARNING This only anticipates one querystring value
7
12
var urlSearch = window . location . search ,
@@ -81,7 +86,7 @@ $(function(){
81
86
// Startup slide scrollsnap watching
82
87
$ ( document ) . scrollsnap ( {
83
88
snaps : '.slide' ,
84
- proximity : 200
89
+ proximity : 160
85
90
} ) ;
86
91
87
92
function updateSlideSize ( ) {
Original file line number Diff line number Diff line change 8
8
< div class ="timer-toggle ">
9
9
< span class ="octicon octicon-clock "> </ span >
10
10
</ div >
11
-
12
11
< div class ="timer-amount ">
13
12
< input type ="number " id ="minutes " name ="minutes " min ="1 " max ="20 " value ="5 " placeholder ="min " class ="form-control ">
14
13
<!-- <input type="number" id="seconds" name="seconds" min="1" max="60" value="0" placeholder="sec" class="form-control"> -->
15
14
< button id ="start-stop " type ="submit " class ="btn btn-default "> Start</ button >
16
15
</ div >
17
-
18
16
< div class ="timer-content ">
19
17
< span class ="time-left " id ="time-left "> </ span >
20
18
</ div >
21
-
22
-
23
19
</ div >
24
20
</ div >
25
21
26
22
< div class ="container curriculum ">
23
+
24
+
25
+
27
26
< div class ="row ">
28
- < div class ="col-md-9 ">
27
+ < div class ="col-md-9 materials ">
29
28
< div id ="teacher " class ="hidden ">
30
29
< div class ="alignment ">
31
30
< div id ="teacher-avatar " class =""> </ div >
69
68
</ div >
70
69
< div class ="col-md-3 ">
71
70
< div id ="toc-wrapper ">
71
+
72
72
< div id ="toc " data-spy ="affix " data-offset-top ="145 ">
73
- < ul id ="toc-list " class ="nav nav-pills nav-stacked " role ="tablist "> </ ul >
73
+ < ul id ="toc-list " class ="nav nav-pills nav-stacked " role ="tablist ">
74
+ < li >
75
+
76
+
77
+ </ li >
78
+ </ ul >
79
+ < ul class ="nav display-controls ">
80
+ < li >
81
+ < input type ="checkbox " name ="slide-only " id ="slide-only-toggle " class ="slide-only-check " value ="true ">
82
+ < label id ="slides-only " for ="slide-only-toggle " class ="slides-only-label "> Slides Only</ label >
83
+ </ li >
84
+ </ ul >
74
85
</ div >
75
86
</ div >
76
87
</ div >
Original file line number Diff line number Diff line change 19
19
.fade-out .timer-amount {
20
20
visibility : hidden; }
21
21
22
+ .display-controls {
23
+ border-top : solid 2px # f3f3f3 ;
24
+ margin-top : 5px ;
25
+ padding-top : 10px ; }
26
+
27
+ .slide-only-check {
28
+ visibility : hidden;
29
+ height : 0 ;
30
+ width : 0 ; }
31
+ .slide-only-check : checked + label {
32
+ color : # 1875c6 ; }
33
+ .slide-only-check : checked + label : before {
34
+ content : '\f03a' ;
35
+ color : white;
36
+ background-color : # 1875c6 ;
37
+ box-shadow : 0 0 0 2px # 1875c6 ;
38
+ padding-left : 0px ;
39
+ line-height : 1em ; }
40
+
41
+ .slides-only-label {
42
+ color : rgba (69 , 69 , 69 , 0.5 );
43
+ line-height : 18px ;
44
+ padding-left : 25px ; }
45
+ .slides-only-label : before {
46
+ content : '\f03a' ;
47
+ font : normal normal normal 16 px/1 octicons;
48
+ text-align : center;
49
+ position : absolute;
50
+ left : 0 ;
51
+ display : inline-block;
52
+ border-radius : 50% ;
53
+ color : rgba (69 , 69 , 69 , 0 );
54
+ -webkit-transition : all 180ms ;
55
+ padding-left : 5px ;
56
+ width : 18px ;
57
+ height : 18px ;
58
+ box-shadow : 0 0 0 2px rgba (69 , 69 , 69 , 0.5 );
59
+ line-height : .2em ; }
60
+
22
61
.timer-wrapper {
23
62
background : rgba (255 , 255 , 255 , 0.93 );
24
63
height : 100% ;
Original file line number Diff line number Diff line change @@ -42,7 +42,54 @@ $mono-dark: #454545;
42
42
.timer-amount {
43
43
visibility : hidden ;
44
44
}
45
+ }
46
+
47
+ .display-controls {
48
+ border-top : solid 2px $mono-light ;
49
+ margin-top : 5px ;
50
+ padding-top : 10px ;
51
+ }
52
+
53
+ .slide-only-check {
54
+ visibility : hidden ;
55
+ height : 0 ;
56
+ width : 0 ;
45
57
58
+ & :checked + label {
59
+ color : $color-dark ;
60
+
61
+ & :before {
62
+ content : ' \f03a ' ;
63
+ color : rgba ($mono-bright , 1 );
64
+ background-color : $color-dark ;
65
+ box-shadow : 0 0 0 2px $color-dark ;
66
+ padding-left : 0px ;
67
+ line-height : 1em ;
68
+ }
69
+ }
70
+ }
71
+
72
+ .slides-only-label {
73
+ color : rgba ($mono-dark , .5 );
74
+ line-height : 18px ;
75
+ padding-left : 25px ;
76
+
77
+ & :before {
78
+ content : ' \f03a ' ;
79
+ font : normal normal normal 16px / 1 octicons;
80
+ text-align : center ;
81
+ position : absolute ;
82
+ left : 0 ;
83
+ display : inline-block ;
84
+ border-radius : 50% ;
85
+ color : rgba ($mono-dark , 0 );
86
+ -webkit-transition : all 180ms ;
87
+ padding-left : 5px ;
88
+ width : 18px ;
89
+ height : 18px ;
90
+ box-shadow : 0 0 0 2px rgba ($mono-dark , .5 );
91
+ line-height : .2em ;
92
+ }
46
93
}
47
94
48
95
.timer-wrapper {
You can’t perform that action at this time.
0 commit comments