forked from muaz-khan/WebRTC-Experiment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translator.js updated; and CDN is used for all static resources.
It is suggested to use CDN-based javascript files: <script src="//cdn.WebRTC-Experiment.com/RecordRTC.js"></script>
- Loading branch information
Showing
72 changed files
with
443 additions
and
2,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
<link rel="author" type="text/html" href="https://plus.google.com/+MuazKhan"> | ||
<meta name="author" content="Muaz Khan"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<link rel="stylesheet" href="//cdn.webrtc-experiment.com/style.css"> | ||
<script> | ||
var hash = window.location.hash.replace('#', ''); | ||
if (!hash.length) { | ||
|
@@ -17,149 +18,6 @@ | |
} | ||
</script> | ||
<style> | ||
@import url(https://fonts.googleapis.com/css?family=Inconsolata); | ||
|
||
html { background: #eee; } | ||
|
||
body { | ||
font-family: "Inconsolata", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace; | ||
font-size: 1.2em; | ||
line-height: 1.2em; | ||
margin: 0; | ||
} | ||
|
||
article, footer { | ||
display: block; | ||
max-width: 900px; | ||
min-width: 360px; | ||
width: 80%; | ||
} | ||
|
||
article { | ||
background: #fff; | ||
border: 1px solid; | ||
border-color: #ddd #aaa #aaa #ddd; | ||
margin: 2.5em auto 0 auto; | ||
padding: 2em; | ||
} | ||
|
||
h1 { margin-top: 0; } | ||
|
||
article p:first-of-type { margin-top: 1.6em; } | ||
|
||
article p:last-child { margin-bottom: 0; } | ||
|
||
footer { | ||
margin: 0 auto 2em auto; | ||
text-align: center; | ||
} | ||
|
||
footer a { | ||
color: #666; | ||
font-size: inherit; | ||
padding: 1em; | ||
text-decoration: none; | ||
text-shadow: 0 1px 1px #fff; | ||
} | ||
|
||
footer a:hover, footer a:focus { color: #111; } | ||
|
||
h1, h2 { | ||
border-bottom: 1px solid black; | ||
display: inline; | ||
font-weight: normal; | ||
line-height: 36px; | ||
padding: 0 0 3px 0; | ||
} | ||
|
||
a { | ||
color: #2844FA; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover, a:focus { color: #1B29A4; } | ||
|
||
a:active { color: #000; } | ||
|
||
:-moz-any-link:focus { | ||
border: 0; | ||
color: #000; | ||
} | ||
|
||
::selection { background: #ccc; } | ||
|
||
::-moz-selection { background: #ccc; } | ||
|
||
button, select { | ||
-moz-border-radius: 3px; | ||
-moz-transition: none; | ||
-webkit-transition: none; | ||
background: #0370ea; | ||
background: -moz-linear-gradient(top, #008dfd 0, #0370ea 100%); | ||
background: -webkit-linear-gradient(top, #008dfd 0, #0370ea 100%); | ||
border: 1px solid #076bd2; | ||
border-radius: 3px; | ||
color: #fff; | ||
display: inline-block; | ||
font-family: inherit; | ||
font-size: .8em; | ||
line-height: 1.3; | ||
padding: 5px 12px; | ||
text-align: center; | ||
text-shadow: 1px 1px 1px #076bd2; | ||
} | ||
|
||
button:hover { background: rgb(9, 147, 240); } | ||
|
||
button:active { background: rgb(10, 118, 190); } | ||
|
||
button[disabled] { | ||
background: none; | ||
border: 1px solid rgb(187, 181, 181); | ||
color: gray; | ||
text-shadow: none; | ||
} | ||
|
||
strong { | ||
color: rgb(204, 14, 14); | ||
font-family: inherit; | ||
font-weight: normal; | ||
} | ||
|
||
select { | ||
color: black; | ||
text-shadow: none; | ||
} | ||
|
||
td { vertical-align: top; } | ||
|
||
#chat-output div, #file-progress div { | ||
border: 1px solid black; | ||
border-bottom: 0; | ||
padding: .1em .4em; | ||
} | ||
|
||
input { | ||
border: 1px solid black; | ||
font-family: inherit; | ||
margin: .1em .3em; | ||
outline: none; | ||
padding: .1em .2em; | ||
width: 97%; | ||
} | ||
|
||
#chat-output, #file-progress { | ||
margin: 0 0 0 .4em; | ||
max-height: 12em; | ||
overflow: auto; | ||
} | ||
|
||
pre { | ||
border-left: 2px solid red; | ||
margin-left: 2em; | ||
padding-left: 1em; | ||
} | ||
|
||
section.user-id { | ||
float: left; | ||
overflow: hidden; | ||
|
@@ -182,8 +40,8 @@ | |
document.createElement('footer'); | ||
</script> | ||
|
||
<script src="https://www.webrtc-experiment.com/DataChannel.js"> </script> | ||
<script src="https://www.webrtc-experiment.com/firebase.js"> </script> | ||
<script src="//cdn.webrtc-experiment.com/DataChannel.js"> </script> | ||
<script src="//cdn.webrtc-experiment.com/firebase.js"> </script> | ||
</head> | ||
|
||
<body> | ||
|
@@ -195,16 +53,29 @@ | |
|
||
<h1>Auto Session Establishment using <a href="https://github.com/muaz-khan/WebRTC-Experiment/tree/master/DataChannel" | ||
target="_blank">DataChannel.js</a> | ||
|
||
</h1> | ||
|
||
<p> | ||
<span>Copyright © 2014</span> | ||
<a href="https://github.com/muaz-khan" target="_blank">Muaz Khan</a><span><</span><a | ||
href="http://twitter.com/muazkh" target="_blank">@muazkh</a><span>>.</span> | ||
</p> | ||
<section class="plusone-gplus"> | ||
<div class="g-plusone" data-href="https://www.webrtc-experiment.com/"></div> | ||
</section> | ||
|
||
<div class="github-stargazers"></div> | ||
|
||
<p> | ||
<a href="https://www.webrtc-experiment.com/">HOME</a> | ||
<span> © </span> | ||
<a href="http://www.MuazKhan.com/" target="_blank">Muaz Khan</a> | ||
|
||
. | ||
<a href="http://twitter.com/WebRTCWeb" target="_blank" title="Twitter profile for WebRTC Experiments">@WebRTCWeb</a> | ||
|
||
. | ||
<a href="https://github.com/muaz-khan?tab=repositories" target="_blank" title="Github Profile">Github</a> | ||
|
||
. | ||
<a href="https://github.com/muaz-khan/WebRTC-Experiment/issues?state=open" target="_blank">Latest issues</a> | ||
|
||
. | ||
<a href="https://github.com/muaz-khan/WebRTC-Experiment/commits/master" target="_blank">What's New?</a> | ||
</p> | ||
|
||
<table style="border-left: 1px solid black; width: 100%;"> | ||
<tr> | ||
<td> | ||
|
@@ -214,7 +85,7 @@ <h2 style="display: block; font-size: 1em; text-align: center;">Text Chat</h2> | |
|
||
<input type="text" id="user-id" style="font-size: 1.2em; margin-right: 0; width: 5em;" placeholder="all" | ||
disabled title="Enter user-id to send direct messages."> | ||
<input type="text" id="chat-input" style="font-size: 1.2em; margin-left: -.5em; width: 20em;" | ||
<input type="text" id="chat-input" style="font-size: 1.2em; margin-left: -.5em; width: 18em;" | ||
placeholder="chat message" disabled> | ||
</td> | ||
<td style="background: white; border-left: 1px solid black;"> | ||
|
@@ -316,7 +187,7 @@ <h2 style="display: block; font-size: 1em; text-align: center;">Share Files</h2> | |
<h2>Getting started with WebRTC <a href="https://github.com/muaz-khan/WebRTC-Experiment/tree/master/DataChannel" | ||
target="_blank">DataChannel</a></h2> | ||
<pre> | ||
<script src="<a href="https://www.webrtc-experiment.com/DataChannel.js" target="_blank">//www.webrtc-experiment.com/DataChannel.js</a>"></script> | ||
<script src="//cdn.webrtc-experiment.com/DataChannel.js"></script> | ||
<script> | ||
var channel = new <strong>DataChannel</strong>('default-channel'); | ||
|
||
|
@@ -462,17 +333,22 @@ <h2 id="feedback" style="border-bottom: 1px solid rgb(189, 189, 189); padding: . | |
</div> | ||
<button id="send-message" style="font-size: 1em;">Send Message</button> | ||
</section> | ||
|
||
<section class="experiment own-widgets latest-commits"> | ||
<h2 class="header" id="updates" style="color: red; padding-bottom: .1em;"><a href="https://github.com/muaz-khan/WebRTC-Experiment/commits/master" target="_blank">Latest Updates</a></h2> | ||
<div id="github-commits"></div> | ||
</section> | ||
</article> | ||
|
||
<a href="https://github.com/muaz-khan/WebRTC-Experiment/tree/master/DataChannel" class="fork-left"></a> | ||
|
||
<footer> | ||
<p> | ||
<a href="https://www.webrtc-experiment.com/" target="_blank">WebRTC Experiments!</a>© | ||
<a href="https://plus.google.com/100325991024054712503" rel="author" target="_blank">Muaz Khan</a>, | ||
<span>2014 </span>» | ||
<a href="mailto:[email protected]" target="_blank">Email</a>» | ||
<a href="http://twitter.com/muazkh" target="_blank">@muazkh</a>» | ||
<a href="https://github.com/muaz-khan" target="_blank">Github</a> | ||
<a href="https://www.webrtc-experiment.com/">WebRTC Experiments</a> | ||
© <a href="https://plus.google.com/+MuazKhan" rel="author" target="_blank">Muaz Khan</a> | ||
<a href="mailto:[email protected]" target="_blank">[email protected]</a> | ||
</p> | ||
</footer> | ||
<script src="https://www.webrtc-experiment.com/common.js"> </script> | ||
<script src="//cdn.webrtc-experiment.com/commits.js"> </script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.