tooltip.html 3.24 KB
Newer Older
1
2
<!DOCTYPE html>
<html>
Bardi Harborow's avatar
Bardi Harborow committed
3
4
5
6
7
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
    <title>Tooltip</title>
8
9
10
11
12
13
14
15
16
17
18
19
20
    <style>
      #target {
        border: 1px solid;
        width: 100px;
        height: 50px;
        border: 1px solid;
        margin-left: 50px;
        -webkit-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        transform: rotate(270deg);
        margin-top: 100px;
      }
    </style>
Bardi Harborow's avatar
Bardi Harborow committed
21
22
23
24
  </head>
  <body>
    <div class="container">
      <h1>Tooltip <small>Bootstrap Visual Test</small></h1>
25

Bardi Harborow's avatar
Bardi Harborow committed
26
      <p class="text-muted">Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p>
27

Bardi Harborow's avatar
Bardi Harborow committed
28
      <hr>
29

Bardi Harborow's avatar
Bardi Harborow committed
30
      <p>
Johann-S's avatar
Johann-S committed
31
32
33
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="auto" title="Tooltip on auto">
          Tooltip on auto
        </button>
Bardi Harborow's avatar
Bardi Harborow committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
          Tooltip on top
        </button>
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
          Tooltip on right
        </button>
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
          Tooltip on bottom
        </button>
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
          Tooltip on left
        </button>
        <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-html="true" title="<em>Tooltip</em> <u>with</u> <b>HTML</b>">
          Tooltip with HTML
        </button>
Johann-S's avatar
Johann-S committed
49
50
51
        <svg width="30" height="20">
          <circle cx="15" cy="10" r="10" fill="#62448F" data-toggle="tooltip" data-placement="top" title="Tooltip on SVG" />
        </svg>
Bardi Harborow's avatar
Bardi Harborow committed
52
      </p>
53
      <div id="target" title="Test tooltip on transformed element"></div>
Bardi Harborow's avatar
Bardi Harborow committed
54
    </div>
55

56
57
    <script src="../../../assets/js/vendor/jquery-slim.min.js"></script>
    <script src="../../../assets/js/vendor/popper.min.js"></script>
Bardi Harborow's avatar
Bardi Harborow committed
58
59
    <script src="../../dist/util.js"></script>
    <script src="../../dist/tooltip.js"></script>
60

Bardi Harborow's avatar
Bardi Harborow committed
61
62
63
    <script>
      $(function () {
        $('[data-toggle="tooltip"]').tooltip()
64
65
66
67
        $('#target').tooltip({
          placement : 'top',
          trigger : 'manual'
        }).tooltip('show')
Bardi Harborow's avatar
Bardi Harborow committed
68
69
70
      })
    </script>
  </body>
71
</html>