Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
1a919614
Commit
1a919614
authored
Jun 25, 2016
by
Marek Vavrusa
Browse files
modules/http: cleanup
parent
0f453309
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/http/static/bootstrap.min.css
View file @
1a919614
@import
url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700")
;
/*!
/*!
* bootswatch v3.3.6
* bootswatch v3.3.6
* Homepage: http://bootswatch.com
* Homepage: http://bootswatch.com
* Copyright 2012-2016 Thomas Park
* Copyright 2012-2016 Thomas Park
...
...
modules/http/static/kresd.js
View file @
1a919614
...
@@ -28,6 +28,13 @@ $(function() {
...
@@ -28,6 +28,13 @@ $(function() {
graph
.
setVisibility
(
metrics
[
id
][
0
],
toggle
);
graph
.
setVisibility
(
metrics
[
id
][
0
],
toggle
);
}
}
}
}
function
formatNumber
(
n
)
{
with
(
Math
)
{
var
base
=
floor
(
log
(
abs
(
n
))
/
log
(
1000
));
var
suffix
=
'
KMB
'
[
base
-
1
];
return
suffix
?
String
(
n
/
pow
(
1000
,
base
)).
substring
(
0
,
3
)
+
suffix
:
''
+
n
;
}
}
/* Initialize snippets. */
/* Initialize snippets. */
$
(
'
section
'
).
each
(
function
()
{
$
(
'
section
'
).
each
(
function
()
{
...
@@ -84,7 +91,7 @@ $(function() {
...
@@ -84,7 +91,7 @@ $(function() {
visibility
:
visibility
,
visibility
:
visibility
,
axes
:
{
y
:
{
axes
:
{
y
:
{
axisLabelFormatter
:
function
(
d
)
{
axisLabelFormatter
:
function
(
d
)
{
return
d
+
'
pps
'
;
return
formatNumber
(
d
)
+
'
pps
'
;
},
},
}},
}},
series
:
series
,
series
:
series
,
...
...
modules/http/static/main.tpl
View file @
1a919614
...
@@ -43,25 +43,33 @@
...
@@ -43,25 +43,33 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"main"
>
<div
class=
"main"
>
<h2
class=
"sub-header"
>
Metrics
</h2>
<h2
class=
"sub-header"
>
Metrics
</h2>
<div
id=
"stats"
class=
"row placeholders"
>
<div
class=
"col-md-12"
>
<div
id=
"chart"
style=
"width:100%"
></div>
<div
class=
"row"
>
</div>
<div
id=
"stats"
class=
"row placeholders"
>
<div
class=
"row"
>
<div
id=
"chart"
style=
"width:100%"
></div>
<div
class=
"col-md-12"
>
<h3><small>
More metrics
</small></h3>
<div
class=
"col-md-11"
>
<select
id=
"chart-selector"
multiple
></select>
</div>
</div>
<div
class=
"col-md-1"
>
</div>
<div
class=
"checkbox"
>
<div
class=
"row"
>
<label><input
id=
"chart-stacked"
type=
"checkbox"
>
Stacked
</label>
<div
class=
"col-md-12"
>
<h3><small>
More metrics
</small></h3>
<div
class=
"col-md-11"
>
<select
id=
"chart-selector"
multiple
></select>
</div>
<div
class=
"col-md-1"
>
<div
class=
"checkbox"
>
<label><input
id=
"chart-stacked"
type=
"checkbox"
>
Stacked
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<a
name=
"worldmap"
></a>
<a
name=
"worldmap"
></a>
<h2
class=
"sub-header"
>
Where do the queries go?
</h2>
<h2
class=
"sub-header"
>
Where do the queries go?
</h2>
<div
id=
"map"
style=
"position: relative;"
></div>
<div
class=
"col-md-12"
>
{{ snippets }}
<div
id=
"map"
style=
"position: relative;"
></div>
</div>
<div
class=
"col-md-12"
>
{{ snippets }}
</div>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment