diff --git a/img/options/create-codecombat-goblinhoc.png b/img/options/create-codecombat-goblinhoc.png new file mode 100644 index 0000000..8589182 Binary files /dev/null and b/img/options/create-codecombat-goblinhoc.png differ diff --git a/img/options/create-codecombat-hoc.png b/img/options/create-codecombat-hoc.png index bde35b2..7477857 100644 Binary files a/img/options/create-codecombat-hoc.png and b/img/options/create-codecombat-hoc.png differ diff --git a/img/options/create-codecombat-kithgard.png b/img/options/create-codecombat-kithgard.png index 00cbd42..bd26c9d 100644 Binary files a/img/options/create-codecombat-kithgard.png and b/img/options/create-codecombat-kithgard.png differ diff --git a/img/options/create-mindmakers.png b/img/options/create-mindmakers.png index ef9817e..a3b9c4a 100644 Binary files a/img/options/create-mindmakers.png and b/img/options/create-mindmakers.png differ diff --git a/img/options/jr-tate-draw.png b/img/options/jr-tate-draw.png index c2f2355..437547e 100644 Binary files a/img/options/jr-tate-draw.png and b/img/options/jr-tate-draw.png differ diff --git a/img/options/jr-tate-paint.png b/img/options/jr-tate-paint.png index 5aa8e3c..a3f93e0 100644 Binary files a/img/options/jr-tate-paint.png and b/img/options/jr-tate-paint.png differ diff --git a/index.html b/index.html index af03832..7623f9b 100644 --- a/index.html +++ b/index.html @@ -79,12 +79,12 @@ @@ -139,54 +163,13 @@ x-transition:leave-end="opacity-0 transform scale-90" >
- - -
@@ -219,59 +214,6 @@ + - \ No newline at end of file diff --git a/js/carousel.js b/js/carousel.js new file mode 100644 index 0000000..46ae142 --- /dev/null +++ b/js/carousel.js @@ -0,0 +1,50 @@ +function carousel() { + return { + active: 0, + init() { + var flkty = new Flickity(this.$refs.carousel, { + wrapAround: true + }); + flkty.on('change', i => this.active = i); + } + } + } + + function carouselFilter() { + return { + active: 0, + changeActive(i) { + this.active = i; + + this.$nextTick(() => { + let flkty = Flickity.data( this.$el.querySelectorAll('.carousel')[i] ); + flkty.resize(); + + console.log(flkty); + }); + } + } + } + + function openFullscreen() { + elem = document.body; + if (elem.requestFullscreen) { + elem.requestFullscreen(); + } else if (elem.webkitRequestFullscreen) { /* Safari */ + elem.webkitRequestFullscreen(); + } else if (elem.msRequestFullscreen) { /* IE11 */ + elem.msRequestFullscreen(); + } + } + + + + Array.from(document.querySelectorAll('img.options')).forEach((ele)=>{ + ele.addEventListener('click',()=>{ + // openFullscreen(); + abc = window.open(ele.dataset.href,'_blank',`height=${screen.height},width=${screen.width}`); + // setTimeout(()=>{ + // abc.location.reload(); + // },2000) + }) + }) \ No newline at end of file