Skip to content

qvvdata/image_scrolly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based on: https://paulkogel.github.io/simple-babel-webpack-template

Setup

  1. create a link-public google doc with contents like
[steps_scrollsection]
graph: img:filename1.png
text: <p>Text 1 with <span data-color="#c14242">red color highlight</span>.</p>
:end

graph: img:filename2.png
text: <p>Second text with <span data-color="#c14242">another color highlight</span>.</p>
:end
  1. put the image files in dist/images, make sure to also include a version which includes _mobile in front of the .png.

  2. update download link in download_archie.bash and execute bash download_archie.bash in the directory, check src/steps.archieml

  3. install prerequisites & start development server

    npm install
    npm run devserver
  1. if you have multiple scrollsections, change index.html by copy-pasting the qvv_scrollsection subtree and changing data-steps to match the archieml key

Production build & deploy

  1. quit devserver using CTRL+C

  2. Compile the JavaScript for deployment

    npm run build

Check dist/js for output:

  • application.js (transpiled source code)
  • application.js.map (source map)
  1. upload the whole dist folder to somewhere

  2. embed the following code for each scroll section (change data-steps if neccessary and data-image-prefix to the absolute url of the image folder, like https://data.addendum.org/gfx/20xx-yyy-zzz/scrolly/images)

<div class="qvv_scrollsection" data-steps="steps_scrollsection" data-image-prefix="your-path-here">
  <div class="container">
    <div class="graphcontainer">
      <div class="graph"></div>
    </div>
    <div class="sections"></div>
  </div>
</div>
  1. under the last scrollsection, embed (fix the path!)
    <script src="scripttag.js"></script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published