Changeset 688
- Timestamp:
- 2005-01-20 07:07:34 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AnnodexFirefoxExtension/trunk/chrome/afeview/content/afeview.js
r687 r688 748 748 href = href.replace(/\?t\=/, "#"); 749 749 750 var timeInSeconds = MediaEngine.getTimeInSeconds(); 750 // Store a URL with a timed URI 2 seconds before the user followed the 751 // hyperlink, so we get a bit of context back. (This improves usability 752 // for me, anyway ...) 753 var timeInSeconds = MediaEngine.getTimeInSeconds() - 2; 754 if (timeInSeconds < 0) timeInSeconds = 0; 751 755 var currentURL = document.location.href.replace(/#.*$/, "") + "#" + timeInSeconds; 752 756