layout.jade 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. !!!
  2. html(itemscope, itemtype='http://schema.org/Product')
  3. head
  4. - if (typeof(priority_title) !== "undefined" && priority_title)
  5. title= title + ' - Online LaTeX Editor ShareLaTeX'
  6. - else
  7. title= 'Online LaTeX Editor ShareLaTeX - ' +title
  8. link(rel='stylesheet', href='/stylesheets/mainStyle.css?fingerprint='+fingerprint('/stylesheets/mainStyle.css'))
  9. meta(itemprop="name" ,content="ShareLaTeX - Real Time Online LaTeX Collaborative Editor in Your Browser")
  10. meta(itemprop="description", content="Online LaTeX editor for collaborative editing, great for Maths or Sciences. You don't need to install LaTeX so it's great for beginners too.")
  11. meta(itemprop="image", content="https://www.sharelatex.com/favicon.ico")
  12. meta(name="description", content="Online LaTeX editor for collaborative editing, great for Maths or Sciences. You don't need to install LaTeX so it's great for beginners too.")
  13. block scripts
  14. - if (typeof(gaToken) != "undefined")
  15. script(type='text/javascript')
  16. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  17. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  18. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  19. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  20. ga('create', '#{gaToken}', 'sharelatex.com');
  21. ga('send', 'pageview');
  22. script
  23. window.csrfToken = "#{csrfToken}";
  24. script(src=jsPath+'libs/jquery.js')
  25. - if (typeof(bodyClasses) == "undefined")
  26. bodyClasses = []
  27. body(class=bodyClasses)
  28. include menubar
  29. block content
  30. - if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
  31. .modal.hide#scribtexModal
  32. .modal-header
  33. h3 Looking for ScribTeX?
  34. .modal-body
  35. p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
  36. p(style="text-align: center") You can find the page you were looking for here:
  37. p(style="text-align: center")
  38. a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
  39. .modal-footer
  40. button(data-dismiss="modal").btn OK
  41. include modals
  42. if !locals.supressDefaultJs
  43. script(type='text/javascript')
  44. require = {
  45. "urlArgs" : "fingerprint=#{fingerprint(jsPath + 'main.js')}"
  46. }
  47. script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js?fingerprint=' + fingerprint(jsPath + 'libs/require.js'), baseurl=jsPath)
  48. - if (typeof(tenderUrl) != "undefined")
  49. script(src="https://#{tenderUrl}/tender_widget.js" )
  50. script(type="text/javascript")
  51. Tender = {
  52. hideToggle: true,
  53. widgetToggles: $(".js-tender-widget"),
  54. category: "questions"
  55. };