Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GaiaXalter
Mycard Mobile
Commits
a4d3cf49
Commit
a4d3cf49
authored
Jul 22, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
parent
46ffd581
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/new-room/new-room.component.html
src/app/new-room/new-room.component.html
+1
-1
src/app/new-room/new-room.component.ts
src/app/new-room/new-room.component.ts
+3
-3
No files found.
src/app/new-room/new-room.component.html
View file @
a4d3cf49
...
...
@@ -10,7 +10,7 @@
<md-icon>
vpn_key
</md-icon>
<span>
房间密码
</span>
</md-placeholder>
<input
#hostPassword
Ref
mdInput
name=
"title"
[(ngModel)]=
"host_password"
readonly
>
<input
#hostPassword
Input
mdInput
name=
"title"
[(ngModel)]=
"host_password"
readonly
>
<button
type=
"button"
md-icon-button
mdSuffix
(click)=
"copy(host_password)"
>
<md-icon>
content_copy
</md-icon>
</button>
...
...
src/app/new-room/new-room.component.ts
View file @
a4d3cf49
...
...
@@ -14,8 +14,8 @@ import { YGOProService } from '../ygopro.service';
})
export
class
NewRoomComponent
{
@
ViewChild
(
'
hostPassword
Ref
'
)
hostPassword
Ref
:
ElementRef
;
@
ViewChild
(
'
hostPassword
Input
'
)
hostPassword
Input
:
ElementRef
;
host_password
=
(
this
.
login
.
user
.
external_id
^
0x54321
).
toString
();
...
...
@@ -31,7 +31,7 @@ export class NewRoomComponent {
copy
(
host_password
:
string
)
{
try
{
this
.
hostPassword
Ref
.
nativeElement
.
select
();
this
.
hostPassword
Input
.
nativeElement
.
select
();
if
(
document
.
execCommand
(
'
copy
'
))
{
this
.
snackBar
.
open
(
`房间密码
${
host_password
}
已复制到剪贴板`
,
undefined
,
{
duration
:
3000
});
...
...
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