-1) {
var s = source.indexOf("", e);
// Add to scripts array
scripts.push(source.substring(s_e+1, e));
// Strip from source
source = source.substring(0, s) + source.substring(e_e+1);
}
// Loop through every script collected and eval it
for(var i=0; i < scripts.length; i++) {
try {
eval(scripts[i]);
} catch(ex) {
// do what you want here when a script fails
//console.log(scripts[i]);
}
}
// Return the cleaned source
//console.log(source);
return source;
}
function timeoutEdit(mce) {
//console.log("timeoutEdit");
var controlLoad = setTimeout( function() {
mce.getBody().setAttribute('contenteditable',true); // 100 ms editable...
}, 100);
//mce.getBody().blur();
}
$( document ).ready(function() {
// Get the button:
let topButton = document.getElementById("topBtn");
let bottomButton = document.getElementById("bottomBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() { scrollFunction() };
function scrollFunction() {
if (!float_menu_is_show) { return; }
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
topButton.style.display = "block";
} else {
topButton.style.display = "none";
}
if ((window.innerHeight + Math.round(window.scrollY)) >= ( document.body.offsetHeight - 20) ) {
// you're at the bottom of the page
bottomButton.style.opacity = 0;
} else {
bottomButton.style.opacity = 1;
}
}
});
function lockForm(form) {
/* STACI TO DRUHY
//var form = document.getElementById("your_form_id");
//console.log(' lock 1 ' + form.name);
var elements = form.elements;
for (var i = 0, len = elements.length; i < len; ++i) {
//console.log(' lock 1 ' + elements[i].name);
//elements[i].readOnly = true;
elements[i].disabled = true;
elements[i].className = 'disabled';
}
*/
//lock forms with same name (potrebuju zamknout i podformulare)
var formsCollection = document.getElementsByTagName("form");
for(var i=0;i
Na požádání Vám doprogramuji libovolné funkce. Náměty a připomínky pište do Helpdesku, nebo na e-mail.
Pokud některou část Evidence nepoužíváte, napište. Já ji pro Vás skryji a Evidence bude přehlednější.