CodePen

HTML

            
              
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              /* update secondary page (override content with details for given movie) */
createSecondaryPage() {
    /* get current page */
    var pagenum = $.mobile.activePage.attr('id');
    /* get cached detailed data for selected movie */
    var data = getMovie(pagenum, $(this).index());
    $('#secondaryPage')
        /* update header toolbar with movie title */
        .find('#title').html(data.title).end()
        /* render movie details template with data & insert into DOM as content */
        .find(':jqmData(role=content)')
            .html($(Mustache.render($('#secondaryPageContentTmpl').html(), data)));
}
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................