trumptracker.github.io/index.html
Alan Friedman d55ce0ba4f Restructure JSON to support status and comments on points
Statuses:
`broken` => `danger` class
`achieved` => `success` class
2016-11-13 21:15:24 -05:00

106 lines
5.5 KiB
HTML

---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: page
---
<div class="container">
<div class="row search-results" style="display:none">
<div class="col-md-12">
<ul class="list-group" id="search-results">
</ul>
</div>
</div>
<div class="row">
<div class="col-md-6">
<ul class="list-group">
<li class="list-group-item list-group-item inauguration-time-container"> <i class="fa fa-home fa-fw"></i> <b id="inauguration-time">Days Till Inauguration: <span id="inauguration-days"></span></b></li>
<li class="list-group-item list-group-item"> <i class="fa fa-calendar fa-fw"></i> <b>Days In Office: <span id="days-in-office"></span> </b></li>
<li class="list-group-item list-group-item-info"> <i class="fa fa-hourglass-start fa-fw"></i> Not Yet Started: 201 of 201</li>
<li class="list-group-item list-group-item-warning"> <i class="fa fa-cogs fa-fw"></i> In Progress: 0 of 201</li>
<li class="list-group-item list-group-item-success"> <i class="fa fa-check-circle-o fa-fw"></i> Achieved: 0 of 201</li>
<li class="list-group-item list-group-item-danger"> <i class="fa fa-ban fa-fw"></i> Broken: 0 of 201</li>
</ul>
<p>
On Tuesday November 8th, 2016, Donald John Trump won the electoral vote and is currently standing to be the President-elect of the United States of America.
<br /><br />
He made <b>a lot of promises</b>. Trump Tracker will fact-check and see if he adheres to all of his stands on policies regarding culture, immigration, economy, and many more.
</p>
<div class="">
<!-- I got these buttons from simplesharebuttons.com -->
<div id="share-buttons">
<!-- Facebook -->
<a href="http://www.facebook.com/sharer.php?u=https://trumptracker.github.io/" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/facebook.png" alt="Facebook" />
</a>
<!-- Google+ -->
<a href="https://plus.google.com/share?url=https://trumptracker.github.io/" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/google.png" alt="Google" />
</a>
<!-- Twitter -->
<a href="https://twitter.com/share?url=https://trumptracker.github.io/&amp;text=Track Donald J Trump's Electoral Promises with Trump Tracker.&amp;hashtags=TrumpTracker&amp;via=VirenMohindra" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/twitter.png" alt="Twitter" />
</a>
</div>
</div>
</div>
<div class="col-md-6">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/7eruPYTOZb0"></iframe>
</div>
</div>
</div>
</div>
<br />
<div class="container-fluid">
<div class="row">
<ul class="nav nav-tabs" id="myTabs" role="tablist">
{% for tab in site.data.data.tabs %}
<li role="presentation" class="{{tab.id}} {% if forloop.index == 1 %}active{% endif %}">
<a href="#{{tab.id}}" aria-controls="{{tab.id}}" role="tab" data-toggle="tab">
<i class="fa fa-{{tab.icon}}"></i> {{tab.name}}
</a>
</li>
{% endfor %}
</ul>
</div>
<div>
<!-- Tab panes -->
<div class="tab-content">
{% for tab in site.data.data.tabs %}
<div role="tabpanel" class="tab-pane {% if forloop.index == 1 %}active{% endif %} fade in" id="{{tab.id}}">
<div class="row">
<div class="input-group">
<div class="input-group-addon"><span>Search </span></div>
<input type="text" placeholder="keyword" class="form-control search"/>
</div>
{% for section in tab.sections %}
<table class="table">
<thead>
<tr>
<td></td>
<th><a href="{{section.link}}">{{section.header}}</a></th>
</tr>
</thead>
<tbody>
{% for point in section.points %}
<tr class="{% if point.status == 'broken' %}danger{% endif %} {% if point.status == 'achieved' %}success{% endif %}">
<th>{{forloop.index}}</th>
<td>{{point.text}}</td>
<td>
{% if point.comments %}
<a href="{{point.comments}}" target="_blank" rel="nofollow">Comment</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>