summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions/samples/mole/mole.html
blob: 9efad76f6a3c37b600f3895a55541ecfe98c56fb (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
  <head>
    <style>

body {
  -webkit-box-orient:vertical;
  -webkit-box-direction:normal;
}

body {
  width: 100px;
}

.toolstrip, .toolstrip-content {
  -webkit-box-orient: horizonal;
  white-space:nowrap;
  overflow: hidden;
  margin:0;
  padding:0;
  width: 100%;
}

.toolstrip {
  height: 23px;
  -webkit-box-align: center;
  border: 1px solid grey;
}



.toolstrip-content {
  -webkit-box-flex: 1;
  background-color: white;
  color: black;
}

    </style>
    <script>
var collapsed = true;

function toggle() {
  if (collapsed) {
    chrome.toolstrip.expand({ height: 400 }, function() {
      document.getElementById('content').style.display = "-webkit-box";
      collapsed = false;
    });
  } else {
    chrome.toolstrip.collapse(undefined, function() {
      document.getElementById('content').style.display = "none";
      collapsed = true;
    });
  }
}
</script>
  </head>
  <body>

    <div id="content" style="display:none" class="toolstrip-content">
       Content
    </div>
    <div onclick="toggle();" class="toolstrip">
       Toolstrip
    </div>

  </body>
</html>