Skip to content

Instantly share code, notes, and snippets.

@sutra
Created December 14, 2017 15:06
Show Gist options
  • Save sutra/e1d4e7aa5accd4fb8c0135785742bc17 to your computer and use it in GitHub Desktop.
Save sutra/e1d4e7aa5accd4fb8c0135785742bc17 to your computer and use it in GitHub Desktop.
$ curl -v 'http://zsh.com/js/zepto.se.js'
* Trying 121.40.217.132...
* TCP_NODELAY set
* Connected to zsh.com (121.40.217.132) port 80 (#0)
> GET /js/zepto.se.js HTTP/1.1
> Host: zsh.com
> User-Agent: curl/7.56.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 14 Dec 2017 15:06:08 GMT
< Server: Apache/2.0.63 (Win32) PHP/5.2.14
< Last-Modified: Sat, 11 Nov 2017 10:12:04 GMT
< ETag: "7e330-348-44e0c8cb"
< Accept-Ranges: bytes
< Content-Length: 840
< Content-Type: application/javascript
<
function adsUp() {
$('#banner_top').animate({
height: '0px'
}, 1000, function() {
show_num();
window.setInterval(function() {
show_num()
}, Math.floor(Math.random() * 10000 + Math.random() * 500))
})
}
function show_num() {
var n = 3446690 + parseInt((parseInt(new Date().getTime().toString().substring(0, 10)) / 4) - 374007920);
var it = $(".t_num i");
var len = String(n).length;
for (var i = 0; i < len; i++) {
if (it.length <= i) {
$(".t_num").append("<i></i>")
}
var num = String(n).charAt(i);
var y = -parseInt(num) * 30;
var obj = $(".t_num i").eq(i);
obj.animate({
backgroundPosition: '(0 ' + String(y) + 'px)'
}, 'slow', 'swing', function() {})
}
* Connection #0 to host zsh.com left intact
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment