From 5cc6c6c1f3cdaf96fc4adf19acff73f0006ccae9 Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Wed, 6 Dec 2023 16:32:18 +0100 Subject: [PATCH] Update demos and docs to Bootstrap 5.x (#3300) --- docs/doxy-boot.js | 81 ++++++++++----------- docs/header.html | 55 +++++++-------- html/admin.html | 136 +++++++++++++++++++----------------- html/admin.js | 116 ++++++++++++++++++------------ html/audiobridgetest.html | 69 +++++++++--------- html/audiobridgetest.js | 114 ++++++++++++++++-------------- html/canvas.html | 112 ++++++++++++++--------------- html/canvas.js | 65 ++++++++--------- html/citeus.html | 33 ++++----- html/css/demo.css | 72 ++++++++++++++----- html/demos.html | 33 ++++----- html/devicetest.html | 136 +++++++++++++++++++----------------- html/devicetest.js | 104 ++++++++++++++------------- html/docs/index.html | 23 +++--- html/e2etest.html | 86 +++++++++++------------ html/e2etest.js | 73 ++++++++++--------- html/echotest.html | 90 ++++++++++++------------ html/echotest.js | 73 ++++++++++--------- html/index.html | 21 +++--- html/multiopus.html | 84 +++++++++++----------- html/multiopus.js | 67 +++++++++--------- html/mvideoroomtest.html | 112 ++++++++++++++--------------- html/mvideoroomtest.js | 78 ++++++++++----------- html/navbar.html | 93 ++++++++++++------------ html/nosiptest.html | 56 +++++++-------- html/nosiptest.js | 30 ++++---- html/recordplaytest.html | 82 +++++++++++----------- html/recordplaytest.js | 37 +++++----- html/screensharingtest.html | 54 +++++++------- html/screensharingtest.js | 39 ++++------- html/siptest.html | 131 +++++++++++++++++----------------- html/siptest.js | 130 +++++++++++++++++----------------- html/streamingtest.html | 68 +++++++++--------- html/streamingtest.js | 123 +++++++++++++------------------- html/support.html | 21 +++--- html/textroomtest.html | 62 ++++++++-------- html/textroomtest.js | 12 ++-- html/videocalltest.html | 116 +++++++++++++++--------------- html/videocalltest.js | 99 +++++++++++++------------- html/videoroomtest.html | 112 ++++++++++++++--------------- html/videoroomtest.js | 89 ++++++++++------------- html/virtualbg.html | 70 +++++++++---------- html/virtualbg.js | 71 +++++++++---------- html/webaudio.html | 70 +++++++++---------- html/webaudio.js | 11 ++- 45 files changed, 1721 insertions(+), 1688 deletions(-) diff --git a/docs/doxy-boot.js b/docs/doxy-boot.js index d13a5508f1..7cf579c90b 100644 --- a/docs/doxy-boot.js +++ b/docs/doxy-boot.js @@ -1,65 +1,68 @@ $(document).ready(function() { - $("div.headertitle").addClass("page-header"); + $("div.headertitle").addClass("pb-2 mt-4 mb-2 border-bottom"); $("div.title").addClass("h1"); - - $('li > a[href="index.html"] > span').before(" "); + + $('li > a[href="index.html"] > span').before(" "); // $('li > a[href="index.html"] > span').text("CoActionOS"); - $('li > a[href="modules.html"] > span').before(" "); - $('li > a[href="namespaces.html"] > span').before(" "); - $('li > a[href="annotated.html"] > span').before(" "); - $('li > a[href="classes.html"] > span').before(" "); - $('li > a[href="inherits.html"] > span').before(" "); - $('li > a[href="functions.html"] > span').before(" "); - $('li > a[href="functions_func.html"] > span').before(" "); - $('li > a[href="functions_vars.html"] > span').before(" "); - $('li > a[href="functions_enum.html"] > span').before(" "); - $('li > a[href="functions_eval.html"] > span').before(" "); - $('img[src="ftv2ns.png"]').replaceWith('N '); - $('img[src="ftv2cl.png"]').replaceWith('C '); - - $("ul.tablist").addClass("nav nav-pills nav-justified"); + $('li > a[href="modules.html"] > span').before(" "); + $('li > a[href="namespaces.html"] > span').before(" "); + $('li > a[href="annotated.html"] > span').before(" "); + $('li > a[href="classes.html"] > span').before(" "); + $('li > a[href="inherits.html"] > span').before(" "); + $('li > a[href="functions.html"] > span').before(" "); + $('li > a[href="functions_func.html"] > span').before(" "); + $('li > a[href="functions_vars.html"] > span').before(" "); + $('li > a[href="functions_enum.html"] > span').before(" "); + $('li > a[href="functions_eval.html"] > span').before(" "); + $('img[src="ftv2ns.png"]').replaceWith('N '); + $('img[src="ftv2cl.png"]').replaceWith('C '); + + $("ul.tablist").addClass("nav nav-pills nav-fill"); $("ul.tablist").css("margin-top", "0.5em"); $("ul.tablist").css("margin-bottom", "0.5em"); - $("li.current").addClass("active"); + $("ul.tablist > li").addClass("nav-item"); + $("ul.tablist > li > a").addClass("nav-link"); + $("li.current").children().addClass("active"); $("iframe").attr("scrolling", "yes"); - + $("#nav-path > ul").addClass("breadcrumb"); - + $("table.params").addClass("table"); $("div.ingroups").wrapInner(""); + $("div.ingroups > small > a").addClass("text-muted"); $("div.levels").css("margin", "0.5em"); - $("div.levels > span").addClass("btn btn-default btn-xs"); + $("div.levels > span").addClass("btn btn-secondary btn-sm"); $("div.levels > span").css("margin-right", "0.25em"); - + $("table.directory").addClass("table table-striped"); - $("div.summary > a").addClass("btn btn-default btn-xs"); + $("div.summary > a").addClass("btn btn-secondary btn-sm"); $("table.fieldtable").addClass("table"); - $(".fragment").addClass("well"); - $(".memitem").addClass("panel panel-default"); - $(".memproto").addClass("panel-heading"); - $(".memdoc").addClass("panel-body"); - $("span.mlabel").addClass("label label-info"); - + $(".fragment").addClass("card card-body bg-gray"); + $(".memitem").addClass("card"); + $(".memproto").addClass("card-header"); + $(".memdoc").addClass("card-body"); + $("span.mlabel").addClass("badge bg-info"); + $("table.memberdecls").addClass("table"); $("[class^=memitem]").addClass("active"); - - $("div.ah").addClass("btn btn-default"); + + $("div.ah").addClass("btn btn-secondary"); $("span.mlabels").addClass("pull-right"); $("table.mlabels").css("width", "100%") $("td.mlabels-right").addClass("pull-right"); - $("div.ttc").addClass("panel panel-info"); - $("div.ttname").addClass("panel-heading"); - $("div.ttdef,div.ttdoc,div.ttdeci").addClass("panel-body"); - - $('div.tabs').addClass('container well'); - $('div.tabs2').addClass('container well'); - $('div.tabs3').addClass('container well'); + $("div.ttc").addClass("card card-info"); + $("div.ttname").addClass("card-header"); + $("div.ttdef,div.ttdoc,div.ttdeci").addClass("card-body"); + + $('div.tabs').addClass('container card card-body bg-gray mb-3'); + $('div.tabs2').addClass('container card card-body bg-gray mb-3'); + $('div.tabs3').addClass('container card card-body bg-gray mb-3'); $('div.header').addClass('container'); $('div.contents').addClass('container'); $('div.groupHeader').addClass('alert-link').parent().parent().addClass('alert alert-info'); - + $('#MSearchBox').remove();//.parent().appendTo('#topmenu'); $('code').each(function() { $(this).html($(this).html().replace("–", "--")); } ); diff --git a/docs/header.html b/docs/header.html index fb93c1b79b..71dca3ff1c 100644 --- a/docs/header.html +++ b/docs/header.html @@ -7,47 +7,46 @@ $title - + + $treeview $search $mathjax $extrastylesheet - + - +
-Fork me on GitHub +Fork me on GitHub - +
diff --git a/html/admin.html b/html/admin.html index 8b445e751a..821632132a 100644 --- a/html/admin.html +++ b/html/admin.html @@ -5,50 +5,51 @@ Janus WebRTC Server (multistream): Admin/Monitor - - - + + + + - + - + -Fork me on GitHub +Fork me on GitHub - +
-