Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 36af271

Browse filesBrowse files
committed
Auto-show modal
1 parent 1326299 commit 36af271
Copy full SHA for 36af271

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Collapse file

‎minivid.html‎

Copy file name to clipboardExpand all lines: minivid.html
+7-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.