Browse Source

docs : Infinite Scroll working

pull/14/head
David DeSandro 14 years ago
parent
commit
32d475b681
  1. 598
      _config.yml
  2. 2
      _layouts/inf-scroll-page.html
  3. 7
      _posts/demos/2011-01-02-infinite-scroll.html
  4. 2
      _posts/pages/2011-01-01-3.yml
  5. 2
      _posts/pages/2011-01-01-4.yml
  6. 2
      _posts/pages/2011-01-01-6.yml

598
_config.yml

@ -756,6 +756,14 @@ elements_partial:
symbol: Ra
name: Radium
weight: (226)
elements_ordered:
- categories: [ other, nonmetal ]
@ -859,6 +867,596 @@ elements_ordered:
symbol: Ca
name: Calcium
weight: 40.078
- categories: [transition, metal]
othercategory: d
number: 21
symbol: Sc
name: Scandium
weight: 44.955912
- categories: [transition, metal]
othercategory: d
number: 22
symbol: Ti
name: Titanium
weight: 47.867
- categories: [transition, metal]
othercategory: d
number: 23
symbol: V
name: Vanadium
weight: 50.9415
- categories: [transition, metal]
othercategory: d
number: 24
symbol: Cr
name: Chromium
weight: 51.9961
- categories: [transition, metal]
othercategory: d
number: 25
symbol: Mn
name: Manganese
weight: 54.938045
- categories: [transition, metal]
othercategory: d
number: 26
symbol: Fe
name: Iron
weight: 55.845
- categories: [transition, metal]
othercategory: d
number: 27
symbol: Co
name: Cobalt
weight: 58.933195
- categories: [transition, metal]
othercategory: d
number: 28
symbol: Ni
name: Nickel
weight: 58.6934
- categories: [transition, metal]
othercategory: d
number: 29
symbol: Cu
name: Copper
weight: 63.546
- categories: [transition, metal]
othercategory: d
number: 30
symbol: Zn
name: Zinc
weight: 65.38
- categories: [post-transition, metal]
othercategory: p
number: 31
symbol: Ga
name: Gallium
weight: 69.723
- categories: [metalloid]
othercategory: p
number: 32
symbol: Ge
name: Germanium
weight: 72.64
- categories: [metalloid]
othercategory: p
number: 33
symbol: As
name: Arsenic
weight: 74.9216
- categories: [other, nonmetal]
othercategory: p
number: 34
symbol: Se
name: Selenium
weight: 78.96
- categories: [halogen, nonmetal]
othercategory: p
number: 35
symbol: Br
name: Bromine
weight: 79.904
- categories: [noble-gas, nonmetal]
othercategory: p
number: 36
symbol: Kr
name: Krypton
weight: 83.798
- categories: [alkali, metal]
othercategory: s
number: 37
symbol: Rb
name: Rubidium
weight: 85.4678
- categories: [alkaline-earth, metal]
othercategory: s
number: 38
symbol: Sr
name: Strontium
weight: 87.62
- categories: [transition, metal]
othercategory: d
number: 39
symbol: Y
name: Yttrium
weight: 88.90585
- categories: [transition, metal]
othercategory: d
number: 40
symbol: Zr
name: Zirconium
weight: 91.224
- categories: [transition, metal]
othercategory: d
number: 41
symbol: Nb
name: Niobium
weight: 92.90638
- categories: [transition, metal]
othercategory: d
number: 42
symbol: Mo
name: Molybdenum
weight: 95.96
- categories: [transition, metal]
othercategory: d
number: 43
symbol: Tc
name: Technetium
weight: (98)
- categories: [transition, metal]
othercategory: d
number: 44
symbol: Ru
name: Ruthenium
weight: 101.07
- categories: [transition, metal]
othercategory: d
number: 45
symbol: Rh
name: Rhodium
weight: 102.9055
- categories: [transition, metal]
othercategory: d
number: 46
symbol: Pd
name: Palladium
weight: 106.42
- categories: [transition, metal]
othercategory: d
number: 47
symbol: Ag
name: Silver
weight: 107.8682
- categories: [transition, metal]
othercategory: d
number: 48
symbol: Cd
name: Cadmium
weight: 112.411
- categories: [post-transition, metal]
othercategory: p
number: 49
symbol: In
name: Indium
weight: 114.818
- categories: [post-transition, metal]
othercategory: p
number: 50
symbol: Sn
name: Tin
weight: 118.71
- categories: [metalloid]
othercategory: p
number: 51
symbol: Sb
name: Antimony
weight: 121.76
- categories: [metalloid]
othercategory: p
number: 52
symbol: Te
name: Tellurium
weight: 127.6
- categories: [halogen, nonmetal]
othercategory: p
number: 53
symbol: I
name: Iodine
weight: 126.90447
- categories: [noble-gas, nonmetal]
othercategory: p
number: 54
symbol: Xe
name: Xenon
weight: 131.293
- categories: [alkali, metal]
othercategory: s
number: 55
symbol: Cs
name: Caesium
weight: 132.9054519
- categories: [alkaline-earth, metal]
othercategory: s
number: 56
symbol: Ba
name: Barium
weight: 137.327
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 57
symbol: La
name: Lanthanum
weight: 138.90547
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 58
symbol: Ce
name: Cerium
weight: 140.116
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 59
symbol: Pr
name: Praseodymium
weight: 140.90765
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 60
symbol: Nd
name: Neodymium
weight: 144.242
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 61
symbol: Pm
name: Promethium
weight: (145)
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 62
symbol: Sm
name: Samarium
weight: 150.36
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 63
symbol: Eu
name: Europium
weight: 151.964
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 64
symbol: Gd
name: Gadolinium
weight: 157.25
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 65
symbol: Tb
name: Terbium
weight: 158.92535
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 66
symbol: Dy
name: Dysprosium
weight: 162.5
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 67
symbol: Ho
name: Holmium
weight: 164.93032
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 68
symbol: Er
name: Erbium
weight: 167.259
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 69
symbol: Tm
name: Thulium
weight: 168.93421
- categories: [lanthanoid, metal, inner-transition]
othercategory: f
number: 70
symbol: Yb
name: Ytterbium
weight: 173.054
- categories: [lanthanoid, metal, inner-transition]
othercategory: d
number: 71
symbol: Lu
name: Lutetium
weight: 174.9668
- categories: [transition, metal]
othercategory: d
number: 72
symbol: Hf
name: Hafnium
weight: 178.49
- categories: [transition, metal]
othercategory: d
number: 73
symbol: Ta
name: Tantalum
weight: 180.94788
- categories: [transition, metal]
othercategory: d
number: 74
symbol: W
name: Tungsten
weight: 183.84
- categories: [transition, metal]
othercategory: d
number: 75
symbol: Re
name: Rhenium
weight: 186.207
- categories: [transition, metal]
othercategory: d
number: 76
symbol: Os
name: Osmium
weight: 190.23
- categories: [transition, metal]
othercategory: d
number: 77
symbol: Ir
name: Iridium
weight: 192.217
- categories: [transition, metal]
othercategory: d
number: 78
symbol: Pt
name: Platinum
weight: 195.084
- categories: [transition, metal]
othercategory: d
number: 79
symbol: Au
name: Gold
weight: 196.966569
- categories: [transition, metal]
othercategory: d
number: 80
symbol: Hg
name: Mercury
weight: 200.59
- categories: [post-transition, metal]
othercategory: p
number: 81
symbol: Tl
name: Thallium
weight: 204.3833
- categories: [post-transition, metal]
othercategory: p
number: 82
symbol: Pb
name: Lead
weight: 207.2
- categories: [post-transition, metal]
othercategory: p
number: 83
symbol: Bi
name: Bismuth
weight: 208.9804
- categories: [metalloid]
othercategory: p
number: 84
symbol: Po
name: Polonium
weight: (209)
- categories: [halogen, nonmetal]
othercategory: p
number: 85
symbol: At
name: Astatine
weight: (210)
- categories: [noble-gas, nonmetal]
othercategory: p
number: 86
symbol: Rn
name: Radon
weight: (222)
- categories: [alkali, metal]
othercategory: s
number: 87
symbol: Fr
name: Francium
weight: (223)
- categories: [alkaline-earth, metal]
othercategory: s
number: 88
symbol: Ra
name: Radium
weight: (226)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 89
symbol: Ac
name: Actinium
weight: (227)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 90
symbol: Th
name: Thorium
weight: 232.03806
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 91
symbol: Pa
name: Protactinium
weight: 231.03588
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 92
symbol: U
name: Uranium
weight: 238.02891
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 93
symbol: Np
name: Neptunium
weight: (237)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 94
symbol: Pu
name: Plutonium
weight: (244)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 95
symbol: Am
name: Americium
weight: (243)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 96
symbol: Cm
name: Curium
weight: (247)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 97
symbol: Bk
name: Berkelium
weight: (247)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 98
symbol: Cf
name: Californium
weight: (251)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 99
symbol: Es
name: Einsteinium
weight: (252)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 100
symbol: Fm
name: Fermium
weight: (257)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 101
symbol: Md
name: Mendelevium
weight: (258)
- categories: [actinoid, metal, inner-transition]
othercategory: f
number: 102
symbol: 'No'
name: Nobelium
weight: (259)
- categories: [actinoid, metal, inner-transition]
othercategory: d
number: 103
symbol: Lr
name: Lawrencium
weight: (262)
- categories: [transition, metal]
othercategory: d
number: 104
symbol: Rf
name: Rutherfordium
weight: (267)
- categories: [transition, metal]
othercategory: d
number: 105
symbol: Db
name: Dubnium
weight: (268)
- categories: [transition, metal]
othercategory: d
number: 106
symbol: Sg
name: Seaborgium
weight: (271)
- categories: [transition, metal]
othercategory: d
number: 107
symbol: Bh
name: Bohrium
weight: (272)
- categories: [transition, metal]
othercategory: d
number: 108
symbol: Hs
name: Hassium
weight: (270)
- categories: [transition, metal]
othercategory: d
number: 109
symbol: Mt
name: Meitnerium
weight: (276)
- categories: [transition, metal]
othercategory: d
number: 110
symbol: Ds
name: Darmstadtium
weight: (281)
- categories: [transition, metal]
othercategory: d
number: 111
symbol: Rg
name: Roentgenium
weight: (280)
- categories: [transition, metal]
othercategory: d
number: 112
symbol: Cn
name: Copernicium
weight: (285)
- categories: [post-transition, metal]
othercategory: p
number: 113
symbol: Uut
name: Ununtrium
weight: (284)
- categories: [post-transition, metal]
othercategory: p
number: 114
symbol: Uuq
name: Ununquadium
weight: (289)
- categories: [post-transition, metal]
othercategory: p
number: 115
symbol: Uup
name: Ununpentium
weight: (288)
- categories: [post-transition, metal]
othercategory: p
number: 116
symbol: Uuh
name: Ununhexium
weight: (293)
- categories: [halogen, nonmetal]
othercategory: p
number: 117
symbol: Uus
name: Ununseptium
weight: (294)
- categories: [noble-gas, nonmetal]
othercategory: p
number: 118
symbol: Uuo
name: Ununoctium
weight: (294)
elements_best_of:
- categories: [transition, metal]

