Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
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
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
ygopro-images-generator
Commits
d2e52b1c
Commit
d2e52b1c
authored
Mar 08, 2013
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editable
parent
a6dc2027
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
7 deletions
+54
-7
js/main.coffee
js/main.coffee
+25
-4
js/main.js
js/main.js
+29
-3
No files found.
js/main.coffee
View file @
d2e52b1c
...
...
@@ -5,9 +5,30 @@ $(document).ready ->
$
(
'.attribute'
).
editable
(
value
,
settings
)
->
$
(
this
).
attr
'data-attribute'
,
value
,
{
placeholder
:
""
placeholder
:
""
data
:
JSON
.
stringify
{
'water'
:
'水'
,
'fire'
:
'炎'
}
type
:
'select'
submit
:
'OK'
submit
:
'OK'
}
$
(
'.monster_type'
).
editable
(
value
,
settings
)
->
value
$
(
'.number'
).
editable
(
value
,
settings
)
->
value
$
(
'.edition'
).
editable
(
value
,
settings
)
->
value
$
(
'.rule_text'
).
editable
(
value
,
settings
)
->
value
,
{
type
:
'textarea'
,
submit
:
'OK'
}
$
(
'.name'
).
editable
(
value
,
settings
)
->
value
$
(
'.gamecode'
).
editable
(
value
,
settings
)
->
value
$
(
'.atk'
).
editable
(
value
,
settings
)
->
value
$
(
'.def'
).
editable
(
value
,
settings
)
->
value
js/main.js
View file @
d2e52b1c
...
...
@@ -5,9 +5,8 @@
$
(
'
.name
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
return
$
(
'
.attribute
'
).
editable
(
function
(
value
,
settings
)
{
$
(
this
).
attr
(
'
data-attribute
'
,
value
);
return
""
;
$
(
'
.attribute
'
).
editable
(
function
(
value
,
settings
)
{
return
$
(
this
).
attr
(
'
data-attribute
'
,
value
);
},
{
placeholder
:
""
,
data
:
JSON
.
stringify
({
...
...
@@ -17,6 +16,33 @@
type
:
'
select
'
,
submit
:
'
OK
'
});
$
(
'
.monster_type
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
$
(
'
.number
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
$
(
'
.edition
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
$
(
'
.rule_text
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
},
{
type
:
'
textarea
'
,
submit
:
'
OK
'
});
$
(
'
.name
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
$
(
'
.gamecode
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
$
(
'
.atk
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
return
$
(
'
.def
'
).
editable
(
function
(
value
,
settings
)
{
return
value
;
});
});
}).
call
(
this
);
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