WHAT
WHY
-
One of the features of H5 is geolocation. Therefore, GPS positioning is used to divide the check-in of teachers and students into a certain range -
It is suggested to use Baidu AI in the proposition. It is found that there is face recognition function in it. If this function is added, it can realize double check for effective sign in -
Because the proposition requires that both PC and mobile can be used, the validity check is realized by using EXIF to query the photo time of face photos on PC
WHERE
-
In the implementation of the project, it is found that the H5 compatibility between different mobile phone browsers is still different, so many problems are found. Therefore, two kinds of friendly error prompts are made in GPS positioning, which is also convenient for positioning -
In order to show more features of H5 and CSS3, a MD style suspended menu is added, but it can't be clicked under IOS -
When exporting the check-in report, open the report through Excel and find that the number changes into scientific counting method -
Check and compare the validity of photos by EXIF. This is the solution our team came up with in brainstorming. I really like brainstorming -
Because the use of GPS positioning will be teachers and students to sign in within a certain range, so we need to calculate the longitude and latitude distance between the two points -
V2.0 adds the function of roster, which needs to be processed by Excel
HOW
-
The solution of GPS positioning
View code: /student.html#L222-L244 -
Solution to click event invalidation in IOS Safari
View Article: /Safari-Click.html -
Solution of digital variable science counting method for exporting CSV file
View Article: /export-csv.html -
Check the time between the photo and the current time by EXIF
View code: /student.html#L193-L209 -
Algorithm of longitude and latitude distance between two points
View code: /distance.function.php -
Using phpexcel to process Excel
View code: /api.php#L80-L95 (for more usage, please go to GitHub to see the example of phpexcel.)