friendica_2021-01/view/theme/frio/js/mod_display.js

13 lines
296 B
JavaScript
Raw Normal View History

/**
* @brief Javascript for the display module
*/
// Catch the GUID from the URL
var itemGuid = window.location.pathname.split("/").pop();
var itemGuidSafe = itemGuid.replace(/%.*/, '');
$(window).load(function(){
// Scroll to the Item by its GUID
scrollToItem('item-' + itemGuidSafe);
});