Skip to content

Commit

Permalink
Merge pull request #4782 from mzgol/script-type
Browse files Browse the repository at this point in the history
Remove type="text/javascript" from script tags.
  • Loading branch information
yurydelendik committed May 13, 2014
2 parents aa26e6f + e625af3 commit 8609f38
Show file tree
Hide file tree
Showing 13 changed files with 171 additions and 171 deletions.
24 changes: 12 additions & 12 deletions examples/acroforms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<head>
<!-- In production, only one script (pdf.js) is necessary -->
<!-- In production, change the content of PDFJS.workerSrc below -->
<script type="text/javascript" src="../../src/shared/util.js"></script>
<script type="text/javascript" src="../../src/shared/colorspace.js"></script>
<script type="text/javascript" src="../../src/shared/function.js"></script>
<script type="text/javascript" src="../../src/shared/annotation.js"></script>
<script type="text/javascript" src="../../src/display/api.js"></script>
<script type="text/javascript" src="../../src/display/metadata.js"></script>
<script type="text/javascript" src="../../src/display/canvas.js"></script>
<script type="text/javascript" src="../../src/display/webgl.js"></script>
<script type="text/javascript" src="../../src/display/pattern_helper.js"></script>
<script type="text/javascript" src="../../src/display/font_loader.js"></script>
<script src="../../src/shared/util.js"></script>
<script src="../../src/shared/colorspace.js"></script>
<script src="../../src/shared/function.js"></script>
<script src="../../src/shared/annotation.js"></script>
<script src="../../src/display/api.js"></script>
<script src="../../src/display/metadata.js"></script>
<script src="../../src/display/canvas.js"></script>
<script src="../../src/display/webgl.js"></script>
<script src="../../src/display/pattern_helper.js"></script>
<script src="../../src/display/font_loader.js"></script>

