Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
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
MyCard
Moecube Store
Commits
d24c3979
Commit
d24c3979
authored
May 19, 2013
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
room_share
parent
92ca2225
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
4 deletions
+31
-4
assets/javascripts/room_show.coffee
assets/javascripts/room_show.coffee
+7
-1
assets/javascripts/room_show.js
assets/javascripts/room_show.js
+8
-1
assets/stylesheets/room_show.css
assets/stylesheets/room_show.css
+1
-0
rooms/show.html
rooms/show.html
+15
-2
No files found.
assets/javascripts/room_show.coffee
View file @
d24c3979
...
...
@@ -57,3 +57,9 @@ if $.cookie('username') && $.cookie('password')
$
(
'#join'
).
click
->
mycard
.
join
room
.
server
.
ip
,
room
.
server
.
port
,
mycard
.
room_name
(
room
.
name
,
room
.
password
),
$
.
cookie
(
'username'
),
(
$
.
cookie
(
'password'
)
if
room
.
server
.
auth
)
if
location
.
hash
==
'#share'
$
(
'#room_url'
).
val
mycard
.
room_url
room
.
server
.
ip
,
room
.
server
.
port
,
mycard
.
room_name
(
room
.
name
,
room
.
password
),
$
.
cookie
(
'username'
),
(
$
.
cookie
(
'password'
)
if
room
.
server
.
auth
)
$
(
'#share'
).
modal
()
$
(
'#room_url'
).
focus
()
$
(
'#room_url'
).
select
()
\ No newline at end of file
assets/javascripts/room_show.js
View file @
d24c3979
// Generated by CoffeeScript 1.
4.0
// Generated by CoffeeScript 1.
6.2
(
function
()
{
var
login
,
matched
,
room
,
url
;
...
...
@@ -76,4 +76,11 @@
return
mycard
.
join
(
room
.
server
.
ip
,
room
.
server
.
port
,
mycard
.
room_name
(
room
.
name
,
room
.
password
),
$
.
cookie
(
'
username
'
),
(
room
.
server
.
auth
?
$
.
cookie
(
'
password
'
)
:
void
0
));
});
if
(
location
.
hash
===
'
#share
'
)
{
$
(
'
#room_url
'
).
val
(
mycard
.
room_url
(
room
.
server
.
ip
,
room
.
server
.
port
,
mycard
.
room_name
(
room
.
name
,
room
.
password
),
$
.
cookie
(
'
username
'
),
(
room
.
server
.
auth
?
$
.
cookie
(
'
password
'
)
:
void
0
)));
$
(
'
#share
'
).
modal
();
$
(
'
#room_url
'
).
focus
();
$
(
'
#room_url
'
).
select
();
}
}).
call
(
this
);
assets/stylesheets/room_show.css
0 → 100644
View file @
d24c3979
input
#room_url
{
width
:
100%
}
\ No newline at end of file
rooms/show.html
View file @
d24c3979
...
...
@@ -16,6 +16,7 @@
}
</style>
<link
href=
"/vendor/stylesheets/bootstrap/bootstrap-responsive.min.css"
rel=
"stylesheet"
>
<link
href=
"/assets/stylesheets/room_show.css"
rel=
"stylesheet"
>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
...
...
@@ -106,7 +107,7 @@
<p>
需要本地安装了mycard才能自动加入房间,如果没有安装,请手动打开ygopro点联机模式填写上面的资料。
</p>
<p><a
class=
"btn"
href=
"https://github.com/
zh99998
/mycard/wiki/%E5%AF%B9%E6%88%98:%E7%9B%B4%E6%8E%A5%E8%BF%9E%E6%8E%A5#wiki-wrapper"
>
手动直连教程
»
</a>
href=
"https://github.com/
mycard
/mycard/wiki/%E5%AF%B9%E6%88%98:%E7%9B%B4%E6%8E%A5%E8%BF%9E%E6%8E%A5#wiki-wrapper"
>
手动直连教程
»
</a>
</p>
</div>
<div
class=
"span4"
>
...
...
@@ -131,7 +132,19 @@
<footer>
<p>
©
Mycard 2013
</p>
</footer>
<div
id=
"share"
class=
"modal hide fade"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h3>
约战
</h3>
</div>
<div
class=
"modal-body"
>
<p>
按Ctrl+C复制房间地址,并发送给你的好友
</p>
<input
id=
"room_url"
/>
</div>
<div
class=
"modal-footer"
>
<a
href=
"#"
class=
"btn btn-primary"
data-dismiss=
"modal"
>
确定
</a>
</div>
</div>
</div>
<!-- /container -->
...
...
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