function loadUpcoming() {
    var upcommingSettings = {
      "async": true,
      "crossDomain": true,
      "url": 'https://api.themoviedb.org/3/movie/upcoming?api_key=' + key + '&language=en-US&page=1',
      "method": "GET",
      "headers": {},
      "data": "{}"
    };
    var upcoming = $('.upcoming-list ul li');
    $.ajax(upcommingSettings).then(function (shows) {
      var upcomingTemplate = '\n                <div class="col m12 upcoming-movie">\n                  <img class="center responsive-img" src=":img:" alt=":img alt:">\n                </div>';
      var show = shows.results;
      for (var i = 0; i < 3; i++) {
        col = upcomingTemplate.replace(':img:', show[i].poster_path ? img_key + show[i].poster_path : '').replace(':img alt:', show[i].name ? show[i].name + " Logo" : '');
        var col = $(col);
        upcoming.append(col);
      }
    });
  }
//Cargar zona de peliculas de Upcoming
Cargar zona de peliculas de Upcoming
Cargar zona de peliculas de Upcoming
function loadUpcoming() {
    var upcommingSettings = {
      "async": true,
      "crossDomain": true,
      "url": 'https://api.themoviedb.org/3/movie/upcoming?api_key=' + key + '&language=en-US&page=1',
      "method": "GET",
      "headers": {},
      "data": "{}"
    };
    var upcoming = $('.upcoming-list ul li');
    $.ajax(upcommingSettings).then(function (shows) {
      var upcomingTemplate = '\n                <div class="col m12 upcoming-movie">\n                  <img class="center responsive-img" src=":img:" alt=":img alt:">\n                </div>';
      var show = shows.results;
      for (var i = 0; i < 3; i++) {
        col = upcomingTemplate.replace(':img:', show[i].poster_path ? img_key + show[i].poster_path : '').replace(':img alt:', show[i].name ? show[i].name + " Logo" : '');
        var col = $(col);
        upcoming.append(col);
      }
    });
  }
function loadUpcoming ( ) { var upcommingSettings = { "async" : true , "crossDomain" : true , "url" : 'https://api.themoviedb.org/3/movie/upcoming?api_key=' + key + '&language=en-US&page=1' , "method" : "GET" , "headers" : { } , "data" : "{}" } ; var upcoming = $ ( '.upcoming-list ul li' ) ; $ . ajax ( upcommingSettings ) . then ( function ( shows ) { var upcomingTemplate = '\n                <div class="col m12 upcoming-movie">\n                  <img class="center responsive-img" src=":img:" alt=":img alt:">\n                </div>' ; var show = shows . results ; for ( var i = 0 ; i < 3 ; i ++ ) { col = upcomingTemplate . replace ( ':img:' , show [ i ] . poster_path ? img_key + show [ i ] . poster_path : '' ) . replace ( ':img alt:' , show [ i ] . name ? show [ i ] . name + " Logo" : '' ) ; var col = $ ( col ) ; upcoming . append ( col ) ; } } ) ; }
Cargar zona de peliculas de Upcoming
Cargar zona de peliculas de Upcoming