Add tests in iframe, fix loading in iframes
This commit is contained in:
parent
8bb9f0768c
commit
2572e99b95
3 changed files with 4 additions and 17 deletions
14
test.ts
14
test.ts
|
@ -1,15 +1 @@
|
|||
//*
|
||||
|
||||
import {ImageCarousel} from "./UI/Image/ImageCarousel";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
|
||||
const images = new UIEventSource<{ url: string, key: string }[]>(
|
||||
[{url: "https://2.bp.blogspot.com/-fQiZkz9Zlzg/T_xe2X2Ia3I/AAAAAAAAA0Q/VPS8Mb8xtIQ/s1600/cat+15.jpg", key: "image:1"},
|
||||
{
|
||||
url: "https://www.mapillary.com/map/im/VEOhKqPcJMuT4F2olz_wHQ",
|
||||
key: "mapillary"
|
||||
},
|
||||
{url: "https://i.imgur.com/mWlghx0.jpg", key: "image:1"}])
|
||||
new ImageCarousel(images, new UIEventSource<any>({"image:1":"https://2.bp.blogspot.com/-fQiZkz9Zlzg/T_xe2X2Ia3I/AAAAAAAAA0Q/VPS8Mb8xtIQ/s1600/cat+15.jpg"}))
|
||||
.AttachTo("maindiv")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue