Skip to content

Commit d377e22

Browse files
author
80002462
committed
fix some bugs
1 parent 6c9e207 commit d377e22

File tree

75 files changed

+4984
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4984
-288
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Html</title>
6+
</head>
7+
<body>
8+
<div id="content"></div>
9+
</body>
10+
<script>
11+
document.getElementById("content").innerText = window.localStorage.getItem("content");
12+
window.localStorage.removeItem("content");
13+
14+
</script>
15+
</html>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
body{
2+
font-family:Menlo,Monaco,Consolas,"Helvetica Neue",Helvetica,"Courier New",'微软雅黑', monospace, Arial,sans-serif,'黑体';
3+
color: #555;
4+
}
5+
a{
6+
display: inline-block;
7+
text-decoration: none;
8+
font-family: Menlo,Monaco,Consolas,'微软雅黑';
9+
color: #29abe2;
10+
}
11+
.green{
12+
color:#0fd59d;
13+
}
14+
.red{
15+
color:#f98280;
16+
}
17+
.blue{
18+
color:#29abe2;
19+
}
20+
input:focus, textarea:focus {
21+
outline: none;
22+
}
23+
a:hover{
24+
text-decoration: none;
25+
color: #15b374;
26+
}
27+
.label-success{
28+
background-color: #0fd59d;
29+
}
30+
.header{
31+
box-shadow: 0px 0px 1px #e5e5e5;
32+
border-bottom: solid 1px #d5d5d5;
33+
padding: 0px;
34+
}
35+
.logo{
36+
text-decoration: none;
37+
font-weight: bold;
38+
font-size: 24px;
39+
color: #0fd59d;
40+
padding: 10px;
41+
}
42+
.navi{
43+
padding:5px 20px;
44+
font-size:14px;
45+
font-weight:bold;font-family:Menlo,Monaco,Consolas,"Courier New",monospace, "Helvetica Neue",Helvetica,Arial,sans-serif,'幼圆'
46+
}
47+
.navi a{
48+
padding: 0px 20px;
49+
color: #999;
50+
}
51+
.navi a:hover{
52+
color: #15b374;
53+
}

android/debug_tools/src/main/assets/debug-web/assets/json/css/bootstrap.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/debug_tools/src/main/assets/debug-web/assets/json/css/font-awesome.min.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
div.numberedtextarea-wrapper { position: relative; }
3+
4+
div.numberedtextarea-wrapper textarea {
5+
display: block;
6+
-webkit-box-sizing: border-box;
7+
-moz-box-sizing: border-box;
8+
box-sizing: border-box;
9+
}
10+
11+
div.numberedtextarea-line-numbers {
12+
position: absolute;
13+
display: none;
14+
background-color: #fafafa;
15+
top: 0;
16+
left: 0;
17+
right: 0;
18+
bottom: 0;
19+
width: 40px;
20+
border-right: 1px dashed #eee;
21+
border-bottom:solid 1px #ddd;
22+
color: #999;
23+
overflow: hidden;
24+
}
25+
26+
div.numberedtextarea-number {
27+
padding-right: 6px;
28+
text-align: center;
29+
}

android/debug_tools/src/main/assets/debug-web/assets/json/fonts/fontawesome-webfont.svg@v=4.2.0

Lines changed: 520 additions & 0 deletions
Large diffs are not rendered by default.

