var PRURL = "/utils/ideveloper-proxy/index/"; var MAX_REFERENCES = 6; var TIMER_DELAY = 8000; dojo.addOnLoad(initIdeveloper); function initIdeveloper() { var refs = new IdeveloperRefs(PRURL, MAX_REFERENCES, TIMER_DELAY); refs.init(); } dojo.declare( "IdeveloperRefs", null, { NUMREF_INACTIVE_CLASS: "dot", NUMREF_ACTIVE_CLASS: "active", constructor: function(url, maxrefs, timer_delay) { this.url = url; this.maxrefs = maxrefs; this.timer_delay = timer_delay; }, init: function() { dojo.xhr('GET', { url: this.url, load: this.generateOnLoaded() }); }, generateWidget: function(projects) { this.projects = projects; var container = this.refContainer(); var a; for(var i=0; i