mirror of
https://github.com/friendica/friendica
synced 2024-12-27 07:22:21 +00:00
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
/**
|
|
* @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);
|
|
});
|