3.13.0 • Published 9 years ago

@cnbritain/wc-top-stories v3.13.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

wc-top-stories

Displays a list of landscape cards

Macro Settings

KeyOptionalDefaultDescription
itemsfalseItems to display in the list
brandtrue'default'Brand to use for theme
titletrue'Top stories'Title to display above the list
ad_configtrueNoneAd configuration

JS Documentation

TopStoriesNavigation

Kind: global class

new TopStoriesNavigation(el)

ParamType
elHTMLElement

topStoriesNavigation.el : HTMLElement

The top stories element

Kind: instance property of TopStoriesNavigation
Access: public

topStoriesNavigation.nextItems()

Scrolls the element to the next items

Kind: instance method of TopStoriesNavigation
Access: public

topStoriesNavigation.previousItems()

Scrolls the element to the previous items

Kind: instance method of TopStoriesNavigation
Access: public

topStoriesNavigation.scrollTo(x)

Scrolls the element to the x location

Kind: instance method of TopStoriesNavigation
Access: public

ParamType
xNumber

Themes

  • Wired

Prerequisites:

  • Node.jsbrew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py
3.13.0

9 years ago

3.12.7

9 years ago

3.12.6

9 years ago

3.12.5

9 years ago

3.12.4

9 years ago

3.12.3

9 years ago

3.12.2

9 years ago

3.12.1

9 years ago

3.12.0

9 years ago

3.11.5

9 years ago

3.11.4

9 years ago

3.11.3

9 years ago

3.11.2

9 years ago

3.11.1

9 years ago

3.11.0

9 years ago

3.10.10

9 years ago

3.10.9

9 years ago

3.10.8

9 years ago

3.10.7

9 years ago

3.10.6

9 years ago

3.10.5

9 years ago

3.10.4

9 years ago

3.10.3

9 years ago

3.10.2

9 years ago

3.10.1

9 years ago

3.10.0

9 years ago

3.9.0

9 years ago

3.8.2

9 years ago

3.8.1

9 years ago

3.8.0

9 years ago

3.7.3

9 years ago

3.7.2

9 years ago

3.7.1

9 years ago

3.7.0

9 years ago

3.6.0

9 years ago

3.5.0

9 years ago

3.4.0

9 years ago

3.3.1

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.7

9 years ago

3.1.6

9 years ago

3.1.5

9 years ago

3.1.4

9 years ago

3.1.3

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago