aboutsummaryrefslogtreecommitdiff
path: root/src/components/flash
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/flash')
-rw-r--r--src/components/flash/flash.js16
-rw-r--r--src/components/flash/flash.vue15
2 files changed, 31 insertions, 0 deletions
diff --git a/src/components/flash/flash.js b/src/components/flash/flash.js
new file mode 100644
index 00000000..f768ead8
--- /dev/null
+++ b/src/components/flash/flash.js
@@ -0,0 +1,16 @@
+const Flash = {
+ props: [
+ 'src'
+ ],
+ created: function () {
+ this.$nextTick(function () {
+ const ruffle = window.RufflePlayer.newest()
+ const player = ruffle.createPlayer()
+ const container = this.$refs.cunt
+ container.appendChild(player)
+ player.load(this.src)
+ })
+ }
+}
+
+export default Flash
diff --git a/src/components/flash/flash.vue b/src/components/flash/flash.vue
new file mode 100644
index 00000000..510fe6d2
--- /dev/null
+++ b/src/components/flash/flash.vue
@@ -0,0 +1,15 @@
+<template>
+ <div
+ class="Flash"
+ ref="cunt"
+ />
+</template>
+
+<script src="./flash.js"></script>
+
+<style lang="scss">
+@import '../../_variables.scss';
+.Flash {
+ display: block;
+}
+</style>