PageSourceSearch

https://ruilong-ironwork.com/css/web/unified-footer.js

js ruilong-ironwork.com collected 2026-10-04 01:55:27 UTC 5,564 bytes, 1 lines download raw bytes

1function update_apply_now_links(){var a=window.location.search.substr(1);""!==a&&$("a[href]").each(function(){if("get in touch now"===$(this).html().toLowerCase()||"register now"===$(this).html().toLowerCase()||"apply now"===$(this).html().toLowerCase()||"立即登記"===$(this).html().toLowerCase()||"立即申请"===$(this).html().toLowerCase()||"立即申請"===$(this).html().toLowerCase()||"網上申請"===$(this).html().toLowerCase()||"ajukan sekarang"===$(this).html().toLowerCase()){var a=$(this).attr("href"),b=a.indexOf("?");b!==-1?$(this).attr("href",a+"&"+window.location.search.substr(1)):$(this).attr("href",a+"?"+window.location.search.substr(1))}})}function sendClickEventCall(a,b,c,d,e){var d=d||"",e=e||0;1==debugConsole&&console.log("eventCategory : "+b+"\neventAction : "+c+"\neventLabel : "+d+"\neventValue : "+e);var f={};f.event=a,f.form_field_category=b,f.form_field_action=c,""!==d&&(f.form_field_label=d),0!==e&&(f.form_field_value=e),dataLayer.push(f)}function get_market(){var a;return a=window.location.pathname.replace(/^\/([^\/]*).*$/,"$1")}function getUrlParams(){var a=String(document.location);return a.indexOf("#")>-1?a.split("#")[1]:a.indexOf("?")>-1?a.split("?")[1]:""}function getUrlParamVal(a){var b=String(document.location).split("?")[1];if(void 0==b)return"";sURLVariables=b.split("&");var c,d;for(d=0;d<sURLVariables.length;d++)if(c=sURLVariables[d].split("="),c[0]===a)return void 0===c[1]||c[1]}function get_pagename(){var a=decodeURIComponent(current_url.split("https://www.sc.com/").pop().split(".")[0]);return""==a||null==a?final_page=decodeURIComponent(current_url.split("https://www.sc.com/").slice(-2,-1)[0]):"index"==a?final_page=decodeURIComponent(current_url.split("https://www.sc.com/").slice(-2,-1)):final_page=a,final_page}function trim_chars(a){for(var b=["�","-","|"],c=0;c<b.length;c++)a.indexOf(b[c])>=0&&(a=a.substr(0,a.indexOf(b[c])-1));return a.trim()}function trim_img_name(a){return a.lastIndexOf("https://www.sc.com/")>=0&&(a=a.substr(a.lastIndexOf("https://www.sc.com/")+1,a.length)),a.trim()}function get_element_class(a){var b="";return jQuery(a).attr("class")&&(b=jQuery(a).attr("class"),void 0!=b||""!=b)?b.trim():b}function get_element_id(a){var b="";return jQuery(a).attr("id")&&(b=jQuery(a).attr("id"),void 0!=b||""!=b)?b.trim():b}function get_classid_for_eaction(a){var b=get_element_class(a),c=get_element_id(a),d="";return""!==b&&""!==c?d="&"+b.replace(/\s+/g,", ")+" : #"+c+" : ":""!==b?d="&"+b.replace(/\s+/g,", ")+" : ":""!==c&&(d="#"+c+" : "),d}var dataLayer=dataLayer||[],_gaq=_gaq||[],current_url=window.location.href,debugConsole=!0,eventName="track_element",href="",el,link_name,enTg,tg,is,bnr,a,index,ct,i,len,cID,q,ampExists,page=get_pagename(),market=get_market(),page_title=$(document).find("title").text();page_title=trim_chars(page_title),eventCategory="~"+market+" : ^"+page_title+" : *Click",eventValue=0,"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),$(document).ready(function(){$("a").on("mousedown",function(a){link_name=$(this).first().find("em:first-child").text().trim(),$(this).find("img").length&&(link_name=$(this).find("img").attr("src"),link_name=trim_img_name(link_name)),""==link_name&&(link_name=jQuery(this).text().trim()),jQuery(this).find("img").length&&(is=jQuery(this).find("img").attr("src"),el=get_classid_for_eaction(this)+link_name),eventAction=get_classid_for_eaction(this)+link_name,eventLabel=$(this).attr("href"),sendClickEventCall(eventName,eventCategory,eventAction,eventLabel,eventValue)}),$(".bxslider li img").on("mousedown",function(a){eventAction=get_classid_for_eaction(this),eventLabel=jQuery(this).attr("src"),sendClickEventCall(eventName,eventCategory,eventAction,eventLabel,eventValue)}),$(".c2c-title-text, .scformsikon scformsikon-chat c2c-bubble, .c2c_ikon").on("mousedown",function(a){eventAction="Click to Chat",eventLabel="",sendClickEventCall(eventName,eventCategory,eventAction,eventLabel,eventValue)}),$(".c2c_text_content").on("mousedown",function(b){a=$(".c2c_text_content"),index=$(this).index(".c2c_text_content");for(var c=0;c<=index;c++)ct=a[c].innerHTML;void 0!=ct&&(eventAction="Click to Chat-"+ct),sendClickEventCall(eventName,eventCategory,eventAction,eventLabel,eventValue)})}),$("a[href]").live("click",function(e){if($(this).attr("onclick")===undefined && window.location.search.substr(1)!=="" && $(this).attr("href").substr(0,1)!=="#"){if ("get in touch now" === $(this).html().toLowerCase() || "register now" === $(this).html().toLowerCase() || "apply now" === $(this).html().toLowerCase() || "立即登記" === $(this).html().toLowerCase() || "立即申请" === $(this).html().toLowerCase() || "立即申請" === $(this).html().toLowerCase() || "網上申請" === $(this).html().toLowerCase() || "ajukan sekarang" === $(this).html().toLowerCase()) {e.preventDefault();var a = $(this).attr("href"),b = a.indexOf("?");if(b !== -1) {b= a + "&" + window.location.search.substr(1);}else{b=a + "?" + getUrlParams();}window.open(b,'_blank');}}}),function(a,b,c,d,e){a[d]=a[d]||[],a[d].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var f=b.getElementsByTagName(c)[0],g=b.createElement(c),h="dataLayer"!=d?"&l="+d:"";g.async=!0,g.src="../../www.googletagmanager.com/gtm5445.html?id="+e+h,f.parentNode.insertBefore(g,f)}(window,document,"script","dataLayer","GTM-PHQV2K");

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.