StackOverflow 网站被攻击!

640?wx_fmt=png

‍哈哈,如果你是被标题吸引进来了,别惊讶,今天是愚人节。

码农最常用的三大网站之一 StackOverflow 网站昨天开始开启了愚人节模式,整个网站风格回到了远古时代,浓浓的 Flash Style,鼠标移动特效、跑马灯效果。如果今天不是4月1日,你会以为网站真的被攻击了。

640?wx_fmt=png

好奇地打开页面查看源代码发现巨卡,卡到浏览器直接崩溃,所以请谨慎操作。 源代码里面也埋了一些彩蛋,例如:

640?wx_fmt=png

640?wx_fmt=png

不过,你千万不要以为这个留言是真人写的,其实是前端写死的。每次随机挑几条显示,感兴趣的可以去打开源代码看看。当然,你自己的提交的留言也只是在本地提交,刷新就没了。关键代码:

addRandomComment() {
       var names = [
           "adam",
           "jane",
           "meg",
           "jon",
           "josh",
           "lisa",
           "brian"
        ];
        var comments = [
             "Is this an April Fool's joke?",
              "this is for april 1",
              "april fools :)",
              "Where's the webring? :(",
              "check out this song! http://myspace.com/soeb__42345",
              "FIIIIIIIRRRSSSSTTTTTTT",
              "...",
              "lol",
              "lol jk",
              "testing.",
              "the unicorns are genius",
              "did they kill sparkles???",
              "fireballs would have been better",
              "I forgot about <marquee> lol",
              "<marquee> !!!",
              "What about <blink>?",
              "testing...",
              "test test test",
              "does this wor",
              "OMG HAHAHA",
              "omg",
              "heh.",
              "hehehe",
              "I think they got haxxxed",
              "There are so many better things for the devs to do.",
              "I guess it's April :P",
              "f",
              "it's almost Y2K!!!",
              "what browser are you using?",
              "netscape 4.05",
              "ff",
              "DHTML!",
              "Flash"
          ];

          addComment(names[Math.floor(Math.random()*names.length)], comments[Math.floor(Math.random()*comments.length)])
 }

祝愚人节快乐!

推荐阅读:

640?

欢迎关注并置顶公众号,方便第一时间收看最新内容

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值