xonecas.io
142
St

startsInvasion / files

startsInvasion / libs / node_modules / bean / support / syn / demo.html

4.3 KB
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2            "http://www.w3.org/TR/html4/strict.dtd">
3<html lang="en">
4	<head>
5		<title>Demo Page</title>
6		<link type="text/css" href="../../mxui/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
7		<link type="text/css" href="../../mxui/resizable/resizable.css" rel="stylesheet" />
8        <style type='text/css'>
9            body {font-family: verdana}
10            .error {border: solid 1px red;}
11            .error_text { color: red; font-size: 10px;}
12            td {padding: 3px;}
13			
14			#first {
15				border: solid 1px;
16				height: 200px;width: 200px;
17			}
18			.ui-widget {
19				font-size: 1em;
20			}
21			.ui-tabs .ui-tabs-nav li a {
22				padding: 0.1em 0.2em
23			}
24			.ui-tabs .ui-tabs-panel {
25				padding: 0.5em
26			}
27			#uitabs a:focus {
28				outline: dashed;
29			}
30			#submitform {
31				border-left: dotted 1px gray;
32				padding: 10px;
33				margin-left: 10px;
34			}
35        </style>
36	</head>
37	<body>
38		<div class='tabarea'>
39		    <ul id="uitabs">
40		        <li><a href="javascript://"><span>Instructions</span></a></li>
41		        <li><a href="javascript://"><span>Drag Drop</span></a></li>
42		        <li><a href="javascript://"><span>Typing</span></a></li>
43				<li><a href="javascript://"><span>Form</span></a></li>
44		    </ul>
45			
46		    <div>
47		        <p>Welcome to the Syn demo!</p>
48				<p>Click, drag, and type in this page.
49				   Your actions will be recorded as a syn-script.  
50				   You can playback this script by pressing "Replay" below.
51				</p>
52				<p>Try clicking and tabbing between tab-buttons.</p>
53				<div>
54                    <ul id='uitabs2'>
55    		            <li><a href="javascript://">Alpha</a></li>
56                        <li><a href="javascript://">Beta</a></li>
57                        <li><a href="javascript://">Gamma</a></li>
58    		        </ul>
59                    <div>Content Alpha</div>
60                    <div>Content Beta</div>
61                    <div>Content Gamma</div>
62                </div>
63		    </div>
64		    <div>
65		    	<p>Drag the gray dot.</p>
66		       <div class='wrap' id='first'>Here is some swell content</div>
67		    </div>
68		    <div>
69		    	<p>Test the numeric field.  It only accepts numbers.
70				</p>
71                <p><input type='text' id='numeric' /></p>
72				<p>You can copy and paste if you select text with the keyboard like:
73				 [shift][left][shift-up][ctrl]c[ctrl-up][right][ctrl]v[ctrl-up].  It's 
74				 possible to make mouse text selection work, but not with this recording demo.</p>
75		    </div>
76			<div>
77				&lt;form>
78				<form action='' id='submitform'>
79					
80					<p id='indicator'>I turn green when this form is submitted.
81					</p> 
82					<p id='changeIndicator'>I turn green when an element is changed.</p>
83					<div>
84						<label>Type enter to submit the form: </label>
85						<input type='text' id='clearme'/>
86					</div>
87					<div>
88						<label>Click to submit: </label>
89						<input type='submit'/>
90					</div>
91					<div>
92						<label>Click to toggle: </label>
93						<input type='checkbox' />
94					</div>
95					<div>
96						<label>Click to toggle: </label>
97						<input type='radio' name='radio' value='1'/>
98						<input type='radio' name='radio' value='2'/>
99						<input type='radio' name='radio' value='3'/>
100					</div>
101					<div>
102						<label>Click to change: </label>
103						<select>
104							<option>1</option><option>2</option><option>3</option>
105						</select>
106					</div>
107					
108					
109				</form>
110				&lt;/form>
111				
112			</div>
113		</div>	
114		
115		
116		
117		
118		<script type='text/javascript' src='../../steal/steal.js'></script>
119		<script type='text/javascript'>
120			steal.plugins('mxui/tabs','mxui/resizable','mxui/key_validator').start();
121		</script>
122		
123		<script type='text/javascript'>
124			$("#first").mxui_resizable();
125			$("#uitabs, #uitabs2").mxui_ui_tabs();
126			
127			
128			$(window).bind('load', function(){
129				$("select")[0].selectedIndex = 0;
130
131				$("#numeric").mxui_key_validator({test: /^[-+]?[0-9]*\.?[0-9]*$/}).val("")
132			})
133			$("#submitform").submit(function(ev){
134				ev.preventDefault();
135				$("#indicator").css("backgroundColor","#00ff00")
136				setTimeout(function(){
137					$("#indicator").css("backgroundColor","")
138				},300)
139
140			}).change(function(ev){
141				$("#changeIndicator").css("backgroundColor","#00ff00")
142				setTimeout(function(){
143					$("#changeIndicator").css("backgroundColor","")
144				},300)
145			})
146			//this is to handle all click events in the form
147			
148		</script>
149	</body>
150</html>