Permalink
Browse files

added fb like for testing

  • Loading branch information...
1 parent b76fac8 commit c5e6c9683f502a83ac4ed8064559c7eb9b30c4ac @nikolajbaer committed Jul 11, 2011
Showing with 37 additions and 11 deletions.
  1. +35 −9 index.html
  2. +2 −2 js/game.js
  3. BIN og.png
View
@@ -1,23 +1,46 @@
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:og="http://ogp.me/ns#"
+ xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
+ <!-- Meta -->
<title>Nikolaj Baer .us</title>
<meta name="ROBOTS" content="ALL" />
<meta http-equiv="imagetoolbar" content="no" />
- <meta name="Copyright" content="This site's design and contents Copyright (c) 2000+ Nikolaj Baer." />
- <meta name="keywords" content="Nikolaj Baer,awesome,amazing,wonderful,competent,incompetent" />
+ <meta name="Copyright" content="This site's design and contents Copyright (c) 2011+ Nikolaj Baer." />
+ <meta name="keywords" content="Nikolaj Baer" />
<meta name="description" content="tired of old site; no interest in blogging; just enough is right" />
- <link href="css/main.css" rel="stylesheet" type="text/css" media="screen" />
+
+ <!-- Opengraph -->
+ <meta property="og:title" content="Nikolaj Baer" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="http://www.nikolajbaer.us/" />
+ <meta property="og:image" content="http://www.nikolajbaer.us/og.png" />
+ <meta property="og:site_name" content="Nikolaj Baer . US" />
+ <meta property="og:description" content="Interactive demo by Nikolaj Baer. Learn more about me at blog.nikolajbaer.us."/>
+ <meta property="fb:admins" content="534965786" />
+
+ <!-- Scripts -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
-
<script type="text/javascript" src="js/fun.js"></script>
- <!-- lil framework for some js demos, include fun.js and fork demobase.js -->
<script type="text/javascript" src="js/game.js"></script>
<!--<script type="text/javascript" src="js/demobase.js"></script>-->
+
+ <!-- Styles -->
+ <link href="css/main.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
body {
cursor: crosshair;
+ font-family: Arial, sans-serif;
+ font-size: 8pt;
}
- #hitrate {
+ a {
+ color: #eee;
+ text-decoration: none;
+ }
+ a:hover {
+ color: #fff;
+ }
+ #info {
position: absolute;
top: 5px;
left: 5px;
@@ -27,9 +50,12 @@
</style>
</head>
<body>
-<div id="hitrate"></div>
<canvas id="thecanvas"></canvas>
-
+<div id="info">
+ <div id="hitrate"></div>
+ <p><a href="http://github.com/nikolajbaer">github</a> <a href="http://blog.nikolajbaer.us">blog</a> <a href="http://cukerinteractive.com">work</a></p>
+ <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=189607021097774&amp;xfbml=1"></script><fb:like href="http://www.nikolajbaer.us/" send="true" layout="button_count" width="250" show_faces="false" colorscheme="dark" font=""></fb:like>
+</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-797423-1";
View
@@ -137,8 +137,8 @@ Game.prototype.tick = function(){
// update projectiles
for(var i=0;i<this.projectiles.length;i++){
var p = this.projectiles[i];
- //this.dirtyrects.push([p.x-p.r,p.y-p.r,p.r*2,p.r*2]);
- this.dirtyrects.push([p.x-p.r,p.y-p.r,p.r,p.r]);
+ this.dirtyrects.push([p.x-p.r,p.y-p.r,p.r*2,p.r*2]);
+ //this.dirtyrects.push([p.x-p.r,p.y-p.r,p.r,p.r]);
// acceleration from mass
var g={x:p.dx,y:p.dy};
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5e6c96

Please sign in to comment.