Shape of the Web (codenamed “Lorax”) was a micro-site encouraging the Mozilla
audience to educate themselves about the state of the Web, learn more about
Mozilla and show their support.
This site has been decommissioned and is no longer live.
If you’re interested in contributing, or are looking for instructions on how
to set up a local development copy of Lorax, check out the
CONTRIBUTING.md
file.
Map Data
Map data is handled in a seperate process. It is inputed into a spreadsheet, then exported out using a script.
World Map Data Conversion Instructions
Select and copy all the data (including the header row) from the Data Source.
Contains all issues, grouped by topic. Data for styling, type of infographic, tags, etc.
This file has three main sections: topics, modals, and misc.
The topics section contains text for each issue on the detail page (name, title, copy, links, etc.). This is also where you’ll find the data for shareUrl, which controls each issue’s links for Twitter, Facebook, and email.
The modals section is organized by the type of modal (about, legend, etc.) and contains all copy and relevant information for that modal.
The misc section contains just that: miscellaneous information that doesn’t warrant its own category. Example data includes the site header, labels for the nav, and text for the intro.
country-data.json
Contains a list of all countries and their data for the world map infographics.
infographics.json
This file is organized by issue. Each issue has a header, subheader, and source, as well as data that pertains to its specific infographic.
Email Sign-Up Feature
Code for the email sign-up page is located at:
/app/lorax/directives/modal-email.js
and /app/lorax/directives/modal-email.tpl.html
You can find the inputs for email, country, and ToS in the HTML file. They are all under the form tag with the class “keep-informed__form”
Success / Fail Buttons
The styling and basic functionality for these buttons is implemented. There are variables for each button, showFailedBtn and showSuccessBtn. If there are set to true, the buttons will appear.
The functions onSubmitFail() and onSubmitSuccess() provide functionality to turn these variables to true and set the other buttons to false. For example, running onSubmitFail() will show the “Failed” button and hide the “Submit” and “Success” buttons. Feel free to change the functionality as needed.
Shape of the Web
Shape of the Web (codenamed “Lorax”) was a micro-site encouraging the Mozilla audience to educate themselves about the state of the Web, learn more about Mozilla and show their support.
This site has been decommissioned and is no longer live.
Contributing
If you’re interested in contributing, or are looking for instructions on how to set up a local development copy of Lorax, check out the CONTRIBUTING.md file.
Map Data
Map data is handled in a seperate process. It is inputed into a spreadsheet, then exported out using a script.
World Map Data Conversion Instructions
Data Structure
The JSON data is stored on bedrock.
main.json
Contains all issues, grouped by topic. Data for styling, type of infographic, tags, etc.
This file has three main sections: topics, modals, and misc.
The topics section contains text for each issue on the detail page (name, title, copy, links, etc.). This is also where you’ll find the data for shareUrl, which controls each issue’s links for Twitter, Facebook, and email.
The modals section is organized by the type of modal (about, legend, etc.) and contains all copy and relevant information for that modal.
The misc section contains just that: miscellaneous information that doesn’t warrant its own category. Example data includes the site header, labels for the nav, and text for the intro.
country-data.json
Contains a list of all countries and their data for the world map infographics.
infographics.json
This file is organized by issue. Each issue has a header, subheader, and source, as well as data that pertains to its specific infographic.
Email Sign-Up Feature
Code for the email sign-up page is located at:
/app/lorax/directives/modal-email.js
and
/app/lorax/directives/modal-email.tpl.html
You can find the inputs for email, country, and ToS in the HTML file. They are all under the form tag with the class “keep-informed__form”
Success / Fail Buttons
The styling and basic functionality for these buttons is implemented. There are variables for each button, showFailedBtn and showSuccessBtn. If there are set to true, the buttons will appear.
The functions onSubmitFail() and onSubmitSuccess() provide functionality to turn these variables to true and set the other buttons to false. For example, running onSubmitFail() will show the “Failed” button and hide the “Submit” and “Success” buttons. Feel free to change the functionality as needed.
License
This software is licensed under the Mozilla Public License 2.0. For more information, read the LICENSE file.