File tree Expand file tree Collapse file tree 4 files changed +120
-3
lines changed Expand file tree Collapse file tree 4 files changed +120
-3
lines changed Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
2
2
3
3
group = " jp.ikanoshiokara"
4
- version = " 2.0 .0"
4
+ version = " 2.1 .0"
5
5
6
6
repositories {
7
7
google()
Original file line number Diff line number Diff line change
1
+ /* KEYFRAMES */
2
+ @keyframes pulse {
3
+ from {
4
+ opacity : 1 ;
5
+ transform : scale (1 );
6
+ }
7
+ to {
8
+ opacity : .25 ;
9
+ transform : scale (.75 );
10
+ }
11
+ }
12
+
13
+ /* GRID STYLING */
14
+ .spinner-box {
15
+ height : 300px ;
16
+ display : flex;
17
+ justify-content : center;
18
+ align-items : center;
19
+ background-color : transparent;
20
+ }
21
+
22
+ /* PULSE BUBBLES */
23
+
24
+ .pulse-container {
25
+ width : 120px ;
26
+ display : flex;
27
+ justify-content : space-between;
28
+ align-items : center;
29
+ }
30
+
31
+ .pulse-bubble {
32
+ width : 20px ;
33
+ height : 20px ;
34
+ border-radius : 50% ;
35
+ background-color : # 3ff9dc ;
36
+ }
37
+
38
+ .pulse-bubble-1 {
39
+ animation : pulse .4s ease 0s infinite alternate;
40
+ }
41
+ .pulse-bubble-2 {
42
+ animation : pulse .4s ease .2s infinite alternate;
43
+ }
44
+ .pulse-bubble-3 {
45
+ animation : pulse .4s ease .4s infinite alternate;
46
+ }
47
+
48
+ .loading {
49
+ width : 100% ;
50
+ height : 100% ;
51
+
52
+ display : flex;
53
+ justify-content : center;
54
+ align-items : center;
55
+ }
56
+
57
+ .waiting {
58
+ margin : auto;
59
+ }
60
+
61
+ .waiting p {
62
+ margin-left : 4px ;
63
+ margin-right : 4px ;
64
+
65
+ color : whitesmoke;
66
+
67
+ font-family : 'Andika' , serif;
68
+ font-style : normal;
69
+ font-weight : bold;
70
+ text-align : center;
71
+ }
72
+
73
+ .no-wasm-gc {
74
+ display : none;
75
+ }
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
- < title > kota-shiokara's portfolio</ title >
5
+ <!-- <title>kota-shiokara's portfolio</title>-- >
6
6
< link rel ="icon " href ="https://avatars.githubusercontent.com/u/50353938?s=96&v=4 ">
7
7
< link rel ="apple-touch-icon " href ="img/apple-touch-icon-180x180.png " sizes ="180x180 ">
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
9
9
10
+ < link rel ="stylesheet " href ="animation.css "/>
11
+ < style >
12
+ html , body {
13
+ width : 100% ;
14
+ height : 100% ;
15
+ margin : 0 ;
16
+ padding : 0 ;
17
+ background-color : # F5B1AA ;
18
+ overflow : hidden;
19
+ }
20
+ </ style >
21
+
10
22
< script type ="application/javascript " src ="skiko.js "> </ script >
11
23
< script type ="application/javascript " src ="kota-shiokara.github.io.js "> </ script >
12
24
</ head >
13
25
< body >
26
+ < div class ="loading " id ="loading ">
27
+ < div class ="waiting " id ="waiting ">
28
+ < p class ="instruction-text "> Welcome to kota-shiokara's portfolio!</ p >
29
+ < p class ="instruction-text "> このページはWebAssemblyの初期化後表示されます。</ p >
30
+ < p class ="instruction-text "> This page will begin shortly after WebAssembly component has been initialized.</ p >
31
+ < div class ="spinner-box ">
32
+ < div class ="pulse-container ">
33
+ < div class ="pulse-bubble pulse-bubble-1 "> </ div >
34
+ < div class ="pulse-bubble pulse-bubble-2 "> </ div >
35
+ < div class ="pulse-bubble pulse-bubble-3 "> </ div >
36
+ </ div >
37
+ </ div >
38
+ </ div >
39
+ < div class ="no-wasm-gc " id ="no-wasm-gc ">
40
+ < p class ="instruction-text "> Oops! Failed to load Wasm-GC. Please follow these < a href ="https://kotlinlang.org/docs/wasm-get-started.html#troubleshooting " > instructions</ a > to enable wasm-gc in your browser, or use the < a href ="../js "> js</ a > site</ p >
41
+ </ div >
42
+ </ div >
14
43
< canvas id ="ComposeTarget "> </ canvas >
15
44
</ body >
16
45
</ html >
Original file line number Diff line number Diff line change @@ -2,4 +2,17 @@ import { instantiate } from './kota-shiokara.github.io.uninstantiated.mjs';
2
2
3
3
await wasmSetup ;
4
4
5
- instantiate ( { skia : Module [ 'asm' ] } ) ;
5
+ let te = null ;
6
+ try {
7
+ await instantiate ( { skia : Module [ 'asm' ] } ) ;
8
+ } catch ( e ) {
9
+ te = e ;
10
+ }
11
+
12
+ if ( te == null ) {
13
+ document . getElementById ( "loading" ) . style . display = "none" ;
14
+ document . getElementById ( "loading" ) . style . visibility = "hidden" ;
15
+ } else {
16
+ document . getElementById ( "waiting" ) . style . display = "none" ;
17
+ document . getElementById ( "no-wasm-gc" ) . style . display = "block" ;
18
+ }
You can’t perform that action at this time.
0 commit comments