Skip to content

Commit b466816

Browse files
committed
initial commit
first public release
0 parents  commit b466816

21 files changed

+11904
-0
lines changed

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#################
33+
## Visual Studio
34+
#################
35+
36+
## Ignore Visual Studio temporary files, build results, and
37+
## files generated by popular Visual Studio add-ons.
38+
39+
# User-specific files
40+
*.suo
41+
*.user
42+
*.sln.docstates
43+
44+
# Build results
45+
[Dd]ebug/
46+
[Rr]elease/
47+
*_i.c
48+
*_p.c
49+
*.ilk
50+
*.meta
51+
*.obj
52+
*.pch
53+
*.pdb
54+
*.pgc
55+
*.pgd
56+
*.rsp
57+
*.sbr
58+
*.tlb
59+
*.tli
60+
*.tlh
61+
*.tmp
62+
*.vspscc
63+
.builds
64+
*.dotCover
65+
66+
## TODO: If you have NuGet Package Restore enabled, uncomment this
67+
#packages/
68+
69+
# Visual C++ cache files
70+
ipch/
71+
*.aps
72+
*.ncb
73+
*.opensdf
74+
*.sdf
75+
76+
# Visual Studio profiler
77+
*.psess
78+
*.vsp
79+
80+
# ReSharper is a .NET coding add-in
81+
_ReSharper*
82+
83+
# Installshield output folder
84+
[Ee]xpress
85+
86+
# DocProject is a documentation generator add-in
87+
DocProject/buildhelp/
88+
DocProject/Help/*.HxT
89+
DocProject/Help/*.HxC
90+
DocProject/Help/*.hhc
91+
DocProject/Help/*.hhk
92+
DocProject/Help/*.hhp
93+
DocProject/Help/Html2
94+
DocProject/Help/html
95+
96+
# Click-Once directory
97+
publish
98+
99+
# Others
100+
[Bb]in
101+
[Oo]bj
102+
sql
103+
TestResults
104+
*.Cache
105+
ClientBin
106+
stylecop.*
107+
~$*
108+
*.dbmdl
109+
Generated_Code #added for RIA/Silverlight projects
110+
111+
# Backup & report files from converting an old project file to a newer
112+
# Visual Studio version. Backup files are not needed, because we have git ;-)
113+
_UpgradeReport_Files/
114+
Backup*/
115+
UpgradeLog*.XML
116+
117+
118+
119+
############
120+
## Windows
121+
############
122+
123+
# Windows image file caches
124+
Thumbs.db
125+
126+
# Folder config file
127+
Desktop.ini
128+
129+
130+
#############
131+
## Python
132+
#############
133+
134+
*.py[co]
135+
136+
# Packages
137+
*.egg
138+
*.egg-info
139+
dist
140+
build
141+
eggs
142+
parts
143+
bin
144+
var
145+
sdist
146+
develop-eggs
147+
.installed.cfg
148+
149+
# Installer logs
150+
pip-log.txt
151+
152+
# Unit test / coverage reports
153+
.coverage
154+
.tox
155+
156+
#Translations
157+
*.mo
158+
159+
#Mr Developer
160+
.mr.developer.cfg
161+
162+
# Mac crap
163+
.DS_Store

images/checked.gif

357 Bytes
Loading

images/checked_highlighted.gif

316 Bytes
Loading

images/intermediate.gif

360 Bytes
Loading

images/intermediate_highlighted.gif

208 Bytes
Loading

images/unchecked.gif

238 Bytes
Loading

images/unchecked_highlighted.gif

145 Bytes
Loading

index.html

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Tristate Checkbox</title>
5+
6+
<link rel="stylesheet" type="text/css" href="tristate-checkbox.css" media="screen">
7+
8+
<script type="text/javascript" src="lib/prototype/prototype.js"></script>
9+
<script type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
10+
<script type="text/javascript" src="tristate-checkbox.js"></script>
11+
</head>
12+
<body>
13+
<div style="margin:10px; padding: 5px; border-radius: 5px; border: 1px solid #aaa">
14+
<h1>Description</h1>
15+
<p>
16+
The <code>TristateCheckbox</code> allows any checkbox element to have an extra state defined.
17+
this state means that some of it's children are selected, but not all of them
18+
</p>
19+
<p>
20+
This gets determined by a built in <code>dependencySelector</code>.
21+
it is customizable to almost any context
22+
</p>
23+
<p>
24+
one tristate can even set the state of another, this is all built in via events
25+
</p>
26+
<h2>Basic Usage</h2>
27+
<p>
28+
<form id="basic-usage">
29+
<table>
30+
<tr>
31+
<td>Basic tri-state (has little to no function like this) : </td>
32+
<td>
33+
<input id="cb-1" type="checkbox"/>
34+
</td>
35+
</tr>
36+
</table>
37+
</form>
38+
<script>
39+
document.observe('dom:loaded', function() {
40+
new TriStateCheckbox('cb-1');
41+
});
42+
</script>
43+
<br/>
44+
<pre>
45+
<b>markup</b>
46+
<code>
47+
&ltinput id=&quot;cb-1&quot; type=&quot;checkbox&quot;/&gt;
48+
</code>
49+
<b>script</b>
50+
<code>
51+
document.observe('dom:loaded', function() {
52+
new TriStateCheckbox('cb-1');
53+
});
54+
</code>
55+
</pre>
56+
</p>
57+
<h2>Advanced Usage</h2>
58+
<p>
59+
<form id="adv-usage">
60+
<table>
61+
<tr>
62+
<td>normal tri-state : </td>
63+
<td>
64+
<input id="cb-a-1" type="checkbox"/>
65+
</td>
66+
</tr>
67+
<tr>
68+
<td>child 1 : </td>
69+
<td>
70+
<input id="cb-c-1" type="checkbox"/>
71+
</td>
72+
</tr>
73+
<tr>
74+
<td>child 2 : </td>
75+
<td>
76+
<input id="cb-c-2" type="checkbox"/>
77+
</td>
78+
</tr>
79+
<tr>
80+
<td>child 3 : </td>
81+
<td>
82+
<input id="cb-c-3" type="checkbox"/>
83+
</td>
84+
</tr>
85+
</table>
86+
</form>
87+
<script>
88+
document.observe('dom:loaded', function() {
89+
new TriStateCheckbox('cb-a-1', {
90+
dependantSelector: 'form#adv-usage input[id^="cb-c"]'
91+
});
92+
});
93+
</script>
94+
<br/>
95+
<pre>
96+
<b>markup</b>
97+
<code>
98+
&ltinput id=&quot;cb-a-1&quot; type=&quot;checkbox&quot;/&gt;
99+
&ltinput id=&quot;cb-c-1&quot; type=&quot;checkbox&quot;/&gt;
100+
&ltinput id=&quot;cb-c-2&quot; type=&quot;checkbox&quot;/&gt;
101+
&ltinput id=&quot;cb-c-3&quot; type=&quot;checkbox&quot;/&gt;
102+
</code>
103+
<b>script</b>
104+
<code>
105+
document.observe('dom:loaded', function() {
106+
new TriStateCheckbox('cb-a-1', {
107+
dependantSelector: 'form#adv-usage input[id^="cb-c"]'
108+
});
109+
});
110+
</code>
111+
</pre>
112+
</p>
113+
</div>
114+
</body>
115+
</html>

0 commit comments

Comments
 (0)