Merge remote-tracking branch 'repchain-lab/dev_rc_jdk13_1.3.1' into dev_rc_jdk13_1.3.1

This commit is contained in:
jiangbuyun 2021-05-20 16:53:32 +08:00
commit 6e40ac36aa
4 changed files with 11098 additions and 0 deletions

View File

@ -56,5 +56,12 @@
window.ui = ui
}
</script>
<script>
var url = new URL(window.location.href);
var theme = url.searchParams.get("theme");
if (theme == 'dark') {
document.write('<link rel="stylesheet" type="text/css" href="./swagger-ui-dark.css">');
}
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
.ui-accordion {
color: #333333;
}
.ui-accordion-header.ui-corner-top.ui-accordion-header-collapsed.ui-corner-all.ui-state-default.ui-accordion-icons {
/*color: #3c763a;*/
color: #50e3c2;
background-color: #333333
}
.textClass {
stroke: #50e3c2;
font-family: "Lucida Grande", "Droid Sans", Arial, Helvetica, sans-serif;
font-weight: normal;
stroke-width: .8;
opacity: 0.8;
font-size: 14px;
color: #50e3c2;
}

View File

@ -175,6 +175,16 @@
};
}
function switchTheme(){
var url = new URL(window.location.href);
var theme = url.searchParams.get("theme");
if(theme == 'dark'){
$("body").css('background-color', '#303030').append('<link rel="stylesheet" type="text/css" href="./css/g1.css">');
}else{
$("body").css('background-color', 'white');
}
}
function drawDemo() {
var newAccordion = "<h3>Section Block</h3><div><ul><li><a href='#'>块hash</a>:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li><li>块hash:xkjkxjk</li></ul></div>";
for (var i = 0; i < 20; i++) {
@ -492,6 +502,7 @@
}
$(document).ready(function() {
switchTheme();
drawGraph();
$("#accordion").accordion({
collapsible: true,