Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
efa92fd9
Commit
efa92fd9
authored
Jun 01, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust and optimize the code
调整优化代码
parent
dbc541f5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
22 deletions
+24
-22
font-awesome.min.css
static/libs/font-awesome/css/font-awesome.min.css
+1
-1
jquery.js
static/libs/jquery/jquery.js
+21
-19
index.html
views/index.html
+2
-2
No files found.
static/libs/font-awesome/css/font-awesome.min.css
View file @
efa92fd9
This diff is collapsed.
Click to expand it.
static/libs/jquery/jquery.js
View file @
efa92fd9
...
...
@@ -14,25 +14,27 @@
(
function
(
global
,
factory
)
{
if
(
typeof
module
===
"object"
&&
typeof
module
.
exports
===
"object"
)
{
// For CommonJS and CommonJS-like environments where a proper `window`
// is present, execute the factory and get jQuery.
// For environments that do not have a `window` with a `document`
// (such as Node.js), expose a factory as module.exports.
// This accentuates the need for the creation of a real `window`.
// e.g. var jQuery = require("jquery")(window);
// See ticket #14549 for more info.
module
.
exports
=
global
.
document
?
factory
(
global
,
true
)
:
function
(
w
)
{
if
(
!
w
.
document
)
{
throw
new
Error
(
"jQuery requires a window with a document"
);
}
return
factory
(
w
);
};
}
else
{
factory
(
global
);
}
// 不使用module加载器,这样就可以直接在electron中引用jquery了
factory
(
global
);
// if ( typeof module === "object" && typeof module.exports === "object" ) {
// // For CommonJS and CommonJS-like environments where a proper `window`
// // is present, execute the factory and get jQuery.
// // For environments that do not have a `window` with a `document`
// // (such as Node.js), expose a factory as module.exports.
// // This accentuates the need for the creation of a real `window`.
// // e.g. var jQuery = require("jquery")(window);
// // See ticket #14549 for more info.
// module.exports = global.document ?
// factory( global, true ) :
// function( w ) {
// if ( !w.document ) {
// throw new Error( "jQuery requires a window with a document" );
// }
// return factory( w );
// };
// } else {
// factory( global );
// }
// Pass this if window is not defined yet
}(
typeof
window
!==
"undefined"
?
window
:
this
,
function
(
window
,
noGlobal
)
{
...
...
views/index.html
View file @
efa92fd9
...
...
@@ -3,8 +3,8 @@
<head>
<meta
charset=
"utf-8"
/>
<title>
AntSword
</title>
<link
rel=
"stylesheet"
href=
"
../static
/css/index.css"
/>
<script
>
require
(
'../source/load.entry'
);
</script>
<link
rel=
"stylesheet"
href=
"
ant-static:/
/css/index.css"
/>
<script
src=
"ant-src://load.entry.js"
>
</script>
</head>
<body>
<div
id=
"loading"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment