forked from MapComplete/MapComplete
Small fixes to the Slideshow
This commit is contained in:
parent
d443c7ecb0
commit
7b52dee320
6 changed files with 36 additions and 22 deletions
17
test.ts
17
test.ts
|
@ -5,8 +5,23 @@ import {UIEventSource} from "./Logic/UIEventSource";
|
|||
import TagRenderingConfig from "./Customizations/JSON/TagRenderingConfig";
|
||||
import State from "./State";
|
||||
import TagRenderingQuestion from "./UI/Popup/TagRenderingQuestion";
|
||||
import {SlideShow} from "./UI/Image/SlideShow";
|
||||
import {FixedUiElement} from "./UI/Base/FixedUiElement";
|
||||
import Img from "./UI/Base/Img";
|
||||
import {ImgurImage} from "./UI/Image/ImgurImage";
|
||||
|
||||
|
||||
function TestSlideshow(){
|
||||
const elems = new UIEventSource([
|
||||
new FixedUiElement("A"),
|
||||
new FixedUiElement("qmsldkfjqmlsdkjfmqlskdjfmqlksdf").SetClass("text-xl"),
|
||||
new Img("https://i.imgur.com/8lIQ5Hv.jpg"),
|
||||
new ImgurImage("https://i.imgur.com/y5XudzW.jpg"),
|
||||
new Img("https://www.grunge.com/img/gallery/the-real-reason-your-cat-sleeps-so-much/intro-1601496900.webp")
|
||||
])
|
||||
new SlideShow(elems).AttachTo("maindiv")
|
||||
}
|
||||
|
||||
function TestTagRendering(){
|
||||
State.state = new State(undefined)
|
||||
const tagsSource = new UIEventSource({
|
||||
|
@ -47,4 +62,4 @@ function TestAllInputMethods(){
|
|||
}
|
||||
|
||||
|
||||
TestTagRendering()
|
||||
TestSlideshow()
|
Loading…
Add table
Add a link
Reference in a new issue