stops.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {% extends "base_template.html" %}
  2. {% block head %}
  3. <!-- Latest compiled and minified CSS -->
  4. <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> -->
  5. <!-- Optional theme -->
  6. <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous"> -->
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  10. <!-- my css -->
  11. <link rel="stylesheet" type="text/css" href="/static/stops.css">
  12. <!-- lazy loading js -->
  13. <script src="/static/js/lazy.js"></script>
  14. {% endblock %}
  15. {% block body %}
  16. <div class="container">
  17. <h1>Across the Country</h1>
  18. <h1>in 90 Days:</h1>
  19. <h2>A Travelogue of the Quixotic Trip I took on my Bicycle from Seattle to New York</h2>
  20. {% if args.is_historical_period %}
  21. {% include 'introduction.html' %}
  22. {% else %}
  23. <p> >> YOU ARE VIEWING A <em>REAL TIME</em> HISTORIC REPLAY OF THIS 2018 TRIP << </p>
  24. <p> <pre> Today is: {{ args.todays_date }} </pre></p>
  25. {% endif %}
  26. <br/>
  27. {% for town in args.towns %}
  28. {% if town.visits %}
  29. <a name="{{town.id}}">
  30. <p class="day-links">Day {{town.day}} thru Day {{town.day + town.visits}} -- {{town.date_}} until {{town.final_date}}</p>
  31. </a>
  32. {% else %}
  33. <a name="{{town.id}}">
  34. <p class="day-links">Day {{town.day}} -- {{town.date_}}</p>
  35. </a>
  36. {% endif %}
  37. <div class="town">
  38. {% if town.visits %}
  39. <h1>{{town.city}}. x{{town.visits + 1}}</h1>
  40. {% else %}
  41. <h1>{{town.city}}.</h1>
  42. {% endif %}
  43. {% if town.photos %}
  44. {% if town.photos|length == 1 %}
  45. <img data-src="/static/photos/{{ town.photos[0].filename }}" class="lazy townphoto solophoto">
  46. {% else %}
  47. <div id="{{town.id}}-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
  48. <!-- Indicators -->
  49. <ol class="carousel-indicators">
  50. {% for i in range(town.photos|length) %}
  51. {% if i == 0 %}
  52. <li data-target="#{{town.id}}-carousel" data-slide-to="{{i}}" class="active"></li>
  53. {% else %}
  54. <li data-target="#{{town.id}}-carousel" data-slide-to="{{i}}"></li>
  55. {% endif %}
  56. {% endfor %}
  57. </ol>
  58. <div class="carousel-inner">
  59. {% for i in range(town.photos|length) %}
  60. {% if i == 0 %}
  61. <div class="item active">
  62. <img data-src="/static/photos/{{
  63. town.photos[i].filename }}" class="lazy townphoto">
  64. {% if town.photos[i].comments %}
  65. <div class="carousel-caption d-none d-md-block">
  66. <p>{{ town.photos[i].comments }}</p>
  67. </div>
  68. {% endif %}
  69. </div>
  70. {% else %}
  71. <div class="item">
  72. <img data-src="/static/photos/{{
  73. town.photos[i].filename }}" class="lazy townphoto" >
  74. {% if town.photos[i].comments %}
  75. <div class="carousel-caption d-none d-md-block">
  76. <p>{{ town.photos[i].comments }}</p>
  77. </div>
  78. {% endif %}
  79. </div>
  80. {% endif %}
  81. {% endfor %}
  82. </div>
  83. <a class="left carousel-control" href="#{{town.id}}-carousel" data-slide="prev">
  84. <span class="glyphicon glyphicon-chevron-left"></span>
  85. <span class="sr-only">Previous</span>
  86. </a>
  87. <a class="right carousel-control" href="#{{town.id}}-carousel" data-slide="next">
  88. <span class="glyphicon glyphicon-chevron-right"></span>
  89. <span class="sr-only">Next</span>
  90. </a>
  91. </div>
  92. {% endif %}
  93. {% endif %}
  94. {% set city_html = 'stops/' + town.id + '.html' %}
  95. {% include city_html ignore missing %}
  96. </div>
  97. {% endfor %}
  98. </div>
  99. {% endblock %}