2
_layouts/inf-scroll-page.html

@ -13,7 +13,7 @@
<div id="demo" class="iso-container variable-sizes">
{% assign page_position = page.page_position %}
{% for element in site.elements limit:20 offset:page_position %}
{% for element in site.elements_ordered limit:20 offset:page_position %}
{% include element-partial.html %}
{% endfor %}
</div>

7
_posts/demos/2011-01-02-infinite-scroll.html

@ -11,7 +11,7 @@ infinite_scroll: true
</section>
<div id="demo" class="iso-container variable-sizes">
{% for element in site.elements limit:20 %}
{% for element in site.elements_ordered limit:20 %}
{% include element-partial.html %}
{% endfor %}
</div> <!-- #demo -->
@ -48,8 +48,9 @@ infinite_scroll: true
}
},
// call Isotope as a callback
function( newElements ) {
$(this).isotope({ appended: $( newElements ) });
function( newElements ) {
console.log('isotoping', newElements.length )
$demo.isotope( 'appended', $( newElements ) );
}
);

2
_posts/pages/2011-01-01-3.yml

@ -2,6 +2,6 @@
title: Infinite Scroll Page 3
category: pages
layout: inf-scroll-page
page_position: 30
page_position: 40
infinite_scroll: true
---

2
_posts/pages/2011-01-01-4.yml

@ -2,6 +2,6 @@
title: Infinite Scroll Page 4
category: pages
layout: inf-scroll-page
page_position: 40
page_position: 60
infinite_scroll: true
---

2
_posts/pages/2011-01-01-6.yml

@ -2,6 +2,6 @@
title: Infinite Scroll Page 6
category: pages
layout: inf-scroll-page
page_position: 60
page_position: 100
infinite_scroll: true
---
Loading…
Cancel
Save