J
<form class="form">
</form>
<script type="text/javascript">
var inputFieldStates = [false,false,false];
// Def of Text
var translations = {
de : {
title : "Kalkulátor podkladu dna akvária",
width : "Šířka (A) v cm",
depth : "Hloubka (B) v cm",
heigth : "Výška štěrku (C) v cm",
recommendation : "6",
button : "Vypočítat",
result : "Potřebujete $1 litru štěrku.",
error : "Prosím zadejte údaje.",
decimalSeparator: ","
}
};
var textToUse = translations.de;
//
function replaceTranslations() {
document.getElementById("aquaGravelCalcTitle").innerHTML = textToUse.title;
document.getElementById("aquaGravelCalcWidthLabel").innerHTML = textToUse.width;
document.getElementById("aquaGravelCalcDepthLabel").innerHTML = textToUse.depth;
document.getElementById("aquaGravelCalcHeightLabel").innerHTML = textToUse.heigth;
document.getElementById("aquaGravelCalcWidthInputAdvice").innerHTML = textToUse.error;
document.getElementById("aquaGravelCalcDepthInputAdvice").innerHTML = textToUse.error;
document.getElementById("aquaGravelCalcHeightInputAdvice").innerHTML = textToUse.error;
document.getElementById("aquaGravelCalcHeightInput").value = textToUse.recommendation;
document.getElementById("aquaGravelCalcRefreshButton").value = textToUse.button;
}
replaceTranslations();
var aquaGravelCalcWidthId = "aquaGravelCalcWidthInput";
var aquaGravelCalcDepthId = "aquaGravelCalcDepthInput";
var aquaGravelCalcHeightId = "aquaGravelCalcHeightInput";
var aquaGravelCalcWidthInput = document.getElementById(aquaGravelCalcWidthId);
var aquaGravelCalcDepthInput = document.getElementById(aquaGravelCalcDepthId);
var aquaGravelCalcHeightInput = document.getElementById(aquaGravelCalcHeightId);
function refresh() {
checkValue(aquaGravelCalcWidthInput);
checkValue(aquaGravelCalcDepthInput);
checkValue(aquaGravelCalcHeightInput);
}
function placeAdvice(htmlObj, result) {
var adviceStyle = document.getElementById(htmlObj.id+'Advice').style;
switch (result) {
/*
case null:
adviceStyle.setProperty ("display", "none", null);
//document.getElementById(htmlObj.id+'Advice').style="display:none;";
break;
*/
case true:
adviceStyle.setProperty ("display", "none", null);
//document.getElementById(htmlObj.id+'Advice').style="display:none;";
break;
default:
adviceStyle.setProperty ("display","block",null);
//document.getElementById(htmlObj.id+'Advice').style="display:block;";
break;
}
}
function checkValue(htmlObj) {
hideResult();
if (
typeof(htmlObj) == "object"
&& htmlObj.value == ""
) {
placeAdvice(htmlObj, null);
setInputFieldStates (htmlObj.id, false);
} else if (
typeof(htmlObj) == "object"
&& htmlObj.value != ""
&& /^([0-9]+)$/.test(htmlObj.value)
) {
placeAdvice(htmlObj, true);
setInputFieldStates (htmlObj.id, true);
} else {
placeAdvice(htmlObj, false);
setInputFieldStates (htmlObj.id, false);
}
}
function setInputFieldStates (id, value) {
switch (id) {
case aquaGravelCalcWidthId:
inputFieldStates[0] = value || false;
break;
case aquaGravelCalcDepthId:
inputFieldStates[1] = value || false;
break;
case aquaGravelCalcHeightId:
inputFieldStates[2] = value || false;
break;
}
if (inputFieldStates.indexOf(false) == -1) {
calcResult();
}
}
function calcResult() {
var result = (aquaGravelCalcWidthInput.value * aquaGravelCalcDepthInput.value * aquaGravelCalcHeightInput.value / 1000).toFixed(2);
var resultText = textToUse.result.replace(/\$1/g, result.replace(/\./,textToUse.decimalSeparator));
document.getElementById("aquaGravelCalcResult").innerHTML = resultText;
var resultStyle = document.getElementById("aquaGravelCalcResult").style;
resultStyle.setProperty('display', 'block', null);
resultStyle.setProperty('font-size', '200%', null);
}
function hideResult() {
var resultStyle = document.getElementById("aquaGravelCalcResult").style;
resultStyle.setProperty('display', 'none', null);
}
</script>
sera Gravel White
Bílý přírodní štěrk (Ø 1 - 3 mm) pro všechna sladkovodní i mořská akvária
sera Gravel White je CO2 odolný a neutrální vůči vodě, tzn., že neovlivňuje parametry vody a nebarví ji. Díky velikosti zrna 1 - 3 mm mohou rostliny výborně růst. Vzhledem k tomu, že jsou oblé, jsou vhodné i pro chov ryb orientovaných na dno, jako je sumec, který nepřetržitě prohledává dno kvůli potravě.
sera Gravel White je schválen dle normy DIN 38415-6 / EN ISO 15088 nezávislým institutem a je osvědčen jako neobsahující znečišťující látky. Je proto také vhodný pro chov a odchov citlivých zvířat.
Aquarienkies Rechner
<label for="aquaGravelCalcWidthInput" id="aquaGravelCalcWidthLabel">Breite in cm</label> <input class="form-control" id="aquaGravelCalcWidthInput" onchange="refresh();" onfocusout="refresh();" type="text" />
Hinweis
<label for="aquaGravelCalcDepthInput" id="aquaGravelCalcDepthLabel">Tiefe in cm</label> <input class="form-control" id="aquaGravelCalcDepthInput" onchange="refresh();" onfocusout="refresh();" type="text" />
Hinweis
<label for="aquaGravelCalcHeightInput" id="aquaGravelCalcHeightLabel">gewünschte Kieshöhe in cm:</label> <input class="form-control" id="aquaGravelCalcHeightInput" onchange="refresh();" onfocusout="refresh();" type="text" />
Hinweis
<input class="btn btn-primary form-control" id="aquaGravelCalcRefreshButton" onclick="refresh();" type="button" value="Aktualisieren" />
Sie benötigen x Liter Kies.
Výrobek | Obsah | Komentář | Kód |
---|---|---|---|
sera Gravel White |
3 l | Ø 1 - 3 mm | 32265 |
sera Gravel White |
6 l | Ø 1 - 3 mm | 32266 |
- Obrázky (tisk)
- 4001942452564_45256_-INT-_sera-gravel-white-6-l.tif
- 4001942452557_45255_-INT-_sera-gravel-white-3-l.tif
- Obrázky (optimalizováno pro internet)
- 4001942452564_45256_-int-_sera-gravel-white-6-l.png
- 4001942452557_45255_-int-_sera-gravel-white-3-l.png