Skip to content

Instantly share code, notes, and snippets.

@inkredabull
Created July 30, 2016 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inkredabull/6cbf1123018ff4b8d4d7bf96a398296e to your computer and use it in GitHub Desktop.
Save inkredabull/6cbf1123018ff4b8d4d7bf96a398296e to your computer and use it in GitHub Desktop.
1st Attempt Callout
<div class="alert alert-dismissible alert-warning b-callout" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong><i class="fa fa-info-circle" aria-hidden="true"></i> Important tips before you get started:</strong>
<ul>
<li class="b-callout__tip">
<strong>Select all possibly-correct answers</strong> to keep good contributors in your job when there's a 'gray area'
</li>
<li class="b-callout__tip">
<strong>Click "Skip" when in doubt</strong> to save time if providing good answer(s) or clear reasons looks hard to do quickly
</li>
</ul>
</div>
</div>
<script type="text/javascript">
var id = 'has_seen_tq_fte_callout';
CF.TestQuestions = CF.TestQuestions || {};
CF.TestQuestions.count = parseInt(<%= @job.golds_count %>);
if (!localStorage.getItem(id) && CF.TestQuestions.count == 0) {
jQuery('.b-callout').css('visibility','visible');
localStorage.setItem(id, true);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment