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 1
1
'use strict' ;
2
2
3
3
window . 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
+
4
20
const data = JSON . parse ( document . getElementById ( 'swagger-data' ) . innerText ) ;
5
21
const ui = SwaggerUIBundle ( {
6
22
spec : data . spec ,
You can’t perform that action at this time.
0 commit comments