Skip to content

Commit f5ee22c

Browse files
committed
Popup: Add a non-menu popup example
1 parent a444287 commit f5ee22c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tests/visual/menu/popup.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
$(this).hide();
2929
}
3030
};
31-
31+
32+
$("#members-popup").popup();
33+
3234
$("#button1").button();
3335
$("#menu1").menu(selected).popup();
3436

@@ -69,10 +71,24 @@
6971
padding: 0.5em;
7072
border: 1px solid black;
7173
}
74+
75+
#members-popup {
76+
width: 200px; height: 150px; border: 1px solid gray; border-radius: 5px;
77+
box-shadow: 3px 3px 5px -1px rgba(0, 0, 0, 0.5);
78+
background: lightgray; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
79+
font-size: 120%; text-align: center; line-height: 150px;
80+
}
7281
</style>
7382
</head>
7483
<body>
7584

85+
<div>
86+
<a href="#members-popup">Project members</a>
87+
<div id="members-popup" tabIndex="0">
88+
some form controls in here
89+
</div>
90+
</div>
91+
7692
<button id="button1">Show context menu 1</button>
7793
<ul id="menu1">
7894
<li><a href="#">Amsterdam</a></li>
@@ -85,6 +101,7 @@
85101
<li><a href="#">Zurich</a></li>
86102
</ul>
87103

104+
88105
<div>
89106
<div>
90107
<button id="rerun">Run last action</button>

0 commit comments

Comments
 (0)