Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
- <title>HaxBall - Play</title>
- <meta charset="utf-8" />
- <meta http-equiv="imagetoolbar" content="no"/>
- <meta name="description" content="Play HaxBall, the real-time multiplayer online browser game."/>
- <meta name="keywords" content="haxball,multiplayer,game,football,air-hockey,soccer"/>
- <link rel="shortcut icon" href="http://www.haxball.com/favicon.png" />
- <link rel="stylesheet" href="http://www.haxball.com/css/style.css" type="text/css" />
- <!--[if IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" /><![endif]-->
- <link href='http://fonts.googleapis.com/css?family=Nobile' rel='stylesheet' type='text/css'>
- <link href='http://fonts.googleapis.com/css?family=Droid+Sans:bold' rel='stylesheet' type='text/css'>
- <script type="text/javascript">
- if (top != self) top.location = location;
- </script>
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-20268031-1']);
- _gaq.push(['_setDomainName', 'none']);
- _gaq.push(['_setAllowLinker', true]);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
- <script src="http://www.google.com/jsapi?key=ABQIAAAAfF6r1k8NoYtii3F5iGnjDBSDJHkI3yb3J9tkXihv4eAxxOVDsxQ7q3DNRMk0r8fUAixkrHz188choQ" type="text/javascript"></script>
- <script type="text/javascript">
- Cookie = {
- write: function(name, value, days) {
- if (days) {
- var date = new Date();
- date.setTime(date.getTime() + (days*24*60*60*1000));
- var expires = "; expires=" + date.toGMTString();
- }
- else var expires = "";
- document.cookie = name + "=" + value + expires + "; path=/";
- },
- read: function(name) {
- var nameEQ = name + "=";
- var ca = document.cookie.split(';');
- for (var i = 0; i < ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') c = c.substring(1, c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
- }
- return null;
- },
- erase: function(name) {
- this.write(name, "", -1);
- }
- };
- HaxBall = {
- showNotice: function(id) {
- Element.addClassName(document.body, 'show_notice');
- $(id).addClassName('open');
- },
- hideNotice: function() {
- Element.removeClassName(document.body, 'show_notice');
- $$('.notice').invoke('removeClassName', 'open');
- },
- initGpuNoticeTimeout: function() {
- if (this.replayMode) return;
- if (!this.wmodeDirect()) return;
- this.gpuNoticeTimeout = setTimeout((function() {
- this.showNotice('gpu_notice');
- }).bind(this), 5000);
- },
- gameWorking: function() {
- if (this.gpuNoticeTimeout) clearTimeout(this.gpuNoticeTimeout);
- this.hideNotice();
- },
- wmodeDirect: function() {
- var queryParam = swfobject.getQueryParamValue('gpu');
- if (queryParam == 'off') {
- this.disableWmodeDirect();
- Event.observe(window, 'load', (function() {
- this.showNotice('gpu_disabled_notice');
- }).bind(this));
- return false;
- } else if (queryParam == 'on') {
- this.enableWmodeDirect();
- return true;
- } else if (Cookie.read('gpu') == 'off') {
- return false;
- } else {
- return true;
- }
- },
- enableWmodeDirect: function() {
- Cookie.erase('gpu');
- },
- disableWmodeDirect: function() {
- Cookie.write('gpu', 'off', 365);
- },
- embed: function() {
- var swfName = 'haxball.swf', replayVersion = swfobject.getQueryParamValue('replay');
- var flashvars = {
- token: 'hax'
- };
- var params = {
- bgcolor: "#939e7f",
- allowScriptAccess: 'always'
- };
- var attributes = {
- id: 'haxball'
- };
- if (this.wmodeDirect()) {
- params.wmode = 'direct';
- flashvars.wmode_direct = 'yes';
- }
- if ( replayVersion.match(/^\d+$/) ) {
- swfName = 'replay/' + replayVersion + '.swf';
- if (location.hash.match(/^#.+/)) {
- flashvars.replayurl = location.hash.substr(1);
- }
- this.replayMode = true;
- } else if (swfobject.getQueryParamValue('roomid')) {
- flashvars.roomid = swfobject.getQueryParamValue('roomid');
- if (swfobject.getQueryParamValue('pass')) flashvars.pass = swfobject.getQueryParamValue('pass');
- }
- swfobject.embedSWF(swfName, "no_flash", "100%", "99%", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
- }
- };
- HaxBall.embed();
- </script>
- <!-- dfp -->
- <script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'>
- </script>
- <script type='text/javascript'>
- GS_googleAddAdSenseService("ca-pub-8620987890162221");
- GS_googleEnableAllServices();
- </script>
- <script type='text/javascript'>
- GA_googleAddSlot("ca-pub-8620987890162221", "HaxBall_Main_Right_160x600");
- </script>
- <script type='text/javascript'>
- GA_googleFetchAds();
- </script>
- <!-- end dfp -->
- </head>
- <body id="play">
- <div id="header">
- <ul id="navigation">
- <li class="active"><a href="http://www.haxball.com/index.html">Play HaxBall</a></li>
- <li><a href="http://blog.haxball.com">News</a></li>
- <li><a href="http://www.haxball.com/about.html">About</a></li>
- <li><a href="http://www.haxball.com/faq.html">FAQ</a></li>
- <li><a href="http://www.haxball.com/community.html">Community</a></li>
- </ul>
- <div id="donate">
- <form action="http://10.0.2.15/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="QQ4WAA755U5ZY">
- <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
- <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
- </form>
- </div>
- <div id="social_bookmarking_buttons">
- <!-- Stumble -->
- <span id="stumble_badge" class="button">
- <script src="http://www.stumbleupon.com/hostedbadge.php?s=1"></script>
- </span>
- <!-- Tweet -->
- <span id="tweet_button" class="button">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.haxball.com" data-text="Play HaxBall!" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
- </span>
- <!-- Facebook Like -->
- <span id="facebook_like" class="button">
- <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffacebook.com%2Fpages%2FHaxBall%2F161384490573730&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
- </span>
- </div>
- </div>
- <div id="ads">
- <!--
- <script type="text/javascript">
- google_ad_client = "ca-pub-8620987890162221";
- /* HaxBall Main */
- google_ad_slot = "2466297762";
- google_ad_width = 160;
- google_ad_height = 600;
- </script>
- <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- -->
- <!-- HaxBall_Main_Right_160x600 -->
- <script type='text/javascript'>
- GA_googleFillSlot("HaxBall_Main_Right_160x600");
- </script>
- </div>
- <div id="gpu_notice" class="notice">
- If you see a blank screen where the game should be just <a href="http://www.haxball.com/?gpu=off">click here to disable hardware acceleration</a>.
- </div>
- <div id="gpu_disabled_notice" class="notice">
- You have disabled hardware acceleration for HaxBall. If you did it by accident <a href="http://www.haxball.com/?gpu=on">click here to enable it back again</a> or <a href="index.html#" onclick="HaxBall.hideNotice(); return false;">close this notice</a>.
- </div>
- <div id="the_game" class="settings">
- <div id="no_flash">
- <div id="sad_face">:(</div>
- <h2>Sorry, but you need Adobe Flash Player to play HaxBall</h2>
- <p>You need to install Adobe Flash Player version 10 (or greater).</p>
- <p>Fortunately you can click on this little button below to install it for free.</p>
- <p>
- <a href="http://www.adobe.com/go/getflashplayer">
- <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
- </a>
- </p>
- <p>If you have Flash Player 10 installed and you're still seeing this message make sure you have JavaScript enabled.</p>
- </div>
- </div>
- <script type="text/javascript">
- (function() {
- var r;
- window.onbeforeunload = function(e) {
- if (r = $('haxball').onUnload()) {
- return (e || window.event).returnValue = 'You are the host of this match, are you sure you wanna close it?';
- }
- };
- window.onunload = function() {
- r && new Ajax.Request(r, {postBody: ":0", asynchronous: false});
- };
- })();
- HaxBall.initGpuNoticeTimeout();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement