Skip to content

Commit 36af271

Browse files
committed
Auto-show modal
1 parent 1326299 commit 36af271

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

minivid.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
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>
@@ -90,17 +91,21 @@
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+
99100
function 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>

0 commit comments

Comments
 (0)