recruit_ticket.blade.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <style>
  2. body, html {
  3. margin: 0;
  4. padding: 0;
  5. width: 100%;
  6. height: 100%;
  7. }
  8. </style>
  9. <div class="recruit_container clearfix" id="preview">
  10. </div>
  11. <script src="https://office.jinjianghc.com/web-apps/apps/api/documents/api.js"></script>
  12. <script>
  13. let title = "{{ $title }}",url = "{{ $url }}";
  14. const index = title.lastIndexOf('.');
  15. const fileType = title.substr(index + 1);
  16. const config = {
  17. document: {
  18. permissions: {
  19. comment: false,
  20. fillForms: false,
  21. download: false,
  22. edit: false,
  23. upload: false,
  24. },
  25. fileType: fileType,
  26. title: title,
  27. url: url,
  28. },
  29. width: '100%',
  30. editorConfig: {
  31. mode: 'view',
  32. lang: "zh-CN",
  33. permissions: {
  34. edit: false,
  35. download: false,
  36. upload: false,
  37. comment: false,
  38. }
  39. }
  40. };
  41. console.info(config)
  42. document.title = title;
  43. const docEditor = new window.DocsAPI.DocEditor("preview", config);
  44. </script>