Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
s7-avatar
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8816649c
authored
Jul 21, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
8cbc6e0d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletions
+16
-1
.gitignore
+0
-0
Public/static/admin/lib/qiniu/demo/scripts/ui.js
+0
-0
Public/static/js/common.js
+16
-1
Public/static/js/hammer.min.js
+0
-0
No files found.
.gitignore
View file @
8816649c
Public/static/admin/lib/qiniu/demo/scripts/ui.js
View file @
8816649c
Public/static/js/common.js
View file @
8816649c
...
@@ -105,6 +105,9 @@ $(document).ready(function () {
...
@@ -105,6 +105,9 @@ $(document).ready(function () {
return
;
return
;
}
}
}
}
if
(
text
.
gblen
>
10
)
{
showTip
(
'名字最长为5个汉字'
);
}
if
(
text
.
length
===
2
)
{
if
(
text
.
length
===
2
)
{
var
last
=
text
[
1
];
var
last
=
text
[
1
];
text
=
text
[
0
]
+
' '
+
last
;
text
=
text
[
0
]
+
' '
+
last
;
...
@@ -166,7 +169,7 @@ $(document).ready(function () {
...
@@ -166,7 +169,7 @@ $(document).ready(function () {
$
(
'.page:visible'
).
find
(
'.showBox'
).
show
().
html
(
'<img src="'
+
canvas2
.
toDataURL
(
'image/png'
)
+
'">'
);
$
(
'.page:visible'
).
find
(
'.showBox'
).
show
().
html
(
'<img src="'
+
canvas2
.
toDataURL
(
'image/png'
)
+
'">'
);
});
});
});
});
$
(
'input[type=text]'
).
on
(
'input'
,
onInput
);
//
$('input[type=text]').on('input', onInput);
$
(
'.L-arrow'
).
on
(
'click'
,
function
()
{
$
(
'.L-arrow'
).
on
(
'click'
,
function
()
{
if
(
firstSwiper
)
{
if
(
firstSwiper
)
{
firstSwiper
.
slideNext
();
firstSwiper
.
slideNext
();
...
@@ -349,6 +352,18 @@ var limitMaxLength = function (str, maxLength) {
...
@@ -349,6 +352,18 @@ var limitMaxLength = function (str, maxLength) {
return
result
.
join
(
''
);
return
result
.
join
(
''
);
}
}
String
.
prototype
.
gblen
=
function
()
{
var
len
=
0
;
for
(
var
i
=
0
;
i
<
this
.
length
;
i
++
)
{
if
(
this
.
charCodeAt
(
i
)
>
127
||
this
.
charCodeAt
(
i
)
==
94
)
{
len
+=
2
;
}
else
{
len
++
;
}
}
return
len
;
}
var
mc
=
new
Hammer
(
$
(
'.imgTip'
).
get
(
0
));
var
mc
=
new
Hammer
(
$
(
'.imgTip'
).
get
(
0
));
mc
.
get
(
'pan'
).
set
({
mc
.
get
(
'pan'
).
set
({
direction
:
Hammer
.
DIRECTION_ALL
direction
:
Hammer
.
DIRECTION_ALL
...
...
Public/static/js/hammer.min.js
View file @
8816649c
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