Last active
October 1, 2015 14:41
-
-
Save konradhalas/b8bcbac17b78e3a39cba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LICENSE = 'License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.'; | |
var WEBSITE = 'http://summit.pywaw.org'; | |
var result = []; | |
$(".speaker-modal").each(function() { | |
var $speakerModal = $(this); | |
var $talkDetails = $speakerModal.find('.speaker-modal__talk-title'); | |
var speakerName = $speakerModal.find('.speaker-modal__name').text(); | |
var speakerBio = $speakerModal.find('p:not(.speaker-modal__twitter)').first().text(); | |
var mixedTalksDescription = $speakerModal.find('p:not(.speaker-modal__twitter)').slice(1).text(); | |
$talkDetails.each(function () { | |
var $talkTitle = $(this); | |
var talkTitle = $talkTitle.text().replace('Talk: ', '').replace('Keynote: ', ''); | |
result.push(speakerName + ': ' + talkTitle + '- PyWaw Summit 2015'); | |
result.push('Talk: ' + talkTitle); | |
}); | |
result.push(''); | |
result.push(mixedTalksDescription); | |
result.push(''); | |
result.push('Speaker: ' + speakerName + '. ' + speakerBio); | |
result.push(''); | |
$talkDetails.each(function () { | |
var $talkTitle = $(this); | |
var talkSlidesURL = $talkTitle.find('a.slides').attr('href'); | |
result.push('Slides: ' + talkSlidesURL); | |
result.push(''); | |
}); | |
result.push(LICENSE); | |
result.push(''); | |
result.push(WEBSITE); | |
result.push('**********************'); | |
}); | |
console.log(result.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment