Commit 53400be 1 parent 34f02b7 commit 53400be Copy full SHA for 53400be
File tree 2 files changed +17
-23
lines changed
2 files changed +17
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ class Credits {
6
6
7
7
this . close_button = this . contianer . querySelector ( ".close" )
8
8
this . close_button . addEventListener ( "click" , this . hide . bind ( this ) )
9
+
10
+ // contact
11
+ this . contact_container = document . querySelector ( ".contact-container" )
12
+
13
+ this . contact_open_button = document . querySelector ( ".contact-open" )
14
+ this . contact_open_button . addEventListener ( "click" , this . showContactForm . bind ( this ) )
15
+
16
+ this . contact_close_button = this . container . querySelector ( ".contact-close" )
17
+ this . contact_close_button . addEventListener ( "click" , this . hideContactForm . bind ( this ) )
9
18
}
10
19
11
20
show ( ) {
@@ -15,4 +24,12 @@ class Credits {
15
24
hide ( ) {
16
25
this . contianer . style . top = null
17
26
}
27
+
28
+ showContactForm ( ) {
29
+ this . contact_container . style . display = null
30
+ }
31
+
32
+ hideContactForm ( ) {
33
+ this . contact_container . style . display = "none"
34
+ }
18
35
}
You can’t perform that action at this time.
0 commit comments