~smagoun/whoopsie/whoopsie-lp1017637

« back to all changes in this revision

Viewing changes to backend/stats/static/js/yui/tests/widget-modality/tests/manual/modal-with-nonmodal.html

  • Committer: Evan Dandrea
  • Date: 2012-05-09 05:53:45 UTC
  • Revision ID: evan.dandrea@canonical.com-20120509055345-z2j41tmcbf4as5uf
The backend now lives in lp:daisy and the website (errors.ubuntu.com) now lives in lp:errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
<head>
4
 
    <meta charset="utf-8">
5
 
    <title>Modal with Non-Modal Test Page</title>
6
 
</head>
7
 
<body class="yui3-skin-sam">
8
 
 
9
 
<div id="pnlModal">
10
 
    <div class="yui3-widget-bd">Modal Panel</div>
11
 
</div>
12
 
 
13
 
<div id="pnlRegular">
14
 
    <div class="yui3-widget-bd">Regular Panel</div>
15
 
</div>
16
 
 
17
 
<button type="button" id="btnModal">Show Modal</button>
18
 
<button type="button" id="btnRegular">Show Regular</button>
19
 
 
20
 
<script src="../../../../build/yui/yui.js"></script>
21
 
<script>
22
 
YUI({filter: 'raw'}).use('panel', function (Y) {
23
 
 
24
 
    var pnlModal = new Y.Panel({
25
 
        srcNode : '#pnlModal',
26
 
        visible : false,
27
 
        modal   : true,
28
 
        centered: true,
29
 
        render  : true,
30
 
        zIndex  : 10
31
 
    });
32
 
 
33
 
    var pnlRegular = new Y.Panel({
34
 
        srcNode : '#pnlRegular',
35
 
        render  : true,
36
 
        visible : false,
37
 
        centered: true,
38
 
        modal   : false
39
 
    });
40
 
 
41
 
    Y.one("#btnModal").on("click", function () {
42
 
        pnlModal.show();
43
 
    });
44
 
 
45
 
    Y.one("#btnRegular").on("click", function () {
46
 
        pnlRegular.show();
47
 
    });
48
 
 
49
 
});
50
 
</script>
51
 
 
52
 
</body>
53
 
</html>