Change bottom panel name. Change saving to graphml.

This commit is contained in:
Unick Soft 2020-05-24 15:52:40 +02:00
parent f72db7fceb
commit 7528947d20
4 changed files with 11 additions and 11 deletions

View File

@ -814,21 +814,21 @@ Graph.prototype.SaveToXML = function (additionalData)
var mainHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><graphml>";
var header = "<graph id=\"Graph\" uidGraph=\"" + this.uidGraph + "\"" + " uidEdge=\"" + this.uidEdge + "\">";
var xmlBoby = "<nodes>";
var xmlBoby = "";
for (var i = 0; i < this.vertices.length; i++)
{
xmlBoby = xmlBoby + this.vertices[i].SaveToXML();
}
xmlBoby = xmlBoby + "</nodes><edges>";
xmlBoby = xmlBoby + "";
for (var i = 0; i < this.edges.length; i++)
{
xmlBoby = xmlBoby + this.edges[i].SaveToXML();
}
}
xmlBoby = xmlBoby + "</edges>";
xmlBoby = xmlBoby + "";
additionalField = "";
if (additionalData.length > 0)

View File

@ -59,13 +59,13 @@ var single = 0;
function resizeCanvas()
{
var adv = document.getElementById('adv');
var adv = document.getElementById('bottom_info');
var canvas = document.getElementById('canvas');
canvas.width = document.getElementById('canvasSection').offsetWidth;
var mainContainer = document.getElementById('mainContainer');
var offset = (mainContainer.offsetTop + mainContainer.offsetHeight) - (canvas.offsetTop + canvas.offsetHeight) + ($("#footerContent").css("display") === 'block' ? 0 : 24);
canvas.height = $(window).height() - document.getElementById('canvas').offsetTop - (adv && $("#adv").css("display") === 'block' ? document.getElementById('adv').offsetHeight : 0) - ($("#footer").css("display") === 'block' ? document.getElementById('footer').offsetHeight : 0) - offset;
canvas.height = $(window).height() - document.getElementById('canvas').offsetTop - (adv && $("#bottom_info").css("display") === 'block' ? document.getElementById('bottom_info').offsetHeight : 0) - ($("#footer").css("display") === 'block' ? document.getElementById('footer').offsetHeight : 0) - offset;
application.redrawGraph();
}

View File

@ -298,9 +298,9 @@ window.onload = function ()
<? endif; ?>
<? if (L('current_language') == "ru"): ?>
<section style="height:90px;text-align: center;" id="adv" class="hidden-phone">
<section style="height:90px;text-align: center;" id="info" class="hidden-phone">
<!-- Yandex.RTB R-A-202319-1 -->
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://money.yandex.ru/embed/donate.xml?account=41001394497131&quickpay=donate&payment-type-choice=on&mobile-payment-type-choice=on&default-sum=30&targets=%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D1%82%D0%B5+%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82+%D0%93%D1%80%D0%B0%D1%84+%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD.&target-visibility=on&project-name=&project-site=&button-text=01&successURL=" width="522" height="90"></iframe>
<a href="https://yasobe.ru/na/oplata_hostinga_i_domennogo_imeni">🤑 Поддержвать проект деньгами 🤑</a>
<!--
<div style="text-align:center;">
<div id="yandex_rtb_R-A-202319-1" style="display: inline-block;"></div>

View File

@ -165,7 +165,7 @@
<? if (L('current_language') != "en"): ?>
<section style="height:32px;text-align: center;" id="adv" class="hidden-phone">
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
<a class="ProgresssBarLink" href="opensource" target="_blank">
<div class="ProgressBar" style="height:32px">
<div class="ProgressBarFill" style="width:0%;"></div>
@ -176,7 +176,7 @@
<? else: ?>
<section style="height:32px;text-align: center;" id="adv" class="hidden-phone">
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
<div class="ProgressBar" style="height:32px">
<div class="ProgressBarFill" style="width:0%;"></div>
<span class="ProgressBarText" style="top:-28px"><p><?= L('greek_add')?></p></span>
@ -187,7 +187,7 @@
<? if (L('current_language') == "ru" && false): ?>
<!--
<section style="height:32px;text-align: center;" id="adv" class="hidden-phone">
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
<a class="ProgresssBarLink" href="/donate" target="_blank">
<div class="ProgressBar" style="height:32px">