2020-10-20 10:25:04 +00:00
|
|
|
import {ElemJS} from "../static/basic.js?static=4212436742"
|
2020-10-19 05:37:17 +00:00
|
|
|
|
|
|
|
class Anchor extends ElemJS {
|
|
|
|
constructor() {
|
|
|
|
super("div")
|
|
|
|
this.class("c-anchor")
|
|
|
|
}
|
|
|
|
|
|
|
|
scroll() {
|
2020-10-19 07:20:08 +00:00
|
|
|
// console.log("anchor scrolled")
|
2020-10-19 05:37:17 +00:00
|
|
|
this.element.scrollIntoView({block: "start"})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export {Anchor}
|