layout.jade 2.8 KB

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