Showing the changes to assets/javascripts (3 of 14 files). Show all
Unified · Split
| @@ -210,6 +210,11 @@ credits = [ · 209 unmodified lines | |||
| 210 | '2009-2014 Salvatore Sanfilippo', | 210 | '2009-2014 Salvatore Sanfilippo', |
| 211 | 'CC BY-SA', | 211 | 'CC BY-SA', |
| 212 | 'http://creativecommons.org/licenses/by-sa/4.0/' | 212 | 'http://creativecommons.org/licenses/by-sa/4.0/' |
| 213 | ], [ | ||
| 214 | 'RequireJS', | ||
| 215 | '2010-2014 The Dojo Foundation', | ||
| 216 | 'MIT', | ||
| 217 | 'https://raw.githubusercontent.com/jrburke/requirejs/master/LICENSE' | ||
| 213 | ], [ | 218 | ], [ |
| 214 | 'Ruby', | 219 | 'Ruby', |
| 215 | '1993-2014 Yukihiro Matsumoto', | 220 | '1993-2014 Yukihiro Matsumoto', |
| @@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines | |||
| 24 | result | 24 | result |
| 25 | 25 | ||
| 26 | app.news = [ | 26 | app.news = [ |
| 27 | [ 1402704000000, # June 14, 2014 | 27 | [ 1402790400000, # June 15, 2014 |
| 28 | """ New <a href="/requirejs/">RequireJS</a> documentation """, | ||
| 29 | ], [ | ||
| 30 | 1402704000000, # June 14, 2014 | ||
| 28 | """ New <a href="/haskell/">Haskell</a> documentation """, | 31 | """ New <a href="/haskell/">Haskell</a> documentation """, |
| 29 | ], [ | 32 | ], [ |
| 30 | 1400976000000, # May 25, 2014 | 33 | 1400976000000, # May 25, 2014 |
| @@ -0,0 +1,11 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.RequirejsPage extends app.views.BasePage | ||
| 4 | afterRender: -> | ||
| 5 | for el in @findAllByTag 'pre' | ||
| 6 | language = if el.textContent.match(/^\s*</) | ||
| 7 | 'markup' | ||
| 8 | else | ||
| 9 | 'javascript' | ||
| 10 | @highlightCode el, language | ||
| 11 | return | ||