Commit 8bbf2f67 by doszhang

dos

parent 57ed809a
......@@ -75,7 +75,8 @@ $(document).ready(function () {
$('.inputTip').hide();
// $('.start').show();
}
}) $('.again').on('click', function () {
});
$('.again').on('click', function () {
$('.swiperBox,.make,.username,.upload').show();
$('.again,.saveTip').hide();
$('.inputTip').show();
......@@ -84,7 +85,8 @@ $(document).ready(function () {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#ffffff";
ctx.fillRect(0, 0, canvas.width, canvas.height);
}) $('.make').on('click', function () {
});
$('.make').on('click', function () {
if (!inited) {
return;
}
......@@ -148,22 +150,27 @@ $(document).ready(function () {
ctx2.fillText(text, left, top * 2);
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">');
});
}) $('input[type=text]').on('input', onInput);
});
$('input[type=text]').on('input', onInput);
$('.L-arrow').on('click', function () {
if (firstSwiper) {
firstSwiper.slideNext();
}
}) $('.R-arrow').on('click', function () {
});
$('.R-arrow').on('click', function () {
if (firstSwiper) {
firstSwiper.slidePrev();
}
}) $('.choose1').on('click', function () {
});
$('.choose1').on('click', function () {
showPage1();
}) $('.choose2').on('click', function () {
});
$('.choose2').on('click', function () {
$('.upload').show();
$('.imgTip').find('canvas').hide();
showPage2();
}) $('input[type=file]').on('change', function () {
});
$('input[type=file]').on('change', function () {
$('.imgTip').find('canvas').show();
$('.usertips').show();
imgInfo = {
......
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