Commit 80f3cc0c authored by Steve Johnson's avatar Steve Johnson

Added Chromecast testpage launcher

parent bb6e23bc
/*
html, body, #wrapper {
height:100%;
width: 100%;
margin: 0;
padding: 0;
border: 0;
}
#wrapper td {
vertical-align: middle;
text-align: center;
}
input {
font-family: "Arial", Arial, sans-serif;
font-size: 40px;
font-weight: bold;
}
.border {
border: 2px solid #cccccc;
border-radius: 5px;
}
.border:focus {
outline: none;
border-color: #8ecaed;
box-shadow: 0 0 5px #8ecaed;
}
*/
body
{
margin: 0;
padding: 0;
overflow: hidden;
border: none;
max-height: 100%;
height: 100%;
xmax-height: 548px;
font-family:"Arial", "Helvetica", sans-serif;
}
#label {
font-size: 125%;
border: solid 1px black;
margin: 50px;
padding: 20px;
background-color: white;
}
.lnk
{
font-size: 14px;
color: #0B5199;
text-decoration: none;
}
.rcFrame
{
width: 100%;
height: 100%;
min-width: 100%;
min-height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
border: none;
max-height: 568px !important;
}
#remoteContainer
{
margin: 0;
padding: 0;
overflow: hidden;
border: none;
xmax-height: 568px !important;
}
body
{
margin: 0;
padding: 0;
overflow: hidden;
border: none;
}
#helpButton
{
position: absolute;
opacity: .4;
z-index: 500;
xtop: 400px;
xleft: 290px;
}
#helpDialog
{
border-radius: 10px;
xbackground-color: rgba(35, 50, 96, 0.85);
xbackground-color: gray;
xbackground-image: -webkit-gradient(linear, left top, left bottom, from(rgba(150, 150, 170, 0.85)), to(rgba(18, 29, 68, 0.85)), color-stop(0.15, rgba(77, 85, 119, 0.85)), color-stop(0.15, rgba(35, 50, 96, 0.85)));
xbackground-image: linear-gradient(to bottom, rgba(230, 230, 240, 0.85) 0%, rgba(77, 85, 119, 0.85) 15%, rgba(35, 50, 96, 0.85) 15%, rgba(18, 29, 68, 0.85) 100%);
xbackground: #fff;
background: -webkit-gradient(linear, left top, left bottom, from(#fcfcff), to(#dedede));
border: 4px solid #bac1d3;
border-top-color: #eaeaf2;
border-bottom-color: #a9b0c2;
-webkit-box-shadow: 0 3px 2px #000000;
box-shadow: 0 3px 2px #000000;
color: white;
min-height: 200px;
padding: 0;
z-index: 800;
}
#dialogContainer {
border-radius: 8px;
margin: 0;
padding: 0;
border: none;
color: black;
xoverflow: hidden;
xoverflow-y: scroll;
max-height: 400px;
width: 100%;
xbackground-color: yellow;
}
#dialogHeader {
margin-top: 0px;
background: -webkit-gradient(linear, left top, left bottom, from(#4c5cff), to(#1e2ede));
border-top-left-radius: 8px;
border-top-radius-radius: 8px;
padding-top: 8px;
padding-bottom: 8px;
font-size: 125%;
color: white;
}
#dialogContent {
text-align: left;
padding-left: 6px;
padding-right: 6px;
}
#continueButton {
min-width: 60%;
margin-left: 20%;
}
.hidden {
display: none;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MSE Sender</title>
<!--meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1"-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="cache-control" content="no-cache">
<link href="../../sdom/ext/dojo-release-1.10.2/dojox/mobile/themes/iphone/iphone.css" rel="stylesheet"></link>
<link href="ccsend.css" media="screen" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<!--script type="text/javascript" src="../ext/dojo-release-1.9.2/dojo/dojo.js" djConfig="parseOnLoad: true"></script-->
<script type="text/javascript" src="../../sdom/ext/dojo-release-1.10.2/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript" src="../../sdom/js/utility.js"></script>
<!--script type="text/javascript" src="../../sdom/js/xhr.js"></script-->
<!--script type="text/javascript" src="../js/url.js"></script-->
<script type="text/javascript" src="ccsend.js"></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojox.mobile.parser");
dojo.require("dojox.mobile.SimpleDialog");
dojo.require("dojox.mobile.Button");
dojo.require("dojox.mobile");
dojo.require("dojox.mobile.ScrollableView");
dojo.require("dojo.cookie");
dojo.require("dojo.dom-style");
dojo.require("dojo._base.connect");
dojo.require("dojo._base.window");
dojo.require("dojo.dom-construct");
dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
dojo.addOnLoad(Sender.onLoad);
</script>
<style>
</style>
</head>
<body>
<div id="label"></div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<title>CORS Test</title>
<meta name='copyright' content='CableLabs © 2013. All Rights Reserved'>
<meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<!--meta http-equiv="cache-control" content="no-cache"-->
<!-- stylesheets - external -->
<!-- stylesheets - local -->
<!--link href="factory.css" media="screen" rel="stylesheet" type="text/css"-->
<!-- javascript - external -->
<script src="https://code.jquery.com/jquery-1.8.2.min.js"></script>
<!-- javascript - local -->
<script type="text/javascript" src="../../sdom/js/utility.js" ></script>
<script type="text/javascript" src="../../sdom/js/xhr.js" ></script>
</head>
<body>
<script>
$( document ).ready(function() {
// Initialize application
console.log("Fetching app status: http://localhost:10293/apps/html5Browser");
var request = new XMLHttpRequest();
var url = "http://localhost:10293/apps/html5Browser";
var options = {headers : {'Accept' : '*/*', 'Content-Type' : 'text/plain'}};
request.issue(url, function(reply) {
if (reply.httpStatus == 200) {
console.log("success:\n "+reply.responseText);
}
else {
console.log("failed: "+reply.httpStatus);
}
}, options);
setTimeout(function(){
console.log("starting application.");
var options = {
headers : {
'Accept' : '*/*',
'Content-Type' : 'application/x-www-form-urlencoded'
//'Connection' : 'close',
//'Content-length' : body.length
},
method: 'POST',
body: 'https://html5.cablelabs.com/atg/mse/test/launch_page.html'
};
request.issue(url, function(reply) {
if (reply.httpStatus == 201) {
console.log("success:\n "+reply.responseText);
}
else {
console.log("failed: "+reply.httpStatus);
}
}, options);
}, 10000);
setTimeout(function(){
console.log("stopping application.");
var request2 = new XMLHttpRequest;
var options = {
headers : {
'Accept' : '*/*',
'Content-Type' : 'text/plain'
},
method: 'DELETE'
};
request2.issue(url, function(reply) {
if (reply.httpStatus == 200) {
console.log("success:\n "+reply.responseText);
}
else {
console.log("failed: "+reply.httpStatus);
}
}, options);
}, 6000);
});
</script>
</body>
</html>
<html>
<head>
<style>
html {
min-height: 100%;
min-width: 100%;
}
body {
width: 100%;
height: 100%;
background-image: url("think_different.jpg");
background-repeat: no-repeat;
background-size: 100%;
}
</style>
</head>
<body>.
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment