• Tons of typos in the code; stylee, scritps, scrpts, folder named “assents” instead of “assets”, etc.
    Copy pasted code from a google maps plugin, forgot to change the description.
    Talks about loading a whatsapp box in descriptions.

    Reason I looked into it this is the min_date and max_date values didn’t process dates correctly. A quick cursor run through fixed it for me:

    Issue at line 15 in assents/js/script.js: the date string is split but not converted to numbers before creating the Date. Converting the components to integers:
                  configdat.minDate = new Date(parseInt(date_min_val_arr[0]), parseInt(date_min_val_arr[1])-1, parseInt(date_min_val_arr[2]));

    Issue: date components are strings after splitting, causing incorrect Date construction. Converting them to integers with parseInt() before creating the Date. Fixing both minDate and maxDate parsing:
                    configdat.maxDate = new Date(parseInt(date_max_val_arr[0]), parseInt(date_max_val_arr[1])-1, parseInt(date_max_val_arr[2]));

    Fixed the date parsing issue. The problem was that after splitting “2026-01-04” by -, the values were strings, and JavaScript’s Date constructor can misparse them.

    Posting this in case anyone else runs into this plugin, it’s buggy.

You must be logged in to reply to this review.