5c84690a58689dd4dd59a13c89f35d331d970410
[mkws-moved-to-github.git] / experiments / spclient / index-popup.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo client</title>
5     <link rel="stylesheet" href="mkwsStyle.css" />
6     <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
7
8     <script type="text/javascript">
9       mkws_config = { switch_menu: false, lang_menu: false, query_width: 40 };
10     </script>
11     <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
12     <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
13
14     <style>
15       body { font-size: 62.5%; }
16       label, input { display:block; }
17       input.text { margin-bottom:12px; width:95%; padding: .4em; }
18       fieldset { padding:0; border:0; margin-top:25px; }
19       h1 { font-size: 1.2em; margin: .6em 0; }
20       div#users-contain { width: 350px; margin: 20px 0; }
21       div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
22       div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
23       .ui-dialog .ui-state-error { padding: .3em; }
24       .validateTips { border: 1px solid transparent; padding: 0.3em; }
25     </style>
26
27     <script>
28     $(function() {
29       $( "#dialog-form" ).dialog({
30         closeOnEscape: true,
31         autoOpen: false,
32         height: 600,
33         width: 740,
34         modal: true,
35         resizable: true,
36         buttons: {
37                 Cancel: function() {
38                         $( this ).dialog( "close" );
39                 }
40         },
41         close: function() {
42                 // allFields.val( "" ).removeClass( "ui-state-error" );
43         }
44       });
45
46       $( "#create-user" )
47         .button()
48         .click(function() {
49                 $( "#dialog-form" ).dialog( "open" );
50         });
51     });
52     </script>
53   </head>
54   <body>
55
56   <div id="dialog-form" title="Search Box">
57     <script type="text/javascript">
58       jQuery.pazpar2();
59     </script>
60   </div>
61
62   <div id="users-contain" class="ui-widget"></div>
63
64   <button id="create-user">Open Search Box</button>
65
66   </body>
67 </html>
68