mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-11-30 02:38:24 +08:00
Merge remote-tracking branch 'repchain-lab/dev_rc_jdk13_1.3.1' into dev_rc_jdk13_1.3.1
This commit is contained in:
commit
6e40ac36aa
@ -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>
|
||||
|
11061
src/main/resources/swagger/swagger-ui-dark.css
Normal file
11061
src/main/resources/swagger/swagger-ui-dark.css
Normal file
File diff suppressed because it is too large
Load Diff
19
src/main/resources/web/css/g1.css
Normal file
19
src/main/resources/web/css/g1.css
Normal 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;
|
||||
}
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user