').append('').append('');
}
})
} else {
// iPhone モードでない場合、PC 用ページ
$(function(){
var schemeLang = "";
if($.browserEx.applemobileform)
$('title').before($(''));
// 初期の座標指定
var defAddr = (QS['lang'] != "en") ? '日本海' : 'Gorham Fairport Rd',
defLat = (QS['lang'] != "en") ? 38 : 39,
defLng = (QS['lang'] != "en") ? 138 : -99,
isCoordSet = false;
if(QS['coord'] != null){
var coordAry = QS['coord'].split(",");
coordAry[0] = Number(coordAry[0]);
coordAry[1] = Number(coordAry[1]);
if(!isNaN(coordAry[0]) && !isNaN(coordAry[1])) {
defLat = coordAry[0];
defLng = coordAry[1];
isCoordSet = true;
}
}
// 初期の住所指定
var addrStr = "";
if(QS['addr'] != null){
if(!$.browserEx.opera){ // Opera の場合、アドレスバーに日本語を入力したときの挙動にあまりよろしくない仕様があるため利用できない
addrStr = eval("Unescape" + GetEscapeCodeType(QS['addr']) + "(QS['addr'])");
}
} else if(QS['coord'] != null) {
addrStr = QS['coord'];
}
if(QS['lang'] == "en"){ // 英語版
// 英語版と日本語版それぞれで超ベタ書きでホントすんません。
// でもこれって、テンプレートでカバーできるレベルじゃないよなぁ。
// やるとしたらテンプレートを分けてそれぞれにベタ書きとかだよなぁ。
schemeLang = "lang%3Den%26";
var markerTitleLat = "latitude: ",
markerTitleLng = ", longitude: ",
addressNotInputted = " Search form was empty. Please enter an address or landmark.",
geoResultNotFound = " No matching result found.",
geoResultLimitOver = " Too many requests have been made for today. Please try again on a different day.",
geoResultUnexpectedError = " Unexpected error occurred. Please contact with the developer.",
alertIconURLNotInputted = 'You chose to use a custom URL for the icon image, but the URL form was empty. check! ',
alertIconNameNotInputted = 'Please enter the name for the shortcut. check! ',
alertMailAddressNotInputted = 'Enter your mail address. ',
mailStr1 = "This mail was made using Way2Ret (",
mailStr2 = " .)",
mailStr3 = "If you have no idea why this mail arrived, do NOT open the URL below and just delete this mail.",
mailSubject = "URL of searching-specific-location icon: ",
tapLinkStr = 'Long-press the link below and select “Open in New Page”. ',
mailAltStr = 'If mailer is not be opened, copy the texts below, then paste it a mail and send it to your iPhone. ',
zoomControl = "";
if($.browserEx.applemobileform) zoomControl = 'Zoom: ';
resHTML += '\
\
\
\
Using this page, you can add one or more icons to home screen of your iPhone/iPad/iPod touch. And tapping the icon let you see the way to preset location from current location with Google Maps quickly. \
It may be useful to set your home as a preset location (so, you can find your way home easily.) \
(* You can put multiple icons on the home screen. And you must install Google Maps into your iOS device) \
\
\
'+closeImg+' \
\
I read a blog post “how to make a ‘go back home’ shortcut like a car navigation system on iPhone”(Japanese) on “Daisuke’s blog.”(Japanese) \
It’s really useful, but takes a little bit too many steps. So I made this JavaScript-based “Way2Ret.” You can use this for your iPhone/iPad/iPod touch. No purchase or jailbreak required. \
\
Unlike google :P, this web page does NOT collect any location data you submit. No worry. \
\
\
You can make as many google-map shortcuts as you want with Way2Ret for FREE. If you really like it, tweet it or share it on facebook';
if(!$.browserEx.applemobileform){
resHTML += ' or treat me to curry';
}
resHTML += '. Thanks! \
\
\
'+closeImg+' \
\
Here’s how you can make a “go back home” shortcut on your iPhone. \
\
';
if(!$.browserEx.applemobileform){
resHTML += '\
[PC] \
\
Open this page on PC, follow the instruction “setup and send”
\
Click the “send mail” button and you can send a link to your iPhone
\
Open the URL with Safari browser of your iPhone
\
Tap the link and add it to your home screen
\
\
[iPhone] \
';
}
resHTML += '\
\
Open this page with Safari browser of your iPhone, follow the instruction “setup and send”
\
Click the “generate link” button
\
Tap the link and add it to your home screen
\
\
\
\
\
1. Get the location data with Google Maps \
Get the location data using the map below. \
You can search the location from address or spot name (e.g. stations, major buildings...,) or drag the marker to the exact point you want (and, you can also search the location from comma-deliminated latitude and longitude.) You can use the map as same as Google Maps (double click to zoom it in, use mouse wheel to zoom it in/out.) \
(*NOTE: because of the API limitation, we cannot guarantee unlimited times of use.) \
\
Location data will be shown below the map. \
\
Search from address or spot name: \
\
';
}
resHTML += '\
\
2. Setup the icon used on your iPhone \
Here are some easy setups and a custom setup. \
You can also customize settings set up with an easy setup. \
(*NOTE: if a language you use on your iPhone is not English, you must use Custom setup.) \
\
\
\
\
\
Here you can set the icon of shortcut you make. \
\
\
Select the icon \
\
\
\
\
\
\
You can choose icon and background color from presets.
\
\
\
Icon:
\
\
\
\
Background color:
\
\
\
\
\
\
If you want to use your own image for icon, please enter the URL of .png image on the Internet. Upload your image to your server and type in the URL below. \
Public URL of Dropbox is recommended. \
(*NOTE: because of the Ajax specifications, this service can NOT check whether there’s a image file or whether the file type is corrrect.)
\
\
\
\
\
\
\
Shine-effect \
\
\
\
';
separateRadioTableParent(2);
resHTML += 'You can choose whether the icon has shine-effect or not.\
\
\
\
';
separateRadioTableChild();
resHTML += ' \
\
\
\
Preferred way of travel \
\
\
\
';
separateRadioTableParent(3);
resHTML += 'Here you can select which of the three ways you choose to search.\
Tap on the “generate link” button. \
\
\
\
';
} else {
resHTML += '\
3. Send mail \
Type in the mail address you use with your iPhone and click the “send mail” button. \
Mailer will be opened. Just send the mail. \
If you check the “do not open the mailer” box, only the mail content will be generated. \
\
\
\
';
}
resHTML += '\
\
\
\
\
\
\
\
'+closeImg+' \
\
This page has these advanced features below. It may be useful to let someone into meeting spot. \
(*NOTE: If the address has a blank character, some mailer can not recognize as URL. So, to copy and paste it is recommended.) \
You can set address initially with “addr” query field (e.g. ' + baseFile + '?lang=en&addr=1450 Pennsylvania Ave NW, Washington .)';
if(!$.browserEx.applemobileform) resHTML += ' (*NOTE: “addr” can NOT work on Opera browser because of its no good specification of address bar.)';
resHTML += '
\
If both “coord” and “addr” are set, “coord” has priority.
\
\
\
\
'+closeImg+' \
\
I referred these page to write codes of this page. \
\
Daisuke’s blog(Japanese) : Source info of “how to make a ‘go back home’ shortcut like a car navigation system on iPhone”
\
\
\
Twitter account of developer : @ginlime \
Twitter account of English translator : @frkwyk \
\
If something something is wrong with this page, please tell us via Twitter. \
';
if(!$.browserEx.applemobileform){
resHTML += '\
\
\
If you really like this web page, I’d appreciate it very much if you could treat me to curry. Why curry? ...’cause I love it :). \
\
Well, if you’re outside of Japan, I understand that it’s a little bit difficult to treat me directly, so here’s the paypal account for it. Thanks! \
\
\
';
}
resHTML += '\
\
\
We are not responsible for any troubles caused by the shortcuts made with this web page. \
We cannot guarantee that this page works for all iPhones/iPod touches/iPads. \
\
'+closeImg+' \
\- Tweet
\
-
\
\
\
\