Loading...
Loading...
{
"latency": 564,
"ipAddresses": [
"47.100.196.49"
],
"dns": {
"NS": [
"dns22.hichina.com.",
"dns21.hichina.com."
],
"A": [
"47.100.196.49"
]
}
}
[
{
"url": "https://shimaofuwu.com",
"technologies": [
{
"slug": "animate-css",
"name": "Animate.css",
"icon": "Animate.css.svg",
"versions": [],
"categories": [
{
"id": 66,
"slug": "ui-frameworks",
"name": "UI frameworks"
}
],
"confirmedAt": 1724724110
},
{
"slug": "nginx",
"name": "Nginx",
"icon": "Nginx.svg",
"cpe": "cpe:2.3:a:f5:nginx:*:*:*:*:*:*:*:*",
"versions": [],
"categories": [
{
"id": 22,
"slug": "web-servers",
"name": "Web servers"
},
{
"id": 64,
"slug": "reverse-proxies",
"name": "Reverse proxies"
}
],
"confirmedAt": 1724724110
},
{
"slug": "baidu-analytics",
"name": "Baidu Analytics (百度统计)",
"icon": "Baidu Tongji.png",
"versions": [],
"categories": [
{
"id": 10,
"slug": "analytics",
"name": "Analytics"
}
],
"confirmedAt": 1724724110
},
{
"slug": "jquery",
"name": "jQuery",
"icon": "jQuery.svg",
"cpe": "cpe:2.3:a:jquery:jquery:*:*:*:*:*:*:*:*",
"versions": [
"1.11.3"
],
"categories": [
{
"id": 59,
"slug": "javascript-libraries",
"name": "JavaScript libraries"
}
],
"confirmedAt": 1724724110
},
{
"slug": "swiper",
"name": "Swiper",
"icon": "Swiper.svg",
"versions": [],
"categories": [
{
"id": 59,
"slug": "javascript-libraries",
"name": "JavaScript libraries"
}
],
"confirmedAt": 1724724110
}
]
}
]
{
"data": {
"total": 0,
"personal_emails": 0,
"generic_emails": 0,
"department": {
"executive": 0,
"it": 0,
"finance": 0,
"management": 0,
"sales": 0,
"legal": 0,
"support": 0,
"hr": 0,
"marketing": 0,
"communication": 0,
"education": 0,
"design": 0,
"health": 0,
"operations": 0
},
"seniority": {
"junior": 0,
"senior": 0,
"executive": 0
}
},
"meta": {
"params": {
"domain": "shimaofuwu.com",
"company": null,
"type": null
}
}
}
{
"Baidu Analytics": "Analytics tracking pixel from Chinese language search engine Baidu.",
"China Ministry of Public Security": "The website contains a link to a public website security profile for China on the Ministry of Public Security for Public Information Network Security Supervision.",
"ICP Non Commercial Website": "China Ministry of Industry and Information Technology ICP filing for non-commercial websites which are purely informational and are not involved in direct sales.",
"Jiangsu ICP": "ICP Registration in Jiangsu",
"Mandarin Chinese - Inferred": "Based on the title and description text the website content is potentially Mandarin Chinese.",
"Mobile Non Scaleable Content": "This content is formatted for mobile devices, it does not allow the content to be scaled.",
"Viewport Meta": "This page uses the viewport meta tag which means the content may be optimized for mobile content.",
"IPhone / Mobile Compatible": "The website contains code that allows the page to support IPhone / Mobile Content.",
"jQuery": "JQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.",
"jQuery 3.3.1": "jQuery version 3.3.1",
"jQuery Easing": "A jQuery extension that provides functionality to \"ease\" things onto or off of the screen.",
"jQuery 1.11.3": "jQuery version 1.11.3",
"HiChina DNS": "DNS services provided by HiChina.",
"Alibaba": "Chinese based trading site.",
"SSL by Default": "The website redirects traffic to an HTTPS/SSL version by default.",
"DigiCert SSL": "Certificate provided by DigiCert.",
"RapidSSL": "RapidSSL certificate provider.",
"nginx": "nginx [engine x] is a HTTP server and mail proxy server written by Igor Sysoev.",
"Baidu Site Verification": "Site is verified with Baidu a Chinese multinational technology company specializing in Internet services and artificial intelligence."
}
{
"whois.verisign-grs.com": {
"Domain Status": [
"ok https://icann.org/epp#ok"
],
"Name Server": [
"DNS21.HICHINA.COM",
"DNS22.HICHINA.COM"
],
"Domain Name": "SHIMAOFUWU.COM",
"Registry Domain ID": "2501443312_DOMAIN_COM-VRSN",
"Registrar WHOIS Server": "grs-whois.hichina.com",
"Registrar URL": "http://www.net.cn",
"Updated Date": "2022-02-10T09:44:12Z",
"Created Date": "2020-03-09T08:03:00Z",
"Expiry Date": "2027-03-09T08:03:00Z",
"Registrar": "Alibaba Cloud Computing (Beijing) Co., Ltd.",
"Registrar IANA ID": "420",
"Registrar Abuse Contact Email": "[email protected]",
"Registrar Abuse Contact Phone": "+86.95187",
"DNSSEC": "unsigned",
"URL of the ICANN Whois Inaccuracy Complaint Form": "https://www.icann.org/wicf/",
">>> Last update of whois database": "2025-02-02T11:02:25Z <<<",
"text": [
"For more information on Whois status codes, please visit https://icann.org/epp",
"",
"NOTICE: The expiration date displayed in this record is the date the",
"registrar's sponsorship of the domain name registration in the registry is",
"currently set to expire. This date does not necessarily reflect the expiration",
"date of the domain name registrant's agreement with the sponsoring",
"registrar. Users may consult the sponsoring registrar's Whois database to",
"view the registrar's reported date of expiration for this registration.",
"",
"TERMS OF USE: You are not authorized to access or query our Whois",
"database through the use of electronic processes that are high-volume and",
"automated except as reasonably necessary to register domain names or",
"modify existing registrations; the Data in VeriSign Global Registry",
"Services' (\"VeriSign\") Whois database is provided by VeriSign for",
"information purposes only, and to assist persons in obtaining information",
"about or related to a domain name registration record. VeriSign does not",
"guarantee its accuracy. By submitting a Whois query, you agree to abide",
"by the following terms of use: You agree that you may use this Data only",
"for lawful purposes and that under no circumstances will you use this Data",
"to: (1) allow, enable, or otherwise support the transmission of mass",
"unsolicited, commercial advertising or solicitations via e-mail, telephone,",
"or facsimile; or (2) enable high volume, automated, electronic processes",
"that apply to VeriSign (or its computer systems). The compilation,",
"repackaging, dissemination or other use of this Data is expressly",
"prohibited without the prior written consent of VeriSign. You agree not to",
"use electronic processes that are automated and high-volume to access or",
"query the Whois database except as reasonably necessary to register",
"domain names or modify existing registrations. VeriSign reserves the right",
"to restrict your access to the Whois database in its sole discretion to ensure",
"operational stability. VeriSign may restrict or terminate your access to the",
"Whois database for failure to abide by these terms of use. VeriSign",
"reserves the right to modify these terms at any time.",
"",
"The Registry database contains ONLY .COM, .NET, .EDU domains and",
"Registrars."
]
},
"grs-whois.hichina.com": {
"Domain Status": [
"ok https://icann.org/epp#ok"
],
"Name Server": [
"DNS21.HICHINA.COM",
"DNS22.HICHINA.COM"
],
"Domain Name": "shimaofuwu.com",
"Registry Domain ID": "2501443312_DOMAIN_COM-VRSN",
"Registrar WHOIS Server": "grs-whois.hichina.com",
"Registrar URL": "http://www.net.cn",
"Updated Date": "2022-02-10T09:44:12Z",
"Created Date": "2020-03-09T08:03:00Z",
"Expiry Date": "2027-03-09T08:03:00Z",
"Registrar": "Alibaba Cloud Computing (Beijing) Co., Ltd.",
"Registrar IANA ID": "420",
"Reseller": "",
"Registrant City": "",
"Registrant State/Province": "shang hai",
"Registrant Country": "CN",
"Registry Registrant ID": "",
"DNSSEC": "unsigned",
"Registrar Abuse Contact Email": "[email protected]",
"Registrar Abuse Contact Phone": "+86.95187",
"URL of the ICANN WHOIS Data Problem Reporting System": "http://wdprs.internic.net/",
">>>Last update of WHOIS database": "2025-02-02T11:02:41Z <<<",
"text": [
"Registrant Email:https://whois.aliyun.com/whois/whoisForm",
"",
"For more information on Whois status codes, please visit https://icann.org/epp",
"",
"Important Reminder: Per ICANN 2013RAA`s request, Hichina has modified domain names`whois format of dot com/net/cc/tv, you could refer to section 1.4 posted by ICANN on http://www.icann.org/en/resources/registrars/raa/approved-with-specs-27jun13-en.htm#whois The data in this whois database is provided to you for information purposes only, that is, to assist you in obtaining information about or related to a domain name registration record. We make this information available \"as is,\" and do not guarantee its accuracy. By submitting a whois query, you agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to: (1)enable high volume, automated, electronic processes that stress or load this whois database system providing you this information; or (2) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via direct mail, electronic mail, or by telephone. The compilation, repackaging, dissemination or other use of this data is expressly prohibited without prior written consent from us. We reserve the right to modify these terms at any time. By submitting this query, you agree to abide by these terms.For complete domain details go to:http://whois.aliyun.com/whois/domain/hichina.com"
]
}
}
{
"error": false,
"result": {
"success": true,
"author": "旭邦互动@www.bangdream.com",
"ogTitle": "世茂服务_美好生活智造者",
"ogDescription": "世茂服务是世茂集团旗下综合物业管理及社区生活服务提供商,拥有国家一级物业管理资质。以“美好生活智造者“为品牌理念,世茂服务践行“深蓝战略”,重点布局长三角、环渤海、华南与中西部四大核心城市群,业务范围涉及物业管理、秩序维保、环境保洁、绿化养护、工程维保、设备管理、开发商服务、智慧服务、房屋资产管理等领域,管理项目类型涵盖住宅、商办、产业园、特色小镇、会所、城市公共建筑等。",
"ogImage": [
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/07/25/169025291564bf36731f16e.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/07/25/169025285764bf363971979.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/09/05/169388177464f695ae15f08.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/09/05/169388181564f695d7a0909.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/09/05/169388187764f6961587a92.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2023/09/05/169388188464f6961c195f2.jpg",
"type": "jpg"
},
{
"url": "http://www.shimaofuwu.com/public/static/uploads/images/2022/07/06/165707973162c507b374569.jpg",
"type": "jpg"
},
{
"url": "http://www.shimaofuwu.com/public/static/uploads/images/2022/07/06/165707974262c507be9915f.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2021/03/17/1615954646605182d6e01cd.jpg",
"type": "jpg"
},
{
"url": "https://www.shimaofuwu.com/public/static/uploads/images/2021/03/17/1615954653605182dd37edc.jpg",
"type": "jpg"
}
],
"ogLocale": "en",
"favicon": "https://www.shimaofuwu.com/public/static/wto/images/favicon.ico",
"charset": "UTF-8",
"requestUrl": "https://shimaofuwu.com"
},
"response": {}
}
{
"status": 200,
"statusText": "",
"headers": {
"connection": "keep-alive",
"content-encoding": "gzip",
"content-type": "text/html; charset=utf-8",
"date": "Sun, 02 Feb 2025 11:02:41 GMT",
"server": "nginx",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding"
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>系统发生错误</title>
<meta name="robots" content="noindex,nofollow" />
<style>
/* Base */
body {
color: #333;
font: 16px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif;
margin: 0;
padding: 0 20px 20px;
}
h1{
margin: 10px 0 0;
font-size: 28px;
font-weight: 500;
line-height: 32px;
}
h2{
color: #4288ce;
font-weight: 400;
padding: 6px 0;
margin: 6px 0 0;
font-size: 18px;
border-bottom: 1px solid #eee;
}
h3{
margin: 12px;
font-size: 16px;
font-weight: bold;
}
abbr{
cursor: help;
text-decoration: underline;
text-decoration-style: dotted;
}
a{
color: #868686;
cursor: pointer;
}
a:hover{
text-decoration: underline;
}
.line-error{
background: #f8cbcb;
}
.echo table {
width: 100%;
}
.echo pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border: 0;
border-radius: 3px;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.echo pre > pre {
padding: 0;
margin: 0;
}
/* Exception Info */
.exception {
margin-top: 20px;
}
.exception .message{
padding: 12px;
border: 1px solid #ddd;
border-bottom: 0 none;
line-height: 18px;
font-size:16px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
}
.exception .code{
float: left;
text-align: center;
color: #fff;
margin-right: 12px;
padding: 16px;
border-radius: 4px;
background: #999;
}
.exception .source-code{
padding: 6px;
border: 1px solid #ddd;
background: #f9f9f9;
overflow-x: auto;
}
.exception .source-code pre{
margin: 0;
}
.exception .source-code pre ol{
margin: 0;
color: #4288ce;
display: inline-block;
min-width: 100%;
box-sizing: border-box;
font-size:14px;
font-family: "Century Gothic",Consolas,"Liberation Mono",Courier,Verdana;
padding-left: 48px;
}
.exception .source-code pre li{
border-left: 1px solid #ddd;
height: 18px;
line-height: 18px;
}
.exception .source-code pre code{
color: #333;
height: 100%;
display: inline-block;
border-left: 1px solid #fff;
font-size:14px;
font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
}
.exception .trace{
padding: 6px;
border: 1px solid #ddd;
border-top: 0 none;
line-height: 16px;
font-size:14px;
font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
}
.exception .trace ol{
margin: 12px;
}
.exception .trace ol li{
padding: 2px 4px;
}
.exception div:last-child{
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
/* Exception Variables */
.exception-var table{
width: 100%;
margin: 12px 0;
box-sizing: border-box;
table-layout:fixed;
word-wrap:break-word;
}
.exception-var table caption{
text-align: left;
font-size: 16px;
font-weight: bold;
padding: 6px 0;
}
.exception-var table caption small{
font-weight: 300;
display: inline-block;
margin-left: 10px;
color: #ccc;
}
.exception-var table tbody{
font-size: 13px;
font-family: Consolas,"Liberation Mono",Courier,"微软雅黑";
}
.exception-var table td{
padding: 0 6px;
vertical-align: top;
word-break: break-all;
}
.exception-var table td:first-child{
width: 28%;
font-weight: bold;
white-space: nowrap;
}
.exception-var table td pre{
margin: 0;
}
/* Copyright Info */
.copyright{
margin-top: 24px;
padding: 12px 0;
border-top: 1px solid #eee;
}
/* SPAN elements with the classes below are added by prettyprint. */
pre.prettyprint .pln { color: #000 } /* plain text */
pre.prettyprint .str { color: #080 } /* string content */
pre.prettyprint .kwd { color: #008 } /* a keyword */
pre.prettyprint .com { color: #800 } /* a comment */
pre.prettyprint .typ { color: #606 } /* a type name */
pre.prettyprint .lit { color: #066 } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
pre.prettyprint .pun, pre.prettyprint .opn, pre.prettyprint .clo { color: #660 }
pre.prettyprint .tag { color: #008 } /* a markup tag name */
pre.prettyprint .atn { color: #606 } /* a markup attribute name */
pre.prettyprint .atv { color: #080 } /* a markup attribute value */
pre.prettyprint .dec, pre.prettyprint .var { color: #606 } /* a declaration; a variable name */
pre.prettyprint .fun { color: red } /* a function name */
</style>
</head>
<body>
<div class="echo">
</div>
<div class="exception">
<div class="message">
<div class="info">
<div>
<h2>[0] <abbr title="think\exception\HttpException">HttpException</abbr> in <a class="toggle" title="/data/user/htdocs/thinkphp/library/think/route/dispatch/Module.php line 63">Module.php line 63</a></h2>
</div>
<div><h1>模块不存在:robots.txt</h1></div>
</div>
</div>
<div class="source-code">
<pre class="prettyprint lang-php"><ol start="54"><li class="line-54"><code> $available = true;
</code></li><li class="line-55"><code> }
</code></li><li class="line-56"><code>
</code></li><li class="line-57"><code> // 模块初始化
</code></li><li class="line-58"><code> if ($module && $available) {
</code></li><li class="line-59"><code> // 初始化模块
</code></li><li class="line-60"><code> $this->request->setModule($module);
</code></li><li class="line-61"><code> $this->app->init($module);
</code></li><li class="line-62"><code> } else {
</code></li><li class="line-63"><code> throw new HttpException(404, 'module not exists:' . $module);
</code></li><li class="line-64"><code> }
</code></li><li class="line-65"><code> }
</code></li><li class="line-66"><code>
</code></li><li class="line-67"><code> // 是否自动转换控制器和操作名
</code></li><li class="line-68"><code> $convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
</code></li><li class="line-69"><code> // 获取控制器名
</code></li><li class="line-70"><code> $controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
</code></li><li class="line-71"><code>
</code></li><li class="line-72"><code> $this->controller = $convert ? strtolower($controller) : $controller;
</code></li></ol></pre>
</div>
<div class="trace">
<h2>Call Stack</h2>
<ol>
<li>in <a class="toggle" title="/data/user/htdocs/thinkphp/library/think/route/dispatch/Module.php line 63">Module.php line 63</a></li>
<li>
at <abbr title="think\route\dispatch\Module">Module</abbr>->init() in <a class="toggle" title="/data/user/htdocs/thinkphp/library/think/route/dispatch/Url.php line 25">Url.php line 25</a> </li>
<li>
at <abbr title="think\route\dispatch\Url">Url</abbr>->init() in <a class="toggle" title="/data/user/htdocs/thinkphp/library/think/App.php line 402">App.php line 402</a> </li>
<li>
at <abbr title="think\App">App</abbr>->run() in <a class="toggle" title="/data/user/htdocs/index.php line 22">index.php line 22</a> </li>
</ol>
</div>
</div>
<div class="exception-var">
<h2>Environment Variables</h2>
<table>
<caption>GET Data<small>empty</small></caption>
</table>
<table>
<caption>POST Data<small>empty</small></caption>
</table>
<table>
<caption>Files<small>empty</small></caption>
</table>
<table>
<caption>Cookies<small>empty</small></caption>
</table>
<table>
<caption>Session<small>empty</small></caption>
</table>
<table>
<caption>Server/Request Data</caption>
<tbody>
<tr>
<td>USER</td>
<td>
nobody </td>
</tr>
<tr>
<td>HOME</td>
<td>
/ </td>
</tr>
<tr>
<td>FCGI_ROLE</td>
<td>
RESPONDER </td>
</tr>
<tr>
<td>SCRIPT_FILENAME</td>
<td>
/data/user/htdocs/index.php </td>
</tr>
<tr>
<td>PATH_INFO</td>
<td>
/robots.txt </td>
</tr>
<tr>
<td>QUERY_STRING</td>
<td>
</td>
</tr>
<tr>
<td>REQUEST_METHOD</td>
<td>
GET </td>
</tr>
<tr>
<td>CONTENT_TYPE</td>
<td>
</td>
</tr>
<tr>
<td>CONTENT_LENGTH</td>
<td>
</td>
</tr>
<tr>
<td>SCRIPT_NAME</td>
<td>
/index.php </td>
</tr>
<tr>
<td>REQUEST_URI</td>
<td>
/robots.txt </td>
</tr>
<tr>
<td>DOCUMENT_URI</td>
<td>
/index.php/robots.txt </td>
</tr>
<tr>
<td>DOCUMENT_ROOT</td>
<td>
/data/user/htdocs </td>
</tr>
<tr>
<td>SERVER_PROTOCOL</td>
<td>
HTTP/1.1 </td>
</tr>
<tr>
<td>REQUEST_SCHEME</td>
<td>
https </td>
</tr>
<tr>
<td>HTTPS</td>
<td>
on </td>
</tr>
<tr>
<td>GATEWAY_INTERFACE</td>
<td>
CGI/1.1 </td>
</tr>
<tr>
<td>SERVER_SOFTWARE</td>
<td>
nginx/1.18.0 </td>
</tr>
<tr>
<td>REMOTE_ADDR</td>
<td>
216.246.40.68 </td>
</tr>
<tr>
<td>REMOTE_PORT</td>
<td>
40738 </td>
</tr>
<tr>
<td>SERVER_ADDR</td>
<td>
10.29.67.54 </td>
</tr>
<tr>
<td>SERVER_PORT</td>
<td>
443 </td>
</tr>
<tr>
<td>SERVER_NAME</td>
<td>
shimaofuwu.com </td>
</tr>
<tr>
<td>REDIRECT_STATUS</td>
<td>
200 </td>
</tr>
<tr>
<td>HTTP_USER_AGENT</td>
<td>
Websly Technologies +https://websly.tech </td>
</tr>
<tr>
<td>HTTP_CONNECTION</td>
<td>
keep-alive </td>
</tr>
<tr>
<td>HTTP_ACCEPT</td>
<td>
*/* </td>
</tr>
<tr>
<td>HTTP_HOST</td>
<td>
shimaofuwu.com </td>
</tr>
<tr>
<td>HTTP_ACCEPT_ENCODING</td>
<td>
gzip, deflate, br </td>
</tr>
<tr>
<td>PHP_SELF</td>
<td>
/index.php/robots.txt </td>
</tr>
<tr>
<td>REQUEST_TIME_FLOAT</td>
<td>
1738494161.7957 </td>
</tr>
<tr>
<td>REQUEST_TIME</td>
<td>
1738494161 </td>
</tr>
</tbody>
</table>
<table>
<caption>Environment Variables<small>empty</small></caption>
</table>
<table>
<caption>ThinkPHP Constants</caption>
<tbody>
<tr>
<td>ROOT_PATH</td>
<td>
/data/user/htdocs/ </td>
</tr>
<tr>
<td>DS</td>
<td>
/ </td>
</tr>
<tr>
<td>ADDON_PATH</td>
<td>
/data/user/htdocs/addons/ </td>
</tr>
</tbody>
</table>
</div>
<div class="copyright">
<a title="官方网站" href="https://www.163.com">后台管理有限公司</a>
<span>{ 致力于为客户创造有价值的产品 }</span>
</div>
<script>
var LINE = 63;
function $(selector, node){
var elements;
node = node || document;
if(document.querySelectorAll){
elements = node.querySelectorAll(selector);
} else {
switch(selector.substr(0, 1)){
case '#':
elements = [node.getElementById(selector.substr(1))];
break;
case '.':
if(document.getElementsByClassName){
elements = node.getElementsByClassName(selector.substr(1));
} else {
elements = get_elements_by_class(selector.substr(1), node);
}
break;
default:
elements = node.getElementsByTagName();
}
}
return elements;
function get_elements_by_class(search_class, node, tag) {
var elements = [], eles,
pattern = new RegExp('(^|\\s)' + search_class + '(\\s|$)');
node = node || document;
tag = tag || '*';
eles = node.getElementsByTagName(tag);
for(var i = 0; i < eles.length; i++) {
if(pattern.test(eles[i].className)) {
elements.push(eles[i])
}
}
return elements;
}
}
$.getScript = function(src, func){
var script = document.createElement('script');
script.async = 'async';
script.src = src;
script.onload = func || function(){};
$('head')[0].appendChild(script);
}
;(function(){
var files = $('.toggle');
var ol = $('ol', $('.prettyprint')[0]);
var li = $('li', ol[0]);
// 短路径和长路径变换
for(var i = 0; i < files.length; i++){
files[i].ondblclick = function(){
var title = this.title;
this.title = this.innerHTML;
this.innerHTML = title;
}
}
// 设置出错行
var err_line = $('.line-' + LINE, ol[0])[0];
err_line.className = err_line.className + ' line-error';
$.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){
prettyPrint();
// 解决Firefox浏览器一个很诡异的问题
// 当代码高亮后,ol的行号莫名其妙的错位
// 但是只要刷新li里面的html重新渲染就没有问题了
if(window.navigator.userAgent.indexOf('Firefox') >= 0){
ol[0].innerHTML = ol[0].innerHTML;
}
});
})();
</script>
</body>
</html>