Commit 77f6b328 authored by 神楽坂玲奈's avatar 神楽坂玲奈

image

parent 4cbc79c8
......@@ -12,9 +12,9 @@ class Card extends Spine.Model
@url: "https://api.mongolab.com/api/1/databases/mycard/collections/cards?apiKey=508e5726e4b0c54ca4492ead"
@locale_url: "https://api.mongolab.com/api/1/databases/mycard/collections/lang_#{locale}?apiKey=508e5726e4b0c54ca4492ead"
image_url: ->
"http://images.my-card.in/#{@id}.jpg"
"http://my-card.in/images/cards/ygocore/#{@id}.jpg"
image_thumbnail_url: ->
"http://images.my-card.in/thumbnail/#{@id}.jpg"
"http://my-card.in/images/cards/ygocore/thumbnail/#{@id}.jpg"
@fetch_by_name: (name, callback)->
$.getJSON "#{@locale_url}&q=#{JSON.stringify {name: {$regex: name.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'), $options: 'i'}}}", (langs) =>
alert langs
......
......@@ -39,11 +39,11 @@
Card.locale_url = "https://api.mongolab.com/api/1/databases/mycard/collections/lang_" + locale + "?apiKey=508e5726e4b0c54ca4492ead";
Card.prototype.image_url = function() {
return "http://images.my-card.in/" + this.id + ".jpg";
return "http://my-card.in/images/cards/ygocore/" + this.id + ".jpg";
};
Card.prototype.image_thumbnail_url = function() {
return "http://images.my-card.in/thumbnail/" + this.id + ".jpg";
return "http://my-card.in/images/cards/ygocore/thumbnail/" + this.id + ".jpg";
};
Card.fetch_by_name = function(name, callback) {
......
......@@ -29,7 +29,7 @@
<script id="card_template" type="text/x-jquery-tmpl">
<div id="card_name" class="card_name">${name}</div>
<div class="card_img line floatleft">
<img id="card_image" height="187px" width="130px" src="http://images.my-card.in/${id}.jpg" alt="card_name"/>
<img id="card_image" height="187px" width="130px" src="http://my-card.in/images/cards/ygocore/${id}.jpg" alt="card_name"/>
</div>
<div class="card_info floatleft">
<div id="card_card_type_title" class="attr_name floatleft">${$.i18n.prop('card_type')}</div>
......@@ -205,7 +205,7 @@
<script id="search_card_graphic_template" type="text/x-jquery-tmpl">
<div>
<div>
<img src="http://images.my-card.in/thumbnail/2009101.jpg" width="44" height="64"/>
<img src="http://my-card.in/images/cards/ygocore/thumbnail/2009101.jpg" width="44" height="64"/>
<span>黑羽-疾风之盖尔</span><br/>
<span></span>
<span>鸟兽</span>
......@@ -213,7 +213,7 @@
<span>1300</span>/<span>400</span>
</div>
<div>
<img src="http://images.my-card.in/thumbnail/2009101.jpg" width="44" height="64"/>
<img src="http://my-card.in/images/cards/ygocore/thumbnail/2009101.jpg" width="44" height="64"/>
<span>黑羽-疾风之盖尔</span><br/>
<span></span>
<span>鸟兽</span>
......
card_type = 卡类
type = 种族
attribute = 属性
atk = 攻击
def = 守备
level = 星阶
type.Aqua =
type.Beast =
type["Beast-Warrior"] = 兽战士
type.Creator_God = 创造神
type.Dinosaur = 恐龙
type["Divine-Beast"] = 幻神兽
type.Dragon =
type.Fairy = 天使
type.Fiend = 恶魔
type.Fish =
type.Insect = 昆虫
type.Machine = 机械
type.Plant = 植物
type.Psychic = 念动力
type.Pyro =
type.Reptile = 爬虫
type.Rock = 岩石
type["Sea_Serpent"] = 海龙
type.Spellcaster = 魔法使
type.Thunder =
type.Warrior = 战士
type.Winged_Beast = 鸟兽
type.Zombie = 不死
attribute.DARK =
attribute.DIVINE =
attribute.EARTH =
attribute.FIRE =
attribute.LIGHT =
attribute.WATER =
attribute.WIND =
card_type = 卡类
type = 种族
attribute = 属性
atk = 攻击
def = 守备
level = 星阶
type.Aqua =
type.Beast =
type["Beast-Warrior"] = 兽战士
type.Creator_God = 创造神
type.Dinosaur = 恐龙
type["Divine-Beast"] = 幻神兽
type.Dragon =
type.Fairy = 天使
type.Fiend = 恶魔
type.Fish =
type.Insect = 昆虫
type.Machine = 机械
type.Plant = 植物
type.Psychic = 念动力
type.Pyro =
type.Reptile = 爬虫
type.Rock = 岩石
type["Sea_Serpent"] = 海龙
type.Spellcaster = 魔法使
type.Thunder =
type.Warrior = 战士
type.Winged_Beast = 鸟兽
type.Zombie = 不死
attribute.DARK =
attribute.DIVINE =
attribute.EARTH =
attribute.FIRE =
attribute.LIGHT =
attribute.WATER =
attribute.WIND =
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment