File tree Expand file tree Collapse file tree 4 files changed +26
-8
lines changed
Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1+ import ready from '../mastodon/ready' ;
2+
3+ ready ( ( ) => {
4+ const image = document . querySelector ( 'img' ) ;
5+
6+ image . addEventListener ( 'mouseenter' , ( ) => {
7+ image . src = '/oops.gif' ;
8+ } ) ;
9+
10+ image . addEventListener ( 'mouseleave' , ( ) => {
11+ image . src = '/oops.png' ;
12+ } ) ;
13+ } ) ;
Original file line number Diff line number Diff line change @@ -100,12 +100,14 @@ body {
100100 vertical-align : middle ;
101101 margin : 20px ;
102102
103- img {
104- display : block ;
105- max-width : 470px ;
106- width : 100% ;
107- height : auto ;
108- margin-top : -120px ;
103+ & __illustration {
104+ img {
105+ display : block ;
106+ max-width : 470px ;
107+ width : 100% ;
108+ height : auto ;
109+ margin-top : -120px ;
110+ }
109111 }
110112
111113 h1 {
Original file line number Diff line number Diff line change 77 %meta{ content: 'width=device-width,initial-scale=1', name: 'viewport' }/
88 = stylesheet_pack_tag 'common', media: 'all'
99 = stylesheet_pack_tag Setting.default_settings['theme'], media: 'all'
10+ = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
11+ = javascript_pack_tag 'error', integrity: true, crossorigin: 'anonymous'
1012 %body.error
1113 .dialog
12- %img{ alt: Setting.default_settings['site_title'], src: '/oops.gif' }/
13- %div
14+ .dialog__illustration
15+ %img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/
16+ .dialog__message
1417 %h1 = yield :content
You can’t perform that action at this time.
0 commit comments