android/debug_tools/src/main/assets/debug-web/assets/json/js/bootstrap.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/debug_tools/src/main/assets/debug-web/assets/json/js/html5shiv.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
/*!
2+
* jQuery Json Plugin (with Transition Definitions)
3+
* Examples and documentation at: http://json.cn/
4+
* Copyright (c) 2012-2013 China.Ren.
5+
* Version: 1.0.2 (19-OCT-2013)
6+
* Dual licensed under the MIT and GPL licenses.
7+
* http://jquery.malsup.com/license.html
8+
* Requires: jQuery v1.3.1 or later
9+
*/
10+
var JSONFormat = (function(){
11+
var _toString = Object.prototype.toString;
12+
13+
function format(object, indent_count){
14+
var html_fragment = '';
15+
switch(_typeof(object)){
16+
case 'Null' :0
17+
html_fragment = _format_null(object);
18+
break;
19+
case 'Boolean' :
20+
html_fragment = _format_boolean(object);
21+
break;
22+
case 'Number' :
23+
html_fragment = _format_number(object);
24+
break;
25+
case 'String' :
26+
html_fragment = _format_string(object);
27+
break;
28+
case 'Array' :
29+
html_fragment = _format_array(object, indent_count);
30+
break;
31+
case 'Object' :
32+
html_fragment = _format_object(object, indent_count);
33+
break;
34+
}
35+
return html_fragment;
36+
};
37+
38+
function _format_null(object){
39+
return '<span class="json_null">null</span>';
40+
}
41+
42+
function _format_boolean(object){
43+
return '<span class="json_boolean">' + object + '</span>';
44+
}
45+
46+
function _format_number(object){
47+
return '<span class="json_number">' + object + '</span>';
48+
}
49+
50+
function _format_string(object){
51+
object = object.replace(/\</g,"&lt;");
52+
object = object.replace(/\>/g,"&gt;");
53+
if(0 <= object.search(/^http/)){
54+
object = '<a href="' + object + '" target="_blank" class="json_link">' + object + '</a>'
55+
}
56+
return '<span class="json_string">"' + object + '"</span>';
57+
}
58+
59+
function _format_array(object, indent_count){
60+
var tmp_array = [];
61+
for(var i = 0, size = object.length; i < size; ++i){
62+
tmp_array.push(indent_tab(indent_count) + format(object[i], indent_count + 1));
63+
}
64+
return '<span data-type="array" data-size="' + tmp_array.length + '"><i style="cursor:pointer;" class="fa fa-minus-square-o" onclick="hide(this)"></i>[<br/>'
65+
+ tmp_array.join(',<br/>')
66+
+ '<br/>' + indent_tab(indent_count - 1) + ']</span>';
67+
}
68+
69+
function _format_object(object, indent_count){
70+
var tmp_array = [];
71+
for(var key in object){
72+
tmp_array.push( indent_tab(indent_count) + '<span class="json_key">"' + key + '"</span>:' + format(object[key], indent_count + 1));
73+
}
74+
return '<span data-type="object"><i style="cursor:pointer;" class="fa fa-minus-square-o" onclick="hide(this)"></i>{<br/>'
75+
+ tmp_array.join(',<br/>')
76+
+ '<br/>' + indent_tab(indent_count - 1) + '}</span>';
77+
}
78+
79+
function indent_tab(indent_count){
80+
return (new Array(indent_count + 1)).join('&nbsp;&nbsp;&nbsp;&nbsp;');
81+
}
82+
83+
function _typeof(object){
84+
var tf = typeof object,
85+
ts = _toString.call(object);
86+
return null === object ? 'Null' :
87+
'undefined' == tf ? 'Undefined' :
88+
'boolean' == tf ? 'Boolean' :
89+
'number' == tf ? 'Number' :
90+
'string' == tf ? 'String' :
91+
'[object Function]' == ts ? 'Function' :
92+
'[object Array]' == ts ? 'Array' :
93+
'[object Date]' == ts ? 'Date' : 'Object';
94+
};
95+
96+
function loadCssString(){
97+
var style = document.createElement('style');
98+
style.type = 'text/css';
99+
var code = Array.prototype.slice.apply(arguments).join('');
100+
try{
101+
style.appendChild(document.createTextNode(code));
102+
}catch(ex){
103+
style.styleSheet.cssText = code;
104+
}
105+
document.getElementsByTagName('head')[0].appendChild(style);
106+
}
107+
108+
loadCssString(
109+
'.json_key{ color: #92278f;font-weight:bold;}',
110+
'.json_null{color: #f1592a;font-weight:bold;}',
111+
'.json_string{ color: #3ab54a;font-weight:bold;}',
112+
'.json_number{ color: #25aae2;font-weight:bold;}',
113+
'.json_link{ color: #717171;font-weight:bold;}',
114+
'.json_array_brackets{}');
115+
116+
var _JSONFormat = function(origin_data){
117+
//this.data = origin_data ? origin_data :
118+
//JSON && JSON.parse ? JSON.parse(origin_data) : eval('(' + origin_data + ')');
119+
this.data = JSON.parse(origin_data);
120+
};
121+
122+
_JSONFormat.prototype = {
123+
constructor : JSONFormat,
124+
toString : function(){
125+
return format(this.data, 1);
126+
}
127+
}
128+
129+
return _JSONFormat;
130+
131+
})();
132+
var last_html = '';
133+
function hide(obj){
134+
var data_type = obj.parentNode.getAttribute('data-type');
135+
var data_size = obj.parentNode.getAttribute('data-size');
136+
obj.parentNode.setAttribute('data-inner',obj.parentNode.innerHTML);
137+
if (data_type === 'array') {
138+
obj.parentNode.innerHTML = '<i style="cursor:pointer;" class="fa fa-plus-square-o" onclick="show(this)"></i>Array[<span class="json_number">' + data_size + '</span>]';
139+
}else{
140+
obj.parentNode.innerHTML = '<i style="cursor:pointer;" class="fa fa-plus-square-o" onclick="show(this)"></i>Object{...}';
141+
}
142+
143+
}
144+
145+
function show(obj){
146+
var innerHtml = obj.parentNode.getAttribute('data-inner');
147+
obj.parentNode.innerHTML = innerHtml;
148+
}

0 commit comments

Comments
 (0)