File: pdf_plugin.html

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (66 lines) | stat: -rw-r--r-- 2,355 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport"
      content="initial-scale=1, minimum-scale=1, width=device-width">
    <script>
      // If this page is embedded in a WebViewPlugin, the 'window.plugin'
      // object is externally defined, and we trigger the download that way.
      if (window.plugin !== undefined) {
        window.addEventListener('DOMContentLoaded', function () {
          let button = document.getElementById('open-button');
          button.addEventListener('click', function(e) {
            window.plugin.openPDF();
            e.preventDefault();
          });

          if (plugin.notifyPlaceholderReadyForTesting)
            plugin.notifyPlaceholderReadyForTesting();
        });
      }

      window.onkeydown = function(e) {
        if (e.key == 'Enter' || e.key == ' ') {
          document.getElementById('open-button').click();
          e.preventDefault();
        }
      };
    </script>
    <link rel="stylesheet" href="../../../../components/security_interstitials/core/common/resources/interstitial_core.css">
    <link rel="stylesheet" href="../../../../components/security_interstitials/core/common/resources/interstitial_common.css">
    <link rel="stylesheet" href="../../../../components/security_interstitials/core/browser/resources/interstitial_webview_quiet.css">
    <style>
      path {
        fill-opacity: 0.2;
      }

      .icon {
        background-image: none;
      }

      button,
      [dir='rtl'] button {
        float: none;
      }
    </style>
  </head>
  <body class="pdf">
    <div class="interstitial-wrapper">
      <div id="main-content">
        <div class="icon">
          <!-- Material Design PDF icon -->
          <svg viewBox="0 0 24 24">
            <path d="M7 11.5h1v-1H7v1zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9.5 8.5c0 .83-.67 1.5-1.5 1.5H7v2H5.5V9H8c.83 0 1.5.67 1.5 1.5v1zm10-1H17v1h1.5V13H17v2h-1.5V9h4v1.5zm-5 3c0 .83-.67 1.5-1.5 1.5h-2.5V9H13c.83 0 1.5.67 1.5 1.5v3zm-2.5 0h1v-3h-1v3z"></path>
          </svg>
        </div>
        <div id="main-message">
          <h1>$i18n{fileName}</h1>
        </div>
        <a href="$i18n{pdfUrl}" target="_blank">
          <button id="open-button" tabindex="1">$i18n{open}</button>
        </a>
      </div>
    </div>
  </body>
</html>