History

Add SQLite documentation

Thibaut Courouble committed 9 years ago

Commit 0c8ca4e1 parent be1390321 files · +332 −4Browse files

Showing the changes to assets/javascripts (3 of 21 files). Show all

Unified · Split

3 files
  1. assets/javascripts/news.json +3 −0
  2. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  3. assets/javascripts/views/pages/sqlite.coffee +17 −0
assets/javascripts/news.json+3−0
@@ -1,5 +1,8 @@
11 [
22 [
3+ "2016-12-04",
4+ "New documentation: <a href=\"/sqlite/\">SQLite</a>"
5+ ], [
36 "2016-11-20",
47 "New documentations: <a href=\"/yarn/\">Yarn</a>, <a href=\"/immutable/\">Immutable.js</a> and <a href=\"/async/\">Async</a>"
58 ], [
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -529,6 +529,11 @@ credits = [ · 528 unmodified lines
529529 '2014-2015 Automattic',
530530 'MIT',
531531 'https://raw.githubusercontent.com/Automattic/socket.io/master/LICENSE'
532+ ], [
533+ 'SQLite',
534+ 'n/a',
535+ 'Public Domain',
536+ 'https://sqlite.org/copyright.html'
532537 ], [
533538 'Statsmodels',
534539 '2009-2012 Statsmodels Developers<br>&copy; 2006-2008 Scipy Developers<br>&copy; 2006 Jonathan E. Taylor',
assets/javascripts/views/pages/sqlite.coffee+17−0
@@ -0,0 +1,17 @@
1+#= require views/pages/simple
2+
3+class app.views.SqlitePage extends app.views.SimplePage
4+ @events:
5+ click: 'onClick'
6+
7+ onClick: (event) =>
8+ return unless id = event.target.getAttribute('data-toggle')
9+ return unless el = @find("##{id}")
10+ $.stopEvent(event)
11+ if el.style.display == 'none'
12+ el.style.display = 'block'
13+ event.target.textContent = 'hide'
14+ else
15+ el.style.display = 'none'
16+ event.target.textContent = 'show'
17+ return