Commit f2eeece5 by doszhang

dos

parent 79ed176e
...@@ -116,6 +116,7 @@ $(document).ready(function () { ...@@ -116,6 +116,7 @@ $(document).ready(function () {
drawImage(); drawImage();
$('.copywriting2,.btn-tocreate').fadeOut(300); $('.copywriting2,.btn-tocreate').fadeOut(300);
$('.upload-page').delay(200).fadeIn(300); $('.upload-page').delay(200).fadeIn(300);
initGame();
results = null; results = null;
imgData = null; imgData = null;
}; };
...@@ -192,6 +193,8 @@ function slidePrevTemplate() { ...@@ -192,6 +193,8 @@ function slidePrevTemplate() {
nowTemplate -= 1; nowTemplate -= 1;
$('.template').hide(); $('.template').hide();
$('.template' + nowTemplate).show(); $('.template' + nowTemplate).show();
if(nowTemplate == 5) $('.customize').show();
else $('.customize').hide();
} }
function slideNextTemplate() { function slideNextTemplate() {
...@@ -202,6 +205,8 @@ function slideNextTemplate() { ...@@ -202,6 +205,8 @@ function slideNextTemplate() {
nowTemplate += 1; nowTemplate += 1;
$('.template').hide(); $('.template').hide();
$('.template' + nowTemplate).show(); $('.template' + nowTemplate).show();
if(nowTemplate == 5) $('.customize').show();
else $('.customize').hide();
} }
function drawImage() { function drawImage() {
...@@ -242,6 +247,7 @@ function getManBase64() { ...@@ -242,6 +247,7 @@ function getManBase64() {
function initGame() { function initGame() {
$('.template').hide(); $('.template').hide();
$('.template' + nowTemplate).show(); $('.template' + nowTemplate).show();
$('.customize').hide();
} }
function txtDraw(ctx, content, x, y, fontsize, fontweight, color) { function txtDraw(ctx, content, x, y, fontsize, fontweight, color) {
......
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 sign in to comment