dimanche 24 novembre 2019

firebase javascript database Related Questions

enter image description here

I am a newbie to firebase and Javascript I want to display the html1s one by one in #write_result Please tell me how..

   var html1 =
               '<div class="bg">' +
                '<header><h4 class="post_title"><b>' + title + '</b></h4></header>' +
                 '<section>' +
                   '<span><ion-icon name="time" class="time-icon"></ion-icon>' + date + '</span>' +
                    '<span class="eye-icon"><ion-icon name="create" class="eyes"></ion-icon>' + noticemenu + '&nbsp;|&nbsp;' + name + '</span>' +
                 '</section>' +
                '</div>' +
                '<hr style="border: solid 1.2px #ccc;">' +
                 '<section>' +
                  '<div class="w_content" style="overflow: hidden; text-align: center">' +'<img id="notice_img" src="'+noticeImageUrl+'"><br><br>' +
                  '<span id="post_txt" class="post_txt">'+ contents + '</span></div>' +
                   '<div class="list-bottom1">' +
                     '<button type="button"  name="deleteview_btn" class="btn-yellow top-menu-right" id="post_del" onclick="delete_notice('+key+')">delete' +
                     '</button>'+
                     '<button type="button"  name="updateview_btn" class="btn-yellow top-menu-right post_update" id="'+key+'" onclick="update_notice(this.id)">update' +
                     '</button>'+
                     '</div>' +
                   '</section>';


                  $('#write_result').append(html1);







Aucun commentaire:

Enregistrer un commentaire