-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (60 loc) · 1.14 KB
/
index.html
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
<html>
<head>
<script type='text/javascript'
src='firebug-lite-compressed.js'></script>
<script src="pyjs/core/core.js"></script>
<script>
py.importModule('py.dialog.ajax');
dialog = null;
py.addOnLoad(function() {
log('pif');
setTimeout(function(){
$('show_docs').connect('click', function() {
log('pif');
if (py.notNone(dialog)) {
dialog.destroy();
}
log('paf');
dialog = new py.dialog.AjaxModal({
title: 'un formulaire pas comme les autres ...',
url: '/pif.html',
prevent_cache: true,
refresh_on_show: true,
onValidate: function(res) {
log(res);
}
});
log('pouf');
dialog.show();
});
},1000);
});
</script>
<style>
.pyDialogContent {
margin: 10px;
border: 20px solid gray;
}
.pyDialogContainer {
padding: 5px;
}
#box {
padding: 10px;
margin: 5px;
border: 3px solid red;
}
#para {
padding: 3px;
border: 5px solid black;
margin: 20px;
}
</style>
</head>
<body onload="firebug.init();">
<div id="box">
<h1> Bonjour </h1>
<p id="para"> paragraph</p>
<button id="show_docs">Popup !</button>
</div>
</body>
</html>