瀏覽代碼

Improve instructions

crobi 10 年之前
父節點
當前提交
56e74d12c6
共有 2 個文件被更改,包括 11 次插入4 次删除
  1. 6
    4
      generator/generate.html
  2. 5
    0
      generator/js/ui.js

+ 6
- 4
generator/generate.html 查看文件

@@ -322,13 +322,15 @@
322 322
                 </div>
323 323
                 <div class="modal-body">
324 324
                     <ul>
325
-                        <li>The generated cards open in a new tab or window. If you don't see any new tab or window, check your popup blocker.</li>
326
-                        <li>Make sure to use the correct paper size (same as in the editor).</li>
325
+                        <li>The generated cards open in a new tab or window. If you don't see any new tab or window, check your popup and script blockers. If that does not help, try disabling all addons.</li>
326
+                        <li>Make sure your printer uses the correct paper size (same as in the editor).</li>
327 327
                         <li>Enable double sided printing (flip on long edge).</li>
328
-                        <li>Do not scale the document to fit the page.</li>
328
+                        <li>Do not scale the document to fit the page. Print at original size.</li>
329 329
                         <li>
330 330
                             Some printers are not very precise (pages print slightly shifted or rotated) and the cards will not line up with the card backs.
331
-                            If this is the case, there's nothing you can do. Try a different printer or print single-sided.
331
+                            If this is the case, there's not much you can do.
332
+                            Try making the page background the same color as the cards, so that you won't get any white edges on the card.
333
+                            If that does not help, try a different printer or print single-sided.
332 334
                         </li>
333 335
                     </ul>
334 336
                 </div>

+ 5
- 0
generator/js/ui.js 查看文件

@@ -35,6 +35,11 @@ function merge(left, right, compare) {
35 35
 
36 36
 var ui_generate_modal_shown = false;
37 37
 function ui_generate() {
38
+    if (card_data.length == 0) {
39
+        alert("Your deck is empty. Please define some cards first, or load the sample deck.");
40
+        return;
41
+    }
42
+
38 43
     // Generate output HTML
39 44
     var card_html = card_pages_generate_html(card_data, card_options);
40 45
 

Loading…
取消
儲存