mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* make hyperion websocket api event based * implement new websocket handling for generalconf * migrate all webui stuff to new event based websocket api some cleanup ... now all html templates are in content refactoring of web stuff * add hyperionport to global start impl. removing advanced key * separate dashboard serverinfo is updated every 3 seconds automatily add input selection cleanup and remove not needed stuff * prepare infrastructure for server sided file execution * webui minor fixes * fix compile
13 lines
277 B
JavaScript
13 lines
277 B
JavaScript
|
|
function bindNavToContent(containerId, fileName, loadNow=false)
|
|
{
|
|
$("#page-wrapper").off();
|
|
$(containerId).on("click", function() {
|
|
$("#page-wrapper").load("/content/"+fileName+".html");
|
|
});
|
|
if (loadNow)
|
|
{
|
|
$("#page-wrapper").load("/content/"+fileName+".html");
|
|
}
|
|
}
|