{"id":42,"date":"2025-08-26T11:12:06","date_gmt":"2025-08-26T04:12:06","guid":{"rendered":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/student-registration\/"},"modified":"2025-08-26T11:12:06","modified_gmt":"2025-08-26T04:12:06","slug":"student-registration","status":"publish","type":"page","link":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/student-registration\/","title":{"rendered":"Student Registration"},"content":{"rendered":"\t<script type=\"text\/javascript\" src=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/assets\/js\/Jquery\/jquery-3.6.0.min.js\"><\/script>\r\n\t<script type=\"text\/javascript\" src=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/assets\/js\/Jquery\/jquery-ui.js\"><\/script>\r\n\t<script type=\"text\/javascript\" src=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/lib\/validationEngine\/js\/languages\/jquery.validationEngine-en.js\"><\/script>\r\n\t<script type=\"text\/javascript\" src=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/lib\/validationEngine\/js\/jquery.validationEngine.js\"><\/script>\r\n\t\t<script>\r\n\t\tjQuery(document).ready(function($) {\r\n\t\t\t\"use strict\";\r\n\t\t\t$('#registration_form').validationEngine({\r\n\t\t\t\tpromptPosition: \"bottomLeft\",\r\n\t\t\t\tmaxErrorsPerField: 1\r\n\t\t\t});\r\n\t\t\tjQuery('#birth_date').datepicker({\r\n\t\t\t\tmaxDate: 0,\r\n\t\t\t\tdateFormat: \"yy\/mm\/dd\",\r\n\t\t\t\tchangeMonth: true,\r\n\t\t\t\tchangeYear: true,\r\n\t\t\t\tyearRange: '-65:+25',\r\n\t\t\t\tonChangeMonthYear: function(year, month, inst) {\r\n\t\t\t\t\tjQuery(this).val(month + \"\/\" + year);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\/\/custom field datepicker\r\n\t\t\t$('.after_or_equal').datepicker({\r\n\t\t\t\tdateFormat: \"yy-mm-dd\",\r\n\t\t\t\tminDate: 0,\r\n\t\t\t\tchangeMonth: true,\r\n\t\t\t\tchangeYear: true,\r\n\t\t\t\tbeforeShow: function(textbox, instance)\r\n\t\t\t\t{\r\n\t\t\t\t\tinstance.dpDiv.css({\r\n\t\t\t\t\t\tmarginTop: (-textbox.offsetHeight) + 'px'\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('.date_equals').datepicker({\r\n\t\t\t\tdateFormat: \"yy-mm-dd\",\r\n\t\t\t\tminDate: 0,\r\n\t\t\t\tmaxDate: 0,\r\n\t\t\t\tchangeMonth: true,\r\n\t\t\t\tchangeYear: true,\r\n\t\t\t\tbeforeShow: function(textbox, instance)\r\n\t\t\t\t{\r\n\t\t\t\t\tinstance.dpDiv.css({\r\n\t\t\t\t\t\tmarginTop: (-textbox.offsetHeight) + 'px'\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('.before_or_equal').datepicker({\r\n\t\t\t\tdateFormat: \"yy-mm-dd\",\r\n\t\t\t\tmaxDate: 0,\r\n\t\t\t\tchangeMonth: true,\r\n\t\t\t\tchangeYear: true,\r\n\t\t\t\tbeforeShow: function(textbox, instance)\r\n\t\t\t\t{\r\n\t\t\t\t\tinstance.dpDiv.css({\r\n\t\t\t\t\t\tmarginTop: (-textbox.offsetHeight) + 'px'\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('.space_validation').on('keypress', function(e)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (e.which === 32)\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t});\r\n\t\t\t\/\/Custom Field File Validation\/\/\r\n\t\t\tfunction Smgt_custom_filed_fileCheck(obj)\r\n\t\t\t{\r\n\t\t\t\t\"use strict\";\r\n\t\t\t\tvar fileExtension = $(obj).attr('file_types');\r\n\t\t\t\tvar fileExtensionArr = fileExtension.split(',');\r\n\t\t\t\tvar file_size = $(obj).attr('file_size');\r\n\t\t\t\tvar sizeInkb = obj.files[0].size \/ 1024;\r\n\t\t\t\tif ($.inArray($(obj).val().split('.').pop().toLowerCase(), fileExtensionArr) == -1)\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Only \" + fileExtension + \"formats are allowed.\");\r\n\t\t\t\t\t$(obj).val('');\r\n\t\t\t\t} else if (sizeInkb > file_size)\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Only \" + file_size + \" kb size is allowed\");\r\n\t\t\t\t\t$(obj).val('');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tfunction fileCheck(obj)\r\n\t\t{\r\n\t\t\tvar fileExtension = ['jpeg', 'jpg', 'png', 'bmp', ''];\r\n\t\t\tif ($.inArray($(obj).val().split('.').pop().toLowerCase(), fileExtension) == -1)\r\n\t\t\t{\r\n\t\t\t\talert(\"Only \" + fileExtension + \"formats are allowed.\");\r\n\t\t\t\t$(obj).val('');\r\n\t\t\t}\r\n\t\t}\r\n\t<\/script>\r\n\t\t<style>\r\n\t\t.entry-content {\r\n\t\t\tfont-family: Poppins !important;\r\n\t\t}\r\n\t\tdiv.student_registraion_form {\r\n\t\t\tfont-style: normal !important;\r\n\t\t\tfont-family: Poppins !important;\r\n\t\t}\r\n\t\t.save_btn {\r\n\t\t\theight: 46px;\r\n\t\t\tbackground-color: #5840bb !important;\r\n\t\t\tbackground: #5840bb;\r\n\t\t\tcolor: #fff !important;\r\n\t\t\twidth: 100% !important;\r\n\t\t\tfont-weight: 500 !important;\r\n\t\t\tfont-size: 16px !important;\r\n\t\t\tline-height: 24px;\r\n\t\t\ttext-align: center;\r\n\t\t\tcolor: #FFFFFF;\r\n\t\t\ttext-transform: uppercase;\r\n\t\t\tborder: 0px solid black !important;\r\n\t\t}\r\n\t\t.line_height_29px_registration_from {\r\n\t\t\tline-height: 29px !important;\r\n\t\t}\r\n\t\t.line_height_27px_registration_from {\r\n\t\t\tline-height: 25px !important;\r\n\t\t}\r\n\t\t.form-control:focus {\r\n\t\t\tbox-shadow: 0 0 0 0rem rgb(13 110 253 \/ 25%) !important;\r\n\t\t}\r\n\t\t.res_margin_bottom_20px {\r\n\t\t\tmargin-bottom: 20px;\r\n\t\t}\r\n\t<\/style>\r\n\t\t<link rel=\"stylesheet\" href=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/assets\/css\/font-awesome.min.css\">\r\n\t\t<script>\r\n\t\t$(document).ready(function ()\r\n\t\t{\r\n\t\t\tvar allowedTypes = [\"pdf\",\"doc\",\"docx\",\"ppt\",\"pptx\",\"gif\",\"png\",\"jpg\",\"jpeg\",\"webp\"];\r\n\t\t\tvar maxFileSizeMB = 30; \/\/ Maximum file size in MB\r\n\t\t\tvar maxFileSizeBytes = maxFileSizeMB * 1024 * 1024;\r\n\t\t\tjQuery(\"body\").on(\"change\", \".file_validation[type=file]\", function ()\r\n\t\t\t{ \r\n\t\t\t\tvar val = $(this).val().toLowerCase();\r\n\t\t\t\t\/\/ Join the allowed types into a regex pattern\r\n\t\t\t\tvar regexPattern = \"(.*?)\\\\.(\" + allowedTypes.join(\"|\") + \")$\";\r\n\t\t\t\t\r\n\t\t\t\tvar regex = new RegExp(regexPattern);\r\n\t\t\t\tvar fileInput = $(this)[0];\r\n\t\t\t\tvar file = fileInput.files[0];\r\n\t\t\t\tif (!(regex.test(val))) {\r\n\t\t\t\t\t$(this).val('');\r\n\t\t\t\t\t\/\/ Create a dynamic alert message in JavaScript\r\n\t\t\t\t\tvar allowedFormatsMessage = 'Only ' + allowedTypes.join(', ') + ' formats are allowed.';\r\n\t\t\t\t\talert(allowedFormatsMessage);\r\n\t\t\t\t}\r\n\t\t\t\tif (file) {\r\n\t\t\t\t\tif (file.size > maxFileSizeBytes) {\r\n\t\t\t\t\t\t$(this).val(''); \/\/ Clear the input\r\n\t\t\t\t\t\talert('Too large file Size. Only file smaller than ' + maxFileSizeMB + 'MB can be uploaded.');\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}); \r\n\t\t});\r\n\t\t\r\n\t\tvar smgt = {\"ajax\":\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-admin\/admin-ajax.php\"};\r\n\t\t\/\/ ADD MORE DOCUMENT AJAX\r\n\t\tfunction add_more_document()\r\n\t\t{\r\n\t\t\tvar curr_data = {\r\n\t\t\taction: 'mj_smgt_load_more_document',\r\n\t\t\tdataType: 'json'\r\n\t\t\t};\r\n\t\t\t$.post(smgt.ajax, curr_data, function(response)\r\n\t\t\t{\r\n\t\t\t\t$(\".more_document\").append(response);\r\n\t\t\t});\r\n\t\t}\r\n\t\t\/\/ DELETE DOCUMENT AJAX\r\n\t\tfunction deleteParentElement(n)\r\n\t\t{\r\n\t\t\tvar alert = confirm(\"Are you sure you want to delete this record?\");\r\n\t\t\t\tif (alert == true){\r\n\t\t\t\t\tn.parentNode.parentNode.parentNode.removeChild(n.parentNode.parentNode);\r\n\t\t\t\t}\r\n\t\t}\r\n\t<\/script>\r\n\t<div class=\"student_registraion_form\">\r\n\t\t<form id=\"registration_form\" action=\"\/emodul\/wp-json\/wp\/v2\/pages\/42\" method=\"post\" enctype=\"multipart\/form-data\">\r\n\t\t\t<div class=\"form-body user_form\"> <!------  Form Body -------->\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-md-6 input error_msg_left_margin responsive_bottom_5\">\r\n\t\t\t\t\t\t<label class=\"ml-1 custom-top-label top\" for=\"hmgt_contry\">Class Name<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t<select name=\"class_name\" class=\"line_height_27px_registration_from form-control validate[required] width_100\" id=\"class_name\">\r\n\t\t\t\t\t\t\t<option value=\"\">Select Class<\/option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"first_name\" class=\"line_height_29px_registration_from form-control validate[required,custom[onlyLetter_specialcharacter]] text-input\" maxlength=\"50\" type=\"text\" value=\"\" name=\"first_name\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">First Name<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"middle_name\" class=\"line_height_29px_registration_from form-control validate[custom[onlyLetter_specialcharacter]]\" maxlength=\"50\" type=\"text\" value=\"\" name=\"middle_name\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Middle Name<\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"last_name\" class=\"line_height_29px_registration_from form-control validate[required,custom[onlyLetter_specialcharacter]] text-input\" maxlength=\"50\" type=\"text\" value=\"\" name=\"last_name\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Last Name<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6 res_margin_bottom_20px\">\r\n\t\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<div class=\"row padding_radio mb-0\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"input-group mb-0\">\r\n\t\t\t\t\t\t\t\t\t\t<label class=\"custom-top-label margin_left_0 gender_label_rtl\">Gender<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"d-inline-block mb-1\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" value=\"male\" class=\"tog validate[required]\" name=\"gender\"  checked='checked' \/>\r\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"custom-control-label margin_right_20px\" for=\"male\">Male<\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" value=\"female\" class=\"tog validate[required]\" name=\"gender\"  \/>\r\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"custom-control-label\" for=\"female\">Female<\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" value=\"other\" class=\"tog validate[required]\" name=\"gender\"  \/>\r\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"custom-control-label\" for=\"female\">Other<\/label>\r\n\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6 \">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"birth_date\" class=\"line_height_29px_registration_from validate[required]\" type=\"text\" name=\"birth_date\" value=\"2026\/04\/05\" readonly>\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Date of Birth<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"address\" class=\"line_height_29px_registration_from form-control validate[required,custom[address_description_validation]]\" maxlength=\"120\" type=\"text\" name=\"address\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Address<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"city_name\" class=\"line_height_29px_registration_from form-control validate[required,custom[city_state_country_validation]]\" maxlength=\"50\" type=\"text\" name=\"city_name\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">City<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"state_name\" class=\"line_height_29px_registration_from form-control validate[custom[city_state_country_validation]]\" maxlength=\"50\" type=\"text\" name=\"state_name\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">State<\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"zip_code\" class=\"form-control line_height_29px_registration_from validate[required,custom[zipcode]]\" maxlength=\"15\" type=\"text\" name=\"zip_code\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Zip Code<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6 mobile_error_massage_left_margin\">\r\n\t\t\t\t\t\t<div class=\"form-group input margin_bottom_0\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control mobile_input\">\r\n\t\t\t\t\t\t\t\t<span class=\"input-group-text country_code_prefix\">+1<\/span>\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"+1\" class=\"line_height_29px_registration_from country_code_res\" name=\"phonecode\">\r\n\t\t\t\t\t\t\t\t<input id=\"mobile_number\" class=\"line_height_29px_registration_from form-control text-input validate[required,custom[phone_number],minSize[6],maxSize[15]]\" type=\"text\" name=\"mobile_number\" maxlength=\"10\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput6 \" class=\"label_mobile_number custom-control-label custom-top-label\">Mobile Number<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6 mobile_error_massage_left_margin\">\r\n\t\t\t\t\t\t<div class=\"form-group input margin_bottom_0\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control mobile_input\">\r\n\t\t\t\t\t\t\t\t<span class=\"input-group-text country_code_prefix\">+1<\/span>\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"+1\" class=\"line_height_29px_registration_from\" name=\"alter_mobile_number\">\r\n\t\t\t\t\t\t\t\t<input id=\"alternet_mobile_number\" class=\"line_height_29px_registration_from form-control text-input validate[custom[phone_number],minSize[6],maxSize[15]]\" type=\"text\" name=\"alternet_mobile_number\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput6\" class=\"custom-control-label custom-top-label\">Alternate Mobile Number<\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"email\" class=\"line_height_29px_registration_from form-control validate[required,custom[email]] text-input \" maxlength=\"100\" type=\"text\" name=\"email\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"label_email active\">Email<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t<input id=\"password\" class=\"line_height_29px_registration_from form-control validate[required,minSize[8],maxSize[12]]\" type=\"password\" name=\"password\" value=\"\">\r\n\t\t\t\t\t\t\t\t<label for=\"userinput1\" class=\"active\">Password<span class=\"required\">*<\/span><\/label>\r\n\t\t\t\t\t\t\t\t<i class=\"fa fa-eye-slash\" id=\"togglePassword\"><\/i>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<script>\r\n\t\t\t\t\t\t\/\/ PASSWORD SHOWING TOGGLE BUTTON\r\n\t\t\t\t\t\tconst togglePassword = document.querySelector(\"#togglePassword\");\r\n\t\t\t\t\t\tconst password = document.querySelector(\"#password\");\r\n\t\t\t\t\t\ttogglePassword.addEventListener(\"click\", function() {\r\n\t\t\t\t\t\t\t\/\/ toggle the type attribute\r\n\t\t\t\t\t\t\tconst type = password.getAttribute(\"type\") === \"password\" ? \"text\" : \"password\";\r\n\t\t\t\t\t\t\tpassword.setAttribute(\"type\", type);\r\n\t\t\t\t\t\t\t\/\/ toggle the Font Awesome icon class\r\n\t\t\t\t\t\t\tthis.classList.toggle(\"fa-eye\");\r\n\t\t\t\t\t\t\tthis.classList.toggle(\"fa-eye-slash\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t<\/script>\r\n\t\t\t\t\t<div class=\"col-md-6\">\r\n\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t<div class=\"col-md-12 form-control upload-profile-image-patient res_rtl_height_50px mb-0\" style=\"padding:0px;padding-left:10px;\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-12 display_flex mb-0\">\r\n\t\t\t\t\t\t\t\t\t<input type=\"file\" style=\"border:0px;margin-bottom:0px;\" class=\"form-control\" onchange=\"fileCheck(this);\" name=\"smgt_user_avatar\">\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"header\">\r\n\t\t\t\t<h3 class=\"first_hed\">Document Details<\/h3>\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"more_document\">\r\n\t\t\t\t<div class=\"form-body user_form\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6 col-lg-6 col-xl-6 error_msg_left_margin\">\r\n\t\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-md-12 form-control\">\r\n\t\t\t\t\t\t\t\t\t<input id=\"document_title\" class=\"form-control  text-input\" maxlength=\"50\" type=\"text\" value=\"\" name=\"document_title[]\">\r\n\t\t\t\t\t\t\t\t\t<label class=\"\" for=\"document_title\">Ducument Title<\/label>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div class=\"col-md-5 col-sm-1\">\r\n\t\t\t\t\t\t\t<div class=\"form-group input\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-md-12 form-control upload-profile-image-patient res_rtl_height_50px file_height_padding\">\r\n\t\t\t\t\t\t\t\t\t<label for=\"photo\" class=\"custom-control-label custom-top-label ml-2\">Document File<\/label>\r\n\t\t\t\t\t\t\t\t\t<div class=\"col-sm-12 display_flex\">\r\n\t\t\t\t\t\t\t\t\t\t<input id=\"upload_user_avatar_button\" name=\"document_file[]\" type=\"file\" class=\"form-control file file_validation\" value=\"Upload image\"  \/>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div class=\"col-md-1 col-sm-1 col-xs-12\">\r\n\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-content\/plugins\/school-management\/assets\/images\/dashboard_icon\/Add_new_plus_btn.png\" onclick=\"add_more_document()\" alt=\"\" class=\"rtl_margin_top_15px more_attachment add_cirtificate float_right\" id=\"add_more_sibling\">\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"a2c6b6a8b3\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/emodul\/wp-json\/wp\/v2\/pages\/42\" \/>\t\t\t<div class=\"form-body user_form\">\r\n\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t<div class=\"col-sm-6\">\r\n\t\t\t\t\t\t<input type=\"submit\" value=\"Registration\" name=\"save_student_front\" class=\"btn btn-success btn_style save_btn\" \/>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t<\/form>\r\n\t<\/div>\r\n\t<script>\r\n\t\t\/\/Custom Field File Validation\/\/\r\n\t\tfunction mj_smgt_custom_filed_fileCheck(obj)\r\n\t\t{\r\n\t\t\t\"use strict\";\r\n\t\t\tvar fileExtension = $(obj).attr('file_types');\r\n\t\t\tvar fileExtensionArr = fileExtension.split(',');\r\n\t\t\tvar file_size = $(obj).attr('file_size');\r\n\t\t\tvar sizeInkb = obj.files[0].size \/ 1024;\r\n\t\t\tif ($.inArray($(obj).val().split('.').pop().toLowerCase(), fileExtensionArr) == -1)\r\n\t\t\t{\r\n\t\t\t\talert(\"Only \" + fileExtension + \" formats are allowed.\");\r\n\t\t\t\t$(obj).val('');\r\n\t\t\t} else if (sizeInkb > file_size)\r\n\t\t\t{\r\n\t\t\t\talert(\"Only \" + file_size + \" kb size is allowed.\");\r\n\t\t\t\t$(obj).val('');\r\n\t\t\t}\r\n\t\t}\r\n\t\tjQuery(document).ready(function($)\r\n\t\t\t{\r\n\t\t\t\t$('.custom_datepicker').datepicker({\r\n\t\t\t\t\tendDate: '+0d',\r\n\t\t\t\t\tautoclose: true,\r\n\t\t\t\t\torientation: \"bottom\" \/\/ <-- and add this\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t\r\n\t<\/script>\r\n\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-42","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/pages\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/pages\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/homeschoolingcarnation.sch.id\/emodul\/wp-json\/wp\/v2\/media?parent=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}