diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2019-03-22 12:06:44 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-03-27 09:42:01 +0100 |
commit | ca2a6bf2c3c59d106f1c6ad432eab21f696c23fc (patch) | |
tree | 3616969f889f8450502e4778d292417c355d85a2 /help3xsl/online_transform.xsl | |
parent | 9b776454d95f5c6bf13c0ca5508c0b2225aa4c1c (diff) |
tdf#124245 Polyfills and fixes for IE11
The polyfills can be removed after we drop IE11 support.
Other IE11 fixes:
Change from document.URL to window.location.pathname
because otherwise we get local Windows paths with backward
slashes.
Use clear: left; for google-donation element so it doesn't
float on top of other elements.
Don't use defer to load fuzzysort.js and prism.js.
Change-Id: I6c0143eab555c8b1fbdbde8e749a24baed2f69c8
Reviewed-on: https://gerrit.libreoffice.org/69549
Tested-by: Jenkins
Reviewed-by: himajin100000 <himajin100000@gmail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index f3b71bac9c..630aa8a938 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -94,7 +94,7 @@ <xsl:variable name="linkpostfix" select="''"/> <!-- images for notes, tips and warnings --> -<xsl:variable name="iconsizestyle" select="'width:40px;height=40px;'"/> +<xsl:variable name="iconsizestyle" select="'width:40px;height:40px;'"/> <xsl:variable name="note_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/note.svg')"/> <xsl:variable name="tip_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/tip.svg')"/> <xsl:variable name="warning_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/warning.svg')"/> @@ -149,15 +149,16 @@ <link type="text/css" href="{$target}normalize.css" rel="Stylesheet"/> <link type="text/css" href="{$target}default.css" rel="Stylesheet"/> <link type="text/css" href="{$target}prism.css" rel="Stylesheet"/> - <script type="text/javascript" src="{$target}help2.js" defer=""/> - <script type="text/javascript" src="{$target}languages.js" defer=""/> - <script type="text/javascript" src="{$target}{$lang}/langnames.js" defer=""/> - <script type="text/javascript" src="{$target}fuzzysort.js" defer=""/> - <script type="text/javascript" src="{$target}paginathing.js" defer=""/> - <script type="text/javascript" src="{$target}prism.js" defer=""/> - <script type="text/javascript" src="{$target}{$lang}/bookmarks.js" defer=""/> - <script type="text/javascript" src="{$target}{$lang}/contents.js" defer=""/> - <script type="text/javascript" src="{$target}help.js" defer=""/> + <script type="text/javascript" src="{$target}polyfills.js"></script> + <script type="text/javascript" src="{$target}languages.js"></script> + <script type="text/javascript" src="{$target}fuzzysort.js"></script> + <script type="text/javascript" src="{$target}prism.js"></script> + <script type="text/javascript" src="{$target}help2.js" defer=""></script> + <script type="text/javascript" src="{$target}{$lang}/langnames.js" defer=""></script> + <script type="text/javascript" src="{$target}paginathing.js" defer=""></script> + <script type="text/javascript" src="{$target}{$lang}/bookmarks.js" defer=""></script> + <script type="text/javascript" src="{$target}{$lang}/contents.js" defer=""></script> + <script type="text/javascript" src="{$target}help.js" defer=""></script> <meta name="viewport" content="width=device-width,initial-scale=1"/> </head> <body itemscope="true" itemtype="http://schema.org/TechArticle"> |