mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-29 04:15:00 +08:00
Remove last inline script
This commit is contained in:
@@ -48,6 +48,7 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
makeToc();
|
makeToc();
|
||||||
animate();
|
animate();
|
||||||
|
setupLanguages($('body').data('languages'));
|
||||||
$('.content').imagesLoaded( function() {
|
$('.content').imagesLoaded( function() {
|
||||||
global.toc.calculateHeights();
|
global.toc.calculateHeights();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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
|
License for the specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
%>
|
%>
|
||||||
<% language_tabs = current_page.data.language_tabs %>
|
<% language_tabs = current_page.data.language_tabs || [] %>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@@ -32,17 +32,9 @@ under the License.
|
|||||||
<% else %>
|
<% else %>
|
||||||
<%= javascript_include_tag "all_nosearch" %>
|
<%= javascript_include_tag "all_nosearch" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if language_tabs %>
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
setupLanguages(<%= language_tabs.map{ |lang| lang.is_a?(Hash) ? lang.keys.first : lang }.to_json %>);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<% end %>
|
|
||||||
</head>
|
</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">
|
<a href="#" id="nav-button">
|
||||||
<span>
|
<span>
|
||||||
NAV
|
NAV
|
||||||
|
|||||||
Reference in New Issue
Block a user