blob: 11a845dae72675a7e4d70ac2c88f83d24434ab25 [file] [log] [blame]
import './index';
import { $$ } from 'common-sk/modules/dom';
import { ImageCompareSk } from './image-compare-sk';
const aDigest = '6246b773851984c726cb2e1cb13510c2';
const bDigest = '99c58c7002073346ff55f446d47d6311';
let ele = new ImageCompareSk();
ele.left = {
digest: aDigest,
title: 'a digest title',
detail: 'example.com#aDigest',
};
ele.right = {
digest: bDigest,
title: 'the other image',
detail: 'example.com#bDigest',
};
$$('#normal')!.appendChild(ele);
ele = new ImageCompareSk();
ele.left = {
digest: aDigest,
title: 'a digest title',
detail: 'example.com#aDigest',
};
$$('#no_right')!.appendChild(ele);
ele = new ImageCompareSk();
ele.left = {
digest: aDigest,
title: 'a digest title',
detail: 'example.com#aDigest',
};
ele.right = {
digest: bDigest,
title: 'the other image',
detail: 'example.com#bDigest',
};
ele.fullSizeImages = true;
$$('#full_size_images')!.appendChild(ele);