mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
wip
This commit is contained in:
parent
789abe504d
commit
36966f0c9b
3 changed files with 18 additions and 12 deletions
|
@ -12,5 +12,5 @@ module.exports = SpellingController =
|
|||
request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS)
|
||||
.on "error", (error) ->
|
||||
logger.error err: error, "Spelling API error"
|
||||
res.sendStatus 500
|
||||
res.end()
|
||||
.pipe(res)
|
||||
|
|
|
@ -7,6 +7,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
// Stop superfish from loading
|
||||
window.similarproducts = true
|
||||
style [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {display: none !important; display: none; }
|
||||
style #groove-button { display:none;}
|
||||
|
||||
-if (typeof(gaExperiments) != "undefined")
|
||||
|!{gaExperiments}
|
||||
|
@ -25,6 +26,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
each subdomainDetails in settings.i18n.subdomainLang
|
||||
link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode)
|
||||
|
||||
|
||||
meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor")
|
||||
|
||||
-if (typeof(meta) == "undefined")
|
||||
|
@ -60,8 +62,12 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
sixpackDomain: '#{settings.sixpack.domain}'
|
||||
};
|
||||
window.systemMessages = !{JSON.stringify(systemMessages).replace(/\//g, '\\/')};
|
||||
window.ab = {}
|
||||
window.user_id = '#{getLoggedInUserId()}'
|
||||
window.ab = {};
|
||||
window.user_id = '#{getLoggedInUserId()}';
|
||||
|
||||
script.
|
||||
(function() {var s=document.createElement('script'); s.type='text/javascript';s.async=true; s.src=('https:'==document.location.protocol?'https':'http') + '://sharelatex-accounts.groovehq.com/widgets/f5ad3b09-7d99-431b-8af5-c5725e3760ce/ticket.js'; var q = document.getElementsByTagName('script')[0];q.parentNode.insertBefore(s, q);})();
|
||||
|
||||
|
||||
- if (typeof(settings.algolia) != "undefined")
|
||||
script.
|
||||
|
@ -118,21 +124,20 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
"paths" : {
|
||||
"moment": "libs/moment-2.7.0"
|
||||
}
|
||||
};
|
||||
};
|
||||
script(
|
||||
data-main=jsPath+'main.js',
|
||||
baseurl=jsPath,
|
||||
src=jsPath+'libs/require.js?fingerprint='+fingerprint(jsPath + 'libs/require.js')
|
||||
)
|
||||
|
||||
- if (typeof(tenderUrl) != "undefined")
|
||||
script(src="https://#{tenderUrl}/tender_widget.js" )
|
||||
script(type="text/javascript").
|
||||
Tender = {
|
||||
hideToggle: true,
|
||||
widgetToggles: $(".js-tender-widget"),
|
||||
category: "questions"
|
||||
};
|
||||
|
||||
script.
|
||||
var toggleGroove = function(){
|
||||
var e = arguments[0]||window.event;
|
||||
e.stopPropagation();
|
||||
GrooveWidget.toggle()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ define [
|
|||
_csrf : window.csrfToken
|
||||
|
||||
$scope.showForm = ->
|
||||
GrooveWidget.toggle()
|
||||
$scope.formVisable = true
|
||||
|
||||
$scope.getPercentComplete = ->
|
||||
|
|
Loading…
Reference in a new issue