File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 734
734
var numberOfFragments = toArray ( page . querySelectorAll ( '.fragment' ) ) . length ;
735
735
736
736
for ( var currentFragment = 0 ; currentFragment < numberOfFragments ; currentFragment ++ ) {
737
- var clonedPage = page . cloneNode ( true ) ;
738
- page . parentNode . insertBefore ( clonedPage , page . nextSibling ) ;
739
-
740
- toArray ( sortFragments ( clonedPage . querySelectorAll ( '.fragment' ) ) ) . forEach ( function ( fragment , fragmentIndex ) {
741
- if ( fragmentIndex <= currentFragment ) {
742
- fragment . classList . add ( 'visible' ) ;
743
- } else {
744
- fragment . classList . remove ( 'visible' ) ;
745
- }
746
- } ) ;
747
-
748
- page = clonedPage ;
749
- }
737
+ var clonedPage = page . cloneNode ( true ) ;
738
+ page . parentNode . insertBefore ( clonedPage , page . nextSibling ) ;
739
+
740
+ toArray ( sortFragments ( clonedPage . querySelectorAll ( '.fragment' ) ) ) . forEach ( function ( fragment , fragmentIndex ) {
741
+ if ( fragmentIndex <= currentFragment ) {
742
+ fragment . classList . add ( 'visible' ) ;
743
+ } else {
744
+ fragment . classList . remove ( 'visible' ) ;
745
+ }
746
+ } ) ;
747
+
748
+ page = clonedPage ;
749
+ }
750
750
751
751
}
752
752
// Show all fragments
1522
1522
1523
1523
}
1524
1524
1525
- /**
1525
+ /**
1526
1526
* Check if this instance is being used to print a PDF with fragments.
1527
- */
1528
- function isPrintingPDFFragments ( ) {
1527
+ */
1528
+ function isPrintingPDFFragments ( ) {
1529
1529
1530
- return ( / p r i n t - p d f - f r a g m e n t s / gi ) . test ( window . location . search ) ;
1530
+ return ( / p r i n t - p d f - f r a g m e n t s / gi ) . test ( window . location . search ) ;
1531
1531
1532
1532
}
1533
1533
You can’t perform that action at this time.
0 commit comments