|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
3 |
| -<style> |
4 |
| - .tooltip-header { |
5 |
| - position: relative; |
6 |
| - display: block; |
7 |
| - } |
| 3 | + <head> |
| 4 | + <title>Tableau Formatting Demo</title> |
8 | 5 |
|
9 |
| - .tooltip-header .tooltiptext { |
10 |
| - visibility: hidden; |
11 |
| - width: 250px; |
12 |
| - background-color: rgb(223, 221, 233); |
13 |
| - text-align: center; |
14 |
| - border-radius: 6px; |
15 |
| - padding: 5px 0; |
16 |
| - position: absolute; |
17 |
| - z-index: 1; |
18 |
| - bottom: 125%; |
19 |
| - left: 50%; |
20 |
| - margin-left: -60px; |
21 |
| - opacity: 0; |
22 |
| - transition: opacity 0.3s; |
23 |
| - } |
| 6 | + <!-- jQuery --> |
| 7 | + <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> |
24 | 8 |
|
25 |
| - .tooltip-header .tooltiptext::after { |
26 |
| - content: ""; |
27 |
| - position: absolute; |
28 |
| - top: 100%; |
29 |
| - left: 50%; |
30 |
| - margin-left: -5px; |
31 |
| - border-width: 5px; |
32 |
| - border-style: solid; |
33 |
| - border-color: rgb(223, 221, 233) transparent transparent transparent; |
34 |
| - } |
| 9 | + <!-- Bootstrap --> |
| 10 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> |
| 11 | + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
35 | 12 |
|
36 |
| - .tooltip-header:hover .tooltiptext { |
37 |
| - visibility: visible; |
38 |
| - opacity: 1; |
39 |
| - } |
| 13 | + <!-- Extensions Library (this will be hosted on a CDN eventually) --> |
| 14 | + <script src="../../lib/tableau.extensions.1.latest.js"></script> |
40 | 15 |
|
41 |
| -</style> |
42 |
| -<head> |
43 |
| - <title>Tableau Formatting Demo</title> |
| 16 | + <!-- Our webpack'd extension's code --> |
| 17 | + <script src="../../dist/formatting.js"></script> |
44 | 18 |
|
45 |
| - <!-- jQuery --> |
46 |
| - <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> |
| 19 | + <style> |
| 20 | + .tooltip-header { |
| 21 | + position: relative; |
| 22 | + display: block; |
| 23 | + } |
47 | 24 |
|
48 |
| - <!-- Bootstrap --> |
49 |
| - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> |
50 |
| - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
| 25 | + .tooltip-header .tooltiptext { |
| 26 | + visibility: hidden; |
| 27 | + width: 250px; |
| 28 | + background-color: rgb(223, 221, 233); |
| 29 | + text-align: center; |
| 30 | + border-radius: 6px; |
| 31 | + padding: 5px 0; |
| 32 | + position: absolute; |
| 33 | + z-index: 1; |
| 34 | + bottom: 125%; |
| 35 | + left: 50%; |
| 36 | + margin-left: -60px; |
| 37 | + opacity: 0; |
| 38 | + transition: opacity 0.3s; |
| 39 | + } |
51 | 40 |
|
52 |
| - <!-- Extensions Library (this will be hosted on a CDN eventually) --> |
53 |
| - <script src="../../lib/tableau.extensions.1.latest.js"></script> |
| 41 | + .tooltip-header .tooltiptext::after { |
| 42 | + content: ''; |
| 43 | + position: absolute; |
| 44 | + top: 100%; |
| 45 | + left: 50%; |
| 46 | + margin-left: -5px; |
| 47 | + border-width: 5px; |
| 48 | + border-style: solid; |
| 49 | + border-color: rgb(223, 221, 233) transparent transparent transparent; |
| 50 | + } |
54 | 51 |
|
55 |
| - <!-- Our webpack'd extension's code --> |
56 |
| - <script src="../../dist/formatting.js"></script> |
57 |
| -</head> |
58 |
| -<body> |
59 |
| - <div class="container"> |
60 |
| - <div> |
61 |
| - <h1>Tableau Formatting Sample</h1> |
62 |
| - <div id="formattingExample"></div> |
| 52 | + .tooltip-header:hover .tooltiptext { |
| 53 | + visibility: visible; |
| 54 | + opacity: 1; |
| 55 | + } |
| 56 | + @media (-webkit-max-device-pixel-ratio: 1.99), (max-resolution: 191dpi) { |
| 57 | + body { |
| 58 | + font-family: 'Benton Sans Low-DPI', Arial, Helvetica, sans-serif; |
| 59 | + } |
| 60 | + } |
| 61 | + |
| 62 | + @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
| 63 | + body { |
| 64 | + font-family: 'Benton Sans', Arial, Helvetica, sans-serif; |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + input, |
| 69 | + textarea, |
| 70 | + button, |
| 71 | + select { |
| 72 | + font-family: inherit; |
| 73 | + } |
| 74 | + |
| 75 | + .italic-section { |
| 76 | + font-style: italic; |
| 77 | + } |
| 78 | + |
| 79 | + .weight-100-section { |
| 80 | + font-weight: 100; |
| 81 | + } |
| 82 | + |
| 83 | + .weight-bold-section { |
| 84 | + font-weight: bold; |
| 85 | + } |
| 86 | + </style> |
| 87 | + </head> |
| 88 | + <body> |
| 89 | + <div class="container"> |
| 90 | + <div> |
| 91 | + <h1>Tableau Formatting Sample</h1> |
| 92 | + <div id="formattingExample"></div> |
| 93 | + </div> |
63 | 94 | </div>
|
64 |
| - </div> |
65 |
| -</body> |
| 95 | + </body> |
66 | 96 | </html>
|
0 commit comments