Commit 21bd711 1 parent 2b9f506 commit 21bd711 Copy full SHA for 21bd711
File tree 2 files changed +3
-17
lines changed
2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 179
179
180
180
// activate clickable hover tables
181
181
document . querySelectorAll ( ".table-seamless-links [data-url]" ) . forEach ( row => {
182
- for ( const table_data of row . children ) {
183
- const wrapping_anchor = document . createElement ( "a" ) ;
184
- wrapping_anchor . href = row . dataset [ "url" ] ;
185
- wrapping_anchor . append ( ...table_data . childNodes ) ;
186
- table_data . replaceChildren ( wrapping_anchor ) ;
187
- }
182
+ row . addEventListener ( "click" , ( ) => {
183
+ window . location . assign ( row . dataset . url ) ;
184
+ } ) ;
188
185
} ) ;
189
186
190
187
document . querySelectorAll ( ".hover-row" ) . forEach ( row => {
Original file line number Diff line number Diff line change @@ -35,19 +35,8 @@ $table-colors: (
35
35
padding-bottom : 0.4rem ;
36
36
}
37
37
38
- // Seamless links in tables
39
- //
40
- // -1- Expand links to fill the cell
41
38
.table-seamless-links td {
42
39
overflow : hidden ;
43
-
44
- a :not (.btn ) {
45
- color : $black ;
46
- text-decoration : none ;
47
- display : block ; // -1-
48
- margin : -10em ; // -1-
49
- padding : 10em ; // -1-
50
- }
51
40
}
52
41
53
42
// Hoverable rows
You can’t perform that action at this time.
0 commit comments