var coje = 100; //just number
var pocetplusu = 2; //kolik plusu je v 1NP
var pocetplusu_2 = 2; //kolik plusu je v 2NP
var LR = "no"; //existuje livingroom v 1NP?
var MB = "no"; //existuje masterbedroom v 1NP?
var BeforeStairs1NP = 0; //pocet modulu pred schodistem v 1NP
var AfterStairs1NP = 0; //pocet modulu pred schodistem v 1NP
var BeforeStairs2NP = 0; //pocet modulu pred schodistem v 2NP
var AfterStairs2NP = 0; //pocet modulu pred schodistem v 2NP
$(function() {
$("#EmptyBefore1NP").hide();
$("#EmptyAfter1NP").hide();
$("#EmptyBefore2NP").hide();
$("#EmptyAfter2NP").hide();
});
function makevisible(id) { //tadle funkce zobrazi podmenu pod plusy
var x = document.getElementById(id).getElementsByClassName("subitem")[0];
x.style.display = "block";
}
function makevisible2(id) { //tadle funkce zobrazi podmenu pod plusy pro 2 patro - asi zbytecne
var x = document.getElementById(id).getElementsByClassName("subitem_2")[0];
x.style.display = "block";
}
function makeinvisible() { //tadle funkce zneviditelni podmenu pod plusy
var i;
for (i = 0; i < 20; i++) { //tech 20 tadz nak nedava smysl - mel by to byt spis pocet plusu, ktery se vsechny zneviditelny (ikdyz uz sou)
var x = document.getElementsByClassName("subitem")[i];
x.style.display = "none";
}
}
function makeinvisible2() { //tadle funkce zneviditelni podmenu pod plusy
var i;
for (i = 0; i < 20; i++) { //tech 20 tadz nak nedava smysl - mel by to byt spis pocet plusu, ktery se vsechny zneviditelny (ikdyz uz sou)
var x = document.getElementsByClassName("subitem_2")[i];
x.style.display = "none";
}
}
function alerta(id) { // tadle funkce pise X onmouseover nad mistnosti
var necoc = document.getElementById(id);
$(necoc).html("X");
}
function alerta2(id) { // tadle funkce vraci X na puvodni hodnotu onmouseleave
var necoc = document.getElementById(id);
var necocjmeno = necoc.getAttribute('data-code');
$(necoc).html(necocjmeno);
}
function myFunction(id) {...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.