Initial commit
This commit is contained in:
25
vendor/stefangabos/zebra_form/examples/public/javascript/core.js
vendored
Normal file
25
vendor/stefangabos/zebra_form/examples/public/javascript/core.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
hljs.initHighlightingOnLoad();
|
||||
|
||||
$('a').bind('click', function() { this.blur() });
|
||||
|
||||
var tab_selectors = $('.tabs a');
|
||||
|
||||
var tabs = $('.tab');
|
||||
|
||||
tab_selectors.each(function(index, selector) {
|
||||
$(selector).bind('click', function(e) {
|
||||
e.preventDefault();
|
||||
tab_selectors.removeClass('selected');
|
||||
$(this).addClass('selected');
|
||||
tabs.css('display', 'none');
|
||||
$(tabs[index]).css({
|
||||
'opacity': 0,
|
||||
'display': 'block'
|
||||
});
|
||||
$(tabs[index]).animate({'opacity': 1}, 250);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
5
vendor/stefangabos/zebra_form/examples/public/javascript/jquery-1.12.0.js
vendored
Normal file
5
vendor/stefangabos/zebra_form/examples/public/javascript/jquery-1.12.0.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user