diff --git a/index.html b/index.html index 217c8565..fbcca516 100755 --- a/index.html +++ b/index.html @@ -82,7 +82,7 @@ diff --git a/js/main.js b/js/main.js index 5b800744..25211b98 100644 --- a/js/main.js +++ b/js/main.js @@ -193,6 +193,9 @@ $(document).ready(function() { $("#participants").empty(); participants = all_participants.slice((current_page-1)*per_page, (current_page-1)*per_page+per_page); loadpage(); + if($('#checkbox').is(':checked')){ + $('.card').toggleClass('dark') + } } }); @@ -203,7 +206,10 @@ $(document).ready(function() { $('.prev').removeClass('disabled'); $(this).removeClass('disabled'); participants = all_participants.slice((current_page-1)*per_page, (current_page-1)*per_page+per_page); - loadpage(); + loadpage(); + if($('#checkbox').is(':checked')){ + $('.card').toggleClass('dark') + } } }); @@ -217,7 +223,10 @@ $(document).ready(function() { $("#participants").empty(); participants = all_participants.slice((current_page-1)*per_page, (current_page-1)*per_page+per_page); loadpage(); - }); + if($('#checkbox').is(':checked')){ + $('.card').addClass('dark') + } + }); //this function load the data function loadpage(){ @@ -330,14 +339,14 @@ $(document).ready(function() { if(participantabout==="") participantabout="Talk is cheap. Show me the code"; var participantDiv = - "
" + - "
" + - "
" + - "" + + "
" + + "
" + + "" + - "
" + - "

" + + "
" + + "

" + participant.name + "

" + "

" + @@ -345,11 +354,11 @@ $(document).ready(function() { "

" + "
"+ "

" + - "
" + + "
" + "

" + participantabout + "

" + - "