Skip to content

Commit

Permalink
Fix warnings from W3C validator (type attribute for script element)
Browse files Browse the repository at this point in the history
Report from Nu Html Checker:

Warning: The type attribute is unnecessary for JavaScript resources.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Dec 12, 2017
1 parent a0b2b94 commit 8bd7ce3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Protocols
IIPMooViewer supports the IIP, Zoomify, Deepzoom, Djatoka and IIIF protocols. By default it will use IIP, but to use, for example Zoomify, first include the protocol after the other javascript includes as this is not included by default:

<pre>
&lt;script type="text/javascript" src="src/protocols/zoomify.js"&gt;&lt;/script&gt;
&lt;script src="src/protocols/zoomify.js"&gt;&lt;/script&gt;
</pre>

Protocols such as zoomify don't have a server as such, so set this value to / or to the path prefix for the image. For example, if you have an image with URL /images/zoomify/image1, use:
Expand All @@ -293,9 +293,9 @@ A number of localizations exist in the src/lang folder. To use, simply include t
For example to create a new Chinese localization, create the file lang/help.zh.js and include it after the main iipmooviewer includes:

<pre>
&lt;script type="text/javascript" src="javascript/mootools-core-1.6.0-compressed.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="javascript/iipmooviewer-2.0-compressed.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="src/lang/help.zh.js"&gt;&lt;/script&gt;
&lt;script src="javascript/mootools-core-1.6.0-compressed.js"&gt;&lt;/script&gt;
&lt;script src="javascript/iipmooviewer-2.0-compressed.js"&gt;&lt;/script&gt;
&lt;script src="src/lang/help.zh.js"&gt;&lt;/script&gt;
</pre>

Image Blending
Expand Down Expand Up @@ -349,13 +349,13 @@ To use the gallery component, make sure you include both the gallery CSS and JS

<pre>
&lt;link rel="stylesheet" type="text/css" media="all" href="css/gallery.min.css" /&gt;
&lt;script type="text/javascript" src="js/gallery.min.js"&gt;&lt;/script&gt;
&lt;script src="js/gallery.min.js"&gt;&lt;/script&gt;
</pre>

To create the component, simply create an instance of the class with the URL of your JSON.

<pre>
&lt;script type="text/javascript"&gt;
&lt;script&gt;
// Create our image gallery and load our list of images from JSON
new Gallery( "targetframe", {
images: "gallery.json"
Expand Down
6 changes: 3 additions & 3 deletions gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
<title>IIPMooViewer :: IIPImage High Resolution Gallery Viewer</title>

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.6.0/mootools.min.js"></script>
<script type="text/javascript" src="js/iipmooviewer-2.0-min.js"></script>
<script type="text/javascript" src="js/gallery.min.js"></script>
<script src="js/iipmooviewer-2.0-min.js"></script>
<script src="js/gallery.min.js"></script>

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js">IE7_PNG_SUFFIX = ".png";</script>
<![endif]-->

<script type="text/javascript">
<script>

var images = [
{
Expand Down
56 changes: 28 additions & 28 deletions index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,47 +44,47 @@

<title>IIPMooViewer 2.0 :: HTML5 High Resolution Image Viewer</title>

<script type="text/javascript" src="src/mootools-core-1.6.0.js"></script>
<script type="text/javascript" src="src/mootools-more-1.6.0.js"></script>
<script src="src/mootools-core-1.6.0.js"></script>
<script src="src/mootools-more-1.6.0.js"></script>

<!-- Main iipmooviewer include -->
<script type="text/javascript" src="src/iipmooviewer-2.0.js"></script>
<script src="src/iipmooviewer-2.0.js"></script>

<!-- Load our protocols -->
<script type="text/javascript" src="src/protocols/deepzoom.js"></script>
<script type="text/javascript" src="src/protocols/djatoka.js"></script>
<script type="text/javascript" src="src/protocols/iip.js"></script>
<script type="text/javascript" src="src/protocols/zoomify.js"></script>
<script type="text/javascript" src="src/protocols/iiif.js"></script>
<script src="src/protocols/deepzoom.js"></script>
<script src="src/protocols/djatoka.js"></script>
<script src="src/protocols/iip.js"></script>
<script src="src/protocols/zoomify.js"></script>
<script src="src/protocols/iiif.js"></script>

<!-- Load our various components -->
<script type="text/javascript" src="src/blending.js"></script>
<script type="text/javascript" src="src/navigation.js"></script>
<script type="text/javascript" src="src/scale.js"></script>
<script type="text/javascript" src="src/touch.js"></script>
<script type="text/javascript" src="src/annotations.js"></script>
<script type="text/javascript" src="src/annotations-edit.js"></script>
<script src="src/blending.js"></script>
<script src="src/navigation.js"></script>
<script src="src/scale.js"></script>
<script src="src/touch.js"></script>
<script src="src/annotations.js"></script>
<script src="src/annotations-edit.js"></script>

<!-- Load our language files -->
<script type="text/javascript" src="src/lang/help.de.js"></script>
<script type="text/javascript" src="src/lang/help.en.js"></script>
<script type="text/javascript" src="src/lang/help.es.js"></script>
<script type="text/javascript" src="src/lang/help.et.js"></script>
<script type="text/javascript" src="src/lang/help.fr.js"></script>
<script type="text/javascript" src="src/lang/help.gr.js"></script>
<script type="text/javascript" src="src/lang/help.it.js"></script>
<script type="text/javascript" src="src/lang/help.nl.js"></script>
<script type="text/javascript" src="src/lang/help.pt.js"></script>
<script type="text/javascript" src="src/lang/help.ru.js"></script>
<script type="text/javascript" src="src/lang/help.se.js"></script>
<script type="text/javascript" src="src/lang/help.tr.js"></script>
<script type="text/javascript" src="src/lang/help.zh.js"></script>
<script src="src/lang/help.de.js"></script>
<script src="src/lang/help.en.js"></script>
<script src="src/lang/help.es.js"></script>
<script src="src/lang/help.et.js"></script>
<script src="src/lang/help.fr.js"></script>
<script src="src/lang/help.gr.js"></script>
<script src="src/lang/help.it.js"></script>
<script src="src/lang/help.nl.js"></script>
<script src="src/lang/help.pt.js"></script>
<script src="src/lang/help.ru.js"></script>
<script src="src/lang/help.se.js"></script>
<script src="src/lang/help.tr.js"></script>
<script src="src/lang/help.zh.js"></script>

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js">IE7_PNG_SUFFIX = ".png";</script>
<![endif]-->

<script type="text/javascript">
<script>

// IIPMooViewer options: See documentation at http://iipimage.sourceforge.net for more details
// Server path: set if not using default path
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@

<title>IIPMooViewer 2.0 :: HTML5 High Resolution Image Viewer</title>

<script type="text/javascript" src="js/mootools-core-1.6.0-compressed.js"></script>
<script type="text/javascript" src="js/iipmooviewer-2.0-min.js"></script>
<script src="js/mootools-core-1.6.0-compressed.js"></script>
<script src="js/iipmooviewer-2.0-min.js"></script>

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js">IE7_PNG_SUFFIX = ".png";</script>
<![endif]-->

<script type="text/javascript">
<script>

// IIPMooViewer options: See documentation at http://iipimage.sourceforge.net for more details
// Server path: set if not using default path
Expand Down

0 comments on commit 8bd7ce3

Please sign in to comment.