public/js/application.js
// Display the events (not recommendations)
Display the events (not recommendations)
Display the events ( not recommendations )
function displayEvents(events) {
        var html = "<div class='row'>"
        $.each(events, function() {
            concert = this;
            html+= "<div class='col-sm-6'><div class='card card-block'>";
            html+="<h3 class='card-title'>"+concert.title+"</h3><p class='card-text'>"+concert.datetime_local+"</p><p class='card-text'>"+concert.venue.address+" "+concert.venue.city+"</p>";
            html+="<a href="+concert.url+" class='btn btn-primary'>Get Tickets</a></div></div>"
        });
        html+="</div>"
        $('#upcoming_results').append(html);
    }
function displayEvents ( events ) { var html = "<div class='row'>" $ . each ( events , function ( ) { concert = this ; html += "<div class='col-sm-6'><div class='card card-block'>" ; html += "<h3 class='card-title'>" + concert . title + "</h3><p class='card-text'>" + concert . datetime_local + "</p><p class='card-text'>" + concert . venue . address + " " + concert . venue . city + "</p>" ; html += "<a href=" + concert . url + " class='btn btn-primary'>Get Tickets</a></div></div>" } ) ; html += "</div>" $ ( '#upcoming_results' ) . append ( html ) ; }
Display the events (not recommendations)
Display the events ( not recommendations )
// html+="<button class='btn btn-primary' id='"+concert.event.id+"'>Interested!</button></div></div>"