| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- function init(img) {
- var e = parseFloat("${edgzl}");
- (e = isNaN("${edgzl}") ? 0 : e), (e = e > 0 ? e : 100);
- var g = parseFloat("${grgzl}");
- g = isNaN("${grgzl}") ? 0 : g;
- var p = g / e;
- function showTime() {
- var t = new Date(),
- e = t.getFullYear(),
- i = t.getMonth() + 1,
- n = t.getDate(),
- o = t.getMinutes() < 10 ? "0" + t.getMinutes() : t.getMinutes();
- $(".nowDateGrxx").text(
- e + "\u5e74" + i + "\u6708" + n + "\u65e5 " + t.getHours() + ":" + o
- );
- }
- $(".gzl1").css("width", 100 * (p > 1 ? 1 : p) + "%"),
- $(".gzlpe").html((100 * p).toFixed(2)),
- setInterval(showTime, 1e3);
- var timer = null;
- function tips(t, e) {
- if (null != $("#" + e).html()) {
- var i = $(t)[0].getBoundingClientRect(),
- n = this.recursionIframe(),
- o = i.left + n.left,
- r = i.top + i.height + n.top,
- s =
- "<div class='whkDivHover' style = 'width:" +
- $(t).width() +
- "px; height: 102px; position: absolute; left: " +
- o +
- "px; top:" +
- r +
- "px; z-index:999999;' ><div class='popup-div smallScrollbar' style='width: 100%;padding: 0px;overflow:auto'><div class='smallScr cursor-click ' style='max-height: 120px;height: 100px;width: calc(100% - 2px);padding-right: 2px;box-sizing: border-box;margin-top: 2px;'>";
- (s += $("#" + e)
- .find(".smallScr")
- .html()),
- (s += "</div></div></div>"),
- top.$("body").append(s);
- var d = document.createElement("script");
- $(d).append("initNiceScorll();"),
- top.$("body").append(d),
- top.$(".whkDivHover").find(".popup-div").show(),
- top.$(".whkDivHover").mouseenter(function () {
- clearTimeout(timer);
- }),
- top
- .$(".whkDivHover")
- .find(".popup-div")
- .mouseleave(function () {
- tipsHidden();
- });
- }
- }
- function tipsHidden() {
- top.$(".whkDivHover").remove();
- }
- $(".dHover").mouseenter(function () {
- tips($(this), "cardList");
- }),
- $(".dHover").mouseleave(function () {
- clearTimeout(timer),
- (timer = setTimeout(function () {
- tipsHidden();
- }, 100));
- }),
- $(".dHover2").mouseenter(function (t) {
- t.stopPropagation(),
- tips($(this), "cardList2"),
- setTimeout(function () {
- top.loadSmallScorll(top.$(".popup-div"));
- }, 100);
- }),
- $(".dHover2").mouseleave(function (t) {
- clearTimeout(timer),
- (timer = setTimeout(function () {
- tipsHidden();
- }, 100));
- }),
- (this.recursionIframe = function (t) {
- if ((t = t || window).parent == top && t.parent == t)
- return { left: 0, top: 0 };
- for (
- var e,
- i = t.parent,
- n = i.document.getElementsByTagName("IFRAME"),
- o = t.document.getElementsByTagName("IFRAME"),
- r = 0;
- r < o.length;
- r++
- ) {
- if ((s = o[r]).contentWindow == t) {
- e = s;
- break;
- }
- }
- for (r = 0; r < n.length; r++) {
- var s;
- if ((s = n[r]).contentWindow == t) {
- e = s;
- break;
- }
- }
- var d = {
- left: (function t(e) {
- var i = e.offsetLeft;
- return null != e.offsetParent && (i += t(e.offsetParent)), i;
- })(e),
- top: (function t(e) {
- var i = e.offsetTop;
- return null != e.offsetParent && (i += t(e.offsetParent)), i;
- })(e),
- };
- if (i.parent != i) {
- var l = this.recursionIframe(i);
- (d.left += l.left), (d.top += l.top);
- }
- return d;
- }),
- $("#wh_content").find(".popup-div").hide(),
- $("#rc_content").find(".popup-div").hide(),
- $(".popup-div").hide(),
- $("#wh_content").click(function () {
- var url = window.a;
- eval(url), $("div.zhdlsj").show(), $("#wh_content").hide();
- });
- }
- $("#grtjList-div").mouseleave(function () {
- $("#grtjList-child-div").css("display", "none");
- }),
- $(".tjlb-child").mouseenter(function () {
- $("#grtjList-child-div").css("display", "block");
- }),
- $("#grtjList-child-div").mouseleave(function () {
- $("#grtjList-child-div").css("display", "none");
- }),
- loadSmallScorll($("#grtjList-child-div"));
- var divw = $(".grtjList-num").width();
- $(".grtjList-num").mouseleave(function () {
- $(this).find("div[parentId]").css("display", "none");
- }),
- $(".grtjList-num").mouseenter(function () {
- var t = $(this).attr("id");
- t &&
- ($("div[parentId]").css("display", "none"),
- $("div[parentId='" + t + "']").css("display", "block")),
- $(".grtjList-child-num").width(divw);
- }),
- setTimeout(function () {
- loadSmallScorll($(".grtjList-child-num"));
- }, 100),
- $(".grtjList-child-num").width(divw);
|