<script type="text/javascript">
<script>
// Specify the main script used to create a new PDF.JS web worker.
// In production, change this to point to the combined `pdf.js` file.
PDFJS.workerSrc = '../../src/worker_loader.js';
Expand All @@ -33,7 +33,7 @@
.inputHint { opacity: 0.2; background: #ccc; position: absolute; }
</style>

<script type="text/javascript" src="forms.js"></script>
<script src="forms.js"></script>
</head>

<body>
Expand Down
24 changes: 12 additions & 12 deletions examples/helloworld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
<head>
<!-- In production, only one script (pdf.js) is necessary -->
<!-- In production, change the content of PDFJS.workerSrc below -->
<script type="text/javascript" src="../../src/shared/util.js"></script>
<script type="text/javascript" src="../../src/shared/colorspace.js"></script>
<script type="text/javascript" src="../../src/shared/function.js"></script>
<script type="text/javascript" src="../../src/shared/annotation.js"></script>
<script type="text/javascript" src="../../src/display/api.js"></script>
<script type="text/javascript" src="../../src/display/metadata.js"></script>
<script type="text/javascript" src="../../src/display/canvas.js"></script>
<script type="text/javascript" src="../../src/display/webgl.js"></script>
<script type="text/javascript" src="../../src/display/pattern_helper.js"></script>
<script type="text/javascript" src="../../src/display/font_loader.js"></script>
<script src="../../src/shared/util.js"></script>
<script src="../../src/shared/colorspace.js"></script>
<script src="../../src/shared/function.js"></script>
<script src="../../src/shared/annotation.js"></script>
<script src="../../src/display/api.js"></script>
<script src="../../src/display/metadata.js"></script>
<script src="../../src/display/canvas.js"></script>
<script src="../../src/display/webgl.js"></script>
<script src="../../src/display/pattern_helper.js"></script>
<script src="../../src/display/font_loader.js"></script>

<script type="text/javascript">
<script>
// Specify the main script used to create a new PDF.JS web worker.
// In production, leave this undefined or change it to point to the
// combined `pdf.worker.js` file.
PDFJS.workerSrc = '../../src/worker_loader.js';
</script>
<script type="text/javascript" src="hello.js"></script>
<script src="hello.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/text-only/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Text-only PDF.js example</title>
<script src="../../build/generic/build/pdf.js" type="text/javascript"></script>
<script src="../../build/generic/build/pdf.js"></script>
<script src="pdf2svg.js"></script>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions examples/text-selection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>

<!-- you will need to run "node make generic" first before you can use this -->
<script src="../../build/generic/build/pdf.js" type="text/javascript"></script>
<script src="../../build/generic/build/pdf.js"></script>

<!-- These files are viewer components that you will need to get text-selection to work -->
<script src="../../web/pdf_find_bar.js"></script>
<script src="../../web/pdf_find_controller.js"></script>
<script src="../../web/ui_utils.js"></script>
<script src="../../web/text_layer_builder.js"></script>

<script type="text/javascript">
<script>
// Specify the main script used to create a new PDF.JS web worker.
// In production, change this to point to the combined `pdf.js` file.
</script>

<script src="js/minimal.js" type="text/javascript"></script>
<script src="js/minimal.js"></script>
</head>
<body>
This is a minimal pdf.js text-selection demo. The existing minimal-example shows you how to render a PDF, but not
Expand Down
8 changes: 4 additions & 4 deletions extensions/b2g/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
<link rel="stylesheet" href="viewer.css"/>
<link rel="resource" type="application/l10n" href="locale/locale.properties"/>
<link rel="stylesheet" href="/shared/style/headers.css" type="text/css" />
<script type="text/javascript" src="l10n.js"></script>
<script type="text/javascript" src="../build/pdf.js"></script>
<script type="text/javascript" src="/shared/js/async_storage.js"></script>
<script src="l10n.js"></script>
<script src="../build/pdf.js"></script>
<script src="/shared/js/async_storage.js"></script>

<script type="text/javascript" src="viewer.js"></script>
<script src="viewer.js"></script>
</head>


Expand Down
78 changes: 39 additions & 39 deletions test/font/font_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,50 @@
<link rel="shortcut icon" type="image/png" href="../../external/jasmine/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="../../external/jasmine/jasmine.css">

<script type="text/javascript" src="../../external/jasmine/jasmine.js"></script>
<script type="text/javascript" src="../../external/jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="../unit/testreporter.js"></script>
<script type="text/javascript" src="fontutils.js"></script>
<script src="../../external/jasmine/jasmine.js"></script>
<script src="../../external/jasmine/jasmine-html.js"></script>
<script src="../unit/testreporter.js"></script>
<script src="fontutils.js"></script>

<!-- include source files here... -->
<script type="text/javascript" src="../../src/core/network.js"></script>
<script type="text/javascript" src="../../src/core/chunked_stream.js"></script>
<script type="text/javascript" src="../../src/core/pdf_manager.js"></script>
<script type="text/javascript" src="../../src/core/core.js"></script>
<script type="text/javascript" src="../../src/shared/util.js"></script>
<script type="text/javascript" src="../../src/display/api.js"></script>
<script type="text/javascript" src="../../src/display/canvas.js"></script>
<script type="text/javascript" src="../../src/display/webgl.js"></script>
<script type="text/javascript" src="../../src/core/obj.js"></script>
<script type="text/javascript" src="../../src/shared/annotation.js"></script>
<script type="text/javascript" src="../../src/shared/function.js"></script>
<script type="text/javascript" src="../../src/core/charsets.js"></script>
<script type="text/javascript" src="../../src/core/cidmaps.js"></script>
<script type="text/javascript" src="../../src/shared/colorspace.js"></script>
<script type="text/javascript" src="../../src/core/crypto.js"></script>
<script type="text/javascript" src="../../src/core/pattern.js"></script>
<script type="text/javascript" src="../../src/core/evaluator.js"></script>
<script type="text/javascript" src="../../src/core/cmap.js"></script>
<script type="text/javascript" src="../../src/core/fonts.js"></script>
<script type="text/javascript" src="../../src/core/glyphlist.js"></script>
<script type="text/javascript" src="../../src/core/image.js"></script>
<script type="text/javascript" src="../../src/core/metrics.js"></script>
<script type="text/javascript" src="../../src/core/parser.js"></script>
<script type="text/javascript" src="../../src/core/ps_parser.js"></script>
<script type="text/javascript" src="../../src/display/pattern_helper.js"></script>
<script type="text/javascript" src="../../src/core/stream.js"></script>
<script type="text/javascript" src="../../src/core/worker.js"></script>
<script type="text/javascript" src="../../src/display/metadata.js"></script>
<script type="text/javascript" src="../../src/core/jpg.js"></script>
<script type="text/javascript">PDFJS.workerSrc = '../../src/worker_loader.js';</script>
<script src="../../src/core/network.js"></script>
<script src="../../src/core/chunked_stream.js"></script>
<script src="../../src/core/pdf_manager.js"></script>
<script src="../../src/core/core.js"></script>
<script src="../../src/shared/util.js"></script>
<script src="../../src/display/api.js"></script>
<script src="../../src/display/canvas.js"></script>
<script src="../../src/display/webgl.js"></script>
<script src="../../src/core/obj.js"></script>
<script src="../../src/shared/annotation.js"></script>
<script src="../../src/shared/function.js"></script>
<script src="../../src/core/charsets.js"></script>
<script src="../../src/core/cidmaps.js"></script>
<script src="../../src/shared/colorspace.js"></script>
<script src="../../src/core/crypto.js"></script>
<script src="../../src/core/pattern.js"></script>
<script src="../../src/core/evaluator.js"></script>
<script src="../../src/core/cmap.js"></script>
<script src="../../src/core/fonts.js"></script>
<script src="../../src/core/glyphlist.js"></script>
<script src="../../src/core/image.js"></script>
<script src="../../src/core/metrics.js"></script>
<script src="../../src/core/parser.js"></script>
<script src="../../src/core/ps_parser.js"></script>
<script src="../../src/display/pattern_helper.js"></script>
<script src="../../src/core/stream.js"></script>
<script src="../../src/core/worker.js"></script>
<script src="../../src/display/metadata.js"></script>
<script src="../../src/core/jpg.js"></script>
<script>PDFJS.workerSrc = '../../src/worker_loader.js';</script>

<!-- include spec files here... -->
<script type="text/javascript" src="font_core_spec.js"></script>
<script type="text/javascript" src="font_os2_spec.js"></script>
<script type="text/javascript" src="font_post_spec.js"></script>
<script type="text/javascript" src="font_fpgm_spec.js"></script>
<script src="font_core_spec.js"></script>
<script src="font_os2_spec.js"></script>
<script src="font_post_spec.js"></script>
<script src="font_fpgm_spec.js"></script>

<script type="text/javascript">
<script>
'use strict';

(function pdfJsUnitTest() {
Expand Down
28 changes: 14 additions & 14 deletions test/test_slave.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
<head>
<title>pdf.js test slave</title>
<style type="text/css"></style>
<script type="text/javascript" src="/src/shared/util.js"></script>
<script type="text/javascript" src="/src/shared/colorspace.js"></script>
<script type="text/javascript" src="/src/shared/function.js"></script>
<script type="text/javascript" src="/src/shared/annotation.js"></script>
<script type="text/javascript" src="/src/display/api.js"></script>
<script type="text/javascript" src="/src/display/metadata.js"></script>
<script type="text/javascript" src="/src/display/canvas.js"></script>
<script type="text/javascript" src="/src/display/webgl.js"></script>
<script type="text/javascript" src="/src/display/pattern_helper.js"></script>
<script type="text/javascript" src="/src/display/font_loader.js"></script>
<script type="text/javascript" src="driver.js"></script>

<script type="text/javascript">
<script src="/src/shared/util.js"></script>
<script src="/src/shared/colorspace.js"></script>
<script src="/src/shared/function.js"></script>
<script src="/src/shared/annotation.js"></script>
<script src="/src/display/api.js"></script>
<script src="/src/display/metadata.js"></script>
<script src="/src/display/canvas.js"></script>
<script src="/src/display/webgl.js"></script>
<script src="/src/display/pattern_helper.js"></script>
<script src="/src/display/font_loader.js"></script>
<script src="driver.js"></script>

<script>
PDFJS.workerSrc = '/src/worker_loader.js';
</script>
</head>
Expand All @@ -41,7 +41,7 @@
<p>Inflight requests: <span id="inFlightCount"></span></p>
<div id="content-end"></div>

<script type="text/javascript">
<script>
'use strict';
load();
</script>
Expand Down
90 changes: 45 additions & 45 deletions test/unit/unit_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,55 @@
<link rel="shortcut icon" type="image/png" href="../../external/jasmine/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="../../external/jasmine/jasmine.css">

<script type="text/javascript" src="../../external/jasmine/jasmine.js"></script>
<script type="text/javascript" src="../../external/jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="testreporter.js"></script>
<script src="../../external/jasmine/jasmine.js"></script>
<script src="../../external/jasmine/jasmine-html.js"></script>
<script src="testreporter.js"></script>

<!-- include source files here... -->
<script type="text/javascript" src="../../src/core/network.js"></script>
<script type="text/javascript" src="../../src/core/chunked_stream.js"></script>
<script type="text/javascript" src="../../src/core/pdf_manager.js"></script>
<script type="text/javascript" src="../../src/core/core.js"></script>
<script type="text/javascript" src="../../src/shared/util.js"></script>
<script type="text/javascript" src="../../src/display/api.js"></script>
<script type="text/javascript" src="../../src/display/canvas.js"></script>
<script type="text/javascript" src="../../src/display/webgl.js"></script>
<script type="text/javascript" src="../../src/core/obj.js"></script>
<script type="text/javascript" src="../../src/shared/annotation.js"></script>
<script type="text/javascript" src="../../src/shared/function.js"></script>
<script type="text/javascript" src="../../src/core/charsets.js"></script>
<script type="text/javascript" src="../../src/core/cidmaps.js"></script>
<script type="text/javascript" src="../../src/shared/colorspace.js"></script>
<script type="text/javascript" src="../../src/core/crypto.js"></script>
<script type="text/javascript" src="../../src/core/pattern.js"></script>
<script type="text/javascript" src="../../src/core/evaluator.js"></script>
<script type="text/javascript" src="../../src/core/cmap.js"></script>
<script type="text/javascript" src="../../src/core/fonts.js"></script>
<script type="text/javascript" src="../../src/core/glyphlist.js"></script>
<script type="text/javascript" src="../../src/core/image.js"></script>
<script type="text/javascript" src="../../src/core/metrics.js"></script>
<script type="text/javascript" src="../../src/core/parser.js"></script>
<script type="text/javascript" src="../../src/core/ps_parser.js"></script>
<script type="text/javascript" src="../../src/display/pattern_helper.js"></script>
<script type="text/javascript" src="../../src/core/stream.js"></script>
<script type="text/javascript" src="../../src/core/worker.js"></script>
<script type="text/javascript" src="../../src/display/metadata.js"></script>
<script type="text/javascript" src="../../src/core/jpg.js"></script>
<script type="text/javascript">PDFJS.workerSrc = '../../src/worker_loader.js';</script>
<script src="../../src/core/network.js"></script>
<script src="../../src/core/chunked_stream.js"></script>
<script src="../../src/core/pdf_manager.js"></script>
<script src="../../src/core/core.js"></script>
<script src="../../src/shared/util.js"></script>
<script src="../../src/display/api.js"></script>
<script src="../../src/display/canvas.js"></script>
<script src="../../src/display/webgl.js"></script>
<script src="../../src/core/obj.js"></script>
<script src="../../src/shared/annotation.js"></script>
<script src="../../src/shared/function.js"></script>
<script src="../../src/core/charsets.js"></script>
<script src="../../src/core/cidmaps.js"></script>
<script src="../../src/shared/colorspace.js"></script>
<script src="../../src/core/crypto.js"></script>
<script src="../../src/core/pattern.js"></script>
<script src="../../src/core/evaluator.js"></script>
<script src="../../src/core/cmap.js"></script>
<script src="../../src/core/fonts.js"></script>
<script src="../../src/core/glyphlist.js"></script>
<script src="../../src/core/image.js"></script>
<script src="../../src/core/metrics.js"></script>
<script src="../../src/core/parser.js"></script>
<script src="../../src/core/ps_parser.js"></script>
<script src="../../src/display/pattern_helper.js"></script>
<script src="../../src/core/stream.js"></script>
<script src="../../src/core/worker.js"></script>
<script src="../../src/display/metadata.js"></script>
<script src="../../src/core/jpg.js"></script>
<script>PDFJS.workerSrc = '../../src/worker_loader.js';</script>

<!-- include spec files here... -->
<script type="text/javascript" src="obj_spec.js"></script>
<script type="text/javascript" src="font_spec.js"></script>
<script type="text/javascript" src="function_spec.js"></script>
<script type="text/javascript" src="crypto_spec.js"></script>
<script type="text/javascript" src="evaluator_spec.js"></script>
<script type="text/javascript" src="stream_spec.js"></script>
<script type="text/javascript" src="parser_spec.js"></script>
<script type="text/javascript" src="api_spec.js"></script>
<script type="text/javascript" src="metadata_spec.js"></script>
<script type="text/javascript" src="util_spec.js"></script>
<script type="text/javascript" src="cmap_spec.js"></script>
<script type="text/javascript">
<script src="obj_spec.js"></script>
<script src="font_spec.js"></script>
<script src="function_spec.js"></script>
<script src="crypto_spec.js"></script>
<script src="evaluator_spec.js"></script>
<script src="stream_spec.js"></script>
<script src="parser_spec.js"></script>
<script src="api_spec.js"></script>
<script src="metadata_spec.js"></script>
<script src="util_spec.js"></script>
<script src="cmap_spec.js"></script>
<script>
'use strict';

(function pdfJsUnitTest() {
Expand Down
4 changes: 2 additions & 2 deletions web/viewer-snippet-chrome-extension.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- This snippet is used in the Chromium extension (included from viewer.html) -->
<base href="/content/web/">
<link rel="resource" type="application/l10n" href="locale/locale.properties">
<script type="text/javascript" src="l10n.js"></script>
<script type="text/javascript" src="../build/pdf.js"></script>
<script src="l10n.js"></script>
<script src="../build/pdf.js"></script>
4 changes: 2 additions & 2 deletions web/viewer-snippet-firefox-extension.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- This snippet is used in the Firefox extension (included from viewer.html) -->
<base href="resource://pdf.js/web/" />
<script type="text/javascript" src="l10n.js"></script>
<script type="text/javascript" src="../build/pdf.js"></script>
<script src="l10n.js"></script>
<script src="../build/pdf.js"></script>
2 changes: 1 addition & 1 deletion web/viewer-snippet-minified.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="locale/locale.properties"/>
<script type="text/javascript" src="pdf.viewer.js"></script>
<script src="pdf.viewer.js"></script>
Loading

0 comments on commit 8609f38

Please sign in to comment.