1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 10:38:50 +01:00

Merge pull request #45 from PFischbeck/turbolinks-config

Fix Turbolinks config
This commit is contained in:
2017-11-23 15:14:48 +01:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
$(document).on 'page:load', -> $(document).on 'turbolinks:load', ->
window.MathJax.Hub.Queue(["Typeset",MathJax.Hub]); MathJax.Hub.Queue(["Typeset",MathJax.Hub]);

View File

@@ -13,8 +13,8 @@ loadCodeMirror = ->
mode: "text/html" mode: "text/html"
}) })
$(document).ready loadCodeMirror $(document).on "turbolinks:load", loadCodeMirror
$(document).on "page:load", loadCodeMirror
$(document).on "click", '#translationNav a[href="#preview"]', -> $(document).on "click", '#translationNav a[href="#preview"]', ->
$('#preview .problem-content').html(cm.getValue()) $('#preview .problem-content').html(cm.getValue())

View File

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