This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#tooltip { padding: 5px; width: auto; min-width:78px; background-color:#fff; border: 2px #ccc solid; position: absolute; top: 50px; z-index:1000; font-size:12px; text-transform:uppercase; text-align:left; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;} | |
#tooltip .tip, #tooltip .tip-inner { position: absolute; width:0; height:0; border-top-width: 0; background: none; } | |
#tooltip .tip { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid #ccc; top: -7px; right: auto; left: 50%; margin-left: -5px; } | |
#tooltip .tip-inner { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #fff; bottom: auto; top: 2px; left: -4px; } | |
</style> | |
<script> | |
$(".game").hover( function () { | |
$("#tip-wpit").text($(this).attr("data-wpit")); | |
$("#tip-lpit").text($(this).attr("data-lpit")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
PHP LANGUAGE DETECTION SCRIPT | |
written by Mischa Szeker (www.szeker.ch) | |
January 21, 2011 | |
http://www.szeker.net/2011/02/10/php-language-detection-script/ | |
*/ | |
/* Setting variables */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$yahooPipesURL = "http://pipes.yahoo.com/pipes/pipe.run?_id=89dba5fe8716d4e780a80206edda2da6&_render=json"; | |
// the old way | |
//$session = curl_init($yahooPipesURL); | |
//curl_setopt($session, CURLOPT_HEADER, false); | |
//curl_setopt($session, CURLOPT_RETURNTRANSFER, true); | |
//$resultsJson = curl_exec($session); | |
//curl_close($session); | |
// the new way |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
#g-landscape {display:none; margin:0 auto;font-family: sans-serif; font-size:10px;} | |
@media only screen and (max-device-width: 800px) and (orientation:portrait) { | |
#g-landscape {display:block;} | |
} | |
</style> | |
</head> | |
<body> |
NewerOlder