web front end
-
Push up nose tip press counter In the world of fitness enthusiasts, a practical counting tool can greatly improve the exercise experience, such as pressing the counter on the nose tip of push ups. It is designed to accurately record the number of push ups. When you do push up training, just visit the counter page with your mobile browser and place it below your nose. Each time you complete a standard push up, gently press the screen with the tip of your nose, and it can accurately record a standard action. This counter can be easily used in the gym or at home. Moreover, it only .. two thousand and twenty-five two hundred and seventy-eight -
Pi recitation tool Recently, I wrote a small tool for reciting Pi, which brings us an interactive experience that combines education with pleasure and challenges the limits of self memory. Both math enthusiasts and users who want to exercise memory and concentration can enjoy and gain from it. This tool realizes the auxiliary recitation of Pi, which is adaptive to the mobile phone terminal. The input box can only input numbers, and has a timing function. When the first number key is pressed, the timing will start automatically. Only when the correct number is entered, the progress can be continued. When the input is wrong, the wrong number of times and the correct rate will be counted. After all the digits are input .. two thousand and twenty-four three hundred and seventy-eight -
PHP realizes obtaining the cover map through the public account link The cover image displayed in WeChat is very small and cannot be downloaded. How to obtain the original cover image? If you have nothing to do, you can explore it. It is found that the cover of the public account article is the value of the "msg_cdn_url" variable in the article html. Therefore, the idea of using PHP to implement it is clear. First write a simple HTML interface .. two thousand and twenty-four five hundred and twenty-five -
Use jQuery to write a ChatGPT typing effect In recent years, with the continuous development of technology, artificial intelligence (AI) has gradually become a hot topic. Among them, as a large language model, ChatGPT has become increasingly popular in China. Its natural language processing function allows users to communicate more naturally, and it can also be used as a core algorithm in various AI products and services. AI has been widely used and developed rapidly, from smart home to automatic driving, medical and other fields. For example, researchers at MIT found a super antibiotic halic by using AI system two thousand and twenty-three two thousand nine hundred and ninety-six -
Zblog (non js) calls the method of discuz post Step 1: Create new empty files news01.html and news02.html in the zblog directory (taking b2c theme as an example)/zb_users/theme/b2c/include directory. Step 2: Copy the following code and save it as news. php, and upload it to the source/include/cron/directory of the discuz program. <?phpif(!defined('IN_DISCUZ... two thousand and twenty five thousand and twenty -
The difference between javascript execution before and after elements When writing native js, we found that the script cannot be executed before the dom element, and it needs to be placed after the dom element to be effective. Because the js is executed immediately after loading, we put the code in the window.onload function body, and let the page be loaded completely before execution. Window. onload=function() {//Execute when the page is loaded} The jQuery code placed before and after the page element has no impact on the execution effect. ... two thousand and nineteen five thousand five hundred and two -
Record the optimization process of simple and complex switching font When making zblog themes, in order to increase the function of simple and complex switching, we found a simple and complex font database data on the Internet. Because zblog themes use Microsoft Yahei font, some traditional characters are the same as simplified characters. In order to eliminate the same text, the specific idea is to first change the simplified and traditional characters to take up a single line for each Chinese character, and then use Excel Find and delete the same item in two columns of data, and then restore the format through Sublime. The result is all the optimized text,. The detailed methods are as follows: 1. First .. two thousand and seventeen six thousand nine hundred and fifty-seven -
Example of jquery price switching with specifications Nowadays, when we browse the product page of e-commerce website, we often see the display of product specifications and prices. Different specifications correspond to different prices. For example, on the hot sale theme page of our website, click on the specifications to display the corresponding prices. The implementation method is very simple, so we wrote a responsive example page to show that prices switch with the specifications. Effect preview: jquery code: $(function() { two thousand and seventeen eight thousand six hundred and nine -
Query tool for prohibited words in the new advertising law The new Advertising Law, which came into force on September 1, 2015, clearly stipulates that advertisements shall not contain false or misleading content, and shall not deceive or mislead consumers. It is prohibited to publish tobacco advertisements in mass media or public places; It is prohibited to use advertisements and public service advertisements of other goods or services to publicize the names, trademarks and other contents of tobacco products. This website has written a set of convenient query tools for young partners engaged in e-commerce industry. At present, 420 words have been included. Forbidden words query tools: https://zbp.toyean.com/... two thousand and seventeen twenty-four thousand and ten -
Two methods of generating order number in PHP When developing a project, there is often a need to generate an order number. Here are two common methods to generate a 20 digit order number. Method 1: The following code is 14 bits of current time plus 6 bits of random number. If you want to increase or decrease the number of bits, just change the number 6 at the end. <?phpfunction build_order_no(){ return date('YmdHis&#... two thousand and seventeen seven thousand seven hundred and ninety-three -
Setting method of apmserv pseudo static APMServ is a one click software to build a PHP environment, which facilitates the development and debugging of local PHP programs. In order to support pseudo static when developing zblog themes or using zblog PHP programs, you need to modify the Apache configuration file. By default, the software does not support pseudo static, and you need to manually modify it. The method is as follows: Open APMServ software (right click the administrator to run it)>Apache Settings>Modify the configuration file. In the open httpd.conf file, find .. two thousand and seventeen six thousand eight hundred and forty-two -
Three methods for jQuery to determine whether the checkbox is selected In the project, the check box selection status of the form is often judged, and the following three common methods are summarized .. two thousand and seventeen seven thousand two hundred and forty-eight -
Two Methods of Domain Name Authorization in PHP 01. Online verification of domain name authorization: Client code:<? Php//Get the domain name prefix without port number $servername=trim ($_SERVER ['SERVER_NAME ']); //Get the server authorization file verification $verifyurl=file_get_contents (&# 39 two thousand and sixteen sixteen thousand two hundred and thirty-seven -
Three methods for JQuery to cancel event bubbling 1. Cancel the default behavior and prevent the event from bubbling by returning false. $(element).click(function(){return false; }); 2. Cancel the default behavior by using the preventDefault() method. $(element).click(function(e){e.preventDefau... two thousand and sixteen nine thousand nine hundred and thirty-six -
Right column of e-commerce website Nowadays, more and more websites have added sidebars, especially e-commerce websites, such as Vipshop, Tmall, JD, JumeiYoupin, etc., which use traditional sidebars to indicate with icons, making website navigation clear at a glance, allowing users to focus on side navigation at a glance, achieving good interaction with users and increasing PV, It also shows the noble quality of the website. The following is our sidebar effect. The core code is as follows: LESS: @ c two thousand and sixteen nineteen thousand one hundred and eighty-two -
Sort out common codes of Tmall JD Dangdang stores Taobao C store 1920 full screen code: .. two thousand and sixteen nine thousand one hundred and eleven -
Tuoyuan zblogphp Topic Tag Assistant V1.0 Release Tuoyuan zblogphp topic assistant is a software developed according to the requirements of zbp topic production, covering the commonly used topic tags of zblogphp, so that the theme production can achieve twice the result with half the effort. The Zbp theme assistant of Tuoyuan is green software, pure and non-toxic. ... two thousand and fourteen nineteen thousand and fifty-nine -
The method of implementing classified search in zblog There are many ways for zblog to implement classified search (nonsense). One common way is that there are classified search plug-ins in the application center. After installation and enabling, set the generated code, which can be written into the sidebar or put into the theme file for use; Another method is to implement classification search by YTCMS ..... two thousand and fourteen eleven thousand and forty-seven