/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /* global window, document */ import { scrollViewportToShowTarget } from '../../../src/dom/scroll'; document.getElementById( 'scroll' ).addEventListener( 'click', () => { const target = window.frames[ 0 ].document.querySelector( '#target' ); scrollViewportToShowTarget( { target } ); } );