|  |  | 
 |  |  |         </style> | 
 |  |  |          <!-- 20220221 PI改造 by 徐亮 start  --> | 
 |  |  |          <apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" /> | 
 |  |  |          <script src="../../soap/ajax/53.0/connection.js" type="text/javascript"></script> | 
 |  |  |          <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> | 
 |  |  |          <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> | 
 |  |  |          <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> | 
 |  |  |          <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> | 
 |  |  | 
 |  |  | <script> | 
 |  |  |     AWSService.sfSessionId = '{!GETSESSIONID()}'; | 
 |  |  |     var staticResources = JSON.parse('{!staticResource}'); | 
 |  |  |     var staticResourceFile = JSON.parse('{!staticResourceFile}'); | 
 |  |  |     function Fun(pdf){ | 
 |  |  |         var iframe = document.createElement('iframe'); | 
 |  |  |         iframe.setAttribute('style', 'position:absolute;right:0; top:0; bottom:0; height:100%; width:100%'); | 
 |  |  |         document.body.appendChild(iframe); | 
 |  |  |         iframe.src = pdf.output('datauristring'); | 
 |  |  |         for(let ei in document.body.childNodes){let e=document.body.childNodes[ei]; | 
 |  |  |             if( e != iframe && e.style){ | 
 |  |  |                 e.style.display = 'none'; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         // var form = jQuery("<form method='post'></form>"); | 
 |  |  |         // jQuery(document.body).append(form); | 
 |  |  |         // let href = window.location.href | 
 |  |  |         // let arr = href.split('/') | 
 |  |  |         // form.attr({"action":staticResourceFile.viewUnifiedContactUrl+"?from="+encodeURIComponent(href)+"&fileName="+encodeURIComponent(arr[arr.length-1].split('?')[0])}); | 
 |  |  |         // // form.attr({"action":"http://127.0.0.1:8080/a/d?from="+encodeURIComponent(window.location.href)}); | 
 |  |  |         // let input = jQuery("<input type='hidden'/>"); | 
 |  |  |         // input.attr({"name":"base64Str"}); | 
 |  |  |         // input.val(pdf.output('datauristring').substr(28)); | 
 |  |  |         // form.append(input); | 
 |  |  |         // form.submit(); | 
 |  |  |  | 
 |  |  |         jQuery("body > *").each(function(){ | 
 |  |  |             jQuery(this).css('display','none'); | 
 |  |  |         }) | 
 |  |  |         jQuery("body").append('<embed style="position:absolute; left: 0; top: 0;" width="100%" height="100%" src="'+pdf.output('datauristring')+'" type="application/pdf"/>') | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     let id = "pdf-wrapper"; | 
 |  |  | 
 |  |  |         }) | 
 |  |  |     } | 
 |  |  |      | 
 |  |  |     blockme(); | 
 |  |  |     //blockme(); | 
 |  |  |     document.body.onload = function(){ | 
 |  |  |          | 
 |  |  |         AWSService.query(staticResources.queryUrl, '{!ir.AWS_Data_Id__c}', function(data){ | 
 |  |  |             unblockUI(); | 
 |  |  |             //unblockUI(); | 
 |  |  |             document.getElementById("Responsible_Person__c").innerHTML = data.object.responsiblePerson; | 
 |  |  |              | 
 |  |  |             setTimeout(function(){ | 
 |  |  |                 jsPdfDownload();  | 
 |  |  |             }, 1500); | 
 |  |  |             jsPdfDownload();  | 
 |  |  |         }, staticResources.token); | 
 |  |  |          | 
 |  |  |     } |