ffmpeg-mappable-media/docs/source/API/API/js/permalink.js
Romain Neutron 8423c26356 Update API doc
2014-08-12 21:01:07 +02:00

17 lines
430 B
JavaScript

jQuery(document).ready(
function () {
var hash = window.location.hash.replace(/^#/, '');
if (hash) {
jQuery('#main-frame').attr('src', hash);
if (history.pushState) {
history.pushState(
'',
document.title,
window.location.pathname + window.location.search
);
}
}
}
);