<commit_before><commit_msg>adds autoload example to contribe<commit_after><!doctype html>
<html lang="en">
  <head>
    <!-- Page structure from the Twitter Bootstrap starter template: https://getbootstrap.com/docs/4.3/getting-started/introduction/#starter-template -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">

    <title>Timeline examples: Autoloading Timeline Slideshow</title>
    <link title="timeline-styles" rel="stylesheet" href="https://cdn.knightlab.com/libs/timeline3/latest/css/timeline.css">
    <script src="https://cdn.knightlab.com/libs/timeline3/latest/js/timeline.js"></script>
  </head>
  <body>
    <div class="container">
        <h1>TimelineJS3 Examples</h1>
        <h2>Slideshow</h2>
        <div class="row">
            <div class="col">
              <div id="timeline-embed" style="width: 100%; height: 600px"></div>
            </div> <!-- .col -->
        </div> <!-- .row -->
    </div>

    <script type="text/javascript">
        const timeline = new TL.Timeline('timeline-embed',
        'https://docs.google.com/spreadsheets/d/1xuY4upIooEeszZ_lCmeNx24eSFWe0rHe9ZdqH2xqVNk/edit?usp=drive_web&ouid=113808851972646275751');

        const loadNextSlide = function() {
            try {
                timeline.goToNext();
            } catch(err) {
                if (err instanceof TypeError) {
                    console.log(err.message);
                    if (err.message === "Cannot read property 'unique_id' of undefined") {
                        timeline.goToStart();
                    }
                }
            }
        };

        setInterval(loadNextSlide, 5000);
    </script>
  </body>
<html>
{'fraction_non_alphanumeric': 0.15495207667731628, 'fraction_numerical': 0.027689030883919063, 'mean_word_length': 2.4860853432282, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2950373', 'n_tokens_mistral': 640, 'n_tokens_neox': 585, 'n_words': 96}