").appendTo($("#content")),s=$("
").appendTo(a);$(" | ").appendTo(s),n.each_date_in_season_asc(t.get("season"),function(e){s.append($("").text(UTIL.date.to_short_month_day(e)))}),n.each_team_in_season(t.get("season"),t.get("conference"),function(e){(s=$(" |
").appendTo(a)).append($(" | ").text(e)),n.each_for_team_in_season_asc(e,t.get("season"),function(e){var n=null==e.rank?"-":e.rank;s.append($(" | ").text(n).addClass("center"))})})}function populate_by_season_list(e,n){var t=UTIL.date.TOMORROW,a=null,s=0;e.each_in_season(n.get("season"),function(e){null!=n.get("conference")&&e.conference!=n.get("conference")||(e.date").text(UTIL.date.to_month_day_year(e.date))),a=$("
").appendTo($("#content"))),$li=$("").html(e.team+(null!=n.get("conference")?"":" ("+e.conference+")")).appendTo(a),e.rank===s&&$li.css("list-style-type","none"),s=e.rank)})}function populate_by_ranking(e,n){var t=e.get_ranking_conferences(n.get("ranking"));null==n.get("conference")||t.has(n.get("conference"))?(UTIL.view.set_options_list($("#conference select"),["All"].concat(t.toArray().sort())),$("#conference select").val(null==n.get("conference")?"All":n.get("conference")),"grid"==n.get("view")?populate_by_ranking_grid(e,n):populate_by_ranking_list(e,n),$("#content").show()):n.set("conference",null)}function populate_by_ranking_list(e,n){var t=UTIL.date.TOMORROW.getUTCFullYear()+1,a=null,s=[];function o(e,n){$tr=$("
").appendTo(e),$tr.append(""+UTIL.date.to_month_day_year(n[0].date)+" | "),$td=$(" | ").appendTo($tr),n.forEach(function(e){$td.append(""+e.team+"
")})}e.each_at_ranking(n.get("ranking"),function(e){null!=n.get("conference")&&e.conference!=n.get("conference")||(e.season!=t&&(0").text(e.season)),(a=$("").appendTo($("#content"))).append($("Date | School(s) |
"))),0==s.length||e.date.getTime()==s[0].date.getTime()?s.push(e):(o(a,s),s=[e]))}),0").text(t)),s=$("").appendTo($("#content"));var n=$("
").appendTo(s);$(" | ").appendTo(n),o.each_date_in_season_asc(t,function(e){n.append($(" | ").text(UTIL.date.to_short_month_day(e)))}),a=!0}(n=$("
").appendTo(s)).append($(" | ").text(e)),o.each_for_team_in_season_asc(e,t,function(e){e.rank!=i.get("ranking")?n.append($(" | ")):n.append($(" | ").addClass("marker").append($("")))})})}),$("#content").show()}function populate_by_school(e,n){"grid"==n.get("view")?populate_by_school_grid(e,n):"stats"==n.get("view")?populate_stats(e,n):populate_by_school_list(e,n)}function populate_by_school_list(e,n){var t=UTIL.date.TOMORROW.getUTCFullYear()+1,a=null;e.each_for_team(n.get("school"),function(e){e.season!=t&&(t=e.season,$("#content").append($("").text(e.season)),a=$("").appendTo($("#content"))),a.append($("
").append(""+UTIL.date.to_month_day_year(e.date)).append(" | "+e.rank+" | "))}),$("#content").show()}function populate_by_school_grid(n,t){function a(e,n,t,a){$tr=$("
").appendTo(e),$tr.append($(" | ").text(n)),$tr.append($(" | ").text(t)),$tr.append($(" | ").addClass("bar").append($("").css("width",5*a+"px")))}$tab=$("").appendTo($("#content")).addClass("graphic");var s=n.get_seasons_team_ranked(t.get("school"));n.get_sorted_seasons().reverse().forEach(function(e){UTIL.list.any(s,e)?n.each_for_team_in_season(t.get("school"),e,function(e){a($tab,UTIL.date.to_month_day_year(e.date),null==e.rank?"-":e.rank,null==e.rank?0:26-e.rank)}):a($tab,e,"-",0)}),$("#content").show()}function to_date_text(e){return null==e?"Present":UTIL.date.to_month_day_year(new Date(e))}function BestRanking(){this.forSchool=function(e,n){var t=[];return e.each_for_team(n,function(e){0n.value}}function WeeksWithinMaxRanking(n){WeeksMatching.call(this),UTIL.override(this,"qualifies",function(e){return e.rank<=n})}function TotalWeeksRanked(){WeeksWithinMaxRanking.call(this,9999999)}function TotalWeeksNo1(){WeeksWithinMaxRanking.call(this,1)}function TotalWeeksTop5(){WeeksWithinMaxRanking.call(this,5)}function TotalWeeksTop10(){WeeksWithinMaxRanking.call(this,10)}function TotalWeeksTop15(){WeeksWithinMaxRanking.call(this,15)}function TotalWeeksTop20(){WeeksWithinMaxRanking.call(this,20)}function ConsecutiveWeeksMatching(){var o=this;this.qualifies=function(e){return!0},this.forSchool=function(e,n){var t=e.get_sorted_dates().backward(),a=[],s=null;return e.each_for_team_in_order(n,function(e){if(o.qualifies(e)){if(e.date.getTime()!=t.shift().getTime())for(null!=s&&(a.push(s),s=null);0e.end?1:0}),{value:0===a.length?0:a[0].polls,info:a}},this.detailText=function(e){if(e.info&&0"),e.info[t].start==e.info[t].end?n+=to_date_text(e.info[t].start):n+=to_date_text(e.info[t].start)+" - "+to_date_text(e.info[t].end);return n}return""},this.isBetter=function(e,n){return e.value>n.value}}function ConsecutiveWeeksWithinMaxRanking(n){ConsecutiveWeeksMatching.call(this),UTIL.override(this,"qualifies",function(e){return e.rank<=n})}function ConsecutiveWeeksRanked(){ConsecutiveWeeksWithinMaxRanking.call(this,9999999)}function ConsecutiveWeeksNo1(){ConsecutiveWeeksWithinMaxRanking.call(this,1)}function ConsecutiveWeeksTop5(){ConsecutiveWeeksWithinMaxRanking.call(this,5)}function ConsecutiveWeeksTop10(){ConsecutiveWeeksWithinMaxRanking.call(this,10)}function ConsecutiveWeeksTop15(){ConsecutiveWeeksWithinMaxRanking.call(this,15)}function ConsecutiveWeeksTop20(){ConsecutiveWeeksWithinMaxRanking.call(this,20)}function lowest_rank(e){return e.getUTCFullYear()<1989||1989==e.getUTCFullYear()&&e.getUTCMonth()<4?20:25}function WeekToWeekDetail(){this.detailText=function(e){var n=null==e.info.first.rank?"Unranked":"No. "+e.info.first.rank,t=null==e.info.last.rank?"Unranked":"No. "+e.info.last.rank;return n+" ("+UTIL.date.to_month_day_year(e.info.first.date)+") ⟶ "+t+" ("+UTIL.date.to_month_day_year(e.info.last.date)+")"},this.isBetter=function(e,n){return e.value>n.value}}function LargestRise(){WeekToWeekDetail.call(this),this.forSchool=function(n,t){var a=null,s=null;return n.get_sorted_seasons().forEach(function(e){n.each_for_team_in_season_asc(t,e,function(e){var n=null==e.rank?lowest_rank(e.date)+1:e.rank;if(null!=s){var t=null==s.rank?lowest_rank(s.date)+1:s.rank;n!=t&&(null==a||t-n>a.diff)&&(a={first:s,last:e,diff:t-n})}s=e})}),{value:a.diff,info:a}}}function LargestInSeasonRise(){WeekToWeekDetail.call(this),this.forSchool=function(n,t){var a=null,s=null;return n.get_sorted_seasons().forEach(function(e){n.each_for_team_in_season_asc(t,e,function(e){var n=null==e.rank?lowest_rank(e.date)+1:e.rank;if(null!=s&&e.season==s.season){var t=null==s.rank?lowest_rank(s.date)+1:s.rank;n!=t&&(null==a||t-n>a.diff)&&(a={first:s,last:e,diff:t-n})}s=e})}),{value:a.diff,info:a}}}function LargestFall(){WeekToWeekDetail.call(this),this.forSchool=function(n,t){var a=null,s=null;return n.get_sorted_seasons().forEach(function(e){n.each_for_team_in_season_asc(t,e,function(e){var n=null==e.rank?lowest_rank(e.date)+1:e.rank;if(null!=s){var t=null==s.rank?lowest_rank(s.date)+1:s.rank;e.rank!=s.rank&&(null==a||n-t>a.diff)&&(a={first:s,last:e,diff:n-t})}s=e})}),{value:a.diff,info:a}}}function LargestInSeasonFall(){WeekToWeekDetail.call(this),this.forSchool=function(n,t){var a=null,s=null;return n.get_sorted_seasons().forEach(function(e){n.each_for_team_in_season_asc(t,e,function(e){var n=null==e.rank?lowest_rank(e.date)+1:e.rank;if(null!=s&&e.season==s.season){var t=null==s.rank?lowest_rank(s.date)+1:s.rank;n!=t&&(null==a||n-t>a.diff)&&(a={first:s,last:e,diff:n-t})}s=e})}),{value:a.diff,info:a}}}function TotalSeasonsRanked(){var a=this;this.qualifies=function(e){return!0},this.forSchool=function(e,n){var t=new UTIL.Set;return e.each_for_team(n,function(e){a.qualifies(e)&&t.add(e.season)}),{value:t.size(),info:t.toArray()}},this.detailText=function(e){return e.info.backward().join("
")},this.isBetter=function(e,n){return e.value>n.value}}function TotalSeasonsRankedNo1(){TotalSeasonsRanked.call(this),this.qualifies=function(e){return 1==e.rank}}function TotalSeasonsRankedTop5(){TotalSeasonsRanked.call(this),this.qualifies=function(e){return e.rank<=5}}function TotalSeasonsRankedTop10(){TotalSeasonsRanked.call(this),this.qualifies=function(e){return e.rank<=10}}function TotalSeasonsRankedTop15(){TotalSeasonsRanked.call(this),this.qualifies=function(e){return e.rank<=15}}function TotalSeasonsRankedTop20(){TotalSeasonsRanked.call(this),this.qualifies=function(e){return e.rank<=20}}function TotalSeasonsRankedPreseason(){var o=this;this.qualifies=function(e){return!0},this.forSchool=function(n,t){var a=new UTIL.Set,s=new UTIL.Set;return n.get_sorted_seasons().forEach(function(e){n.each_for_team_in_season_asc(t,e,function(e){s.has(e.season)||(s.add(e.season),null!=e.rank&&o.qualifies(e)&&a.add(e.season))})}),{value:a.size(),info:a.toArray()}},this.detailText=function(e){return e.info.backward().join("
")},this.isBetter=function(e,n){return e.value>n.value}}function TotalSeasonsRankedPreseasonNo1(){TotalSeasonsRankedPreseason.call(this),this.qualifies=function(e){return 1==e.rank}}function TotalSeasonsRankedPreseasonTop5(){TotalSeasonsRankedPreseason.call(this),this.qualifies=function(e){return e.rank<=5}}function TotalSeasonsRankedPreseasonTop10(){TotalSeasonsRankedPreseason.call(this),this.qualifies=function(e){return e.rank<=10}}function TotalSeasonsRankedPreseasonTop15(){TotalSeasonsRankedPreseason.call(this),this.qualifies=function(e){return e.rank<=15}}function TotalSeasonsRankedPreseasonTop20(){TotalSeasonsRankedPreseason.call(this),this.qualifies=function(e){return e.rank<=20}}var registeredStats={"Best ranking":BestRanking,"Total weeks ranked":TotalWeeksRanked,"Total weeks ranked No. 1":TotalWeeksNo1,"Total weeks ranked Top 5":TotalWeeksTop5,"Total weeks ranked Top 10":TotalWeeksTop10,"Total weeks ranked Top 15":TotalWeeksTop15,"Total weeks ranked Top 20":TotalWeeksTop20,"Most consecutive weeks ranked":ConsecutiveWeeksRanked,"Most consecutive weeks ranked No. 1":ConsecutiveWeeksNo1,"Most consecutive weeks ranked Top 5":ConsecutiveWeeksTop5,"Most consecutive weeks ranked Top 10":ConsecutiveWeeksTop10,"Most consecutive weeks ranked Top 15":ConsecutiveWeeksTop15,"Most consecutive weeks ranked Top 20":ConsecutiveWeeksTop20,"Largest rise":LargestRise,"Largest in-season poll-to-poll rise":LargestInSeasonRise,"Largest fall":LargestFall,"Largest in-season poll-to-poll fall":LargestInSeasonFall,"Total seasons ranked":TotalSeasonsRanked,"Total seasons ranked No. 1":TotalSeasonsRankedNo1,"Total seasons ranked Top 5":TotalSeasonsRankedTop5,"Total seasons ranked Top 10":TotalSeasonsRankedTop10,"Total seasons ranked Top 15":TotalSeasonsRankedTop15,"Total seasons ranked Top 20":TotalSeasonsRankedTop20,"Total seasons ranked in preseason":TotalSeasonsRankedPreseason,"Total seasons ranked preseason No. 1":TotalSeasonsRankedPreseasonNo1,"Total seasons ranked preseason Top 5":TotalSeasonsRankedPreseasonTop5,"Total seasons ranked preseason Top 10":TotalSeasonsRankedPreseasonTop10,"Total seasons ranked preseason Top 15":TotalSeasonsRankedPreseasonTop15,"Total seasons ranked preseason Top 20":TotalSeasonsRankedPreseasonTop20};function populate_stats(e,n){for(var a=document.getElementById("stats").getElementsByTagName("table")[0];1").appendTo($(a)),$(" | ").text(e).appendTo($tr),$(" | ").text(t.value).appendTo($tr),$(" | ").html(n.detailText(t)).appendTo($tr)}),$("#stats").show()}function populate_view(e,n){switch($("#content").empty(),$("#content").hide(),$("#stats").hide(),$("#filters > div, #view-as").show(),$("#conference").show(),n.get("filter")){case"season":populate_by_season(e,n);break;case"ranking":populate_by_ranking(e,n);break;case"school":$("#conference").hide(),populate_by_school(e,n);break;default:$("#filters > div, #view-as").hide(),populate_stats(e,n)}}DATAGRAB(WQUERY(wdb.select_all(wdb.Rankings).where(wdb.Rankings.Poll.eq("AP")).order_desc(wdb.Rankings.Date).order_desc(wdb.Rankings.Poll).order_asc(wdb.Rankings.Ranking),wdb.select_all(wdb.Teams),wdb.select(wdb.Status.Status).where(wdb.Status.Type.eq("Rankings").and(wdb.Status.Current.eq("1"))),new SpinnerLoader("Gathering rankings data...")),!0,function(a){create_url_based_config({filter:new StringConfigurationItem("season"),season:new StringConfigurationItem(null),ranking:new IntegerConfigurationItem(null),school:new StringConfigurationItem(null),view:new StringConfigurationItem("grid"),conference:new StringConfigurationItem(null)}).add_config_change_callback(function(n,e){function t(e,n){$("#stats-message").hide(),initialize_selectors(e,n),populate_view(e,n)}RANKINGS.is_loaded()?t(RANKINGS,n):a.query(function(e){RANKINGS.load(e.values[0],e.values[1]),t(RANKINGS,n)},alert)})})Historical NCAAW AP Rankings
Filter by :
View:
Conference: