}
else
{
- document.getElementById('options').style.display = '';
- document.getElementById('send').style.display = '';
+ // add class to restyle upload form in next step
+ document.getElementById('upload').setAttribute('class', 'file-selected');
+ // display options
+ document.getElementById('options').style.display = 'block';
+ document.getElementById('send').style.display = 'block';
document.getElementById('error_pop').style.display = 'none';
- document.getElementById('file_select').style.left = 'inherit';
- document.getElementById('file_select').style.height = 'inherit';
- document.getElementById('file_select').style.opacity = '1';
+ document.getElementById('send').focus();
}
}
text-align: center;
}
+#upload p {
+ margin: 0;
+}
+
#file_select {
- position: absolute;
- top: 0;
- left: 0;
+ position: relative;
width: 100%;
- height: 100%;
+ height: 16em;
cursor: pointer;
opacity: 0;
}
-
+ #upload.file-selected #file_select {
+ opacity: 1;
+ height: 2em;
+ }
+ #upload.file-selected fieldset {
+ background-image: none;
+ }
/* ==========================================================================
#options {
position: relative;
z-index: 10;
- background: #efebe9;
width: 100%;
height: 90%;
}
#options input[type="submit"] {
position: relative;
- left: 11.2em;
+ margin: 1em auto;
}
/* ==========================================================================
}
#file_select {
- position: absolute;
- top: 0;
- left: 0;
+ position: relative;
width: 100%;
- height: 100%;
+ height: 16em;
cursor: pointer;
opacity: 0;
}
-
-
+#upload.file-selected #file_select {
+ opacity: 1;
+ height: 2em;
+}
+#upload.file-selected fieldset {
+ background-image: none;
+}
/* ==========================================================================
2 = Copyright