Browse Source

Add jQuery 3.3.1 js file

Vova Tkach 6 years ago
parent
commit
4967bb170b

File diff suppressed because it is too large
+ 3 - 0
engine/wrapper/resources/scripts/assets.sys.jquery.js.go


+ 5 - 0
engine/wrapper/static.go

@@ -6,6 +6,7 @@ import (
 
 	Images "golang-fave/engine/wrapper/resources/images"
 	Others "golang-fave/engine/wrapper/resources/others"
+	Scripts "golang-fave/engine/wrapper/resources/scripts"
 	Styles "golang-fave/engine/wrapper/resources/styles"
 	Templates "golang-fave/engine/wrapper/resources/templates"
 )
@@ -19,6 +20,10 @@ func (e *Wrapper) staticResource() bool {
 		(*e.W).Header().Set("Content-Type", "text/css")
 		(*e.W).Write(Styles.File_assets_sys_bootstrap_css)
 		return true
+	} else if e.R.URL.Path == "/assets/sys/jquery.js" {
+		(*e.W).Header().Set("Content-Type", "application/javascript; charset=utf-8")
+		(*e.W).Write(Scripts.File_assets_sys_jquery_js)
+		return true
 	} else if e.R.URL.Path == "/assets/sys/logo.svg" {
 		(*e.W).Header().Set("Content-Type", "image/svg+xml")
 		(*e.W).Write(Others.File_assets_sys_logo_svg)

Some files were not shown because too many files changed in this diff