Skip to content

Commit

Permalink
feat: apply data-bodyclass also on print/jump views (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd authored and tmcw committed Apr 25, 2017
1 parent 779143a commit 52e6a31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/big.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ window.addEventListener('load', function() {
var subContainer = presentationContainer.appendChild(
ce('div', 'sub-container')
);
subContainer.appendChild(slideContainer);
var slideBodyContainer = subContainer.appendChild(
ce('div', slideContainer.firstChild.getAttribute('data-bodyclass') || '')
);
slideBodyContainer.appendChild(slideContainer);
slideContainer.style.display = 'flex';
useDataImageAsBackground(slideContainer);
resizeTo(slideContainer, 512, 320);
Expand Down Expand Up @@ -368,7 +371,10 @@ window.addEventListener('load', function() {
var subContainer = presentationContainer.appendChild(
ce('div', 'sub-container')
);
subContainer.appendChild(slideContainer);
var slideBodyContainer = subContainer.appendChild(
ce('div', slideContainer.firstChild.getAttribute('data-bodyclass') || '')
);
slideBodyContainer.appendChild(slideContainer);
slideContainer.style.display = 'flex';
useDataImageAsBackground(slideContainer);
resizeTo(slideContainer, 192, 120);
Expand Down

0 comments on commit 52e6a31

Please sign in to comment.