Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

View File

@ -0,0 +1,30 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Online Services Editor</title>
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"/>
<meta content="True" name="vs_snapToGrid"/>
<meta content="False" name="vs_showGrid"/>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<script src="webdev.js" type="text/javascript"></script>
<style type="text/css">#Checkbox1 {width: 321px; top: 160px; left: 64px;}</style>
</head>
<body style="overflow-y: auto; overflow-x: auto; overflow: visible; FONT-FAMILY: MS Shell Dlg 2;" onload="WebDevEditor_Init();">
<h2 align="center">Online Services Editor</h2>
<div align="left" nowrap>
<div id="DIV1" style="border: 1px solid gray; clear: both; DISPLAY: block; left: 50%; float: none; visibility: visible; margin-left: -204px; overflow: visible; width: 408px; color: black; position: absolute; height: 150px; background-color: dimgray; top: 126px;" align="center" nowrap ms_positioning="GridLayout">
<div style="z-index: 110; left: 16px; position: absolute; top: 14px">Id:</div>
<input id="scvedt_edt_id" style="z-index: 101; left: 64px; position: absolute; top: 14px" readonly maxlength="16" size="9" tabindex="1"/>
<div style="z-index: 102; left: 16px; position: absolute; top: 46px">Name:</div>
<input id="scvedt_edt_name" style="z-index: 103; left: 64px; position: absolute; top: 46px; width: 322px;" maxlength="512" size="48" tabindex="2"/>
<div style="z-index: 104; left: 16px; position: absolute; top: 78px">Url:</div>
<input id="scvedt_edt_url" style="z-index: 105; left: 64px; position: absolute; top: 78px; width: 321px;" maxlength="2048" size="48" name="Text1" tabindex="3"/>
<div style="z-index: 106; left: 16px; position: absolute; top: 110px">Icon:</div>
<input id="scvedt_edt_icon" style="z-index: 107; left: 64px; position: absolute; top: 110px; width: 321px;" maxlength="512" size="48" name="Text2" tabindex="4"/>
<div align = "left" style="z-index: 108; position: absolute; width: 320px; left: 25px;" >
<input id="svcedt_btn_save" style="z-index: 109; left: 200px; width: 88px; position: absolute; top: 180px; height: 24px; right: 118px;" onclick="WebDevEditor_Save();" type="submit" value="Save" name="buttonOk" tabindex="6"/>
<input id="svcedt_btn_close" style="z-index: 110; left: 297px; width: 88px; position: absolute; top: 180px; height: 24px" onclick="WebDevEditor_Close();" type="button" value="Cancel" name="buttonCancel" tabindex="7"/>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,95 @@
function GetUrlParam(name)
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
function WebDev_OpenService(serviceId, forceUrl)
{
if (typeof(window.external.WebDev) == "undefined")
alert("Cannot access Webdev Api");
else if (false == window.external.WebDev.serviceOpen(serviceId, forceUrl))
alert("Unable to open service");
}
function WebDev_OpenDocumentation()
{
WebDev_OpenService(701, null);
}
function WebDev_OpenJSAPI2Test()
{
WebDev_OpenService(702, null);
}
function WebDev_CreateService()
{
if (typeof(window.external.WebDev) == "undefined")
alert("Cannot access Webdev Api");
else if (false == window.external.WebDev.serviceCreate())
alert("Unable to create service");
}
function WebDevEditor_Init(url)
{
var serviceId = parseInt(GetUrlParam("serviceId"), 10);
if (typeof(window.external.WebDev) == "undefined")
alert("Cannot access Webdev Api");
else
{
var info = window.external.WebDev.serviceGetInfo(serviceId);
if (null == info)
{
alert("Unable to get service information");
}
else
{
document.getElementById("scvedt_edt_id").value = info.id;
document.getElementById("scvedt_edt_name").value = info.name;
document.getElementById("scvedt_edt_url").value = info.url;
document.getElementById("scvedt_edt_icon").value = info.icon;
}
}
}
function WebDevEditor_Save()
{
if (typeof(window.external.WebDev) == "undefined")
alert("Cannot access Webdev Api");
else
{
var serviceId = parseInt(document.getElementById("scvedt_edt_id").value, 10);
if (0 != serviceId)
{
var serviceName = document.getElementById("scvedt_edt_name").value;
var serviceUrl = document.getElementById("scvedt_edt_url").value;
var serviceIcon = document.getElementById("scvedt_edt_icon").value;
if (false == window.external.WebDev.serviceSetInfo(serviceId, serviceName, serviceIcon, serviceUrl, true))
{
alert("Unable to set service info");
}
if (false == window.external.WebDev.serviceOpen(serviceId, 1))
{
alert("Unable to navigate");
}
}
}
}
function WebDevEditor_Close()
{
if (typeof(window.external.WebDev) == "undefined")
alert("Cannot access Webdev Api");
else
{
var serviceId = parseInt(document.getElementById("scvedt_edt_id").value, 10);
if (0 == serviceId || false == window.external.WebDev.serviceOpen(serviceId, 1))
alert("Unable to navigate");
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB