-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
11,618 additions
and
1,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
var ResourcesTool = function() { | ||
this.init = function() { | ||
$(".tab-label").on("click", function() { | ||
$(this).toggleClass("active"); | ||
}); | ||
$(".tab-label").trigger("click"); | ||
this.handlePrint(); | ||
}; | ||
this.handlePrint = function() { | ||
var self = this; | ||
$("#homeFooter").addClass("hidden-print"); | ||
self.startTime = new Date(); | ||
self.tVar = setInterval(function(){ | ||
self.endTime = new Date(); | ||
var elapsedTime = self.endTime - self.startTime; | ||
elapsedTime /= 1000; | ||
if (!$("#tnthNavWrapper").hasClass("no-fouc") || elapsedTime >= 3) { | ||
$("#mainNav, #tnthNavWrapper, .watermark").each(function() { | ||
$(this).addClass("hidden-print"); | ||
}); | ||
clearInterval(self.tVar); | ||
} | ||
}, 1000); | ||
$(".work-instruction-printicon").on("click", function(e) { | ||
e.stopPropagation(); | ||
window.print(); | ||
}); | ||
}; | ||
}; | ||
|
||
$(function() { | ||
(new ResourcesTool()).init(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "eproms/base.html" %} | ||
{% block main %} | ||
<h3 class="tnth-headline">{{_("Resources")}}</h3> | ||
<article id="resourcesContentContainer"> | ||
<section class="tabs-container"> | ||
{% if video_content|length > 0 %} | ||
<div class="tab"> | ||
<input id="tab-one" type="checkbox" name="tabs" class="tab-input"> | ||
<label for="tab-one" class="tab-label">{{_("Videos")}}</label> | ||
<div class="tab-content"> | ||
<ul> | ||
{% for video in video_content %} | ||
<li class="work-instruction-item">{{video | safe}}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="tab"> | ||
<input id="tab-two" type="checkbox" name="tabs" class="tab-input"> | ||
<label for="tab-two" class="tab-label">{{_("Work Instructions")}}</label> | ||
<div class="tab-content"> | ||
<ul> | ||
{% for asset in results %} | ||
{% if 'video' not in asset['tags'] %} | ||
<li class="work-instruction-item"> | ||
<a href="{{url_for('.work_instruction', tag=asset['tags'][1])}}" class="first-letter">{{asset['title']}}</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
</article> | ||
<script src="{{url_for('.static', filename='js/resources.js')}}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "eproms/base.html" %} | ||
{% block main %} | ||
<h4 class="tnth-headline work-instruction-title"> | ||
<span>{{_("Work Instructions")}}</span> | ||
<div class="pull-right work-instruction-icons hidden-print"> | ||
<span class="glyphicon glyphicon-print work-instruction-printicon" title="{{_('Print')}}"></span> | ||
<a href="{{url_for('.resources')}}"><span class="glyphicon glyphicon-menu-left" title="{{_('Back to Resources')}}"></span></a> | ||
</div> | ||
</h4> | ||
<div class="work-instruction-content"> | ||
<h3 class="work-instruction-content-heading first-letter">{{title | replace('-', ' ')}}</h3> | ||
<div>{{content|safe}}</div> | ||
</div> | ||
<script src="{{url_for('.static', filename='js/resources.js')}}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.