This repository has been archived by the owner on Apr 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 881
/
af.popup.html
50 lines (40 loc) · 1.58 KB
/
af.popup.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
<!DOCTYPE html>
<!--HTML5 doctype-->
<html>
<head>
<title>App Framework Kitchen Sink</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="../build/icons.css" />
<link rel="stylesheet" type="text/css" href="../build/af.ui.css" />
<script type="text/javascript" charset="utf-8" src="../3rdparty/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../3rdparty/jquery-ui.min.js"></script>
<script src="src/af.desktopBrowsers.js"></script>
<script type="text/javascript" charset="utf-8" src="af.popup.js"></script>
<script>
$(document).ready(function(){
$("#test").on("click",function(){
$(document.body).popup({
title:"jQueryTest",
message:"jQuery Test Message",
doneText:"Done",
cancel:function(){
console.log("called cancel");
},
done:function(){
console.log("done done");
}
});
//get access to DOM element
//$(document.body).popup("widget");
})
})
</script>
</head>
<body >
<a href="#" id="test" class="button">Test</a>
</body>
</html>