Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var output = '';
- jQuery('.ui-tabs-nav.kc_clearfix li').each(function () {
- jQuery(this).click();
- var section = jQuery(this);
- var content = jQuery('.ui-tabs-body-active.kc-section-active');
- var subSections = content.find('.kc_accordion_section');
- var SECTION = section.text().replace(/(\r\n\t|\n|\r\t)/gm,"");
- subSections.each(function () {
- var subSection = jQuery(this);
- var SUB_SECTION_TITLE = subSection.find('h3 a').text().replace(/(\r\n\t|\n|\r\t)/gm,"").trim();
- var CONTENT = subSection.find('.kc-panel-body').text().replace(/(\r\n\t|\n|\r\t)/gm,"").trim();
- output += '"' + SECTION + '","' + SUB_SECTION_TITLE + '","' + CONTENT + '"\n';
- })
- })
- console.log(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement