Ver código fonte

去掉GitHub在国内加载慢导致在转圈圈

WebApi
SmallChi(Koike) 4 meses atrás
pai
commit
a6f2f8e2af
4 arquivos alterados com 124 adições e 72 exclusões
  1. +118
    -66
      src/JTTools/wwwroot/css/site.css
  2. +1
    -0
      src/JTTools/wwwroot/img/github-mark-white.svg
  3. +4
    -5
      src/JTTools/wwwroot/index.html
  4. +1
    -1
      src/JTTools/wwwroot/js/site.js

+ 118
- 66
src/JTTools/wwwroot/css/site.css Ver arquivo

@@ -1,7 +1,7 @@
@supports (font-family: -apple-system) {
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
}

html {
@@ -85,150 +85,202 @@ body {
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}

/*
1.全局样式=====
*/
header .navbar {
padding: 15px;
}

@media screen and (max-width:768px) {
header .navbar {
padding: 10px;
}
}

main>.container {
padding: 100px 15px 0;
}
@media screen and (max-width:768px){

@media screen and (max-width:768px) {
main>.container {
padding: 65px 15px 0;
}
padding: 65px 15px 0;
}
}
#main *:focus
{
box-shadow:none;
#main *:focus {
box-shadow: none;
}

.btn-clear {
background: none;
border: none;
color: #6c757d;
/* Bootstrap的次要颜色 */
}
.pre{

.pre {
background: #fafafa;
padding: 15px;
border-radius: 4px;
border: 1px solid #eeeeee;
padding: 15px;
border-radius: 4px;
border: 1px solid #eeeeee;
}
.accordion-button:not(.collapsed){

.accordion-button:not(.collapsed) {
color: #166ff1;
font-weight: 300;
background-color: #fafafa;
}

.badge{
border: 1px solid #d9d9d9;
border-radius: 2px;
font-weight: 500;
.giuhub-link {
display: block;
}

.giuhub-logo {
width: 45px;
height: 45px;
}
.text-bg-primary{
color: #1d39c4!important;
background: #f0f5ff!important;
border-color: #adc6ff!important;

@media screen and (max-width:768px) {
.giuhub-logo {
width: 25px;
height: 25px;
}
}
.text-bg-secondary{
color: #531dab!important;
background: #f9f0ff!important;
border-color: #d3adf7!important;

.badge {
border: 1px solid #d9d9d9;
border-radius: 2px;
font-weight: 500;
}

.text-bg-primary {
color: #1d39c4 !important;
background: #f0f5ff !important;
border-color: #adc6ff !important;

}

.text-bg-secondary {
color: #531dab !important;
background: #f9f0ff !important;
border-color: #d3adf7 !important;
}
.text-bg-dark{

.text-bg-dark {
color: #666 !important;
background: #00000014 !important;
border-color: #b9b8b8 !important;
}
.text-bg-light{

.text-bg-light {
color: #000 !important;
background: #fff !important;
border-color: #d8d7d7 !important;
}
.text-bg-success{
color: #20c997!important;

.text-bg-success {
color: #20c997 !important;
background: #20c9961a !important;
border-color: #20c99683 !important;
}
.text-bg-danger{
color: #dc3545!important;

.text-bg-danger {
color: #dc3545 !important;
background: #dc35451a !important;
border-color: #dc354583 !important;
}
.text-bg-warning{
color: #d46b08!important;
background: #fff7e6!important;
border-color: #ffd591!important;

.text-bg-warning {
color: #d46b08 !important;
background: #fff7e6 !important;
border-color: #ffd591 !important;
}
.text-bg-info{
color: #096dd9!important;
background: #e6f7ff!important;
border-color: #91d5ff!important;

.text-bg-info {
color: #096dd9 !important;
background: #e6f7ff !important;
border-color: #91d5ff !important;
}

.row{
.row {
margin-left: 0;
margin-right: 0;
}

/*
2.JT808Parse模块样式====
*/

#JT808Parse textarea{
#JT808Parse textarea {
padding-top: 40px;
}
#JT808Parse label{
color: rgb(222, 110, 5);
padding-top: 20px;
font-weight: bold;

#JT808Parse label {
color: rgb(222, 110, 5);
padding-top: 20px;
font-weight: bold;
}
#JT808Parse label i{

#JT808Parse label i {
font-size: 20px;
}
#JT808_Accordion_Result .badge{

#JT808_Accordion_Result .badge {
margin-left: 10px;
}

/*
4.产品模块样式====
*/
#ProductAD .carousel-inner{
#ProductAD .carousel-inner {
height: 400px;
}
#ProductAD .icon{
width: 65px;
height: 65px;
background: #ccc;
text-align: center;
border-radius: 50%;
margin: 25px 0 0 25px;

#ProductAD .icon {
width: 65px;
height: 65px;
background: #ccc;
text-align: center;
border-radius: 50%;
margin: 25px 0 0 25px;
}
@media screen and (max-width:768px){
#ProductAD .icon{

@media screen and (max-width:768px) {
#ProductAD .icon {
width: 50px;
height: 50px;
margin: 15px 0 0 15px;
}
}

#ProductAD>.card {
border: none
}
#ProductAD >.card{
border:none
}
#ProductAD .nav-pills{

#ProductAD .nav-pills {
border-bottom: 1px solid #eee;
width: 100%;
}
#ProductAD .nav-pills .nav-link{

#ProductAD .nav-pills .nav-link {
background: #eee;
color: #333;
border-bottom-left-radius: 0 ;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
#ProductAD .nav-pills .nav-link.active{

#ProductAD .nav-pills .nav-link.active {
background: #258cfb;
color: #fff;
}
#ProductAD .row{

#ProductAD .row {
margin-left: -12px;
margin-right: -12px;
}

#ProductAD .custom-tooltip {
--bs-tooltip-bg: #712cf9;
--bs-tooltip-color: #fff;

+ 1
- 0
src/JTTools/wwwroot/img/github-mark-white.svg Ver arquivo

@@ -0,0 +1 @@
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#fff"/></svg>

+ 4
- 5
src/JTTools/wwwroot/index.html Ver arquivo

@@ -11,7 +11,7 @@
<meta name="author" content="SmallChi(Koike)" />
<link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="/lib/bootstrap-icons/bootstrap-icons.min.css" />
<link rel="stylesheet" href="/css/site.css?v=1.0.0" />
<link rel="stylesheet" href="/css/site.css?v=1.0.1" />
<script src="/lib/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
<script src="/lib/axios@1.7.9.min.js" type="text/javascript"></script>
@@ -72,10 +72,9 @@
</li>
</ul>
<div>
<iframe
src="https://ghbtns.com/github-btn.html?user=SmallChi&repo=JTTools&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="170" height="30" title="GitHub">
</iframe>
<a href="https://github.com/SmallChi/JTTools" target="_blank" class="giuhub-link">
<img src="/img/github-mark-white.svg" class="giuhub-logo" alt="JTTools GitHub">
</a>
</div>
</div>
</div>


+ 1
- 1
src/JTTools/wwwroot/js/site.js Ver arquivo

@@ -147,7 +147,7 @@ $(document).ready(function () {
}
});

$("#JT19056_ProtocolType").on("change",function () {
$("#JT19056_ProtocolType").on("change", function () {
var selectedValue = $(this).val();
if (selectedValue == "up") {
$("#JT19056_Hex").val(JT19056UpHexData);


Carregando…
Cancelar
Salvar