").html("This page cannot be displayed due to an internal error.")
));
});
// remove any capture list popup currently open.
$(".bt-wrapper").remove();
if ($('#sparklineImgId').get(0).tagName == 'CANVAS') {
$.getJSON("/__wb/sparkline", {
url: wbCurrentUrl, output:'json', collection: '23481'
},
function(data) {
wmMetaCapturesDates(data);
clear_canvas("sparklineImgId");
data = transformSparkline(data);
var $spkc = $('#sparklineImgId'), spkc = $spkc.get(0);
sparkline(data, imgWidth, imgHeight, spkc,
firstYear, selected_year);
});
} else {
$('#sparklineImgId').attr('src', "/__wb/sparkline?" + $.param({
url: wbCurrentUrl, width: imgWidth, height: imgHeight,
selected_year: selected_year, collection: '23481' }));
}
}
$().ready(function(){
$('#wbSearch form').submit(function() {
var url = $('#query_url').val();
if (url == '') {
$('#query_url').attr('placeholder', 'enter a web address');
} else {
document.location.href = wburl('*', url);
}
return false;
});
$("#year-labels").on('mouseover', 'a', mouseOnYear);
$("#wbChart").mouseout(function(){
showTrackers('none');
setActiveYear(selectedYear);
});
var $spk = $('#sparklineImgId'), spk = $spk.get(0);
if (!(spk.getContext && spk.getContext('2d'))) {
var $img = $('
').attr({
id: 'sparklineImgId', alt: 'sparkline',
width: imgWidth, height: imgHeight
})
.css({position:'absolute',zIndex:9012,top:0,left:0,border:'none'});
$spk.replaceWith($img);
$spk = $img;
}
$spk.mousemove(trackMouseMove).mouseover(function(){
showTrackers('inline');
});
render_sparkline_calendar(selectedYear);
$("#wm-graph-anchor").data('year', selectedYear);
setActiveYear(selectedYear);
$("#wm-graph-anchor").click(function() {
window.history.pushState("", "Archive-It Wayback Machine", $(this).attr('href'));
render_sparkline_calendar(selectedYear = $(this).data('year'));
});
$(document).on("mouseover", "div.bt-wrapper a", function() {
var ts = $(this).attr('data-ts');
var dt = __wbTs.timestamp2datetime(ts).toUTCString();
var $e = $("#wbLoading").empty().append(dt.link(wburl(ts)));
var why = $(this).attr('data-why');
if(why) {
$e.append(
" (why: ",
why.split(",").map(function(coll) {
return coll.link("http://archive.org/details/" + coll + "/");
}).join(", "),
")");
}
});
$('#wbCalendar').hoverIntent({
interval:60, timeout:2000, selector:'.captures',
over:function(){ $(this).btOn() },
out:function(){ if (!$(this).prop('keepopen')) { $(this).btOff() } }
});
$(document).hoverIntent({
interval:60, timeout:800, selector:'.bt-wrapper',
over:function(){ $('.bt-active').prop('keepopen', 1) },
out:function(){ $('.bt-active').prop('keepopen', 0).btOff(); }
});
});
Note: This calendar view maps the number of captures of https://www.consumerfinance.gov/complaint/, not how many times the site was actually updated.
Look Up URL in general Internet Archive web collection.