Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
a59f1cd2
Commit
a59f1cd2
authored
Sep 29, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webutil.js, util.js: split cleanup.
parent
5a00c9d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
util.js
include/util.js
+3
-19
webutil.js
include/webutil.js
+1
-1
No files found.
include/util.js
View file @
a59f1cd2
...
...
@@ -8,28 +8,12 @@
"use strict"
;
/*jslint bitwise: false, white: false */
/*global window, console, document, navigator, ActiveXObject*/
/*global window, console, document, navigator, ActiveXObject
*/
// Globals defined here
var
Util
=
{}
,
$
;
var
Util
=
{};
/*
* Simple DOM selector by ID
*/
if
(
!
window
.
$
)
{
$
=
function
(
id
)
{
if
(
document
.
getElementById
)
{
return
document
.
getElementById
(
id
);
}
else
if
(
document
.
all
)
{
return
document
.
all
[
id
];
}
else
if
(
document
.
layers
)
{
return
document
.
layers
[
id
];
}
return
undefined
;
};
}
/*
* Make arrays quack
*/
...
...
@@ -238,4 +222,4 @@ Util.Flash = (function(){
}
version
=
v
.
match
(
/
\d
+/g
);
return
{
version
:
parseInt
(
version
[
0
]
||
0
+
'.'
+
version
[
1
],
10
)
||
0
,
build
:
parseInt
(
version
[
2
],
10
)
||
0
};
}());
\ No newline at end of file
}());
include/webutil.js
View file @
a59f1cd2
...
...
@@ -8,7 +8,7 @@
"use strict"
;
/*jslint bitwise: false, white: false */
/*global window,
console, document, navigator, ActiveXObject
*/
/*global window,
document
*/
// Globals defined here
var
WebUtil
=
{},
$
;
...
...
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