-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.json
6 lines (6 loc) · 6.04 KB
/
params.json
1
2
3
4
5
6
{
"name": "Jprepo",
"tagline": "",
"body": "<!DOCTYPE html>\r\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/html\">\r\n<head>\r\n <title>PubRTC + Mobile</title>\r\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n\r\n \r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheets/style.css\" />\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"fonts/font-awesome-4.3.0/css/font-awesome.min.css\" />\r\n <script src=\"js/modernizr.custom.js\"></script>\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/normalize.css\" />\r\n\r\n\r\n \r\n</head>\r\n<body>\r\n<div class = \"bodyDiv\">\r\n \r\n <div class=\"md-modal md-effect-13\" id=\"modal-13\">\r\n\t\t\t<div class=\"md-content\">\r\n\t\t\t\t<div>\r\n\t <div id=\"vid-box\"></div>\r\n <button class=\"md-close\">\r\n <i class=\"md-close fa fa-times-circle-o\"></i>\r\n </button>\r\n \r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n </div>\r\n \r\n \r\n <form name=\"loginForm\" id=\"login\" action=\"#\" onsubmit=\"return errWrap(login,this);\">\r\n <span class=\"input input--nao\">\r\n <input class=\"input__field input__field--nao\" type=\"text\" name=\"username\" id=\"username\" placeholder=\"Enter A Username\"/>\r\n <label class=\"input__label input__label--nao\" for=\"username\">\r\n <span class=\"input__label-content input__label-content--nao\"> \r\n </span>\r\n </label>\r\n <svg class=\"graphic graphic--nao\" width=\"300%\" height=\"100%\" viewBox=\"0 0 1200 60\" preserveAspectRatio=\"none\">\r\n <path d=\"M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0\"/>\r\n </svg>\r\n </span>\r\n \r\n <button class=\"cbutton cbutton--effect-radomir\" type=\"submit\" name=\"login_submit\" value=\"Log In\" style=\"margin-top: 40px; margin-left:-10px\">\r\n\t\t\t\t\t\t<i class=\"cbutton__icon fa fa-fw fa fa-sign-in\"></i>\r\n\t\t\t\t</button>\r\n </form>\r\n\r\n\t<form name=\"callForm\" id=\"call\" action=\"#\" onsubmit=\"return errWrap(makeCall,this);\">\r\n <span class=\"input input--nao\">\r\n <input class=\"input__field input__field--nao\" type=\"text\" name=\"number\" id=\"call\" placeholder=\"Enter User To Call!\"/>\r\n\t\t\t\t\t<label class=\"input__label input__label--nao\" for=\"number\">\r\n\t\t\t\t\t\t<span class=\"input__label-content input__label-content--nao\"> \r\n </span>\r\n\t\t\t\t\t</label>\r\n\t\t\t\t<svg class=\"graphic graphic--nao\" width=\"300%\" height=\"100%\" viewBox=\"0 0 1200 60\" preserveAspectRatio=\"none\">\r\n\t\t\t\t <path d=\"M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0\"/>\r\n\t\t\t\t</svg>\r\n </span>\r\n \r\n <button class=\"cbutton cbutton--effect-radomir md-trigger\" type=\"submit\" value=\"Call\" style=\"margin-top: 40px; margin-left:-10px\" data-modal=\"modal-13\">\r\n <i class=\"cbutton__icon fa fa-fw fa fa fa-phone-square\"></i>\r\n </button>\r\n\r\n \r\n\t</form>\r\n <button class=\"cbutton cbutton--effect-radomir md-trigger\" value=\"Call\" hidden=\"true\" data-modal=\"modal-13\" id=\"showModal\"></button>\r\n\t<div class=\"ptext\">\r\n <p>To Use:</p>\r\n <p>Enter a username and click Log in button. If input turns green you are ready to receive/place a call.</p>\r\n <p>In a separate browser window, log in with a different username, and place a call to the first.</p>\r\n </div>\r\n\r\n \r\n</div>\r\n</body>\r\n\r\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></script>\r\n<script src=\"https://cdn.pubnub.com/pubnub.min.js\"></script>\r\n<script src=\"js/webrtc.js\"></script>\r\n<script type=\"text/javascript\">\r\nvar video_out = document.getElementById(\"vid-box\");\r\nfunction login(form) {\r\n\tvar phone = window.phone = PHONE({\r\n\t number : form.username.value || \"Anonymous\", // listen on username line else Anonymous\r\n\t publish_key : 'pub-c-561a7378-fa06-4c50-a331-5c0056d0163c', // Your Pub Key\r\n\t subscribe_key : 'sub-c-17b7db8a-3915-11e4-9868-02ee2ddab7fe', // Your Sub Key\r\n\t});\t\r\n\tphone.ready(function(){form.username.style.background=\"#55ff5b\"; form.login_submit.hidden=\"true\"; });\r\n\tphone.receive(function(session){\r\n\t session.connected(function(session) { video_out.appendChild(session.video); showModal();});\r\n\t session.ended(function(session) { video_out.innerHTML=''; });\r\n\t});\r\n\treturn false;\r\n}\r\n \r\nfunction makeCall(form){\r\n\tif (!window.phone) alert(\"Login First!\");\r\n\telse phone.dial(form.number.value);\r\n\treturn false;\r\n}\r\n \r\nfunction showModal(){\r\n $(\"#showModal\").click();\r\n}\r\nfunction errWrap(fxn, form){\r\n\ttry {\r\n\t\treturn fxn(form);\r\n\t} catch(err) {\r\n\t\talert(\"WebRTC is currently only supported by Chrome, Opera, and Firefox\");\r\n\t\treturn false;\r\n\t}\r\n}\r\n</script>\r\n<script src=\"js/modalEffects.js\"></script>\r\n<script src=\"js/classie.js\"></script>\r\n<script>\r\n\t(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\r\n\t\t\t(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new\r\n\t\tDate();a=s.createElement(o),\r\n\t\tm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n\t})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\r\n\tga('create', 'UA-46933211-3', 'auto');\r\n\tga('send', 'pageview');\r\n</script>\r\n\r\n</html>",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}