gonito/templates/challenge.julius

16 lines
566 B
Plaintext
Raw Normal View History

2015-09-06 14:24:49 +02:00
$(document).ready(function () {
var url = window.location;
$('.navbar-left').find('.active').removeClass('active');
$('.navbar-left li a').each(function () {
if (this.href == url) {
$(this).parent().addClass('active');
}
});
});
2017-09-27 19:38:42 +02:00
var input = document.querySelector('input[data-role=tagsinput]'),
tagify = new Tagify( input, {
whitelist: #{tagsAvailableAsJSON},
autocomplete: true,
enforeWhitelist: true});
input.style.display = 'none';