function Captcha() {
this.code = '';
- this.canvas = new canvas(64, 26);
+ this.canvas = new canvas(74, 26);
this.initialize();
}
var ctx = this.canvas.getContext('2d');
ctx.fillStyle = '#DDDDDD';
- ctx.fillRect(0, 0, 64, 26);
- ctx.font = 'bold 20px Helvetica';
+ ctx.fillRect(0, 0, 74, 26);
+ ctx.font = '20px DroidSans';
ctx.lineWidth = 1;
ctx.textAlign = 'center';
- ctx.strokeStyle = '#080';
- ctx.strokeText(this.code, 31, 20);
+ ctx.fillStyle = '#080';
+ ctx.fillText(this.code, 36, 20);
ctx.save();
};
}
body {
background: url('/static/img/bg.jpg') repeat-x scroll 0 0 #F5F6F7;
+ font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
padding-top: 45px;
}
section {
width: 122px;
}
#captcha {
- margin-right: 20px;
+ margin-right: 10px;
}
.page-header {
padding: 0;
meta(property="og:title", content="binb")
meta(property="og:type", content="game")
meta(property="og:url", content="https://binb.co/")
+ link(href="//fonts.googleapis.com/css?family=Droid+Sans:400,700", rel="stylesheet")
link(href="/static/css/bootstrap.min.css", rel="stylesheet")
link(href="/static/css/style.css", rel="stylesheet")
script.