Created
July 2, 2015 01:22
-
-
Save iz4blue/405922e29e73e388c0e0 to your computer and use it in GitHub Desktop.
synology find javascript source
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> | |
<title>Synology Web Assistant</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="google" content="notranslate" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0;"/> | |
<link rel="stylesheet" type="text/css" href="./extjs/resources/css/ext-all.css?v=0029" /> | |
<link rel="stylesheet" type="text/css" href="./extjs/resources/css/xtheme-gray.css?v=0029" /> | |
<link rel="stylesheet" type="text/css" href="./extjs/ux/ux-all.css?v=0029" /> | |
<link rel="short icon" type="image/png" href="./resources/icon16.png?v=0029" /> | |
<link rel="icon" type="image/png" href="./resources/icon16.png?v=0029" /> | |
<script type="text/javascript" src="./uistring.php?lang=krn&v=0029"></script> | |
<script type="text/javascript"> | |
QuickConnectUrl = []; | |
function GetQuickConnectUrl(ips) { | |
var i = 0, j = 0, rec; | |
var maxtry = 30; //avoid too many records. | |
for (i =0; i < ips.length && i < maxtry; ++i) { | |
rec = ips[i]; | |
if (rec.ipv4_interface) { | |
for (j = 0; j < rec.ipv4_interface.length; ++j) { | |
if (rec.port) { | |
QuickConnectUrl.push("http://" + rec.ipv4_interface[j] + ":" + rec.port); | |
} | |
if (rec.https_port) { | |
QuickConnectUrl.push("https://" + rec.ipv4_interface[j] + ":" + rec.https_port); | |
} | |
} | |
} | |
if (rec.ipv6_interface) { | |
for (j = 0; j < rec.ipv6_interface.length; ++j) { | |
if (rec.port) { | |
QuickConnectUrl.push("http://[" + rec.ipv6_interface[j] + "]:" + rec.port); | |
} | |
if (rec.https_port) { | |
QuickConnectUrl.push("https://[" + rec.ipv6_interface[j] + "]:" + rec.https_port); | |
} | |
} | |
} | |
} | |
}; | |
</script> | |
<script type="text/javascript" src="https://global.quickconnect.to/finder/get.php?callback=GetQuickConnectUrl&time=1434896585"></script> | |
<script type="text/javascript"> | |
var SYNO = { | |
Assistant: { | |
VERSION: "0029", | |
PLUGIN_VERSION: "1.0.3.5518" } | |
}; | |
(function() { | |
_T = function(sec, key) { | |
try { | |
return str_assistant[sec][key]; | |
} catch(e) { | |
return sec + ":" + key; | |
} | |
}; | |
_JSLIBSTR = function(sec, key) { | |
try { | |
return str_initrd_jslib[sec][key]; | |
} catch(e) { | |
return sec + ":" + key; | |
} | |
}; | |
})(); | |
</script> | |
<link rel="stylesheet" type="text/css" href="./resources/style.css?v=0029" /> | |
<link rel="stylesheet" type="text/css" href="./resources/assistant.css?v=0029" /> | |
<script type="text/javascript" src="./prototype-1.6.1/prototype.js?v=0029"></script> | |
<script type="text/javascript" src="./extjs/ext-base.js?v=0029"></script><script type="text/javascript" src="./extjs/ext-all.js?v=0029"></script><script type="text/javascript" src="./extjs/ux/ux-all.js?v=0029"></script> | |
<script type="text/javascript" src="./jbase.js?v=0029"></script> | |
<script type="text/javascript" src="./installer.js?v=0029"></script> | |
</head> | |
<body> | |
<div id="view_container"> | |
<img src="./resources/bg_02.png?v=0029" width=100% height=100% style="position: absolute; top: 0; left: 0; z-index: -1000" /> | |
<div id="bubble" style="visibility: hidden; display: none;"></div> | |
<div id="webassistant_logo" style="visibility: hidden; display: none;"></div> | |
<div id="synology_logo"></div> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment