From 52e5254fd74040108245db7650f095bd4e80a4f7 Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Fri, 18 Oct 2013 17:03:39 +0000 Subject: [PATCH] Cleanup webkit.org/team.html https://bugs.webkit.org/show_bug.cgi?id=123022 Patch by Tibor Meszaros on 2013-10-18 Reviewed by Alexey Proskuryakov. Removed the annoteWithWikiData function, because data it tries to fetch does not exists. * team.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157638 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Websites/webkit.org/ChangeLog | 11 +++++++++ Websites/webkit.org/team.html | 55 ------------------------------------------- 2 files changed, 11 insertions(+), 55 deletions(-) diff --git a/Websites/webkit.org/ChangeLog b/Websites/webkit.org/ChangeLog index 8de1922..fa8a454 100644 --- a/Websites/webkit.org/ChangeLog +++ b/Websites/webkit.org/ChangeLog @@ -1,3 +1,14 @@ +2013-10-18 Tibor Meszaros + + Cleanup webkit.org/team.html + https://bugs.webkit.org/show_bug.cgi?id=123022 + + Reviewed by Alexey Proskuryakov. + + Removed the annoteWithWikiData function, because data it tries to fetch does not exists. + + * team.html: + 2013-10-16 Geoffrey Garen Publish SunSpider 1.0.2 diff --git a/Websites/webkit.org/team.html b/Websites/webkit.org/team.html index 115cce3..c77b104 100644 --- a/Websites/webkit.org/team.html +++ b/Websites/webkit.org/team.html @@ -157,58 +157,6 @@ function findListChildForContributor(contributor) { return null; } -function annotateWithWikiData() { - function annotateForContributor(contributor) { - var listItem = findListChildForContributor(contributor); - if (!listItem) { - var listElement = document.getElementById(contributor.kind + 's'); - var listItem = document.createElement('li'); - listElement.appendChild(listItem); - listItem.style.backgroundColor = 'red'; - populateContributorListItem(listItem, contributor); - } else { - var affiliationContainer = listItem.querySelector('.affiliation'); - var affiliation = formatAffiliation(contributor); - if (affiliation && (!affiliationContainer || affiliationContainer.textContent != affiliation)) { - addText(listItem, ' '); - addWrappedText(listItem, 'em', {'style': 'background-color:red'}, affiliation); - } - } - } - - var webkitTeamWikiUrl = 'http://trac.webkit.org/wiki/WebKit%20Team'; - var xhr = new XMLHttpRequest(); - xhr.onload = function () { - if (this.status !== 200) - return this.onerror(); - - var lines = this.responseText.split('\n'); - // Match lines like * '''Ryosuke Niwa''' (rniwa) ''Google'' - var teamWikiContributorEntryPattern = /^\s+\*\s+'''([^']+)'''\s*(\(([^']+)\)\s*)?(''([^']+)'')?\s*$/; - for (var i = 0; i < lines.length; i++) { - var match = lines[i].match(/\=\s+(Reviewer|Committer|Contributor)s\s+=/i); - if (match) { - var currentKind = match[1].toLowerCase(); - continue; - } - - // Strip special HTML characters - match = lines[i].replace(/[{}<>"%;&+/]/g, '').match(teamWikiContributorEntryPattern); - if (currentKind && match) { - annotateForContributor({ - kind: currentKind, - name: match[1], - nicks: match[3] ? match[3].split(/,\s*/) : null, - affiliation: match[5] - }); - } - } - } - xhr.onerror = function () { alert('Could not obtain http://trac.webkit.org/wiki/WebKit%20Team'); }; - xhr.open('GET', webkitTeamWikiUrl + '?format=txt'); - xhr.send(); -} - var xhr = new XMLHttpRequest(); xhr.onload = function () { if (this.status !== 200) @@ -218,9 +166,6 @@ xhr.onload = function () { populateContributorList(contributors, 'reviewer'); populateContributorList(contributors, 'committer'); populateContributorList(contributors, 'contributor'); - - if (location.search.indexOf('annotate') >= 0) - annotateWithWikiData(); }; xhr.onerror = function () { document.getElementById('container').textContent = 'Could not obtain contributors.json'; }; xhr.open('GET', svnTrunkUrl + 'Tools/Scripts/webkitpy/common/config/contributors.json'); -- 1.8.3.1