简体   繁体   中英

Wordpress Jquery Page Completion

I am developing an E-learning site. I want my registered students to get this feature when they are reading a course content: a completion button locating right beside each paragraph, and what it does is it makes the paragraph font colours change, so these students can always login in the future and the browser remember where they should start to continued the readings.

For example: 在此处输入图片说明

Changing these font colour is not too hard for me to do as I do front-end development, but I am confused when its relating to database/cookie? Please share with your experience.

Thank you

在数据库表中设置一个标志(列),并且该列的值是(1/0)表示是否完成。当用户单击复选框时,将该列的值更改为1(完成);并且当用户登录到该帐户时,您必须根据此标志显示他/她的帐户值,意味着基于1/0值显示段落字体颜色。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM