飛び先のチェック (ver 0.04) by ぴょん基地の友達
解析
飛び先のURL
http://mw1.google.com/mw-ms/viewer/viewer.html
code = 200
base = http://mw1.google.com/mw-ms/viewer/viewer.html
body =
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="3600">
<title>Google Maps - Recent My Maps</title>
<script src="http://maps.google.com/maps?file=api&v=2"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
// Author: Doug Ricket <dricket@google.com>
var viewer = [];
var src, urldisplay;
var visibleFrame = 0;
var mapIds;
var currentIndex = 0;
var autoStopHandle;
var AUTO_STOP_TIME = 300000; // 5 min
var TICK_TIME = 15000;
function onLoad() {
viewer[0] = el('viewer0');
viewer[1] = el('viewer1');
var date = (new Date()).toUTCString().substring(0,16);
el('title').innerHTML += " for " + date;
// Use parameter to force refresh every day
GDownloadUrl('maps.txt?' + date,
function(text, code) {
mapIds = text.split("\n");
currentIndex = Math.floor(Math.random() * mapIds.length);
clockTick();
});
autoStopHandle = window.setTimeout(autoStop, AUTO_STOP_TIME);
}
function autoStop() {
// Pause
if (timeoutHandle) {
pp();
}
autoStopHandle = null;
}
function el(id) {
return document.getElementById(id);
}
function loading(status) {
el("loading").style.display = status ? "block" : "none";
}
var timeoutHandle;
function clockTick() {
timeoutHandle = window.setTimeout(clockTick, TICK_TIME);
doClockTick();
}
function doClockTick() {
if (!mapIds) {
return;
}
viewer[1-visibleFrame].src =
"http://maps.google.com/maps/ms?source=msviewer&msa=0&msid=" +
mapIds[currentIndex];
currentIndex = (currentIndex + 1) % mapIds.length;
loading(true);
}
function frameLoad(num, indexId) {
loading(false);
if (!mapIds) {
return;
}
if (!viewer[num] || !viewer[num].src.length) {
return;
}
viewer[1-num].style.zIndex = 100; // visibility = "hidden";
viewer[num].style.zIndex = 200; // visibility = "visible";
visibleFrame = num;
}
function resetTimeout() {
if (timeoutHandle) {
clearTimeout(timeoutHandle);
timeoutHandle = setTimeout(clockTick, TICK_TIME);
}
}
function previous() {
resetTimeout();
currentIndex = (currentIndex - 2 + mapIds.length) % mapIds.length;
doClockTick();
}
function next() {
resetTimeout();
doClockTick();
}
function pp() {
if (timeoutHandle) {
// Pause
window.clearTimeout(timeoutHandle);
timeoutHandle = null;
el("ppi").src = "play.gif";
el("ppi").alt = "Play";
el("ppi").title = "Play";
} else {
// Play
clockTick();
el("ppi").src = "pause.gif";
el("ppi").alt = "Pause";
el("ppi").title = "Pause";
window.clearTimeout(autoStopHandle);
autoStopHandle = window.setTimeout(autoStop, AUTO_STOP_TIME);
}
}
function closeViewer() {
document.location = viewer[visibleFrame].src;
}
//]]>
</script>
<style type="text/css">
body {
margin:0px;
padding:0px;
font-family: Arial,sans-serif;
}
.viewer {
position:absolute;
bottom:0px;
left:0px;
right:0px;
top:40px;
border:0px solid blue;
width:100%;
height:95%;
padding:0px;
margin:0px;
}
#console{
right:0px;
top:0px;
z-index:10;
width:100%;
background-color:#555555;
border-bottom:1px solid #cccccc;
height:40px;
vertical-align:middle;
}
#console > table{
width: 100%;
}
#loading{
position:absolute;
top:40px;
right:0px;
background:#FF2222;
color:white;
font-weight:bold;
padding:2px;
z-index:3;
}
img{
border:0px;
}
#title{
font-weight:bold;
font-size:15pt;
color:white;
}
</style>
</head>
<body onLoad="onLoad()" style="margin:0px;padding:0px">
<div id="console">
<table width="100%" height=40>
<tr>
<td id="title" valign="middle">
Recent My Maps
</td>
<td align="right" valign="middle">
<a href="javascript:void(0)" onClick="previous()">
<img src="http://mw1.google.com/mw-ms/viewer/back.gif" alt="Previous" title="Previous"></img></a>
<a href="javascript:pp()">
<img src="http://mw1.google.com/mw-ms/viewer/pause.gif" alt="Pause" title="Pause" id="ppi"></img></a>
<a href="javascript:void(0)" onClick="next()">
<img src="http://mw1.google.com/mw-ms/viewer/next.gif" alt="Next" title="Next"></img></a>
<a href="javascript:void(0)" onClick="closeViewer()">
<img style="padding-left:10px" alt="Remove frame" title="Remove frame" src="http://mw1.google.com/mw-ms/viewer/close.gif"></img>
</a>
</td>
</tr>
</table>
<div id="loading">Loading...</div>
</div>
<iframe id="viewer0" class="viewer" frameborder="0"
onload="frameLoad(0)" >
</iframe>
<iframe id="viewer1" class="viewer" frameborder="0"
onload="frameLoad(1)" >
</iframe>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
_uacct = "UA-871385-1";
_utcp="/staticfiles/gmre/";
urchinTracker();
//]]>
</script>
</body>
</html>