Skip to content
Chevron Chevron

PT158


Section 1 (RC):

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.

26.

27.


Section 2 (LR):

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.


Section 3 (LR):

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.


Section 4 (LR):

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.

26.

`; } /* Print via invisible iframe */ function printSnapshotInIframe(html){ const old=document.getElementById('pdf-print-iframe'); if (old) old.remove(); const iframe=document.createElement('iframe'); iframe.id='pdf-print-iframe'; iframe.style.position='fixed'; iframe.style.right='0'; iframe.style.bottom='0'; iframe.style.width='0'; iframe.style.height='0'; iframe.style.border='0'; iframe.style.visibility='hidden'; document.body.appendChild(iframe); iframe.addEventListener('load', function(){ setTimeout(function(){ try { iframe.contentWindow.focus(); iframe.contentWindow.print(); } catch(e){} setTimeout(()=>iframe.remove(), 1000); }, 50); }); const doc=iframe.contentWindow.document; doc.open(); doc.write(html); doc.close(); } /* Save Results */ function saveResults(){ if (!userInitialAnswers || userInitialAnswers.length !== correctAnswers.length) userInitialAnswers=getUserAnswers(); if (!userBlindAnswers || userBlindAnswers.length !== correctAnswers.length) userBlindAnswers=getUserAnswers(); updateScoreDisplay(userInitialAnswers,"lsat-score","raw-score","s1-score","s2-score","s3-score","s4-score","type-breakdown"); updateScoreDisplay(userBlindAnswers,"lsat-score-blind","raw-score-blind","s1-score-blind","s2-score-blind","s3-score-blind","s4-score-blind","type-breakdown-blind"); document.getElementById("score-wrapper").style.display="flex"; document.getElementById("score-wrapper").style.visibility="visible"; showAnswerReview(); const html=buildSnapshotHTML(); printSnapshotInIframe(html); } /* Flow */ function submitBoth(){ userInitialAnswers = getUserAnswers(); window.scrollTo(0,0); document.getElementById("submit-both").style.display="none"; document.getElementById("submit-blind-wrapper").style.display="block"; } function submitBlindReview(){ userBlindAnswers=getUserAnswers(); updateScoreDisplay(userInitialAnswers,"lsat-score","raw-score","s1-score","s2-score","s3-score","s4-score","type-breakdown"); updateScoreDisplay(userBlindAnswers,"lsat-score-blind","raw-score-blind","s1-score-blind","s2-score-blind","s3-score-blind","s4-score-blind","type-breakdown-blind"); const wrap=document.getElementById("score-wrapper"); wrap.style.display="flex"; wrap.style.visibility="visible"; wrap.classList.add("double-space"); // on-page score display: double spaced showAnswerReview(); document.getElementById("save-results-pdf").style.display="inline-block"; document.getElementById("submit-blind-wrapper").style.display="none"; } /* Bind Save button */ (function(){ function bind(){ const btn=document.getElementById('save-results-pdf'); if (btn && !btn._bound){ btn.addEventListener('click', function(e){ e.preventDefault(); saveResults(); }); btn._bound=true; } } document.addEventListener('DOMContentLoaded', bind); window.addEventListener('load', bind); })();