Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. response.forEach((item,index)=>{
  2. $('#lottoModal').append(`<section class="valz-sec valz-section-1">
  3. <div class="valz-sec-1-tp">
  4. <div class="valz-d1">
  5. <!-- <img src="assets/images/bgimages-1.png"> -->
  6. <!-- DIV 1 -->
  7. <div class="valz-d1a">
  8. <img src="clover-0.png">
  9. <p>$ 5,000,000</p>
  10. </div>
  11. <!-- END DIV 1 -->
  12. <!-- DIV 2-->
  13. <div class="valz-d1b">
  14. <p class="p1">Ticket Price:</p>
  15. <p class="ticket">$ ${item.status[0].ticket_price}
  16. <input type="hidden" value="${item.status[0].ticket_price}" id="ticket_price">
  17. <input type="hidden" value="4" id="ticket_id">
  18. <input type="hidden" value="7" id="lottery_id">
  19. <input type="hidden" value="riand" id="uid_master">
  20. </p>
  21. <div class="valz-d1-bar progress">
  22. <div class="valz-d1a-bar progress-bar" style="width: ${item.status[0].percentage}%">
  23. <p style="margin-left: 10px;">${item.status[0].percentage}%</p>
  24. </div>
  25. </div>
  26. <p class="p1">Sold:</p>
  27. <p class="p2a">4</p>
  28. <p class="p1">Remaining:</p>
  29. <p class="p2a">6</p>
  30. </div>
  31. <!-- END DIV 2 -->
  32. </div>
  33. </div>
  34. </section>
  35.  
  36. <section class="valz-section">
  37. <div class="valz-sec-2-select">
  38. <div class="valz-d1">
  39. <p>SELECT TICKETS</p>
  40. </div>
  41. <!-- DIV 2 -->
  42.  
  43. <div class="valz-d1a">
  44. <button class="val-btn " id="val-dis-1">ALL (6)</button>
  45. <button class="val-btn val-odd" id="odd" value=""></button>
  46. <button class="val-btn val-even" id="even" value=""></button>
  47. <button class="val-btn " id="val-dis-2">SEIZE LUCK</button>
  48. <div class="input-group val-input-box">
  49. <input type="text" class="form-control" id="myInput" placeholder="SEARCH">
  50. <!-- <div class="input-group-append val-search">
  51. <button class="btn btn-secondary val-search-b" type="button">
  52. <i class="fa fa-search"></i>
  53. </button>
  54. </div> -->
  55. </div>
  56. </div>
  57. <!-- DIV 3 -->
  58. <div class="d3">
  59. <div class="d3a" id="myDIV">
  60. `
  61. + item.tickets.forEach((tickets)=>{
  62.  
  63. `<div class="p1 odd" >
  64. <button type="button" name="submit" class="p2" value="${tickets.ticket_number}">${tickets.ticket_number}</button>
  65. </div>`
  66.  
  67. }) +
  68. `
  69. </div>
  70.  
  71. </div>
  72. </div>
  73. </section>
  74. <!-- END SECTION 2 -->
  75.  
  76.  
  77. `);
  78.  
  79. // item.tickets.forEach((tickets)=>{
  80. // $("#lottoModal").append(`
  81. // <li class="appendHereTickets">${tickets.ticket_number}</li>
  82. // `);
  83. // })
  84.  
  85. }) /* END response loop */
  86.  
  87.  
  88. }); /* END ON CLICK */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement