opt: move jquery js from resources to scripts folder

This commit is contained in:
Xiao YiFang 2022-09-04 10:01:26 +08:00
parent 349ac86d47
commit df1906d4f2
5 changed files with 3 additions and 6 deletions

View file

@ -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;

View file

@ -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>