3.13.0 • Published 7 years ago

@cnbritain/wc-top-stories v3.13.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 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

7 years ago

3.12.7

8 years ago

3.12.6

8 years ago

3.12.5

8 years ago

3.12.4

8 years ago

3.12.3

8 years ago

3.12.2

8 years ago

3.12.1

8 years ago

3.12.0

8 years ago

3.11.5

8 years ago

3.11.4

8 years ago

3.11.3

8 years ago

3.11.2

8 years ago

3.11.1

8 years ago

3.11.0

8 years ago

3.10.10

8 years ago

3.10.9

8 years ago

3.10.8

8 years ago

3.10.7

8 years ago

3.10.6

8 years ago

3.10.5

8 years ago

3.10.4

8 years ago

3.10.3

8 years ago

3.10.2

8 years ago

3.10.1

8 years ago

3.10.0

8 years ago

3.9.0

8 years ago

3.8.2

8 years ago

3.8.1

8 years ago

3.8.0

8 years ago

3.7.3

8 years ago

3.7.2

8 years ago

3.7.1

8 years ago

3.7.0

8 years ago

3.6.0

8 years ago

3.5.0

8 years ago

3.4.0

8 years ago

3.3.1

8 years ago

3.3.0

8 years ago

3.2.0

8 years ago

3.1.7

8 years ago

3.1.6

8 years ago

3.1.5

8 years ago

3.1.4

8 years ago

3.1.3

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.0

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago