|
| |
|
|
| |
| |
and focus on it
document.body.appendChild(_tempEle);
_tempEle.focus();
// The keyboard is open. Now do a delayed focus on the target element
if (LatestSearchAction != null) clearTimeout(LatestSearchAction);
LatestSearchAction = setTimeout(function () {
$("#symbol").val("");
$("#symbol").focus();
$("#symbol").click();
// Remove the temp element
document.body.removeChild(_tempEle);
}, 200);
}
function gotoQuoteByLatestSearch(value) {
$("#symbol").val(value);
gotoQuote();
}
function gotoQuote() {
SetLTP(fullCookiesDomain);
window.location.href = "quote.aspx?symbol=" + $("#symbol").val();
}
function GetMasterSymbol() {
var masterSymbol = parseInt(decodeURIComponent(getQueryStr("symbol")));
if (isNaN(masterSymbol) || masterSymbol < 1 || masterSymbol >= 100000) {
masterSymbol = parseInt(decodeURIComponent($.cookie("MasterSymbol")));
if (isNaN(masterSymbol) || masterSymbol < 1 || masterSymbol >= 100000) {
masterSymbol = 1;
}
}
masterSymbol = "00000" + masterSymbol;
$("#symbol").val(masterSymbol.substr(masterSymbol.length - 5));
}
function getQueryStr(name) {
var hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
if (hash[0].toLowerCase() == name) return hash[1];
}
return "";
}
function SetDesktopCookie(value) {
var expiryDate = new Date();
expiryDate.setDate(expiryDate.getDate() + 1);
$.cookie("mredir", value, { path: '/', domain: fullCookiesDomain, expires: expiryDate });
}
function DeskTopRedir() {
SetDesktopCookie("d");
window.location.href = "desktop.aspx?url=main";
}
if (!$.cookie("mredir") || $.cookie("mredir") != "m") {
SetDesktopCookie("m");
}
var AAMessage;
$(function () {
GetMasterSymbol();
$(".icon_search").bind("click", function () { onclickSearchIcon(); });
setTimeout(function () {
$('body').LiveVideo({
interval: 60
, cookiesDomain: fullCookiesDomain
, aaUrl: '/sc/stocks/news/video-live/{0}'
, aaLiveSupport: AAUtility.EnableAALive()
});
}, 100);
AAMessage = $("body").AAMessage({ domain: WDataDomain, mode: "mobile" });
});
股票Stocks - 升幅 Top Gainers