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
14b665f1
Commit
14b665f1
authored
Apr 15, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uneeded mootools functions and used compressed version.
parent
7345dba4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
196 additions
and
2333 deletions
+196
-2333
mootools-1.2.4-core-comp.js
include/mootools-1.2.4-core-comp.js
+191
-0
mootools-1.2.4-core.js
include/mootools-1.2.4-core.js
+0
-2085
mootools-1.2.4.4-more.js
include/mootools-1.2.4.4-more.js
+0
-241
mootools-more.js
include/mootools-more.js
+0
-1
mootools.js
include/mootools.js
+1
-1
vnc.html
vnc.html
+4
-5
No files found.
include/mootools-1.2.4-core-comp.js
0 → 100644
View file @
14b665f1
This diff is collapsed.
Click to expand it.
include/mootools-1.2.4-core
-nc
.js
→
include/mootools-1.2.4-core.js
View file @
14b665f1
This diff is collapsed.
Click to expand it.
include/mootools-1.2.4.4-more.js
deleted
100644 → 0
View file @
7345dba4
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.
/*
---
script: More.js
description: MooTools More
license: MIT-style license
authors:
- Guillermo Rauch
- Thomas Aylott
- Scott Kyle
requires:
- core:1.2.4/MooTools
provides: [MooTools.More]
...
*/
MooTools
.
More
=
{
'version'
:
'1.2.4.4'
,
'build'
:
'6f6057dc645fdb7547689183b2311063bd653ddf'
};
/*
---
script: String.QueryString.js
description: Methods for dealing with URI query strings.
license: MIT-style license
authors:
- Sebastian Markbåge, Aaron Newton, Lennart Pilon, Valerio Proietti
requires:
- core:1.2.4/Array
- core:1.2.4/String
- /MooTools.More
provides: [String.QueryString]
...
*/
String
.
implement
({
parseQueryString
:
function
(){
var
vars
=
this
.
split
(
/
[
&;
]
/
),
res
=
{};
if
(
vars
.
length
)
vars
.
each
(
function
(
val
){
var
index
=
val
.
indexOf
(
'='
),
keys
=
index
<
0
?
[
''
]
:
val
.
substr
(
0
,
index
).
match
(
/
[^\]\[]
+/g
),
value
=
decodeURIComponent
(
val
.
substr
(
index
+
1
)),
obj
=
res
;
keys
.
each
(
function
(
key
,
i
){
var
current
=
obj
[
key
];
if
(
i
<
keys
.
length
-
1
)
obj
=
obj
[
key
]
=
current
||
{};
else
if
(
$type
(
current
)
==
'array'
)
current
.
push
(
value
);
else
obj
[
key
]
=
$defined
(
current
)
?
[
current
,
value
]
:
value
;
});
});
return
res
;
},
cleanQueryString
:
function
(
method
){
return
this
.
split
(
'&'
).
filter
(
function
(
val
){
var
index
=
val
.
indexOf
(
'='
),
key
=
index
<
0
?
''
:
val
.
substr
(
0
,
index
),
value
=
val
.
substr
(
index
+
1
);
return
method
?
method
.
run
([
key
,
value
])
:
$chk
(
value
);
}).
join
(
'&'
);
}
});
/*
---
script: URI.js
description: Provides methods useful in managing the window location and uris.
license: MIT-style license
authors:
- Sebastian Markbge
- Aaron Newton
requires:
- core:1.2.4/Selectors
- /String.QueryString
provides: URI
...
*/
var
URI
=
new
Class
({
Implements
:
Options
,
options
:
{
/*base: false*/
},
regex
:
/^
(?:(\w
+
)
:
)?(?:\/\/(?:(?:([^
:@
\/]
*
)
:
?([^
:@
\/]
*
))?
@
)?([^
:
\/
?#
]
*
)(?:
:
(\d
*
))?)?(\.\.?
$|
(?:[^
?#
\/]
*
\/)
*
)([^
?#
]
*
)(?:\?([^
#
]
*
))?(?:
#
(
.*
))?
/
,
parts
:
[
'scheme'
,
'user'
,
'password'
,
'host'
,
'port'
,
'directory'
,
'file'
,
'query'
,
'fragment'
],
schemes
:
{
http
:
80
,
https
:
443
,
ftp
:
21
,
rtsp
:
554
,
mms
:
1755
,
file
:
0
},
initialize
:
function
(
uri
,
options
){
this
.
setOptions
(
options
);
var
base
=
this
.
options
.
base
||
URI
.
base
;
if
(
!
uri
)
uri
=
base
;
if
(
uri
&&
uri
.
parsed
)
this
.
parsed
=
$unlink
(
uri
.
parsed
);
else
this
.
set
(
'value'
,
uri
.
href
||
uri
.
toString
(),
base
?
new
URI
(
base
)
:
false
);
},
parse
:
function
(
value
,
base
){
var
bits
=
value
.
match
(
this
.
regex
);
if
(
!
bits
)
return
false
;
bits
.
shift
();
return
this
.
merge
(
bits
.
associate
(
this
.
parts
),
base
);
},
merge
:
function
(
bits
,
base
){
if
((
!
bits
||
!
bits
.
scheme
)
&&
(
!
base
||
!
base
.
scheme
))
return
false
;
if
(
base
){
this
.
parts
.
every
(
function
(
part
){
if
(
bits
[
part
])
return
false
;
bits
[
part
]
=
base
[
part
]
||
''
;
return
true
;
});
}
bits
.
port
=
bits
.
port
||
this
.
schemes
[
bits
.
scheme
.
toLowerCase
()];
bits
.
directory
=
bits
.
directory
?
this
.
parseDirectory
(
bits
.
directory
,
base
?
base
.
directory
:
''
)
:
'/'
;
return
bits
;
},
parseDirectory
:
function
(
directory
,
baseDirectory
)
{
directory
=
(
directory
.
substr
(
0
,
1
)
==
'/'
?
''
:
(
baseDirectory
||
'/'
))
+
directory
;
if
(
!
directory
.
test
(
URI
.
regs
.
directoryDot
))
return
directory
;
var
result
=
[];
directory
.
replace
(
URI
.
regs
.
endSlash
,
''
).
split
(
'/'
).
each
(
function
(
dir
){
if
(
dir
==
'..'
&&
result
.
length
>
0
)
result
.
pop
();
else
if
(
dir
!=
'.'
)
result
.
push
(
dir
);
});
return
result
.
join
(
'/'
)
+
'/'
;
},
combine
:
function
(
bits
){
return
bits
.
value
||
bits
.
scheme
+
'://'
+
(
bits
.
user
?
bits
.
user
+
(
bits
.
password
?
':'
+
bits
.
password
:
''
)
+
'@'
:
''
)
+
(
bits
.
host
||
''
)
+
(
bits
.
port
&&
bits
.
port
!=
this
.
schemes
[
bits
.
scheme
]
?
':'
+
bits
.
port
:
''
)
+
(
bits
.
directory
||
'/'
)
+
(
bits
.
file
||
''
)
+
(
bits
.
query
?
'?'
+
bits
.
query
:
''
)
+
(
bits
.
fragment
?
'#'
+
bits
.
fragment
:
''
);
},
set
:
function
(
part
,
value
,
base
){
if
(
part
==
'value'
){
var
scheme
=
value
.
match
(
URI
.
regs
.
scheme
);
if
(
scheme
)
scheme
=
scheme
[
1
];
if
(
scheme
&&
!
$defined
(
this
.
schemes
[
scheme
.
toLowerCase
()]))
this
.
parsed
=
{
scheme
:
scheme
,
value
:
value
};
else
this
.
parsed
=
this
.
parse
(
value
,
(
base
||
this
).
parsed
)
||
(
scheme
?
{
scheme
:
scheme
,
value
:
value
}
:
{
value
:
value
});
}
else
if
(
part
==
'data'
)
{
this
.
setData
(
value
);
}
else
{
this
.
parsed
[
part
]
=
value
;
}
return
this
;
},
get
:
function
(
part
,
base
){
switch
(
part
){
case
'value'
:
return
this
.
combine
(
this
.
parsed
,
base
?
base
.
parsed
:
false
);
case
'data'
:
return
this
.
getData
();
}
return
this
.
parsed
[
part
]
||
''
;
},
go
:
function
(){
document
.
location
.
href
=
this
.
toString
();
},
toURI
:
function
(){
return
this
;
},
getData
:
function
(
key
,
part
){
var
qs
=
this
.
get
(
part
||
'query'
);
if
(
!
$chk
(
qs
))
return
key
?
null
:
{};
var
obj
=
qs
.
parseQueryString
();
return
key
?
obj
[
key
]
:
obj
;
},
setData
:
function
(
values
,
merge
,
part
){
if
(
typeof
values
==
'string'
){
data
=
this
.
getData
();
data
[
arguments
[
0
]]
=
arguments
[
1
];
values
=
data
;
}
else
if
(
merge
)
{
values
=
$merge
(
this
.
getData
(),
values
);
}
return
this
.
set
(
part
||
'query'
,
Hash
.
toQueryString
(
values
));
},
clearData
:
function
(
part
){
return
this
.
set
(
part
||
'query'
,
''
);
}
});
URI
.
prototype
.
toString
=
URI
.
prototype
.
valueOf
=
function
(){
return
this
.
get
(
'value'
);
};
URI
.
regs
=
{
endSlash
:
/
\/
$/
,
scheme
:
/^
(\w
+
)
:/
,
directoryDot
:
/
\.\/
|
\.
$/
};
URI
.
base
=
new
URI
(
document
.
getElements
(
'base[href]'
,
true
).
getLast
(),
{
base
:
document
.
location
});
String
.
implement
({
toURI
:
function
(
options
){
return
new
URI
(
this
,
options
);
}
});
\ No newline at end of file
include/mootools-more.js
deleted
120000 → 0
View file @
7345dba4
mootools
-
1.2
.
4.4
-
more
.
js
\ No newline at end of file
include/mootools.js
View file @
14b665f1
mootools
-
1.2
.
4
-
core
-
nc
.
js
mootools
-
1.2
.
4
-
core
-
comp
.
js
\ No newline at end of file
\ No newline at end of file
vnc.html
View file @
14b665f1
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
</body>
</body>
<script
src=
"include/mootools.js"
></script>
<script
src=
"include/mootools.js"
></script>
<script
src=
"include/mootools-more.js"
></script>
<script
src=
"include/base64.js"
></script>
<script
src=
"include/base64.js"
></script>
<script
src=
"include/des.js"
></script>
<script
src=
"include/des.js"
></script>
<script
src=
"include/util.js"
></script>
<script
src=
"include/util.js"
></script>
...
@@ -38,10 +37,10 @@
...
@@ -38,10 +37,10 @@
<script>
<script>
window
.
onload
=
function
()
{
window
.
onload
=
function
()
{
console
.
log
(
"onload"
);
console
.
log
(
"onload"
);
var
ur
i
=
new
URI
(
window
.
location
)
;
var
ur
l
=
document
.
location
.
href
;
$
(
'host'
).
value
=
uri
.
getData
(
"host"
)
||
''
;
$
(
'host'
).
value
=
(
url
.
match
(
/host=
([^
&#
]
*
)
/
)
||
[
''
,
''
])[
1
]
;
$
(
'port'
).
value
=
uri
.
getData
(
"port"
)
||
''
;
$
(
'port'
).
value
=
(
url
.
match
(
/port=
([^
&#
]
*
)
/
)
||
[
''
,
''
])[
1
]
;
$
(
'password'
).
value
=
uri
.
getData
(
"password"
)
||
''
;
$
(
'password'
).
value
=
(
url
.
match
(
/password=
([^
&#
]
*
)
/
)
||
[
''
,
''
])[
1
]
;
}
}
</script>
</script>
...
...
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