Skip to content

Commit

Permalink
Initial revision.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltan-dulac committed Mar 5, 2011
0 parents commit af6fff5
Show file tree
Hide file tree
Showing 254 changed files with 42,438 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>html5Widgets</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
HTML5Widgets is a JavaScript polyfill that implements a subset of the HTML5
Forms module in all browsers. The script will only add support for the
different parts of the module when there doesn't exist a native
implementation - for example, at the time of this writing, it will implement
the datetime calendar widget in all browser except Opera, which supports it
natively.

More information on how this works is available at:

http://www.useragentman.com/blog/2010/07/27/cross-browser-html5-forms-using-modernizr-webforms2-and-html5widgets/


169 changes: 169 additions & 0 deletions shared/css/slider.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
/*
Slider CSS, style as you please.
Note: The png images used for this demo were originally located at http://www.schillmania.com/
Remove the -moz & -khtml styles if you want the css to validate.
Change the image paths to suit you installation.
*/

/* Styles for the horizontal slider */
.fd-slider
{
position:relative;
width:100%;
height:20px;
text-align:center;
border:0 none;
text-decoration:none;
display:block;
-moz-user-select:none;
-khtml-user-select:none
cursor:pointer;
}
.fd-slider-inner
{
position:relative;
display:block;
z-index:1;
height:18px;
text-align:left;
background:#fcfcfc;
border:1px solid #ccc;
border-radius:5px;
-moz-border-radius:5px;
}
.fd-slider-bar
{
position:absolute;
display:block;
z-index:2;
height:2px;
border:1px solid #bbb;
border-bottom:1px solid #aaa;
border-right:1px solid #aaa;
background:#ddd;
margin:0;
padding:0;
overflow:hidden;
line-height:4px;
top:8px;
bottom:none;
left:10px;
right:10px;
border-radius:2px;
-moz-border-radius:2px;
}
/* Styles for the vertical slider */
.fd-slider-vertical
{
position:relative;
border:0 none;
text-decoration:none;
display:block;
width:20px;
height:100%;
text-align:center;
-moz-user-select:none;
-khtml-user-select:none
cursor:pointer;
cursor:hand;
}
.fd-slider-vertical .fd-slider-inner
{
display:block;
width:18px;
height:100%;
text-align:left;
background:#fcfcfc;
border:1px solid #ccc;
}
.fd-slider-vertical .fd-slider-bar
{
width:2px;
top:10px;
bottom:10px;
left:8px;
right:none;
height:auto;
}
.fd-slider-vertical .fd-slider-handle
{
cursor:N-resize;
}
.focused .fd-slider-inner
{
background:#eee !important;
border:1px solid #aaa !important;
}
/* black handle, no glow */
.fd-slider-handle
{
position:absolute;
display:block;
padding:0;
border:0 none;
margin:0;
z-index:3;
top:0;
left:0;
width:20px;
height:20px;
outline:0px none;
background:transparent url(../images/slider/slider-disabled.png) no-repeat 0px 0px;
cursor:W-resize;
line-height:20px;
font-size:20px;
-webkit-user-select: none;
-moz-user-select:none;
-moz-user-focus:none;
-moz-outline:0px none;
}
.fd-slider-handle:focus
{
outline:0px none;
border:0 none;
-moz-user-focus:normal;
}
button.fd-slider-handle:focus::-moz-focus-inner { border-color: transparent; }

/* black handle, glow */
.fd-slider-hover .fd-slider-handle
{
background:transparent url(../images/slider/slider-disabled-1.png) no-repeat 0px 0px;
}
/* blue handle, no glow */
.focused .fd-slider-handle
{
background:transparent url(../images/slider/slider.png) no-repeat 0px 0px;
}
/* blue handle glow */
.focused.fd-slider-hover .fd-slider-handle
{
background:transparent url(../images/slider/slider-1.png) no-repeat 0px 0px;
}
body.slider-drag-vertical
{
cursor:N-resize !important;
}
body.slider-drag-horizontal
{
cursor:W-resize !important;
}
.fd_hide_slider_input
{
display:none;
}
/* Disabled Sliders */
.slider-disabled
{
opacity:.8;
filter:alpha(opacity=80);
}
.slider-disabled .fd-slider-handle
{
cursor:auto !important;
}
41 changes: 41 additions & 0 deletions shared/css/slider_ie.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.fd-slider-handle
{
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-disabled.png');
outline:expression(hideFocus='true');
}
.fd-slider-hover .fd-slider-handle
{
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-disabled-1.png');
}
.focused .fd-slider-handle
{
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider.png');
}
.fd-fc-slider-hover .fd-slider-handle
{
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='http://www.frequency-decoder.com/demo/slider-revisited/slider-1.png');
}
.fd-slider
{
cursor:hand;
}
.fd-slider-bar
{
top:8px;
bottom:none;
left:10px;
right:none;
width:expression((this.parentNode.offsetWidth - 20) + "px");
}
.fd-slider-vertical .fd-slider-bar
{
top:10px;
bottom:none;
left:8px;
right:none;
height:expression((this.parentNode.offsetHeight - 20) + "px");
}
114 changes: 114 additions & 0 deletions shared/css/useragentmanExample.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
body {
margin: 0px;
padding: 0px;
}

body#myExample {
font-family: "Arial", "Helvetica", sans-serif;
}

#exampleBlurb {
background: #2f2626 !important;
text-align: justify !important;
color: white !important;
font: 14px Georgia, Serif !important;
position: relative;
margin-top: -1em;
padding-top: 1em;
zoom: 1;
width: 100% !important;
z-index: 9999 !important;
line-height: 2.4em;
padding-bottom: 1em;
}

#exampleBlurb p {
padding: 0 10px;
line-height: 1.7em;
}

#exampleBlurb a {
color: #ccccff;
}

#thirdPartyExample {
margin: 10px;
}

#myExample fieldset {
width: 50em;
margin: 1em auto;
padding: 1em;

}

#myExample legend {
font-weight: bold;

}

.formTable {
width: 40em;
margin: 0 auto;
}

.formTable th {
vertical-align: top;
text-align: right;
width: 20em;
}

.formTable td,
.formTable input,
.formTable textarea {
width: 20em;
}

.formTable td input[type="checkbox"],
.formTable td input[type="radio"] {
width: auto;
}

.formTable textarea {
height: 8em;
}

.formTable input.small {
width: 4em;
}

.buttonRow {
text-align: center;
}

#exampleIntro {
opacity: 0.7;
position: absolute;
padding: 0.7em;
top: 0;
left: 0;
background: #2f2626 !important;
text-align: justify !important;
color:white !important;
font: 14px Georgia, Serif !important;
position: relative;
zoom: 1;

z-index: 10000 !important;
}

#exampleIntro p {
line-height: 2.4em;
}

#exampleIntro a {
color: #ccccff;
}

.initiallyHidden {
display: none;
}

ul.exampleList > li {
margin-bottom: 2em;
}
23 changes: 23 additions & 0 deletions shared/css/visibleIf.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.visibleIf, .visibleif {
display: none;
}


.visibleIf-visible, .visibleif-visible {
display: block;
}

span.visibleIf-visible, span.visibleif-visible {
display: inline;
}

tr.visibleIf-visible, tr.visibleif-visible {
display: block;
display: table-row;
}


.visibleIf-rule, .mandatoryIf-rule, .visibleif-rule, .mandatoryif-rule {
display: none;
}

Binary file added shared/images/slider/slider-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/slider/slider-disabled-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/slider/slider-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shared/images/slider/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit af6fff5

Please sign in to comment.