# @param cached Pokud chceme zobrazit cachovanou verzi analyzy, dejme True. Pokud dame int, je to maximalni stari (ve dnech). Kdyz se nenalezne, zanazyzuje se znovu.
$advice=$("<p/>",{id:"advice","text":"Když je to ! nebo wp a stránka není sundaná a ještě nemáme korespondenci, dát poslat."}).insertAfter($("body h1:eq(0)"));
$(".web",this).each(function(){//primerguje weby nalezene v nove analyze do stare analyzy.
host=$.trim($(".domain",this).text());
lethost=$.trim($(".domain",this).text());
safebrowsingIcon(this,host);
contained=false;
letcontained=false;
$(".web > .domain",$analysis).each(function(){
if($(this).text()==host){
console.log($(this).text());
...
...
@@ -177,7 +175,7 @@ if (document.location.href.indexOf("https://mdm.nic.cz/detail/") === 0) {
@@ -186,7 +184,9 @@ if (document.location.href.indexOf("https://mdm.nic.cz/detail/") === 0) {
});
//localStorage -> default voting value
if((vote=$(this).attr("data-vote"))==""){//vote pro web je v jeho atributu, protoze k domene webu nepatri zadne ip
if((vote=$(".address:eq(0)",this).attr("data-vote"))==""){//vote pro web se bere z votu pro jeho prvni ip XXTakze kdyz se budou voty pro IP z nejakeho duvodu lisit, admin na to neprijde a vote premaze.
@@ -198,7 +198,6 @@ if (document.location.href.indexOf("https://mdm.nic.cz/detail/") === 0) {
} else {
$(analysis).prepend(this);
}*/
}
});
...
...
@@ -210,7 +209,7 @@ if (document.location.href.indexOf("https://mdm.nic.cz/detail/") === 0) {
//refreshOutput();
//rovnou zaciname hlasovat, analyza kompletni
$(".voting:eq(0) input:eq(0)",sections.$undecided).focus();//focusujeme pouze z bloku undecided; nema smysl focusovat allowed web, jeste nekomu ujede ruka
$(".voting:eq(0) input:eq(0)",sections.$undecided).focus();//focusujeme pouze z bloku undecided; nema smysl focusovat allowed web, jeste nekomu ujede ruka
}elseif(e.data.voted){//ve vedlejsim tabu se hlasovalo, zmen hodnotu i zde