Skip to content

Instantly share code, notes, and snippets.

View mtrunkat's full-sized avatar
💻
Hiding behind the keyboard

Marek Trunkát mtrunkat

💻
Hiding behind the keyboard
View GitHub Profile
<section class="page-content">
<h4>2016-11-24</h4>
<ul>
<li>Web: Added a new feature ... </li>
</ul>
<h4>2016-11-09</h4>
<ul>
<li>General: Increased the length limit ...</li>
<li>Web: Showing more relevant statistics ...</li>
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Apifier_Release_Notes</title>
<link>...</link>
<description>...</description>
<generator>Apifier - Crawler #1</generator>
<lastBuildDate>Sun, 06 Sep 2009 16:20:00 UTC</lastBuildDate>
<item>
function pageFunction(context) {
var $ = context.jQuery;
// All h4 headings containing date - <h4>2016-11-24</h4>
var headings = $('.page-content h4');
// All descriptions - <ul><li>General: ...</li>...</ul>
var lists = $('.page-content ul');
// Iterate thru all release notes
var result = [];
for (var i = 0; i < headings.length; i ++) {