|
29 | 29 | </style> |
30 | 30 | <!-- |
31 | 31 | For document, copy start from here |
32 | | - search `href="frameworks` replace to `href="https://demo.dynamsoft.com/Samples/DBR/JS/frameworks` |
33 | 32 | search `href="scenarios` replace to `href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios` |
34 | 33 | --> |
35 | 34 | <style> |
36 | 35 | /* `balloon.min.css` used for tooltip styling */ |
37 | 36 | :root { |
38 | 37 | --balloon-border-radius: 6px; |
39 | | - --balloon-color: #24292e; |
| 38 | + /* use a slightly opaque background to mask underlying page text */ |
| 39 | + --balloon-color: rgba(36,41,46,0.95); |
40 | 40 | --balloon-text-color: #fff; |
41 | 41 | --balloon-font-size: 13px; |
42 | 42 | --balloon-move: 4px; |
|
58 | 58 | font-style: normal; |
59 | 59 | text-shadow: none; |
60 | 60 | font-size: var(--balloon-font-size); |
| 61 | + /* solid background and slight blur to improve legibility over page content */ |
61 | 62 | background: var(--balloon-color); |
62 | 63 | color: var(--balloon-text-color); |
63 | 64 | border-radius: var(--balloon-border-radius); |
64 | 65 | content: attr(aria-label); |
65 | | - padding: 0.5em 1em; |
| 66 | + padding: 0.55em 0.9em; |
66 | 67 | position: absolute; |
| 68 | + display: inline-block; |
67 | 69 | white-space: nowrap; |
68 | | - z-index: 10; |
| 70 | + z-index: 9999; |
| 71 | + box-shadow: 0 6px 18px rgba(0,0,0,0.35); |
| 72 | + -webkit-backdrop-filter: blur(3px); |
| 73 | + backdrop-filter: blur(3px); |
| 74 | + max-width: 90vw; |
| 75 | + overflow-wrap: break-word; |
69 | 76 | } |
70 | 77 | [aria-label][data-balloon-pos]:before { |
71 | 78 | width: 0; |
|
77 | 84 | transition: all 0.18s ease-out 0.18s; |
78 | 85 | content: ""; |
79 | 86 | position: absolute; |
80 | | - z-index: 10; |
| 87 | + z-index: 9999; |
81 | 88 | } |
82 | 89 | [aria-label][data-balloon-pos]:hover:before, |
83 | 90 | [aria-label][data-balloon-pos]:hover:after, |
@@ -1272,7 +1279,7 @@ <h3> |
1272 | 1279 | <!-- Scenario Samples --> |
1273 | 1280 | <div class="file"> |
1274 | 1281 | <h3> |
1275 | | - Scenario Samples <span class="sample-count">(16)</span> |
| 1282 | + Scenario Samples <span class="sample-count">(17)</span> |
1276 | 1283 | <a |
1277 | 1284 | class="button title readme-link section-readme-link" |
1278 | 1285 | href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/scenarios/README.md" |
@@ -1384,7 +1391,7 @@ <h3> |
1384 | 1391 | <span data-balloon-length="large" data-balloon-pos="down" aria-label="Demo focused on decoding common 2D barcode formats." |
1385 | 1392 | ><a |
1386 | 1393 | class="button title demo-link" |
1387 | | - href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/scenarios/scan-common-2D-codes/index.html" |
| 1394 | + href="scenarios/scan-common-2D-codes/index.html" |
1388 | 1395 | title="View live demo" |
1389 | 1396 | >Scan Common 2D Codes</a |
1390 | 1397 | ><a |
@@ -1454,6 +1461,17 @@ <h3> |
1454 | 1461 | ></span |
1455 | 1462 | > |
1456 | 1463 | </div> |
| 1464 | + <div class="file"> |
| 1465 | + <span data-balloon-length="large" data-balloon-pos="down" aria-label="Read the VIN(vehicle identification number) code and parse it." |
| 1466 | + ><a class="button title demo-link" href="scenarios/read-vin/index.html" title="View live demo">Read VIN</a |
| 1467 | + ><a |
| 1468 | + class="button title source-link" |
| 1469 | + href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/scenarios/read-vin" |
| 1470 | + title="View source code on GitHub" |
| 1471 | + >Source</a |
| 1472 | + ></span |
| 1473 | + > |
| 1474 | + </div> |
1457 | 1475 | <div class="file"> |
1458 | 1476 | <span data-balloon-length="large" data-balloon-pos="down" aria-label="Example showing GS1 AI parsing and data extraction." |
1459 | 1477 | ><a class="button title demo-link" href="scenarios/read-and-parse-GS1-AI/scan-using-rtu-api/index.html" title="View live demo" |
|
0 commit comments