程序员爱情表白动画 HTML5+jQuery制作温馨浪漫爱心表白动画特效

Time:

Author:资源分享

1.jpg


/**

* We are both Fudan SSers and programmers,

* 我们都是复旦SSers和程序员,

* so I write some code to celebrate our 1st anniversary.

* 所以我写一些代码来庆祝我们的结婚纪念日。

*/

Boy i = new Boy("hackerzhou");

Girl u = new Girl("MaryNee");

// Nov 2, 2010, I told you I love you. 

// 2010年11月2日,我告诉你我爱你。

i.love(u);

// Luckily, you accepted and became my girlfriend eversince.

// 幸运的是,你答应了我。

u.accepted();

// Since then, I miss u every day.

// 从那以后,我每一天都想念你。

i.miss(u);

// And take care of u and our love.

// 我呵护我们的爱情

i.takeCareOf(u);

// You say that you won't be so easy to marry me.

// 你说你不会那么容易嫁给我。

// So I keep waiting and I have confidence that you will.

// 我坚信,你会和我在一起

boolean isHesitate = true;

while (isHesitate) {

i.waitFor(u);

// I think it is an important decision

// 我认为这是一个重要的决定

// and you should think it over.

// 你应该考虑一下。

isHesitate = u.thinkOver();

}

// After a romantic wedding, we will live happily ever after.

// 随后一个浪漫的婚礼,我们将会幸福地生活在一起。

i.marry(u);

i.liveHappilyWith(u);


查看演示:资源下载: