added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Ember from 'ember';
const {
$,
get,
Component,
run: { schedule }
} = Ember;
export default Component.extend({
didRender() {
this._super(...arguments);
schedule('afterRender', this, this.scrollToAnchor);
},
scrollToAnchor() {
const anchor = get(this, 'anchor');
if(anchor) {
const $anchorId = $(`#${anchor}`);
const $anchorClass = $(`.${anchor}`);
if($anchorId.length > 0) { $('body').animate({ scrollTop: $anchorId.offset().top }, 'slow'); }
if($anchorClass.length > 0) { $('body').animate({ scrollTop: $anchorClass.offset().top }, 'slow'); }
}
},
});