mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
opt: move jquery js from resources to scripts folder
This commit is contained in:
parent
349ac86d47
commit
df1906d4f2
|
@ -54,12 +54,12 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
|
|||
// add jquery
|
||||
{
|
||||
result += "<script type=\"text/javascript\" "
|
||||
"src=\"qrc:///resources/jquery-3.6.0.slim.min.js\"></script>";
|
||||
"src=\"qrc:///scripts/jquery-3.6.0.slim.min.js\"></script>";
|
||||
|
||||
result += "<script> var $_$=$.noConflict(); </script>";
|
||||
|
||||
//custom javascript
|
||||
result += "<script type=\"text/javascript\" src=\"qrc:///resources/gd-custom.js\"></script>";
|
||||
result += "<script type=\"text/javascript\" src=\"qrc:///scripts/gd-custom.js\"></script>";
|
||||
|
||||
//iframe resizer javascript
|
||||
result += "<script type=\"text/javascript\" src=\"qrc:///scripts/iframeResizer.min.js\"></script>";
|
||||
|
@ -147,7 +147,7 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
|
|||
"return tr_map[key] || '';"
|
||||
"}"
|
||||
"</script>";
|
||||
result+= "<script type=\"text/javascript\" src=\"qrc:///resources/gd-builtin.js\"></script>";
|
||||
result+= "<script type=\"text/javascript\" src=\"qrc:///scripts/gd-builtin.js\"></script>";
|
||||
result += "</head><body>";
|
||||
|
||||
return result;
|
||||
|
|
|
@ -57,9 +57,6 @@
|
|||
<file>icons/icon32_gls.png</file>
|
||||
<file>icons/folder.png</file>
|
||||
<file>icons/ontop.svg</file>
|
||||
<file>resources/jquery-3.6.0.slim.min.js</file>
|
||||
<file>resources/gd-custom.js</file>
|
||||
<file>resources/gd-builtin.js</file>
|
||||
<file>icons/addtab.svg</file>
|
||||
<file>icons/book.svg</file>
|
||||
<file>icons/bookcase.svg</file>
|
||||
|
|
Loading…
Reference in a new issue