mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 15:26:12 +00:00
Added new vote
This commit is contained in:
parent
9c28729319
commit
0149bcc1f7
@ -31,6 +31,7 @@ NeedAlgorithm.prototype.getMessage = function(local)
|
|||||||
|
|
||||||
NeedAlgorithm.prototype.result = function(resultCallback)
|
NeedAlgorithm.prototype.result = function(resultCallback)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
var dialogButtons = {};
|
var dialogButtons = {};
|
||||||
|
|
||||||
dialogButtons[g_send] = function() {
|
dialogButtons[g_send] = function() {
|
||||||
@ -56,7 +57,39 @@ NeedAlgorithm.prototype.result = function(resultCallback)
|
|||||||
dialogClass: 'EdgeDialog',
|
dialogClass: 'EdgeDialog',
|
||||||
buttons: dialogButtons,
|
buttons: dialogButtons,
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
var dialogButtons = {};
|
||||||
|
|
||||||
|
for (var i = 0; i < 6 && document.getElementById('vote' + i) !== null; i++)
|
||||||
|
{
|
||||||
|
document.getElementById('vote' + i)["voteIndex"] = i;
|
||||||
|
document.getElementById('vote' + i).onclick = function ()
|
||||||
|
{
|
||||||
|
console.log("Vote" + this["voteIndex"]);
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "/cgi-bin/vote.php?index=" + this["voteIndex"],
|
||||||
|
dataType: "text"
|
||||||
|
});
|
||||||
|
$("#voteDialog").dialog('close');
|
||||||
|
$("#VoteButton").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dialogButtons[g_close] = function() {
|
||||||
|
$( this ).dialog( "close" );
|
||||||
|
};
|
||||||
|
|
||||||
|
$( "#voteDialog" ).dialog({
|
||||||
|
resizable: false,
|
||||||
|
title: g_vote,
|
||||||
|
width: 400,
|
||||||
|
modal: true,
|
||||||
|
dialogClass: 'EdgeDialog',
|
||||||
|
buttons: dialogButtons,
|
||||||
|
});
|
||||||
|
|
||||||
var result = {};
|
var result = {};
|
||||||
result["version"] = 1;
|
result["version"] = 1;
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
User account|Possibility to store graphs in your user account and other settings.
|
Search Hamiltonian path and cycle|
|
||||||
Improved visualization|The ability to change colors for vertexes and edges, as well as the shape and size of the vertexes.
|
Depth-first search and breadth-first search|
|
||||||
Improving the support of large graphs|Make easy work with large graphs with the number of vertixes is more than 300.
|
Search all paths from vertex A to vertex B|
|
||||||
More algorithms|Add more algorithms: maximum flow, minimum cut, radius, diameter, coloring graph.
|
Search strongly connected component|
|
||||||
|
Search longest path on graph|
|
||||||
|
Bellman–Ford algorithm|
|
@ -1,4 +1,6 @@
|
|||||||
Личный кабинет|Возможность сохранения графов в своём личном кабинете и другие персоональные настройки.
|
Поиск Гамильтонова цикла и цепи|
|
||||||
Улучшение визуализации|Возможность изменения цветов для вешин и дуг, а также формы и размеров вершин.
|
Поиск в глубину и поиск в ширину|
|
||||||
Улучшение поддержки больших графов|Удобная работа с графами больших размеров с количеством вершин больше 300.
|
Поиск всех путей из вершина A до вершины B|
|
||||||
Больше алгоритмов|Добавление большего числа алгоритмов: максимальный поток, минимальный разрез, радиус, диаметр, раскраска графа.
|
Поиск компоненты сильной связности графа|
|
||||||
|
Поиск максимального пути между двумя вершинами|
|
||||||
|
Алгоритм Беллмана-Форда|
|
@ -88,8 +88,8 @@
|
|||||||
<span class="glyphicon glyphicon-cog fa-fw "></span><span class="hidden-phone"> <?= L('algorithms') ?> </span><span class="caret"></span>
|
<span class="glyphicon glyphicon-cog fa-fw "></span><span class="hidden-phone"> <?= L('algorithms') ?> </span><span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-right" role="menu" id="algorithmList">
|
<ul class="dropdown-menu dropdown-menu-right" role="menu" id="algorithmList">
|
||||||
<li>
|
|
||||||
<!--
|
<!--
|
||||||
|
<li>
|
||||||
<button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="FindPath"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('short_path')?></button></li>
|
<button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="FindPath"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('short_path')?></button></li>
|
||||||
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="ConnectedComponent"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('connected_component') ?> </button></li>
|
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="ConnectedComponent"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('connected_component') ?> </button></li>
|
||||||
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="EulerianLoop"><span class="glyphicon glyphicon-refresh fa-fw"></span> <span><?= L('find_eulerian_loop')?></span></button></li>
|
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="EulerianLoop"><span class="glyphicon glyphicon-refresh fa-fw"></span> <span><?= L('find_eulerian_loop')?></span></button></li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user