Commit 5b3e02c8 authored by Pascal Hartig's avatar Pascal Hartig

Site - collapse new apps by default

parent 66788498
...@@ -244,16 +244,17 @@ ...@@ -244,16 +244,17 @@
<div class="span4"> <div class="span4">
<h2>New in 1.1 - TBA</h2> <h2>New in 1.1 - TBA</h2>
<ul class="whats-new"> <ul class="whats-new">
<li>We now have 18 stable apps and 35 in labs. New since 1.0.1: <li>We now have 18 stable apps and 35 in labs.
<ul> <a href="#" data-target="#new-apps" class="expander">New since 1.0.1 ▼</a>
<li>Dart</li> <ul class="collapsed" id="new-apps">
<li>TypeScript + Backbone.js</li> <li><a href="architecture-examples/dart/web/">Dart</a></li>
<li>TypeScript + AngularJS</li> <li><a href="labs/architecture-examples/typescript-backbone/">TypeScript + Backbone.js</a></li>
<li>Serenade.js</li> <li><a href="labs/architecture-examples/typescript-angular/">TypeScript + AngularJS</a></li>
<li>CanJS + RequireJS</li> <li><a href="labs/architecture-examples/serenadejs/">Serenade.js</a></li>
<li>Chaplin + Brunch</li> <li><a href="labs/dependency-examples/canjs_require/">CanJS + RequireJS</a></li>
<li>Thorax + Lumbar</li> <li><a href="labs/dependency-examples/chaplin-brunch/public/">Chaplin + Brunch</a></li>
<li>CanJS replaced the JavaScriptMVC app</li> <li><a href="labs/dependency-examples/thorax_lumbar/public/">Thorax + Lumbar</a></li>
<li><a href="architecture-examples/canjs/">CanJS</a> replaced the JavaScriptMVC app</li>
</ul> </ul>
</li> </li>
<li>Many app frameworks and libraries have been upgraded to the latest version</li> <li>Many app frameworks and libraries have been upgraded to the latest version</li>
......
...@@ -118,6 +118,14 @@ header nav a:first-child { ...@@ -118,6 +118,14 @@ header nav a:first-child {
left: -20px; left: -20px;
} }
.whats-new li ul {
margin-left: 10px;
}
.whats-new li ul li {
margin-left: 20px;
}
.applist { .applist {
list-style: none; list-style: none;
margin: 0; margin: 0;
...@@ -184,6 +192,20 @@ p .label { ...@@ -184,6 +192,20 @@ p .label {
columns: 2; columns: 2;
} }
.collapsed {
overflow: hidden;
max-height: 0;
-webkit-transition: max-height 1s;
-moz-transition: max-height 1s;
-ms-transition: max-height 1s;
-o-transition: max-height 1s;
transition: max-height 1s;
}
.collapsed.expanded {
max-height: 999px;
}
.credit a { .credit a {
margin: 0 5px; margin: 0 5px;
white-space: nowrap; white-space: nowrap;
......
...@@ -132,9 +132,19 @@ ...@@ -132,9 +132,19 @@
}); });
}; };
$.fn.expander = function () {
this.click(function (ev) {
ev.preventDefault();
$($(this).data('target')).toggleClass('expanded');
});
};
// Apps popover // Apps popover
$('.applist a').persistantPopover(); $('.applist a').persistantPopover();
// What's new expander
$('.expander').expander();
// Quotes // Quotes
$('.quotes').quote([{ $('.quotes').quote([{
quote: 'TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.', quote: 'TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment