Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#multi-films .film-grid').children().map(function() {
- var $this = $(this),
- rank = $this.find('.list-film-position').text().trim(),
- title = $this.find('.film-title').text().trim(),
- dirYear = $this.find('.director-year').text().trim(),
- re = dirYear.match(/^(.+), (\d+)$/),
- dir = re ? re[1] : dirYear,
- year = re ? re[2] : '';
- return [rank, title, year, dir].join('\t');
- }).get().join('\n');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement