{"id":1941,"date":"2026-11-18T11:25:16","date_gmt":"2026-11-18T05:55:16","guid":{"rendered":"https:\/\/gjsp.in\/?page_id=1941"},"modified":"2026-11-18T12:08:08","modified_gmt":"2026-11-18T06:38:08","slug":"training-letter","status":"publish","type":"page","link":"https:\/\/gjsp.in\/?page_id=1941","title":{"rendered":"Download"},"content":{"rendered":"<style>.gjsp-tl-form{max-width:480px;margin:0 auto 20px;text-align:center}.gjsp-tl-form input[type=text]{width:100%;padding:12px;font-size:16px;margin-bottom:10px;box-sizing:border-box}.gjsp-tl-form button,.gjsp-tl-btn{background:#0b5ea8;color:#fff;border:0;padding:12px 22px;font-size:16px;cursor:pointer;border-radius:4px}.gjsp-tl-err{color:#b00020;text-align:center;margin-bottom:15px}<\/style><form id=\"gjsp-tl-form\" class=\"gjsp-tl-form\" method=\"get\" action=\"https:\/\/gjsp.in\/?page_id=1941\"><input type=\"hidden\" name=\"page_id\" value=\"0\"><input type=\"text\" name=\"tl_reg\" placeholder=\"Enter Registration Number or Email\" autocomplete=\"email\" value=\"\" required><button type=\"submit\">Get Training Letter<\/button><\/form><p id=\"gjsp-tl-msg\" class=\"gjsp-tl-err\"><\/p><div id=\"gjsp-tl-out\"><\/div>\t\t<script data-cfasync=\"false\" data-no-optimize=\"1\" data-no-defer=\"1\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/qrcodejs\/1.0.0\/qrcode.min.js\" onerror=\"this.onerror=null;this.src='https:\/\/cdn.jsdelivr.net\/npm\/qrcodejs@1.0.0\/qrcode.min.js'\"><\/script>\n\t\t<script data-cfasync=\"false\" data-no-optimize=\"1\" data-no-defer=\"1\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/html2pdf.js\/0.10.1\/html2pdf.bundle.min.js\" onerror=\"this.onerror=null;this.src='https:\/\/cdn.jsdelivr.net\/npm\/html2pdf.js@0.10.1\/dist\/html2pdf.bundle.min.js'\"><\/script>\n\t\t<script data-cfasync=\"false\" data-no-optimize=\"1\" data-no-defer=\"1\">\n\t\t(function(){\n\t\t\tvar AJAX=\"https:\\\/\\\/gjsp.in\\\/wp-admin\\\/admin-ajax.php\";\n\t\t\tvar f=document.getElementById('gjsp-tl-form'),out=document.getElementById('gjsp-tl-out'),msg=document.getElementById('gjsp-tl-msg');\n\t\t\tfunction initLetter(){\n\t\t\t\tvar L=document.getElementById('gjsp-letter');if(!L)return;\n\t\t\t\tvar q=document.getElementById('gjsp-qr');q.innerHTML='';\n\t\t\t\t(function go(){\n\t\t\t\t\tif(typeof QRCode==='undefined'){return setTimeout(go,150);}\n\t\t\t\t\tnew QRCode(q,{text:L.getAttribute('data-verify'),width:120,height:120,correctLevel:QRCode.CorrectLevel.M});\n\t\t\t\t})();\n\t\t\t\tvar b=document.getElementById('gjsp-dl');\n\t\t\t\tif(b){b.addEventListener('click',function(){\n\t\t\t\t\tif(typeof html2pdf==='undefined'){alert('PDF tool could not load. Please use the \"Print \/ Save as PDF\" button.');return;}\n\t\t\t\t\tb.disabled=true;var old=b.textContent;b.textContent='Please wait...';\n\t\t\t\t\twindow.scrollTo(0,0);\n\t\t\t\t\thtml2pdf().set({margin:0,filename:'Training-Letter-'+L.getAttribute('data-reg')+'.pdf',image:{type:'jpeg',quality:0.98},html2canvas:{scale:2,useCORS:true,scrollX:0,scrollY:0},jsPDF:{unit:'mm',format:'a4',orientation:'portrait'}}).from(L).save().then(function(){b.disabled=false;b.textContent=old;}).catch(function(){b.disabled=false;b.textContent=old;alert('Download failed. Please use the \"Print \/ Save as PDF\" button.');});\n\t\t\t\t});}\n\t\t\t}\n\t\t\tinitLetter();\n\t\t\tif(f){f.addEventListener('submit',function(e){\n\t\t\t\tvar v=(f.elements['tl_reg'].value||'').trim();if(v.indexOf('@')<0){v=v.replace(\/\\D\/g,'');}\n\t\t\t\tif(!v){return;}\n\t\t\t\te.preventDefault();\n\t\t\t\tmsg.textContent='Please wait...';out.innerHTML='';\n\t\t\t\tfetch(AJAX+'?action=gjsp_tl_lookup&q='+encodeURIComponent(v),{credentials:'same-origin'})\n\t\t\t\t.then(function(r){return r.json();})\n\t\t\t\t.then(function(j){\n\t\t\t\t\tif(j&&j.success){msg.textContent='';out.innerHTML=j.data.html;initLetter();out.scrollIntoView({behavior:'smooth'});}\n\t\t\t\t\telse{msg.textContent=(j&&j.data)?j.data:'No letter found.';}\n\t\t\t\t})\n\t\t\t\t.catch(function(){f.submit();});\n\t\t\t});}\n\t\t})();\n\t\t<\/script>\n\t\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":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"wpai_generated_summary":"","footnotes":""},"class_list":["post-1941","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/gjsp.in\/author\/admin"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/pages\/1941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gjsp.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1941"}],"version-history":[{"count":1,"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/pages\/1941\/revisions"}],"predecessor-version":[{"id":1952,"href":"https:\/\/gjsp.in\/index.php?rest_route=\/wp\/v2\/pages\/1941\/revisions\/1952"}],"wp:attachment":[{"href":"https:\/\/gjsp.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}