mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
commit
19d55ff01a
2
Gemfile
2
Gemfile
@ -31,6 +31,8 @@ gem 'bh', '~> 1.2'
|
|||||||
gem 'will_paginate', '~> 3.0.6'
|
gem 'will_paginate', '~> 3.0.6'
|
||||||
gem 'will_paginate-bootstrap'
|
gem 'will_paginate-bootstrap'
|
||||||
|
|
||||||
|
gem 'mathjax-rails'
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
# gem 'bcrypt', '~> 3.1.7'
|
# gem 'bcrypt', '~> 3.1.7'
|
||||||
|
|
||||||
|
|||||||
@ -56,6 +56,8 @@ GEM
|
|||||||
json (1.8.1)
|
json (1.8.1)
|
||||||
mail (2.6.3)
|
mail (2.6.3)
|
||||||
mime-types (>= 1.16, < 3)
|
mime-types (>= 1.16, < 3)
|
||||||
|
mathjax-rails (2.3.0)
|
||||||
|
railties (>= 3.0)
|
||||||
mime-types (2.4.3)
|
mime-types (2.4.3)
|
||||||
minitest (5.4.3)
|
minitest (5.4.3)
|
||||||
multi_json (1.10.1)
|
multi_json (1.10.1)
|
||||||
@ -125,6 +127,7 @@ DEPENDENCIES
|
|||||||
coffee-rails (~> 4.0.0)
|
coffee-rails (~> 4.0.0)
|
||||||
jbuilder (~> 2.0)
|
jbuilder (~> 2.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
|
mathjax-rails
|
||||||
rails (= 4.1.7)
|
rails (= 4.1.7)
|
||||||
sass-rails (~> 4.0.3)
|
sass-rails (~> 4.0.3)
|
||||||
sdoc (~> 0.4.0)
|
sdoc (~> 0.4.0)
|
||||||
|
|||||||
@ -4,6 +4,18 @@
|
|||||||
<title><%= t :site_title %></title>
|
<title><%= t :site_title %></title>
|
||||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
||||||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
||||||
|
<script type="text/x-mathjax-config">
|
||||||
|
MathJax.Hub.Config({
|
||||||
|
jax: ["input/TeX", "output/HTML-CSS"],
|
||||||
|
tex2jax: {
|
||||||
|
inlineMath: [ ["$","$"], ["\\(","\\)"] ],
|
||||||
|
displayMath: [ ["$$","$$"], ["\\[","\\]"] ],
|
||||||
|
processEscapes: true
|
||||||
|
},
|
||||||
|
"HTML-CSS": { availableFonts: ["TeX"] }
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<%= mathjax_tag config: 'TeX-AMS_HTML' %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@ -4,6 +4,8 @@ Rails.application.routes.draw do
|
|||||||
end
|
end
|
||||||
resources :translations, only: [:index, :show]
|
resources :translations, only: [:index, :show]
|
||||||
|
|
||||||
|
mathjax 'mathjax'
|
||||||
|
|
||||||
# The priority is based upon order of creation: first created -> highest priority.
|
# The priority is based upon order of creation: first created -> highest priority.
|
||||||
# See how all your routes lay out with "rake routes".
|
# See how all your routes lay out with "rake routes".
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user