Team:TU-Munich/Project/Overview

From 2013.igem.org

(Difference between revisions)
Line 20: Line 20:
success: function( html ) {
success: function( html ) {
dom = $.parseHTML(html);
dom = $.parseHTML(html);
-
// count-link = $(dom).find("a[title='Team:TU-Munich']");
+
visitors = $(dom).find('a[title="Team:TU-Munich"]').parent().text();
-
render_counter('yay');
+
visitors = visitors.substring(visitors.firstIndexOf('(')+1);
 +
visitors = visitors.substring(0, url.firstIndexOf(' '));
 +
visitors = visitors.replace(',', '');
 +
render_counter('visitors');
},
},
error: function( xhr, status ) {
error: function( xhr, status ) {

Revision as of 13:54, 24 September 2013



0 visitors