layout.jade 3.3 KB

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