Fix pdf.js for IE 11.

This commit is contained in:
BoHung Chiu 2023-02-28 17:35:43 +08:00
parent a96fd6e6eb
commit d31c2ce72d
8 changed files with 102023 additions and 12 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -27,18 +27,17 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta name="google" content="notranslate"> <meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title> <title>PDF.js viewer</title>
<% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ || request.env['HTTP_USER_AGENT'] =~ /Trident\// %>
<%= stylesheet_link_tag "archive/pdf_es5/viewer.css" %>
<%= stylesheet_link_tag "archive/pdf/viewer.css" %> <link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
<%= javascript_include_tag "archive/pdf_es5/pdf.js" %>
<%= javascript_include_tag "archive/pdf_es5/viewer.js" %>
<!-- This snippet is used in production (included from viewer.html) --> <% else %>
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties"> <%= stylesheet_link_tag "archive/pdf/viewer.css" %>
<%= javascript_include_tag "archive/pdf/pdf.js" %> <link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
<%= javascript_include_tag "archive/pdf/pdf.js" %>
<%= javascript_include_tag "archive/pdf/viewer.js" %>
<%= javascript_include_tag "archive/pdf/viewer.js" %> <% end %>
</head> </head>
<body tabindex="1" class="loadingInProgress" data-url="<%=@url%>"> <body tabindex="1" class="loadingInProgress" data-url="<%=@url%>">