-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_playground.html
50 lines (46 loc) · 2.63 KB
/
html_playground.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="message">
<p><strong>To print:</strong></p>
<p class="spacer"><strong>${model.odd.length}</strong> odd, <strong>${model.even.length}</strong> even. Needed <strong>${sheets}</strong> sheets.</p>
<p><strong>Odd</strong>:</p>
<p id ="test" class="sequence spacer">${model.odd.join(', ')}</p>
<p><strong>Even</strong>:</p>
<p class="sequence spacer">${model.even.join(', ')}</p>
</div>
<div class="message">
<p><strong>To print:</strong></p>
<p class="spacer">It is needed 1 sheet only.</p>
</div>
<div class="message">
<p><strong>Error :</strong></p>
<p class="spacer">Last page of interval can't be bigger than document's last page.</p>
<p class="spacer">Press <strong>Reset</strong> to repeat the operation.</p>
</div>
<div class="message">
<p><strong>Error :</strong></p>
<p class="spacer">First page can't be bigger than last page.</p>
<p class="spacer">Press <strong>Reset</strong> to repeat the operation.</p>
</div>
<div class="message">
<p>
This app, is designed to help the user who needs to print a document on both sides of one sheets or more, but he does not own an automatic duplex printer and or the software managing the document is not capable to separately print even/odd pages.
</p>
<p>
Whithout this app the user needs to manually insert a sequence of even/odd pages in the print window. This, for larger documents could really be a trouble, causing mistakes and waste of time and paper if the sequence is wrong.
</p>
<p>
With this app the user needs to just provide the document's number of pages, or an interval of pages (whithin that number).The app automatically provides both the even and odd sequences, ready for a copy and paste and the number of sheets needed for the operation.
</p>
<p><strong>Example</strong></p>
<p>Let say we have a document, 50 pages long.</p>
<p>
If we have to print all the pages, we just insert 50 in the box "Number of pages" and click "Submit" to receive the result.</p> "Select an interval". The 2 box "First page" and "Last page" will be active now, so we can insert 14 as first page and 37 as last. Lastly we have to click "Submit" to receive the result.
</p>
<p><strong>Note:</strong></p>
<p>
1) As soon the app is loaded, only the box to insert the number of pages and the help button are available. Other elements are disabled.
</p>
<p>
2) After a first positive number is provided in the box, other elements will be available. The user will be able to submit the number, to select the checkbox to provide an interval or just reset the app.
</p>
<p>3) Once the result is shown, the user can only reset the App for a new sequence.</p>
<div>