GDPR --> seznam anket: prikaži/skrij ankete ob kliku na box
This commit is contained in:
parent
45830f8fa9
commit
ecaabf3c0c
@ -64,10 +64,10 @@ class GDPR{
|
|||||||
|
|
||||||
echo '<div class="box-container">';
|
echo '<div class="box-container">';
|
||||||
|
|
||||||
echo '<div class= "num_box num_box1 checked" id="num_box1">';
|
echo '<div class= "num_box num_box1 checked" id="num_box1" onclick="gdpr_ankete()">';
|
||||||
|
|
||||||
echo '<div class="box_flex" id="box_flex">';
|
echo '<div class="box_flex" id="box_flex">';
|
||||||
echo '<input type="checkbox" name="GDPR ankete checkbox" id="gdpr_ankete_check" checked="checked" onclick="test_function()">';
|
echo '<input type="checkbox" name="GDPR ankete checkbox" id="gdpr_ankete_check" checked="checked" onclick="gdpr_ankete()">';
|
||||||
echo '<div class="naslov_gdpr"> GDPR ANKETE</div>';
|
echo '<div class="naslov_gdpr"> GDPR ANKETE</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
@ -83,10 +83,10 @@ class GDPR{
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
echo '<div class= "num_box num_box2 checked" id="num_box2">';
|
echo '<div class= "num_box num_box2 checked" id="num_box2" onclick="potenc_gdpr_ankete()">';
|
||||||
|
|
||||||
echo '<div class="box_flex" id="box_flex potenc_gdpr">';
|
echo '<div class="box_flex" id="box_flex potenc_gdpr">';
|
||||||
echo '<input type="checkbox" name="Potencialno GDPR ankete" id="potenc_gdpr_ankete_check" checked="checked" onclick="test_function()">';
|
echo '<input type="checkbox" name="Potencialno GDPR ankete" id="potenc_gdpr_ankete_check" checked="checked" onclick="potenc_gdpr_ankete()">';
|
||||||
echo '<div class="naslov_gdpr"> POTENCIALNO GDPR ANKETE</div>';
|
echo '<div class="naslov_gdpr"> POTENCIALNO GDPR ANKETE</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
@ -102,10 +102,10 @@ class GDPR{
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
echo '<div class= "num_box num_box3 checked" id="num_box3">';
|
echo '<div class= "num_box num_box3 checked" id="num_box3" onclick="ne_gdpr_ankete()">';
|
||||||
|
|
||||||
echo '<div class="box_flex" id="box_flex">';
|
echo '<div class="box_flex" id="box_flex">';
|
||||||
echo '<input type="checkbox" name="ne-gdpr ankete" id="ne_gdpr_ankete" checked="checked" onclick="test_function()" >';
|
echo '<input type="checkbox" name="ne-gdpr ankete" id="ne_gdpr_ankete" checked="checked" onclick="ne_gdpr_ankete()" >';
|
||||||
echo '<div class="naslov_gdpr"> NE-GDPR ANKETE</div>';
|
echo '<div class="naslov_gdpr"> NE-GDPR ANKETE</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
@ -147,7 +147,49 @@ function test_function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function gdpr_ankete(){
|
||||||
|
var check_gdpr_ankete = document.getElementById('gdpr_ankete_check');
|
||||||
|
|
||||||
|
//GDOR ANKETE
|
||||||
|
if (check_gdpr_ankete.checked){
|
||||||
|
check_gdpr_ankete.checked = false;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
check_gdpr_ankete.checked = true;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function potenc_gdpr_ankete(){
|
||||||
|
|
||||||
|
var check_potenc_gdpr = document.getElementById('potenc_gdpr_ankete_check');
|
||||||
|
|
||||||
|
//POTENCGDOR ANKETE
|
||||||
|
if (check_potenc_gdpr.checked){
|
||||||
|
check_potenc_gdpr.checked = false;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
check_potenc_gdpr.checked = true;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function ne_gdpr_ankete(){
|
||||||
|
|
||||||
|
var check_negdpr_ankete = document.getElementById('ne_gdpr_ankete');
|
||||||
|
|
||||||
|
//NE GDPR ANKETE
|
||||||
|
if (check_negdpr_ankete.checked){
|
||||||
|
check_negdpr_ankete.checked = false;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
check_negdpr_ankete.checked = true;
|
||||||
|
test_function();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function teme_options(){
|
function teme_options(){
|
||||||
var toggle = document.getElementsByClassName('buttons-window');
|
var toggle = document.getElementsByClassName('buttons-window');
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@
|
|||||||
border: 1px solid #E5E5E5;
|
border: 1px solid #E5E5E5;
|
||||||
background-color: #FFFF;
|
background-color: #FFFF;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user