File tree Expand file tree Collapse file tree 4 files changed +162
-133
lines changed
src/Bridge/Symfony/Bundle/Resources Expand file tree Collapse file tree 4 files changed +162
-133
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33window . onload = ( ) => {
4+ const webby = document . getElementsByClassName ( 'webby' ) [ 0 ] ;
5+ const web = document . getElementsByClassName ( 'web' ) [ 0 ] ;
6+ webby . classList . add ( 'calm' ) ;
7+ web . classList . add ( 'calm' ) ;
8+ webby . addEventListener ( 'click' , ( ) => {
9+ if ( webby . classList . contains ( 'frighten' ) ) {
10+ return ;
11+ }
12+ webby . classList . replace ( 'calm' , 'frighten' ) ;
13+ web . classList . replace ( 'calm' , 'frighten' ) ;
14+ setTimeout ( ( ) => {
15+ webby . classList . replace ( 'frighten' , 'calm' ) ;
16+ web . classList . replace ( 'frighten' , 'calm' ) ;
17+ } , 10000 ) ;
18+ } ) ;
19+
420 const data = JSON . parse ( document . getElementById ( 'swagger-data' ) . innerText ) ;
521 const ui = SwaggerUIBundle ( {
622 spec : data . spec ,
You can’t perform that action at this time.
0 commit comments