Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response.forEach((item,index)=>{
- $('#lottoModal').append(`<section class="valz-sec valz-section-1">
- <div class="valz-sec-1-tp">
- <div class="valz-d1">
- <!-- <img src="assets/images/bgimages-1.png"> -->
- <!-- DIV 1 -->
- <div class="valz-d1a">
- <img src="clover-0.png">
- <p>$ 5,000,000</p>
- </div>
- <!-- END DIV 1 -->
- <!-- DIV 2-->
- <div class="valz-d1b">
- <p class="p1">Ticket Price:</p>
- <p class="ticket">$ ${item.status[0].ticket_price}
- <input type="hidden" value="${item.status[0].ticket_price}" id="ticket_price">
- <input type="hidden" value="4" id="ticket_id">
- <input type="hidden" value="7" id="lottery_id">
- <input type="hidden" value="riand" id="uid_master">
- </p>
- <div class="valz-d1-bar progress">
- <div class="valz-d1a-bar progress-bar" style="width: ${item.status[0].percentage}%">
- <p style="margin-left: 10px;">${item.status[0].percentage}%</p>
- </div>
- </div>
- <p class="p1">Sold:</p>
- <p class="p2a">4</p>
- <p class="p1">Remaining:</p>
- <p class="p2a">6</p>
- </div>
- <!-- END DIV 2 -->
- </div>
- </div>
- </section>
- <section class="valz-section">
- <div class="valz-sec-2-select">
- <div class="valz-d1">
- <p>SELECT TICKETS</p>
- </div>
- <!-- DIV 2 -->
- <div class="valz-d1a">
- <button class="val-btn " id="val-dis-1">ALL (6)</button>
- <button class="val-btn val-odd" id="odd" value=""></button>
- <button class="val-btn val-even" id="even" value=""></button>
- <button class="val-btn " id="val-dis-2">SEIZE LUCK</button>
- <div class="input-group val-input-box">
- <input type="text" class="form-control" id="myInput" placeholder="SEARCH">
- <!-- <div class="input-group-append val-search">
- <button class="btn btn-secondary val-search-b" type="button">
- <i class="fa fa-search"></i>
- </button>
- </div> -->
- </div>
- </div>
- <!-- DIV 3 -->
- <div class="d3">
- <div class="d3a" id="myDIV">
- `
- + item.tickets.forEach((tickets)=>{
- `<div class="p1 odd" >
- <button type="button" name="submit" class="p2" value="${tickets.ticket_number}">${tickets.ticket_number}</button>
- </div>`
- }) +
- `
- </div>
- </div>
- </div>
- </section>
- <!-- END SECTION 2 -->
- `);
- // item.tickets.forEach((tickets)=>{
- // $("#lottoModal").append(`
- // <li class="appendHereTickets">${tickets.ticket_number}</li>
- // `);
- // })
- }) /* END response loop */
- }); /* END ON CLICK */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement