|
|
@ -43,6 +43,10 @@ function start(){ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".imgs_cont").click(function(){ |
|
|
|
|
|
|
|
alert($(this).html()) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$("#wgt_help").click(function(){ |
|
|
|
$("#wgt_help").click(function(){ |
|
|
|
var tmp = $(this); |
|
|
|
var tmp = $(this); |
|
|
|
if($(this).hasClass("open")){ |
|
|
|
if($(this).hasClass("open")){ |
|
|
@ -359,7 +363,8 @@ function importData(data){ |
|
|
|
for(var j in data[i].imgs){ |
|
|
|
for(var j in data[i].imgs){ |
|
|
|
var img_block = $("<div class='img_block img_gray' style='text-align: center;'>"); |
|
|
|
var img_block = $("<div class='img_block img_gray' style='text-align: center;'>"); |
|
|
|
var img = $("<img src='" + data[i].imgs[j].link + "' style='display: inline;'>"); |
|
|
|
var img = $("<img src='" + data[i].imgs[j].link + "' style='display: inline;'>"); |
|
|
|
img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); |
|
|
|
img.height(data[i].imgs[j].ht); |
|
|
|
|
|
|
|
|
|
|
|
if((120 - data[i].imgs[j].ht) > 0) |
|
|
|
if((120 - data[i].imgs[j].ht) > 0) |
|
|
|
img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); |
|
|
|
img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); |
|
|
|
|
|
|
|
|
|
|
@ -445,7 +450,7 @@ function importData(data){ |
|
|
|
for(j in data[i].imgs){ |
|
|
|
for(j in data[i].imgs){ |
|
|
|
img_block = $("<div class='img_block img_gray' style='text-align: center;'>"); |
|
|
|
img_block = $("<div class='img_block img_gray' style='text-align: center;'>"); |
|
|
|
img = $("<img src='" + data[i].imgs[j].link + "' style='display: inline;'>"); |
|
|
|
img = $("<img src='" + data[i].imgs[j].link + "' style='display: inline;'>"); |
|
|
|
img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd); |
|
|
|
img.height(data[i].imgs[j].ht); |
|
|
|
if((120 - data[i].imgs[j].ht) > 0) |
|
|
|
if((120 - data[i].imgs[j].ht) > 0) |
|
|
|
img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); |
|
|
|
img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0"); |
|
|
|
hidden_input = $("<input type='hidden'>").val(data[i].imgs[j].value); |
|
|
|
hidden_input = $("<input type='hidden'>").val(data[i].imgs[j].value); |
|
|
|