Showing the changes to assets/javascripts (2 of 4 files). Show all
Unified · Split
| @@ -1,14 +0,0 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.AngularPage extends app.views.BasePage | ||
| 4 | prepare: -> | ||
| 5 | for el in @findAllByTag('pre') | ||
| 6 | lang = if el.classList.contains('lang-html') or el.textContent[0] is '<' | ||
| 7 | 'markup' | ||
| 8 | else if el.classList.contains('lang-css') | ||
| 9 | 'css' | ||
| 10 | else | ||
| 11 | 'javascript' | ||
| 12 | el.setAttribute('class', '') | ||
| 13 | @highlightCode el, lang | ||
| 14 | return | ||
| @@ -6,6 +6,7 @@ class app.views.SimplePage extends app.views.BasePage · 5 unmodified lines | |||
| 6 | @highlightCode el, el.getAttribute('data-language') | 6 | @highlightCode el, el.getAttribute('data-language') |
| 7 | return | 7 | return |
| 8 | 8 | ||
| 9 | app.views.AngularPage = | ||
| 9 | app.views.EmberPage = | 10 | app.views.EmberPage = |
| 10 | app.views.GoPage = | 11 | app.views.GoPage = |
| 11 | app.views.MeteorPage = | 12 | app.views.MeteorPage = |