28ed80ea81320bd56c6f98c7149687ada22a0881
[roojs1] / examples / bootstrap4 / popover.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>Bootstrap 101 Template</title>
5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
6     
7     <!-- Bootstrap -->
8     <link rel="stylesheet" href="../../css-bootstrap4/sb-admin-2.min.css">
9     <link rel="stylesheet" href="../../css-bootstrap4/roojs-bootstrap.css">
10      <link rel="stylesheet" href="../../fonts/font-awesome.css"> 
11          
12         
13          
14         
15         
16     <script type="text/javascript" src="../../roojs-core-debug.js"></script>
17     <script type="text/javascript" src="../../roojs-bootstrap-debug.js"></script>
18     <script type="text/javascript" src="../../Roo/bootstrap/Popover.js"></script>
19
20          <script type="text/javascript">
21             rootURL = '/';
22          </script>
23     <!-- test code -->
24     <script type="text/javascript" src="../bootstrap/popover.js"></script>
25   </head>
26   
27   <body id="body">
28   
29     <div id="right-test"
30          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 100px;top: 100px;">RIGHT</div>
31     
32      <div id="right-move-test"
33          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 100px;top: 600px;">RIGHT</div>
34      
35      <div id="left-flip-test"
36          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 100px;top: 400px;">LEFT</div>
37     
38       <div id="below-test"
39          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 300px;top: 100px;">BOTTOM</div>
40       
41       <div id="below-bad-test"
42          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 300px;top: 500px;">BOTTOM</div>
43     
44      <div id="above-bad-test"
45          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 500px;top: 100px;">TOP</div>
46     
47      <div id="above-test"
48          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 500px;top: 500px;">TOP</div>
49     
50     
51     <div id="left-test"
52          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 1000px;top: 100px;">LEFT</div>
53     
54      <div id="left-move-test"
55          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 1000px;top: 600px;">LEFT</div>
56      
57      <div id="right-flip-test"
58          style="width: 100px;height: 100px;display: block;background-color: yellow;position: absolute;left: 1000px;top: 400px;">RIGHT</div>
59     
60     
61   </body>
62     <script type="text/javascript">
63        Roo.onReady(function() {
64           Roo.get('right-test').on('click', function(e) {
65             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'right');
66           });
67           
68           Roo.get('right-move-test').on('click', function(e) {
69             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'right');
70           });
71           
72           Roo.get('left-flip-test').on('click', function(e) {
73             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'left');
74           });
75           
76           Roo.get('left-test').on('click', function(e) {
77             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'left');
78           });
79           
80           Roo.get('left-move-test').on('click', function(e) {
81             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'left');
82           });
83           
84           Roo.get('right-flip-test').on('click', function(e) {
85             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'right');
86           });
87           
88           
89           Roo.get('below-test').on('click', function(e) {
90             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'bottom');
91           });
92           
93           Roo.get('below-bad-test').on('click', function(e) {
94             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'bottom');
95           });
96           
97           Roo.get('above-test').on('click', function(e) {
98             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'top');
99           });          
100           Roo.get('above-bad-test').on('click', function(e) {
101             Pman.Popover.FileTest.show({} , false, Roo.get(e.getTarget()), 'top');
102           });          
103           
104           //Pman.Popover.FileTest.show({   });
105           //Roo.get("bootstrap-body").on('click', function() { Pman.Popover.FileTest.show({ _el : Roo.get("bootstrap-body") }); })
106       });
107
108     </script>
109 </html>