Showing the changes to assets (8 of 14 files). Show all
Unified · Split
Binary file not shown.
Binary file not shown.
| @@ -128,6 +128,11 @@ credits = [ · 127 unmodified lines | |||
| 128 | '2014 jQuery Foundation', | 128 | '2014 jQuery Foundation', |
| 129 | 'MIT', | 129 | 'MIT', |
| 130 | 'https://raw.github.com/jquery/api.jqueryui.com/master/LICENSE-MIT.txt' | 130 | 'https://raw.github.com/jquery/api.jqueryui.com/master/LICENSE-MIT.txt' |
| 131 | ], [ | ||
| 132 | 'Knockout.js', | ||
| 133 | 'Steven Sanderson, the Knockout.js team, and other contributors', | ||
| 134 | 'MIT', | ||
| 135 | 'https://raw.github.com/knockout/knockout/master/LICENSE' | ||
| 131 | ], [ | 136 | ], [ |
| 132 | 'Less', | 137 | 'Less', |
| 133 | '2009-2014 Alexis Sellier & The Core Less Team', | 138 | '2009-2014 Alexis Sellier & The Core Less Team', |
| @@ -24,8 +24,8 @@ newsItem = (date, news) -> · 23 unmodified lines | |||
| 24 | result | 24 | result |
| 25 | 25 | ||
| 26 | app.news = [ | 26 | app.news = [ |
| 27 | [ 1390089600000, # January 19, 2013 | 27 | [ 1390089600001, # January 19, 2013 |
| 28 | """ New <a href="/d3/">D3.js</a> documentation """, | 28 | """ New <a href="/d3/">D3.js</a> and <a href="/knockout/">Knockout.js</a> documentations """, |
| 29 | ], [ | 29 | ], [ |
| 30 | 1390003200000, # January 18, 2013 | 30 | 1390003200000, # January 18, 2013 |
| 31 | """ DevDocs is now available as a <a href="https://marketplace.firefox.com/app/devdocs/">Firefox web app</a> (currently requires Aurora). """, | 31 | """ DevDocs is now available as a <a href="https://marketplace.firefox.com/app/devdocs/">Firefox web app</a> (currently requires Aurora). """, |
| @@ -0,0 +1,8 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.KnockoutPage extends app.views.BasePage | ||
| 4 | afterRender: -> | ||
| 5 | for el in @findAll('pre') | ||
| 6 | language = if el.innerHTML.indexOf('data-bind="') > 0 then 'markup' else 'javascript' | ||
| 7 | @highlightCode el, language | ||
| 8 | return | ||
| @@ -32,6 +32,7 @@ · 31 unmodified lines | |||
| 32 | 'pages/d3', | 32 | 'pages/d3', |
| 33 | 'pages/ember', | 33 | 'pages/ember', |
| 34 | 'pages/jquery', | 34 | 'pages/jquery', |
| 35 | 'pages/knockout', | ||
| 35 | 'pages/git', | 36 | 'pages/git', |
| 36 | 'pages/less', | 37 | 'pages/less', |
| 37 | 'pages/lodash', | 38 | 'pages/lodash', |
| @@ -4,7 +4,7 @@ · 3 unmodified lines | |||
| 4 | width: 1rem; | 4 | width: 1rem; |
| 5 | height: 1rem; | 5 | height: 1rem; |
| 6 | background-image: image-url('icons.png'); | 6 | background-image: image-url('icons.png'); |
| 7 | background-size: 5rem 7rem; | 7 | background-size: 5rem 8rem; |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { | 10 | @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { |
| @@ -46,3 +46,4 @@ · 35 unmodified lines | |||
| 46 | ._icon-redis:before { background-position: -2rem -6rem; } | 46 | ._icon-redis:before { background-position: -2rem -6rem; } |
| 47 | ._icon-postgresql:before { background-position: -3rem -6rem; } | 47 | ._icon-postgresql:before { background-position: -3rem -6rem; } |
| 48 | ._icon-d3:before { background-position: -4rem -6rem; } | 48 | ._icon-d3:before { background-position: -4rem -6rem; } |
| 49 | ._icon-knockout:before { background-position: 0 -7rem; } | ||
| @@ -0,0 +1,6 @@ | |||
| 1 | ._knockout { | ||
| 2 | > h2 { @extend %block-heading; } | ||
| 3 | > h3 { @extend %block-label, %label-blue; } | ||
| 4 | p > code { @extend %label; } | ||
| 5 | .liveExample { @extend %note; } | ||
| 6 | } | ||