Page 352 - Tasarım Beceri Atölyeleri Öğretmen El Kitabı
P. 352
//canvas.style.backgroundColor = “#999999”;
canvas.width = canvas_width;
canvas.height = canvas_height;
var ctx = canvas.getContext(“2d”);
ctx.translate(canvas_width/2, canvas_height - 80);
update_view(0);
}
function connect_onclick()
{
if(ws == null)
{
var ws_host_addr = “<?echo _SERVER(“HTTP_HOST”)?>”;
if((navigator.platform.indexOf(“Win”) != -1) && (ws_host_addr.charAt(0) == “[“))
{
// network resource identifier to UNC path name conversion
ws_host_addr = ws_host_addr.replace(/[\[\]]/g, ‘’);
ws_host_addr = ws_host_addr.replace(/:/g, “-”);
ws_host_addr += “.ipv6-literal.net”;
}
344