mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-05 03:38:42 +02:00
Update Analyze-HuntSMBShares.ps1
Updated left menu style.
This commit is contained in:
parent
a935d61842
commit
1453248011
@ -5,7 +5,7 @@
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Author: Scott Sutherland, 2024 NetSPI
|
# Author: Scott Sutherland, 2024 NetSPI
|
||||||
# License: 3-clause BSD
|
# License: 3-clause BSD
|
||||||
# Version: v1.74
|
# Version: v1.75
|
||||||
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
|
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
|
||||||
function Analyze-HuntSMBShares
|
function Analyze-HuntSMBShares
|
||||||
{
|
{
|
||||||
@ -3304,6 +3304,7 @@ $NewHtmlReport = @"
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="shortcut icon" src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjA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xKHZCUhtAWJOqNB3IPYBGrKPoAFYNDPgM4SRSM04DWEkQTNWQxhJ1IxhCCM0tLeSoBnZEG+QAS+ADHEG8sBLJgYKAciASKhzGMjwQiTlgUiVaKRKQqJKUqZKZiI1OwMEGAA7FE70gYsL4wAAAABJRU5ErkJggg==" >
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
||||||
<title>Report</title>
|
<title>Report</title>
|
||||||
<style>
|
<style>
|
||||||
@ -3320,7 +3321,8 @@ $NewHtmlReport = @"
|
|||||||
-webkit-text-size-adjust:100%;
|
-webkit-text-size-adjust:100%;
|
||||||
-ms-text-size-adjust:100%;
|
-ms-text-size-adjust:100%;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
--transition: width 0.3s; /* Smooth transition when expanding/collapsing */
|
--transition: width 0.3s; /* Smooth transition when expanding/collapsing */
|
||||||
|
background: linear-gradient(to bottom, #07142A 80%, rgba(0, 0, 0, 1) 98%, black 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu.collapsed div,
|
.side-menu.collapsed div,
|
||||||
@ -3526,32 +3528,32 @@ $NewHtmlReport = @"
|
|||||||
margin-left:5px;
|
margin-left:5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stuff:hover{
|
.stuff:hover{
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
background-color:#17405A;
|
background-color:#17405A;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding-top:5px;
|
padding-top:5px;
|
||||||
padding-bottom:5px;
|
padding-bottom:5px;
|
||||||
margin-right:5px;
|
margin-right:5px;
|
||||||
margin-left:5px;
|
margin-left:5px;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
--box-shadow: inset 0 0 0 0.25px white;
|
||||||
|
--outline: 1px solid #F56A00; /* Adjust thickness and color */
|
||||||
|
outline: 1px ridge #cfcfd4; /* Adjust thickness and color */
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
--background: linear-gradient(to bottom, #17405A, #FFFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
.stuff:active {
|
.stuff:active {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
background-color:#25648C;
|
background-color:#25648C;
|
||||||
width:auto;
|
width:auto;
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
transition: background-color 0.2s ease;
|
||||||
|
}
|
||||||
.stuff:visited {
|
|
||||||
font-weight: normal;
|
|
||||||
color:#C4C4C8;
|
|
||||||
width:auto;
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabLabel:hover{
|
.tabLabel:hover{
|
||||||
background-color:#555555;
|
background-color:#555555;
|
||||||
@ -4575,7 +4577,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body onload="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;">
|
<body onload="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;updateLabelColors('tabs', 'btnsummary');">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|||||||||| SIDE MENU
|
|||||||||| SIDE MENU
|
||||||
@ -4583,34 +4585,34 @@ input[type="checkbox"]:checked::before {
|
|||||||
<div class="side-menu" id="sideMenu">
|
<div class="side-menu" id="sideMenu">
|
||||||
|
|
||||||
<button onclick="toggleMenu()" class="menu-button" style="margin-top: -15px; margin-right: -10px;">
|
<button onclick="toggleMenu()" class="menu-button" style="margin-top: -15px; margin-right: -10px;">
|
||||||
<span class="icon" style="font-size: 16;">☰</span>
|
<span class="icon" style="font-size: 16px; color:#F56A00; transition: color 0.3s ease;" onmouseover="this.style.color='white'" onmouseout="this.style.color='#F56A00'"><i class="fas fa-times"></i></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div style="font-weight:bolder;color:white;margin-bottom:5px; margin-top:17px; margin-left: 14px;" align="left">
|
<div style="font-weight:bolder;color:white;margin-bottom:5px; margin-top:17px; margin-left: 14px;" align="left">
|
||||||
<a href="https://github.com/NetSPI/PowerHuntShares" style="text-decoration: none; color:#F56A00;cursor: pointer;">
|
<a href="https://github.com/NetSPI/PowerHuntShares" style="text-decoration: none; color:#F56A00;cursor: pointer;">
|
||||||
<br><SPAN style="font-size: 15;">POWERHUNT</SPAN><SPAN style="color:white;font-size: 15;">SHARES</span></a>
|
<br><SPAN style="font-size: 15;">POWERHUNT</SPAN><SPAN style="color:white;font-size: 15;">SHARES</span></a>
|
||||||
<br>
|
<br>
|
||||||
<div style="font-size: 11;font-weight:normal;margin-top:3px;">$TargetDomain</div>
|
<div style="font-size: 11;font-weight:normal;margin-top:3px;margin-left: 1px;">$TargetDomain</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tabs" class="tabs" data-tabs-ignore-url="false">
|
<div id="tabs" class="tabs" data-tabs-ignore-url="false">
|
||||||
<label href="#" class="stuff" style="text-align: center; border-bottom: 0.25px dashed gray; width:85%; margin-bottom: 4px; margin-top: -9px;"></label>
|
<label id="noactionmenubar1" href="#" class="stuff" style="background-color: transparent;text-align: center; border-bottom: 0.25px dashed gray; width:85%; margin-bottom: 4px; margin-top: -9px; border-radius: 0px;outline:none;"></label>
|
||||||
<label class="tabLabel" style="width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><Strong>Results</Strong></label>
|
<label id="noactionmenuheader1"class="tabLabel" style="background-color: transparent; width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><Strong>Results</Strong></label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;">Summary Report</label>
|
<label id="btnsummary" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;updateLabelColors('tabs', 'btnsummary');">Summary Report</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('home');radiobtn.checked = true;">Scan Information</label>
|
<label id="btnscaninfo" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('home');radiobtn.checked = true;updateLabelColors('tabs', 'btnscaninfo');">Scan Information</label>
|
||||||
<label class="tabLabel" style="width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><Strong>Explore Data</Strong></label>
|
<label id="noactionmenuheader2"class="tabLabel" style="background-color: transparent;width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><Strong>Explore Data</Strong></label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onclick="radiobtn = document.getElementById('SubNets');radiobtn.checked = true;">Networks</label>
|
<label id="btnnetworks" href="#" class="stuff" style="width:100%;" onclick="radiobtn = document.getElementById('SubNets');radiobtn.checked = true;updateLabelColors('tabs', 'btnnetworks');">Networks</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ComputerInsights');radiobtn.checked = true;">Computers</label>
|
<label id="btncomputers" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ComputerInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btncomputers');">Computers</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ShareName');radiobtn.checked = true;">Share Names</label>
|
<label id="btnshares" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ShareName');radiobtn.checked = true;updateLabelColors('tabs', 'btnshares');">Share Names</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ShareFolders');radiobtn.checked = true;">Folder Groups</label>
|
<label id="btnfgs" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('ShareFolders');radiobtn.checked = true;updateLabelColors('tabs', 'btnfgs');">Folder Groups</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;">Insecure ACEs</label>
|
<label id="btnaces" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btnaces');">Insecure ACEs</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('IdentityInsights');radiobtn.checked = true;">Identities</label>
|
<label id="btnidentities" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('IdentityInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btnidentities');">Identities</label>
|
||||||
<label href="#" class="stuff" style="text-align: center;border-bottom: 0.25px dashed gray; opacity: 0.25; width:85%; margin-bottom: 6px; margin-top:-1px;"></label>
|
<label id="noactionmenubar2" href="#" class="stuff" style="background-color: transparent;border-bottom: 0.25px dashed gray; opacity: 0.25; width:85%; margin-bottom: 6px; margin-top:-1px;border-radius: 0px;outline: none;"></label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('InterestingFiles');radiobtn.checked = true;applyFiltersAndSort('InterestingFileTable', 'filterInputIF', 'filterCounterIF', 'paginationIF');">Interesting Files</label>
|
<label id="btnif" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('InterestingFiles');radiobtn.checked = true;applyFiltersAndSort('InterestingFileTable', 'filterInputIF', 'filterCounterIF', 'paginationIF');updateLabelColors('tabs', 'btnif');">Interesting Files</label>
|
||||||
<label class="tabLabel" style="width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><strong>Recommendations</strong></label>
|
<label id="noactionmenuheader3"class="tabLabel" style="background-color: transparent;width:100%;color:#F56A00;padding-top:5px;padding-bottom:5px;margin-top:1px;margin-bottom:2px;font-weight:bolder;"><strong>Recommendations</strong></label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Attacks');radiobtn.checked = true;">Exploiting Access</label>
|
<label id="btnexploit" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Attacks');radiobtn.checked = true;updateLabelColors('tabs', 'btnexploit');">Exploiting Access</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Detections');radiobtn.checked = true;">Detecting Attacks</label>
|
<label id="btndetect" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Detections');radiobtn.checked = true;updateLabelColors('tabs', 'btndetect');">Detecting Attacks</label>
|
||||||
<label href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Remediation');radiobtn.checked = true;">Prioritization</label>
|
<label id="btnprioritize" href="#" class="stuff" style="width:100%;" onClick="radiobtn = document.getElementById('Remediation');radiobtn.checked = true;updateLabelColors('tabs', 'btnprioritize');">Prioritization</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
@ -4721,7 +4723,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
-->
|
-->
|
||||||
<div class="card" style="width: 22%">
|
<div class="card" style="width: 22%">
|
||||||
<div class="cardtitle" style="text-align:center;">
|
<div class="cardtitle" style="text-align:center;">
|
||||||
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('ComputerInsights');radiobtn.checked = true;">Computers</a>
|
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('ComputerInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btncomputers');">Computers</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
||||||
<span class="percentagetext" style = "color:#f08c41;">
|
<span class="percentagetext" style = "color:#f08c41;">
|
||||||
@ -4780,7 +4782,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
|
|
||||||
<div class="card" style="width: 22%">
|
<div class="card" style="width: 22%">
|
||||||
<div class="cardtitle" style="text-align:center;">
|
<div class="cardtitle" style="text-align:center;">
|
||||||
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('ShareName');radiobtn.checked = true;">Shares</a>
|
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('ShareName');radiobtn.checked = true;updateLabelColors('tabs', 'btnshares');">Shares</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
||||||
<span class="percentagetext" style = "color:#f08c41;">
|
<span class="percentagetext" style = "color:#f08c41;">
|
||||||
@ -4839,7 +4841,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
|
|
||||||
<div class="card" style="width: 22%">
|
<div class="card" style="width: 22%">
|
||||||
<div class="cardtitle" style="text-align:center;">
|
<div class="cardtitle" style="text-align:center;">
|
||||||
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;">ACEs</a>
|
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btnaces');">ACEs</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
||||||
<span class="percentagetext" style = "color:#f08c41;">
|
<span class="percentagetext" style = "color:#f08c41;">
|
||||||
@ -4898,7 +4900,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
|
|
||||||
<div class="card" style="width: 22%">
|
<div class="card" style="width: 22%">
|
||||||
<div class="cardtitle" style="text-align:center;">
|
<div class="cardtitle" style="text-align:center;">
|
||||||
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('IdentityInsights');radiobtn.checked = true;">Identities</a>
|
<a href="#" id="DashLink" style="text-decoration:none;color:white;font-size:18px;" onClick="radiobtn = document.getElementById('IdentityInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btnidentities');">Identities</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
<div class="cardcontainer" align="center" style="padding-bottom: 22px;">
|
||||||
<span class="percentagetext" style = "color:#f08c41;">
|
<span class="percentagetext" style = "color:#f08c41;">
|
||||||
@ -4933,7 +4935,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
In total, $RiskLevelCountCritical critical, $RiskLevelCountHigh high, $RiskLevelCountMedium medium, and $RiskLevelCountLow low risk ACE configurations were discovered across shares in the $TargetDomain Active Directory domain. The affected shares were found hosting $InterestingFilesAllObjectsSecretCount files that may contain passwords and $InterestingFilesAllObjectsSensitiveCount files that may contain sensitive data. Overall, $InterestingFilesAllFilesCount interesting files were found that could potentially lead to unauthorized data access or remote code execution. Click the chart titles below to explore the details.<Br><Br>
|
In total, $RiskLevelCountCritical critical, $RiskLevelCountHigh high, $RiskLevelCountMedium medium, and $RiskLevelCountLow low risk ACE configurations were discovered across shares in the $TargetDomain Active Directory domain. The affected shares were found hosting $InterestingFilesAllObjectsSecretCount files that may contain passwords and $InterestingFilesAllObjectsSensitiveCount files that may contain sensitive data. Overall, $InterestingFilesAllFilesCount interesting files were found that could potentially lead to unauthorized data access or remote code execution. Click the chart titles below to explore the details.<Br><Br>
|
||||||
</div>
|
</div>
|
||||||
<div class="LargeCard" style="width:45.75%;">
|
<div class="LargeCard" style="width:45.75%;">
|
||||||
<a href="#" id="DashLink" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;" style="text-decoration:none;">
|
<a href="#" id="DashLink" onClick="radiobtn = document.getElementById('AceInsights');radiobtn.checked = true;updateLabelColors('tabs', 'btnaces');" style="text-decoration:none;">
|
||||||
<div class="LargeCardTitle" style = "font-size: 15px; background-color: #07142A">
|
<div class="LargeCardTitle" style = "font-size: 15px; background-color: #07142A">
|
||||||
<strong>Share ACL Count by Risk Level</strong>
|
<strong>Share ACL Count by Risk Level</strong>
|
||||||
</div>
|
</div>
|
||||||
@ -4949,7 +4951,7 @@ input[type="checkbox"]:checked::before {
|
|||||||
|
|
||||||
|
|
||||||
<div class="LargeCard" style="width: 45.75%;">
|
<div class="LargeCard" style="width: 45.75%;">
|
||||||
<a href="#" id="DashLink" onClick="radiobtn = document.getElementById('InterestingFiles');radiobtn.checked = true;" style="text-decoration:none;">
|
<a href="#" id="DashLink" onClick="radiobtn = document.getElementById('InterestingFiles');radiobtn.checked = true;updateLabelColors('tabs', 'btnif');" style="text-decoration:none;">
|
||||||
<div class="LargeCardTitle" style = "font-size: 15px; background-color: #07142A">
|
<div class="LargeCardTitle" style = "font-size: 15px; background-color: #07142A">
|
||||||
<strong>Interesting Files Count</strong>
|
<strong>Interesting Files Count</strong>
|
||||||
</div>
|
</div>
|
||||||
@ -6350,15 +6352,15 @@ Invoke-HuntSMBShares -Threads 20 -RunSpaceTimeOut 10 -OutputDirectory c:\folder\
|
|||||||
// side menu collapse function
|
// side menu collapse function
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
function toggleMenu() {
|
function toggleMenu() {
|
||||||
const menu = document.getElementById('sideMenu');
|
const menu = document.getElementById('sideMenu');
|
||||||
const icon = document.querySelector('.menu-button .icon');
|
const icon = document.querySelector('.menu-button .icon');
|
||||||
menu.classList.toggle('collapsed');
|
menu.classList.toggle('collapsed');
|
||||||
if (menu.classList.contains('collapsed')) {
|
if (menu.classList.contains('collapsed')) {
|
||||||
icon.textContent = '☰'; // Collapsed state icon (hamburger menu)
|
icon.innerHTML = '<span style="font-size: 16px; color:#F56A00; transition: color 0.3s ease;" onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'#F56A00\'">☰</span>';
|
||||||
} else {
|
} else {
|
||||||
icon.textContent = '☰'; // Expanded state icon (hamburger menu)
|
icon.innerHTML = '<span style="font-size: 16px; color:#F56A00; transition: color 0.3s ease;" onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'#F56A00\'"><i class="fas fa-times"></i></span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------
|
// --------------------------
|
||||||
@ -7288,6 +7290,82 @@ function extractAndDownloadCSV(tableId, columnIndex) {
|
|||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateLabelColors(divId, objectId) {
|
||||||
|
// Get the div element by its ID
|
||||||
|
var divElement = document.getElementById(divId);
|
||||||
|
|
||||||
|
// Check if the div element exists
|
||||||
|
if (divElement) {
|
||||||
|
// Get all label elements that are children of the div
|
||||||
|
var labels = divElement.getElementsByTagName('label');
|
||||||
|
|
||||||
|
// Loop through all label elements
|
||||||
|
for (var i = 0; i < labels.length; i++) {
|
||||||
|
var label = labels[i];
|
||||||
|
|
||||||
|
// Check if the ID does not start with "noactionmenu"
|
||||||
|
if (!label.id.startsWith("noactionmenu")) {
|
||||||
|
// Reset the styles for labels that do not start with "noactionmenu"
|
||||||
|
label.style.fontWeight = '';
|
||||||
|
label.style.color = '';
|
||||||
|
label.style.backgroundColor = '';
|
||||||
|
label.style.transition = '';
|
||||||
|
label.style.textDecoration = '';
|
||||||
|
label.style.paddingLeft = '';
|
||||||
|
label.style.borderRadius = '';
|
||||||
|
label.style.paddingTop = '';
|
||||||
|
label.style.paddingBottom = '';
|
||||||
|
label.style.marginRight = '';
|
||||||
|
label.style.marginLeft = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.error("Div with id '" + divId + "' not found.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if the div element exists
|
||||||
|
if (divElement) {
|
||||||
|
// Get all label elements that are children of the div
|
||||||
|
var labels = divElement.getElementsByTagName('label');
|
||||||
|
|
||||||
|
// Loop through all label elements and clear their classes and inline styles, then reapply
|
||||||
|
for (var i = 0; i < labels.length; i++) {
|
||||||
|
// Save the class name and inline styles
|
||||||
|
var className = labels[i].className;
|
||||||
|
var style = labels[i].style.cssText;
|
||||||
|
|
||||||
|
// Remove all classes and inline styles
|
||||||
|
labels[i].className = '';
|
||||||
|
labels[i].style.cssText = '';
|
||||||
|
|
||||||
|
// Reapply the saved class name and inline styles
|
||||||
|
labels[i].className = className;
|
||||||
|
labels[i].style.cssText = style;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.error("Div with id '" + divId + "' not found.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the element by its object ID and set its background color to #25648C
|
||||||
|
var objectElement = document.getElementById(objectId);
|
||||||
|
|
||||||
|
if (objectElement) {
|
||||||
|
// Apply the desired styles
|
||||||
|
objectElement.style.fontWeight = 'normal';
|
||||||
|
objectElement.style.color = 'white';
|
||||||
|
objectElement.style.backgroundColor = '#17405A';
|
||||||
|
objectElement.style.transition = 'background-color 0.9s ease, color 0.3s ease';
|
||||||
|
objectElement.style.textDecoration = 'none';
|
||||||
|
objectElement.style.paddingLeft = '15px';
|
||||||
|
objectElement.style.borderRadius = '5px';
|
||||||
|
objectElement.style.paddingTop = '5px';
|
||||||
|
objectElement.style.paddingBottom = '5px';
|
||||||
|
objectElement.style.marginRight = '5px';
|
||||||
|
objectElement.style.marginLeft = '5px';
|
||||||
|
} else {
|
||||||
|
console.error("Element with id '" + objectId + "' not found.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user