]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/js/mod_display.js
Merge pull request #3251 from rabuzarus/20170320_-_fix_fbrowser
[friendica.git] / view / theme / frio / js / mod_display.js
1 /**
2  * @brief Javascript for the display module
3  */
4
5 // Catch the GUID from the URL
6 var itemGuid = window.location.pathname.split("/").pop();
7 var itemGuidSafe = itemGuid.replace(/%.*/, '');
8
9 $(window).load(function(){
10         // Scroll to the Item by its GUID
11         scrollToItem('item-' + itemGuidSafe);
12 });