latest update
This commit is contained in:
@@ -1876,11 +1876,20 @@ form label {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.undertwelve > input {
|
.undertwelve {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0px;
|
}
|
||||||
height: 40px;
|
|
||||||
width: 40px;
|
.undertwelve > label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.undertwelve > input {
|
||||||
|
height: 100%;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
margin: 0px;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-o-appearance: none;
|
-o-appearance: none;
|
||||||
|
|||||||
20
index.html
20
index.html
@@ -145,26 +145,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding-top: 20px;">
|
|
||||||
<div class="col-md-5 col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="firstname" class="sr-only">Vorname</label>
|
|
||||||
<input type="firstname" class="form-control js-form-input" id="firstname" placeholder="Vorname">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-5 col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="lastname" class="sr-only">Nachname</label>
|
|
||||||
<input type="lastname" class="form-control js-form-input" id="lastname" placeholder="Nachname">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2 col-sm-2">
|
|
||||||
<div class="form-group undertwelve">
|
|
||||||
<label for="undertwelve">Unter 12 Jahre?</label>
|
|
||||||
<input class="js-undertwelve" type="checkbox" name="undertwelve" checked>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="plus-button col-md-2">
|
<div class="plus-button col-md-2">
|
||||||
|
|||||||
30
js/main.js
30
js/main.js
@@ -207,8 +207,8 @@
|
|||||||
outerDiv.style="padding-top: 20px;";
|
outerDiv.style="padding-top: 20px;";
|
||||||
|
|
||||||
var firstNameDiv = document.createElement("div");
|
var firstNameDiv = document.createElement("div");
|
||||||
firstNameDiv.classList.add('col-md-6');
|
firstNameDiv.classList.add('col-md-5');
|
||||||
firstNameDiv.classList.add('col-sm-6');
|
firstNameDiv.classList.add('col-sm-5');
|
||||||
var formGroupDiv = document.createElement("div");
|
var formGroupDiv = document.createElement("div");
|
||||||
formGroupDiv.classList.add('form-group');
|
formGroupDiv.classList.add('form-group');
|
||||||
firstNameDiv.appendChild(formGroupDiv);
|
firstNameDiv.appendChild(formGroupDiv);
|
||||||
@@ -236,8 +236,8 @@
|
|||||||
|
|
||||||
|
|
||||||
var lastNameDiv = document.createElement("div");
|
var lastNameDiv = document.createElement("div");
|
||||||
lastNameDiv.classList.add('col-md-6');
|
lastNameDiv.classList.add('col-md-5');
|
||||||
lastNameDiv.classList.add('col-sm-6');
|
lastNameDiv.classList.add('col-sm-5');
|
||||||
var lastnameFormGroupDiv = document.createElement("div");
|
var lastnameFormGroupDiv = document.createElement("div");
|
||||||
lastnameFormGroupDiv.classList.add('form-group');
|
lastnameFormGroupDiv.classList.add('form-group');
|
||||||
lastNameDiv.appendChild(lastnameFormGroupDiv);
|
lastNameDiv.appendChild(lastnameFormGroupDiv);
|
||||||
@@ -263,6 +263,28 @@
|
|||||||
|
|
||||||
outerDiv.appendChild(lastNameDiv);
|
outerDiv.appendChild(lastNameDiv);
|
||||||
|
|
||||||
|
let underTwelveDiv = document.createElement("div");
|
||||||
|
underTwelveDiv.classList.add('col-md-2');
|
||||||
|
underTwelveDiv.classList.add('col-sm-2');
|
||||||
|
|
||||||
|
let underTwelveInnerDiv = document.createElement("div");
|
||||||
|
underTwelveInnerDiv.classList.add('undertwelve');
|
||||||
|
|
||||||
|
let underTwelveLabel = document.createElement("label");
|
||||||
|
underTwelveLabel.setAttribute("for","undertwelve");
|
||||||
|
underTwelveLabel.innerHTML = "Unter 12 Jahre?";
|
||||||
|
|
||||||
|
underTwelveInnerDiv.appendChild(underTwelveLabel);
|
||||||
|
|
||||||
|
let underTwelveInput = document.createElement("input");
|
||||||
|
underTwelveInput.classList.add('js-undertwelve');
|
||||||
|
underTwelveInput.setAttribute("type","checkbox");
|
||||||
|
underTwelveInput.setAttribute("name","undertwelve");
|
||||||
|
|
||||||
|
underTwelveInnerDiv.appendChild(underTwelveInput);
|
||||||
|
underTwelveDiv.appendChild(underTwelveInnerDiv);
|
||||||
|
outerDiv.appendChild(underTwelveDiv);
|
||||||
|
|
||||||
container.appendChild(outerDiv);
|
container.appendChild(outerDiv);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user