layout.jade 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. - else
  23. script(type='text/javascript')
  24. window.ga = function() {};
  25. script
  26. window.csrfToken = "#{csrfToken}";
  27. script(src=jsPath+'libs/jquery.js')
  28. - if (typeof(bodyClasses) == "undefined")
  29. bodyClasses = []
  30. body(class=bodyClasses)
  31. include menubar
  32. block content
  33. - if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
  34. .modal.hide#scribtexModal
  35. .modal-header
  36. h3 Looking for ScribTeX?
  37. .modal-body
  38. p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
  39. p(style="text-align: center") You can find the page you were looking for here:
  40. p(style="text-align: center")
  41. a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
  42. .modal-footer
  43. button(data-dismiss="modal").btn OK
  44. include modals
  45. if !locals.supressDefaultJs
  46. script(type='text/javascript')
  47. require = {
  48. "urlArgs" : "fingerprint=#{fingerprint(jsPath + 'main.js')}"
  49. }
  50. script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js?fingerprint=' + fingerprint(jsPath + 'libs/require.js'), baseurl=jsPath)
  51. - if (typeof(tenderUrl) != "undefined")
  52. script(src="https://#{tenderUrl}/tender_widget.js" )
  53. script(type="text/javascript")
  54. Tender = {
  55. hideToggle: true,
  56. widgetToggles: $(".js-tender-widget"),
  57. category: "questions"
  58. };