Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node-slate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
node-slate
Commits
7f1d6da6
Commit
7f1d6da6
authored
Jan 27, 2016
by
Robert Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last inline script
parent
a4b9208a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
_toc.js
source/javascripts/app/_toc.js
+1
-0
layout.erb
source/layouts/layout.erb
+2
-10
No files found.
source/javascripts/app/_toc.js
View file @
7f1d6da6
...
...
@@ -48,6 +48,7 @@
$
(
function
()
{
makeToc
();
animate
();
setupLanguages
(
$
(
'body'
).
data
(
'languages'
));
$
(
'.content'
).
imagesLoaded
(
function
()
{
global
.
toc
.
calculateHeights
();
});
...
...
source/layouts/layout.erb
View file @
7f1d6da6
...
...
@@ -13,7 +13,7 @@ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
%>
<%
language_tabs
=
current_page
.
data
.
language_tabs
%>
<%
language_tabs
=
current_page
.
data
.
language_tabs
||
[]
%>
<!doctype html>
<html>
<head>
...
...
@@ -32,17 +32,9 @@ under the License.
<%
else
%>
<%=
javascript_include_tag
"all_nosearch"
%>
<%
end
%>
<%
if
language_tabs
%>
<script>
$
(
function
()
{
setupLanguages
(
<%=
language_tabs
.
map
{
|
lang
|
lang
.
is_a?
(
Hash
)
?
lang
.
keys
.
first
:
lang
}.
to_json
%>
);
});
</script>
<%
end
%>
</head>
<body
class=
"
<%=
page_classes
%>
"
>
<body
class=
"
<%=
page_classes
%>
"
data-languages=
"
<%=
h
language_tabs
.
map
{
|
lang
|
lang
.
is_a?
(
Hash
)
?
lang
.
keys
.
first
:
lang
}.
to_json
%>
"
>
<a
href=
"#"
id=
"nav-button"
>
<span>
NAV
...
...
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