mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Merge pull request #45 from PFischbeck/turbolinks-config
Fix Turbolinks config
This commit is contained in:
commit
0323456d2c
@ -1,2 +1,2 @@
|
||||
$(document).on 'page:load', ->
|
||||
window.MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
|
||||
$(document).on 'turbolinks:load', ->
|
||||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
|
||||
@ -13,8 +13,8 @@ loadCodeMirror = ->
|
||||
mode: "text/html"
|
||||
})
|
||||
|
||||
$(document).ready loadCodeMirror
|
||||
$(document).on "page:load", loadCodeMirror
|
||||
$(document).on "turbolinks:load", loadCodeMirror
|
||||
|
||||
|
||||
$(document).on "click", '#translationNav a[href="#preview"]', ->
|
||||
$('#preview .problem-content').html(cm.getValue())
|
||||
@ -18,3 +18,7 @@
|
||||
|
||||
@import "bootstrap-sprockets";
|
||||
@import "bootstrap";
|
||||
|
||||
.turbolinks-progress-bar {
|
||||
background-color: $brand-primary;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user