Skip to content

How ai2html is being used

Cedric Sam edited this page Feb 10, 2017 · 14 revisions

Media

NYT

Syria and Rebels Battle for Aleppo as Cease-Fire Collapses

Where Syria’s Civil War Is Intensifying

Characteristic Value
Sizes (width) 600px
responsiveness dynamic
output multiple-files

The actual artboard size is not known, but is probably 600px. The output is probably in multiple-files mode. This is when each artboard is written to separate files. You must then write custom layout HTML to arrange containers differently based on screen width or parent container width.

wide

Where Syria’s Civil War Is Intensifying (wide)

mobile

Where Syria’s Civil War Is Intensifying (mobile)

Additionally, responsiveness is set to dynamic. It means that the ai2html divs will scale to fill the container it is placed in. In this NYT graphic, at 720px screen width or larger, the top <html> tag adds a viewport-medium class, which applies a display: inline-block on the three map containers, making them appear side by side for larger screen sizes.

A Trail of Terror in Nice, Block by Block

Characteristic Value
Sizes (width x height) 12960x960px and 8100x600px

A Trail of Terror in Nice, Block by Block (wide)

This is a cool one. It’s very very wide artboard, shown part by part using JavaScript / CSS. The base map is made in ai2html.

This is what the base image looks like.

A Trail of Terror in Nice, Block by Block (base big)

WaPo

The history of the National Mall

Defining the Mall

Characteristic Value
Sizes (width) 280px and 600px
responsiveness fixed

600px

Defining the Mall (600px)

How the area looks now

Characteristic Value
Sizes (width) 280px, 600px, 980px and 1200px
responsiveness fixed

1200px

How the area looks like now (1200px)

280px

How the area looks like now (280px)

Clone this wiki locally