File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6565
6666
6767 </ form >
68+ < button class ="cbutton cbutton--effect-radomir md-trigger " value ="Call " hidden ="true " data-modal ="modal-13 " id ="showModal "> </ button >
6869 < div class ="ptext ">
6970 < p > To Use:</ p >
7071 < p > Enter a username and click Log in button. If input turns green you are ready to receive/place a call.</ p >
9091 } ) ;
9192 phone . ready ( function ( ) { form . username . style . background = "#55ff5b" ; form . login_submit . hidden = "true" ; } ) ;
9293 phone . receive ( function ( session ) {
93- session . connected ( function ( session ) { video_out . appendChild ( session . video ) ; } ) ;
94+ session . connected ( function ( session ) { video_out . appendChild ( session . video ) ; showModal ( ) ; } ) ;
9495 session . ended ( function ( session ) { video_out . innerHTML = '' ; } ) ;
9596 } ) ;
9697 return false ;
9798}
98-
99+
99100function makeCall ( form ) {
100101 if ( ! window . phone ) alert ( "Login First!" ) ;
101102 else phone . dial ( form . number . value ) ;
102103 return false ;
103104}
105+
106+ function showModal ( ) {
107+ $ ( "#showModal" ) . click ( ) ;
108+ }
104109
105110</ script >
106111< script src ="js/modalEffects.js "> </ script >
You can’t perform that action at this time.
0 commit comments