Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
3748eaa1
Commit
3748eaa1
authored
Feb 10, 2013
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #433 from passy/collapsed-news
Site - No-JS expander
parents
c62974b0
d583b025
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
index.html
index.html
+2
-1
site/css/main.css
site/css/main.css
+5
-1
site/js/main.js
site/js/main.js
+0
-10
No files found.
index.html
View file @
3748eaa1
...
...
@@ -245,7 +245,8 @@
<h2>
New in 1.1 - TBA
</h2>
<ul
class=
"whats-new"
>
<li>
We now have 18 stable apps and 35 in labs.
<a
href=
"#"
data-target=
"#new-apps"
class=
"expander"
>
New since 1.0.1 ▼
</a>
<label
for=
"news-expander"
><a>
New since 1.0.1 ▼
</a></label>
<input
type=
"checkbox"
id=
"news-expander"
>
<ul
class=
"collapsed"
id=
"new-apps"
>
<li><a
href=
"architecture-examples/dart/web/"
>
Dart
</a></li>
<li><a
href=
"labs/architecture-examples/typescript-backbone/"
>
TypeScript + Backbone.js
</a></li>
...
...
site/css/main.css
View file @
3748eaa1
...
...
@@ -202,7 +202,11 @@ p .label {
transition
:
max-height
1s
;
}
.collapsed.expanded
{
#news-expander
{
display
:
none
;
}
#news-expander
:checked
~
.collapsed
{
max-height
:
999px
;
}
...
...
site/js/main.js
View file @
3748eaa1
...
...
@@ -132,19 +132,9 @@
});
};
$
.
fn
.
expander
=
function
()
{
this
.
click
(
function
(
ev
)
{
ev
.
preventDefault
();
$
(
$
(
this
).
data
(
'
target
'
)).
toggleClass
(
'
expanded
'
);
});
};
// Apps popover
$
(
'
.applist a
'
).
persistantPopover
();
// What's new expander
$
(
'
.expander
'
).
expander
();
// Quotes
$
(
'
.quotes
'
).
quote
([{
quote
:
'
TodoMVC is a godsend for helping developers find what well-developed frameworks match their mental model of application architecture.
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment