No changes
This commit is contained in:
parent
8680a02b13
commit
b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions
35
ControlPanel/modules/faq/faq.js
Normal file
35
ControlPanel/modules/faq/faq.js
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
window.location.hash = ''
|
||||
$(function() {
|
||||
$("#search").jcOnPageFilter({
|
||||
animateHideNShow: false,
|
||||
focusOnLoad: true,
|
||||
highlightColor: "yellow",
|
||||
textColorForHighlights: "#000000",
|
||||
caseSensitive: false,
|
||||
hideNegatives: true,
|
||||
parentLookupClass: "accordion-content",
|
||||
childBlockClass: "accordion-toggle, .faqanswer"
|
||||
});
|
||||
});
|
||||
|
||||
/* To make one of the topics the default use "accordion-content default" */
|
||||
$(document).ready(function($) {
|
||||
$('#accordion').find('.accordion-toggle').click(function(){
|
||||
|
||||
//Expand or collapse this panel
|
||||
$(this).next().slideToggle('fast');
|
||||
|
||||
//Hide the other panels
|
||||
$(".accordion-content").not($(this).next()).slideUp('fast');
|
||||
|
||||
});
|
||||
|
||||
$('.faqanswer').each(function(){
|
||||
$(this).html($(this).html().replace(/\n/g, '<br>'));
|
||||
$(this).find('pre').each(function(){
|
||||
$(this).html($(this).html().replace(/<br>/g, '\n'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
SyntaxHighlighter.all();
|
||||
Loading…
Add table
Add a link
Reference in a new issue