Hi,
I made a Landing-Page which uses its own Pagetemplate and hides the
storyriver: https://szen.io/Grid/
The grid can be restructured by setting a tag to filter content.
When a user triggers this action, it would be great to scroll to the
top of the Webpage automatically.
How can I do this?
Best wishes Jan
Hi,
I tried to build a widget, but so far it wont work.
|
/*\
title: $:/core/modules/macros/totop.js
type: application/javascript
module-type: macro
Macro that scrolls to the top
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Information about this macro
*/
exports.name = "totop";
exports.params = [
];
/*
Run the macro
*/
exports.run = function() {
var totopp = window.scrollTo({ top: 0, behavior: 'smooth' });
totopp;
}
})();|
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5EA48391.3090700%40googlemail.com.