     else
         return not isNaN(d.getTime())
 
-
 # Bootstrap 3 modal fix
 $("html").on "hide.bs.modal", "body > .modal", (e) ->
     $(@).remove()

            content   : required
            type      : required   # 'docstring', 'source-code' -- TODO
            target    : required
        editor = @
        element = templates.find(".salvus-codemirror-introspect")
        element.find(".salvus-codemirror-introspect-title").text(opts.target)
        element.modal()
        element.find(".salvus-codemirror-introspect-content-docstring").text('')
        element.find(".salvus-codemirror-introspect-content-source-code").text('')
        element.data('editor',editor)
        if opts.type == 'source-code'
            CodeMirror.runMode(opts.content, 'python', element.find(".salvus-codemirror-introspect-content-source-code")[0])
        else

# Use this because CSS and JS display different widths due to scrollbar
exports.is_responsive_mode = () ->
    return $(".salvus-responsive-mode-test").width() < 768

exports.load_coffeescript_compiler = (cb) ->
    if CoffeeScript?
