Skip to content

Commit

Permalink
feat: changing the azure circle
Browse files Browse the repository at this point in the history
  • Loading branch information
VangelisHoareau committed Dec 19, 2023
1 parent 6d04f97 commit 70a49c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
3 changes: 1 addition & 2 deletions ad_miner/sources/html/templates/main_header.html
Expand Up @@ -640,7 +640,7 @@ <h5 class="card-title stats-title">Azure</h5>
<path id="SVGID_x5F_00000009559227705141311830000001285624377143401365_x5F_" class="st0" d="M390,539.3
c84.9,0,153.6-68.8,153.6-153.6S474.9,232,390,232s-153.6,68.8-153.6,153.6S305.1,539.3,390,539.3z"/>
<text class="category-title"> <textPath id="path-title-kerberos" dominant-baseline="middle" text-anchor="middle" xlink:href="#SVGID_x5F_00000009559227705141311830000001285624377143401365_x5F_">
<tspan class="title-span" id="title-kerberos" style="font-family:'Montserrat';font-weight: bolder; font-size:19px;">KERBEROS</tspan> </textPath>
<tspan class="title-span" id="title-kerberos" style="font-family:'Montserrat';font-weight: bolder; font-size:19px;">KERBEROS</tspan><tspan class="title-span" id="title-msgraph" style="font-family:'Montserrat';font-weight: bolder; font-size:19px;display:none;">MSGRAPH</tspan> </textPath>
</text>
<path id="SVGID_x5F_00000023983339830597866210000016273559813660546946_x5F_" class="st0" d="M543.6,385.7
c0-84.9-68.8-153.6-153.6-153.6s-153.6,68.8-153.6,153.6S305.1,539.3,390,539.3S543.6,470.5,543.6,385.7z"/>
Expand Down Expand Up @@ -760,7 +760,6 @@ <h5 class="card-title stats-title">Azure</h5>
</script>
</div>
<div class="azure_circle" id="azure_circle" style="
background-image: url(../icons/main_circle/background_azure.svg);
width: 750px;
height: 750px;
margin: auto;
Expand Down
24 changes: 20 additions & 4 deletions ad_miner/sources/js/main_circle.js
Expand Up @@ -4,6 +4,15 @@ function toggleDiv(divId) {
document.getElementById("main_circle").style.display = "block";
document.getElementById("azure_circle").style.display = "none";



$svg=$("#Calque_1").clone();
$("#Calque_1").remove();
$("#main_circle").append($svg);

document.getElementById("title-kerberos").style.display=""
document.getElementById("title-msgraph").style.display="none"

document.getElementById("global-rating-on-premise").style.display = "block";
document.getElementById("global-rating-azure").style.display = "none";

Expand All @@ -30,6 +39,13 @@ function toggleDiv(divId) {
document.getElementById("main_circle").style.display = "none";
document.getElementById("azure_circle").style.display = "block";

$svg=$("#Calque_1").clone();
$("#Calque_1").remove();
$("#azure_circle").append($svg);

document.getElementById("title-kerberos").style.display="none"
document.getElementById("title-msgraph").style.display=""

document.getElementById("global-rating-on-premise").style.display = "none";
document.getElementById("global-rating-azure").style.display = "block";

Expand Down Expand Up @@ -178,21 +194,21 @@ function display_all_hexagons(dico_entry) {
var title_attack_paths = `<a data-bs-toggle="modal" href="#cardsModal" onclick=switchCards('attack_path')>
<img src="../icons/main_circle/attack_paths.svg" class="title-section shadow" style="top:20%; left: 39%""/>
</a>`;
$('.azure_circle').append(title_attack_paths);
// $('.azure_circle').append(title_attack_paths);


var title_ms_graph = `<a data-bs-toggle="modal" href="#cardsModal" onclick=switchCards('ms_graph')>
<img src="../icons/main_circle/ms_graph.svg" class="title-section shadow" style="top:50%; left: 70%""/>
</a>`;
$('.azure_circle').append(title_ms_graph);
// $('.azure_circle').append(title_ms_graph);

var title_service_principal = `<a data-bs-toggle="modal" href="#cardsModal" onclick=switchCards('sp_mi')>
<img src="../icons/main_circle/service_principal.svg" class="title-section shadow" style="top:75%; left: 35%""/>
</a>`;
$('.azure_circle').append(title_service_principal);
// $('.azure_circle').append(title_service_principal);


var title_azure_ad_connect = `<a data-bs-toggle="modal" href="#cardsModal" onclick=switchCards('ad_connect')>
<img src="../icons/main_circle/azure_ad_connect.svg" class="title-section shadow" style="top:50%; left: 2.4%""/>
</a>`;
$('.azure_circle').append(title_azure_ad_connect);
// $('.azure_circle').append(title_azure_ad_connect);

0 comments on commit 70a49c4

Please sign in to comment.