1
0
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:
Philipp Fischbeck 2017-11-23 15:14:48 +01:00 committed by GitHub
commit 0323456d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -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]);

View File

@ -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())

View File

@ -18,3 +18,7 @@
@import "bootstrap-sprockets";
@import "bootstrap";
.turbolinks-progress-bar {
background-color: $brand-primary;
}