af.popup.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <!--HTML5 doctype-->
  3. <html>
  4. <head>
  5. <title>App Framework Kitchen Sink</title>
  6. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <link rel="stylesheet" type="text/css" href="../build/icons.css" />
  12. <link rel="stylesheet" type="text/css" href="../build/af.ui.css" />
  13. <script type="text/javascript" charset="utf-8" src="../3rdparty/jquery.min.js"></script>
  14. <script type="text/javascript" charset="utf-8" src="../3rdparty/jquery-ui.min.js"></script>
  15. <script src="src/af.desktopBrowsers.js"></script>
  16. <script type="text/javascript" charset="utf-8" src="af.popup.js"></script>
  17. <script>
  18. $(document).ready(function(){
  19. $("#test").on("click",function(){
  20. $(document.body).popup({
  21. title:"jQueryTest",
  22. message:"jQuery Test Message",
  23. doneText:"Done",
  24. cancel:function(){
  25. console.log("called cancel");
  26. },
  27. done:function(){
  28. console.log("done done");
  29. }
  30. });
  31. //get access to DOM element
  32. //$(document.body).popup("widget");
  33. })
  34. })
  35. </script>
  36. </head>
  37. <body >
  38. <a href="#" id="test" class="button">Test</a>
  39. </body>
  40. </html>