From 29d0c5aa2f5c2e0a3d323c5acf793ac7be460849 Mon Sep 17 00:00:00 2001 From: Gitshaoxiang <1026025056@qq.com> Date: Thu, 13 Feb 2020 16:25:29 +0800 Subject: [PATCH 1/4] change anchor-box position --- docs/assets/css/main.css | 8 +++----- docs/index.html | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 0fc726c4..80a980b9 100755 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -203,10 +203,8 @@ body[data-page="en/arduino/arduino_home_page.md"] article.markdown-section { overflow: hidden; height: 0px; background-color: #fff; - /* border: 1px solid rgba(0,0,0,.15); - border-radius: .25rem; */ transition:all .25s ease; - left: -50%; + left: -50px; text-align: center; top: 40px; z-index: 1001; @@ -945,8 +943,8 @@ mark { .anchor-box { position: fixed; - top: 35%; - left: 3%; + top: 30%; + left: 25px; display: -webkit-flex; display: flex; flex-direction:column; diff --git a/docs/index.html b/docs/index.html index c7da3a59..45188297 100755 --- a/docs/index.html +++ b/docs/index.html @@ -435,7 +435,7 @@ function anchor_scroll(anchor_name,anchor_id,anchor_length){ var offset = $("#"+anchor_id).offset().top + $("#"+anchor_id).height() - $(window).scrollTop(); - if((offset > 100)&&(offset < ($("#"+anchor_id).height()+700))){ + if((offset > 100)&&(offset < ($("#"+anchor_id).height()+600))){ for (var i= 0; i< anchor_length; i++){ if( anchor_name == $(".anchor-box span").eq(i).html()){ $(".anchor-box a").addClass("anchor-quiet"); From dd8aa44a28e674eb966655dad911fa9b684654cc Mon Sep 17 00:00:00 2001 From: Gitshaoxiang <1026025056@qq.com> Date: Fri, 21 Feb 2020 18:20:01 +0800 Subject: [PATCH 2/4] add anchor nav cover problem --- docs/assets/css/main.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 80a980b9..612d428f 100755 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -1005,6 +1005,20 @@ mark { +@media screen and (max-width: 1450px) { + .anchor-box { + left: 0px; + } +} + + +@media screen and (max-width: 1050px) { + .anchor-box { + left: -40px; + } +} + + @media screen and (max-width: 768px) { .anchor-box { From 3518df2c0e1e3156ccf5d0c1aec70c0042b87611 Mon Sep 17 00:00:00 2001 From: Gitshaoxiang <1026025056@qq.com> Date: Fri, 21 Feb 2020 18:21:44 +0800 Subject: [PATCH 3/4] add anchor nav cover problem --- docs/assets/css/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 612d428f..2723605b 100755 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -1012,7 +1012,7 @@ mark { } -@media screen and (max-width: 1050px) { +@media screen and (max-width: 1170px) { .anchor-box { left: -40px; } From ad3725fbe0e1966aaccbad3f1c93fc4234854a4b Mon Sep 17 00:00:00 2001 From: Sean <1026025056@qq.com> Date: Mon, 24 Feb 2020 14:36:30 +0800 Subject: [PATCH 4/4] compression index HTML file --- docs/index.html | 537 +++++------------------------------------ docs/index_source.html | 457 +++++++++++++++++++++++++++++++++++ 2 files changed, 515 insertions(+), 479 deletions(-) create mode 100644 docs/index_source.html diff --git a/docs/index.html b/docs/index.html index 45188297..6a17cd37 100755 --- a/docs/index.html +++ b/docs/index.html @@ -1,481 +1,60 @@ - - - - - - - - - - M5Stack - A series of modular stackable development devices - - - - - - - - - - - - - - - - - - - -
- -
-
- M5Stack Docs
- -
- -
loading...
- - - - - - - - - - - - - - - - - + window.addEventListener('hashchange', function(event) { + var loadingMask = document.getElementById('loading'); + let url = window.location.href.split('#')[1]; + if (url.length < 2 || url == '/zh_CN/' || url == '/en/') { + + }else if(url.indexOf("?id=") < 0 ){ + loadingMask.style.display = 'block'; + } + }) +
M5Stack Docs
loading...
\ No newline at end of file diff --git a/docs/index_source.html b/docs/index_source.html new file mode 100644 index 00000000..6dd7232e --- /dev/null +++ b/docs/index_source.html @@ -0,0 +1,457 @@ + + + + + + + + + + M5Stack - A series of modular stackable development devices + + + + + + + + + + + + + + + + + + + +
+ +
+
+ M5Stack Docs
+ +
+ +
loading...
+ + + + + + + + + + + + + + + + + \ No newline at end of file