mirror of
https://github.com/rvtr/debug-dsi-shop.git
synced 2025-10-31 06:01:07 -04:00
394 lines
10 KiB
HTML
394 lines
10 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
<title></title>
|
||
<link rel="stylesheet" type="text/css" href="../../common/css/default.css">
|
||
<script type="text/javascript" src="../common/js/default.js"></script>
|
||
<script type="text/javascript" src="ec.js"></script>
|
||
<script type="text/javascript" src="syncEc.js"></script>
|
||
<script>
|
||
<!--
|
||
/*---------- O[oタ ----------*/
|
||
var ec = new ECommerceInterface();
|
||
var gStartDate = 0;
|
||
|
||
/*---------- fobOoヘ ----------*/
|
||
function Print( mes )
|
||
{
|
||
output.innerHTML += mes + "<br>";
|
||
}
|
||
function PrintError( progress )
|
||
{
|
||
Print( "status : " + progress.status );
|
||
Print( "operation : " + progress.operation );
|
||
Print( "totalSize : " + progress.totalSize );
|
||
Print( "downloadedSize : " + progress.downloadedSize );
|
||
Print( "errCode : " + progress.errCode );
|
||
Print( "errInfo : " + progress.errInfo );
|
||
Print( "phase : " + progress.phase );
|
||
Print( "isCancelRequested : " + progress.isCancelRequested );
|
||
Print( "description : " + progress.description );
|
||
}
|
||
function ClearDebugMessages( first_mes )
|
||
{
|
||
output.innerHTML = first_mes + "<br>";
|
||
}
|
||
/*
|
||
ππIy[VπG[`FbN
|
||
*/
|
||
function CheckStartOperation( progress )
|
||
{
|
||
if ( progress == null )
|
||
{
|
||
Print("ASSERT progress == null : " + progress);
|
||
return ( false );
|
||
}
|
||
else if ( progress.status < 0 && progress.status != EC_ERROR_NOT_DONE )
|
||
{
|
||
Print("Error StartOperation!");
|
||
PrintError( progress );
|
||
return ( false );
|
||
}
|
||
else
|
||
{
|
||
return ( true );
|
||
}
|
||
}
|
||
/*
|
||
ec.getProgress() πG[`FbN
|
||
*/
|
||
function CheckProgress( progress )
|
||
{
|
||
if ( progress == null )
|
||
{
|
||
Print("ASSERT progress == null : " + progress);
|
||
return ( false );
|
||
}
|
||
else if ( progress.status < 0 )
|
||
{
|
||
Print("Error Progress!");
|
||
PrintError( progress );
|
||
return ( false );
|
||
}
|
||
else
|
||
{
|
||
return ( true );
|
||
}
|
||
}
|
||
|
||
/*
|
||
vOXo[LXV
|
||
*/
|
||
var PROGRESS_BAR_WIDTH = 216;
|
||
function UpdateProgressBar( downloaded, total )
|
||
{
|
||
var pos = -1 * PROGRESS_BAR_WIDTH;
|
||
if ( total != 0 )
|
||
pos = PROGRESS_BAR_WIDTH * downloaded / total - PROGRESS_BAR_WIDTH;
|
||
if ( pos > 0 )
|
||
pos = 0;
|
||
progress.style.backgroundPosition = pos + "px 0px";
|
||
}
|
||
|
||
/*---------- ----------*/
|
||
function InitEc()
|
||
{
|
||
var ecsUrl = "https://ecs.shop.wii.com/ecs/services/ECommerceSOAP";
|
||
var iasUrl = "https://ias.shop.wii.com/ias/services/IdentityAuthenticationSOAP";
|
||
var casUrl = "https://cas.shop.wii.com/cas/services/CatalogingSOAP";
|
||
var ccsUrl = "http://ccs.shop.wii.com/ccs/download";
|
||
var ucsUrl = "http://ccs.shop.wii.com/ccs/download";
|
||
|
||
ec.setWebSvcUrls (ecsUrl, iasUrl, casUrl);
|
||
ec.setContentUrls (ccsUrl, ucsUrl);
|
||
}
|
||
|
||
/*----------------------------------------
|
||
|
||
[ 軏{Iタ・]
|
||
ec.purchaseTitle |