This repository was archived by the owner on Mar 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate project from Google Code to GitHub [Time: 0.5h]
- Loading branch information
0 parents
commit a3d065d
Showing
10 changed files
with
1,235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
|
||
root { | ||
display: block; | ||
} | ||
|
||
body { | ||
font-size: 11pt; | ||
font-family: Arial,Verdana; | ||
} | ||
|
||
span.highlight { | ||
text-decoration:underline; | ||
} | ||
|
||
div.title { | ||
font-size: 16pt; | ||
font-weight: bold; | ||
text-align: center; | ||
color: blueviolet; | ||
} | ||
|
||
h1 { | ||
color: darkgreen; | ||
font-size: 13pt; | ||
text-decoration: underline; | ||
} | ||
|
||
h2 { | ||
color: teal; | ||
font-size: 12pt; | ||
} | ||
|
||
h2.method { | ||
color: #600000; | ||
border-bottom: 1px solid lightgray; | ||
} | ||
|
||
|
||
div.method div.title { | ||
font-size: 11pt; | ||
text-align: left; | ||
color: black; | ||
margin-top: 16px; | ||
margin-left: 8px; | ||
margin-bottom: 4px; | ||
} | ||
|
||
div.method div.definition, | ||
div.method div.description { | ||
margin-left: 50px; | ||
} | ||
div.method div.definition { | ||
margin-bottom: 24px; | ||
} | ||
|
||
div.method div.definition span { | ||
padding: 8px; | ||
font-size: 10pt; | ||
border: 1px solid gray; | ||
background-color: #f0f0f0; | ||
font-family: "Courier New"; | ||
} | ||
|
||
div.method td { | ||
padding: 4px; | ||
vertical-align: top; | ||
text-align: left; | ||
} | ||
|
||
div.method td.name { | ||
color: #808080; | ||
} | ||
|
||
div.method td.description strong { | ||
font-weight: normal; | ||
color: #808080; | ||
} | ||
|
||
|
||
div.method td.description ul { | ||
margin-top: 4px; | ||
margin-left: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | ||
<html> | ||
<head> | ||
<title>jsSimpleConnect - Basic examples</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<link type="text/css" rel="stylesheet" href="css/main.css"/> | ||
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="js/jqSimpleConnect.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="title">jsSimpleConnect - Basic examples</div> | ||
|
||
<h1>Requirements</h1> | ||
|
||
<div>In order to run the examples, the JavaScript libraries of <em>jqSimpleConnect</em> and <em>jQuery</em> must be included in the | ||
<head> of the HTML file:</div> | ||
|
||
<pre> | ||
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> | ||
<script type="text/javascript" src="js/jqSimpleConnect-1.0.js"></script> | ||
</pre> | ||
|
||
<h1>Demo 1</h1> | ||
|
||
<h2>Code</h2> | ||
<pre> | ||
<div style="position:relative; height: 80px;"> | ||
<div id="div_a" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div A</div> | ||
<div id="div_b" style="position:absolute; top:50px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div B</div> | ||
<div id="div_c" style="position:absolute; top:25px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div C</div> | ||
<div id="div_d" style="position:absolute; top:25px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div D</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_a", "#div_b", {radius: 8, color: 'green'}); | ||
jqSimpleConnect.connect("#div_c", "#div_d", {radius: 10, color: '#0000ff'}); | ||
</script> | ||
</pre> | ||
|
||
<h2>Result</h2> | ||
<div> | ||
<div style="position:relative; height: 80px;"> | ||
<div id="div_a" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div A</div> | ||
<div id="div_b" style="position:absolute; top:50px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div B</div> | ||
<div id="div_c" style="position:absolute; top:25px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div C</div> | ||
<div id="div_d" style="position:absolute; top:25px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div D</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_a", "#div_b", {radius: 8, color: 'green'}); | ||
jqSimpleConnect.connect("#div_c", "#div_d", {radius: 10, color: '#0000ff'}); | ||
</script> | ||
</div> | ||
|
||
<h1>Demo 2</h1> | ||
|
||
<h2>Code</h2> | ||
<pre> | ||
<div style="position:relative; height: 110px;"> | ||
<div id="div_e" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div E</div> | ||
<div id="div_f" style="position:absolute; top:75px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div F</div> | ||
<div id="div_g" style="position:absolute; top:5px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div G</div> | ||
<div id="div_h" style="position:absolute; top:75px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div H</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_e", "#div_f", {radius: 8, color: 'darkcyan', anchorA: 'horizonal', anchorB: 'vertical'}); | ||
jqSimpleConnect.connect("#div_g", "#div_h", {radius: 8, color: 'darkcyan', anchorA: 'vertical', anchorB: 'horizontal'}); | ||
</script> | ||
</pre> | ||
|
||
<h2>Result</h2> | ||
<div> | ||
<div style="position:relative; height: 110px;"> | ||
<div id="div_e" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div E</div> | ||
<div id="div_f" style="position:absolute; top:75px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div F</div> | ||
<div id="div_g" style="position:absolute; top:5px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div G</div> | ||
<div id="div_h" style="position:absolute; top:75px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div H</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_e", "#div_f", {radius: 8, color: 'darkcyan', anchorA: 'horizonal', anchorB: 'vertical'}); | ||
jqSimpleConnect.connect("#div_g", "#div_h", {radius: 8, color: 'darkcyan', anchorA: 'vertical', anchorB: 'horizontal'}); | ||
</script> | ||
</div> | ||
|
||
<h1>Demo 3</h1> | ||
|
||
<h2>Code</h2> | ||
<pre> | ||
<div style="position:relative; height: 110px;"> | ||
<div id="div_i" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div I</div> | ||
<div id="div_j" style="position:absolute; top:75px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div J</div> | ||
<div id="div_k" style="position:absolute; top:5px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div K</div> | ||
<div id="div_l" style="position:absolute; top:75px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div L</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_i", "#div_j", {radius: 8, color: 'darkviolet', anchorA: 'horizonal', anchorB: 'horizonal', roundedCorners: true}); | ||
jqSimpleConnect.connect("#div_k", "#div_l", {radius: 8, color: 'darkviolet', anchorA: 'vertical', anchorB: 'vertical', roundedCorners: true}); | ||
</script> | ||
</pre> | ||
|
||
<h2>Result</h2> | ||
<div> | ||
<div style="position:relative; height: 110px;"> | ||
<div id="div_i" style="position:absolute; top:5px; left:5px; border:1px solid black; background-color:white; padding:5px;">Div I</div> | ||
<div id="div_j" style="position:absolute; top:75px; left:150px; border:1px solid black; background-color:white; padding:5px;">Div J</div> | ||
<div id="div_k" style="position:absolute; top:5px; left:250px; border:1px solid black; background-color:white; padding:5px;">Div K</div> | ||
<div id="div_l" style="position:absolute; top:75px; left:400px; border:1px solid black; background-color:white; padding:5px;">Div L</div> | ||
</div> | ||
<script type="text/javascript"> | ||
jqSimpleConnect.connect("#div_i", "#div_j", {radius: 8, color: 'darkviolet', anchorA: 'horizonal', anchorB: 'horizonal', roundedCorners: true}); | ||
jqSimpleConnect.connect("#div_k", "#div_l", {radius: 8, color: 'darkviolet', anchorA: 'vertical', anchorB: 'vertical', roundedCorners: true}); | ||
</script> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.