<html>
<head>
<meta charset="UTF-8">
<title>Changelog</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var urls = [ { title: 'New/Changed Features', url: 'http://d.puremagic.com/issues/buglist.cgi?bug_severity=enhancement&bug_status=RESOLVED&chfield=resolution&chfieldfrom=2012-08-02&chfieldto=2012-12-31&chfieldvalue=FIXED&product=D&query_format=advanced&resolution=FIXED&version=D2&version=D1%20%26%20D2' },
{ title: 'DMD Bugs Fixed', url: 'http://d.puremagic.com/issues/buglist.cgi?bug_severity=regression&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_severity=minor&bug_severity=trivial&bug_status=RESOLVED&chfield=resolution&chfieldfrom=2012-08-02&chfieldto=2013-01-01&chfieldvalue=FIXED&component=DMD&product=D&query_format=advanced&resolution=FIXED&version=D2&version=D1%20%26%20D2' },
{ title: 'Druntime Bugs Fixed', url: 'http://d.puremagic.com/issues/buglist.cgi?bug_severity=regression&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_severity=minor&bug_severity=trivial&bug_status=RESOLVED&chfield=resolution&chfieldfrom=2012-08-02&chfieldto=2012-12-31&chfieldvalue=FIXED&component=druntime&product=D&query_format=advanced&resolution=FIXED&version=D2&version=D1%20%26%20D2' },
{ title: 'Phobos Bugs Fixed', url: 'http://d.puremagic.com/issues/buglist.cgi?bug_severity=regression&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_severity=minor&bug_severity=trivial&bug_status=RESOLVED&chfield=resolution&chfieldfrom=2012-08-02&chfieldto=2012-12-31&chfieldvalue=FIXED&component=Phobos&product=D&query_format=advanced&resolution=FIXED&version=D2&version=D1%20%26%20D2' } ];
function processData(allText)
{
var allTextLines = allText.split(/\r\n|\n/);
var table = '<table cellpadding="4">';
for (var i=1; i<allTextLines.length; i++) //skip line 0 (header)
{
var data = allTextLines[i].split(',');
if(data.length == 8)
{
var msg = (data[7]).slice(1, (data[7]).length -1);
msg = msg.replace(/\"\"/g, "\"");
var issue = data[0];
table += '<tr>' +
'<td><a href="http://d.puremagic.com/issues/show_bug.cgi?id=' + issue + '">Issue ' + issue +
'</a></td>' +
'<td>' + msg + '</td>'+
'</tr>';
}
}
table += '</table>';
return table;
}
var url_map = { };
$(document).ready( function() {
for(var i = 0; i < urls.length; i++)
{
var new_id = (urls[i]['title']).replace(/\ |\//g, '_');
$('#output').append('<div id="' + new_id + '_container">' +
'<h3><a href="' + urls[i]['url'] + '">' + urls[i]['title'] + '</a></h3>' +
'<div id="' + new_id + '">' + 'Loading...' + '</div></div>');
var url = 'http://anyorigin.com/get?url='+ encodeURIComponent(urls[i]['url'] + '&ctype=csv') + '&callback=?';
url_map[ urls[i]['url'] + '&ctype=csv'] = '#' + new_id;
$.getJSON(url, function(data){
$( url_map[data.status.url] ).html( processData(data.contents) );
});
}
});
</script>
</head>
<body>
<div id="output"></div>
</body>
</html>