Tip: This program does not support IE8 and lower version browsers, please use a new version of the browser to access.
Template file description
/2014 is used to store the generated static pages. If it is changed, please modify the path in love.php at the same time.
The /js/love.min.js field obtains the js compressed file /js/love.src.js which is uncompressed
love.php core processing file, love.min.js passes parameters to this file for processing and generates corresponding static pages
loveNote.txt data record
The page generated by the loveTpl.html page template file love.php uses this file as the template program operation principle. Add span tags to the page text, set the unique attribute id="text-xx", and use contenteditable="true" to enable editing of the element. mode, use the jQuery attribute .click() to determine the click, use .text() to return the text content of this element, and use regular expressions to determine whether the content is legal, and then process it through AJAX POST to PHP. PHP filters the incoming parameters, and then Read the template file, replace the corresponding content of the template file, save it as a new file and record the operation, and finally return the data to the front end, which processes the data and updates the page.
Instructions for use: Upload the decompressed folder love to the root directory of the website and access it through http://your domain name/love/
Note: This is a program that automatically generates a confession page. The template is original by jianghongfei.com.cn and secondary developed by Mai Cong (www.yuxiaoxi.com). It is for entertainment only and may not be used for commercial purposes!