This article introduces the differences between `scrollHeight`, `scrollTop`, and `clientHeight` in JavaScript and provides code to implement a reading progress bar using MDUI's progress bar. In the code, attention should be paid to the differences in obtaining the values of `scrollHeight` and `clientHeight` across different browsers.
This article introduces how to use VAPTCHA CAPTCHA in a Typecho blog and how to introduce and initialize the SDK in the theme's `after-footer.php` (`footer.php`) file. The article also provides some CSS styles and event listener codes. Finally, it notes that VAPTCHA is compatible with most browsers but does not support versions below IE7.
Recently, while watching anime on Bilibili, I found an API that can get the late
This article introduces how to use CSS to implement dark mode on web pages. By using `@media (prefers-color-scheme: dark)` in combination with the `:root` selector, you can change the colors and background images of the web page based on the user's system theme settings. Note that some browsers do not support the `prefers-color-scheme` feature.
This article mainly tells the story of the author discovering a sudden increase in website traffic while using Tencent Cloud CDN services, only to find out later that it was due to high-intensity visits from a certain IP, causing some issues with the website. The author reduced the IP access threshold to avoid impact and also warned others to be aware of similar situations.
This article introduces a method to increase Matlab's startup speed by adding the address of the license file to the end of the Target field in the Matlab shortcut. This method can significantly reduce the startup time of the software, making it more convenient and efficient for users to use.
This article introduces a tool for obtaining the main colors of an image, with the core principle of the tool being the Median Cut method. The implementation principle of the Median Cut method involves establishing a three-dimensional RGB space, placing all the pixel colors of the image into this RGB space, then drawing a three-dimensional RGB region that includes all the pixel colors of the image. The third step is to take the longest edge of this RGB region for median cutting, ensuring that the two new RGB regions after the cut contain the same pixel points. This process is repeated until the number of cuboids cut out equals the number of main colors of the image. Finally, the average value of the pixels in the small cuboid region can be taken as the main color of the image. The article includes the corresponding code.
This article introduces the new Edge browser launched by Microsoft in January 2020 and evaluates its pros and cons. The new Edge can directly import data from Google Chrome and supports plugins from both Microsoft and Chrome stores, also adding a 'Collections' feature, but there are some layout issues. Additionally, the author compares the video loading speed of the new Edge browser with Google Chrome and finds that there is not much difference. Finally, the author expresses the hope that Microsoft will take the browser seriously to avoid the new Edge becoming the next IE browser.
This article provides some suggestions on layout and formatting, including fonts, layout format, text format, and images. It is recommended to use Microsoft YaHei font or system fonts, set appropriate line spacing and heading sizes, and add spaces and use proper capitalization in text. Images need to be compressed to enhance the web browsing experience. Finally, the articles are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This article discusses the issue of encountering the "No input file specified" error when using the `search.php` file for the sidebar search function in the Nexmoe theme if the website does not enable pseudo-static. The solution is to modify the action attribute of the search form in `search.php`, changing `./search` to `./index.php/search`.