Merge "www: Remove unused files"
6203
www/static/common/css/bootstrap.css
vendored
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 619 B |
Before Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 169 B |
@ -1,12 +0,0 @@
|
|||||||
/**
|
|
||||||
* @preserve
|
|
||||||
* Project: Bootstrap Hover Dropdown
|
|
||||||
* Author: Cameron Spear
|
|
||||||
* Version: v2.0.11
|
|
||||||
* Contributors: Mattia Larentis
|
|
||||||
* Dependencies: Bootstrap's Dropdown plugin, jQuery
|
|
||||||
* Description: A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
|
|
||||||
* License: MIT
|
|
||||||
* Homepage: http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/
|
|
||||||
*/
|
|
||||||
!function($,n,e){var o=$();$.fn.dropdownHover=function(e){return"ontouchstart"in document?this:(o=o.add(this.parent()),this.each(function(){function t(e){o.find(":focus").blur(),h.instantlyCloseOthers===!0&&o.removeClass("open"),n.clearTimeout(c),i.addClass("open"),r.trigger(a)}var r=$(this),i=r.parent(),d={delay:500,instantlyCloseOthers:!0},s={delay:$(this).data("delay"),instantlyCloseOthers:$(this).data("close-others")},a="show.bs.dropdown",u="hide.bs.dropdown",h=$.extend(!0,{},d,e,s),c;i.hover(function(n){return i.hasClass("open")||r.is(n.target)?void t(n):!0},function(){c=n.setTimeout(function(){i.removeClass("open"),r.trigger(u)},h.delay)}),r.hover(function(n){return i.hasClass("open")||i.is(n.target)?void t(n):!0}),i.find(".dropdown-submenu").each(function(){var e=$(this),o;e.hover(function(){n.clearTimeout(o),e.children(".dropdown-menu").show(),e.siblings().children(".dropdown-menu").hide()},function(){var t=e.children(".dropdown-menu");o=n.setTimeout(function(){t.hide()},h.delay)})})}))},$(document).ready(function(){$('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this);
|
|
2114
www/static/common/js/bootstrap.js
vendored
@ -1,161 +0,0 @@
|
|||||||
/**
|
|
||||||
* Miscellaneous js functions for WebHelp
|
|
||||||
* Kasun Gajasinghe, http://kasunbg.blogspot.com
|
|
||||||
* David Cramer, http://www.thingbag.net
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
// $("#showHideHighlight").button(); //add jquery button styling to 'Go' button
|
|
||||||
//Generate tabs in nav-pane with JQuery
|
|
||||||
$(function() {
|
|
||||||
$("#tabs").tabs({
|
|
||||||
cookie: {
|
|
||||||
// store cookie for 2 days.
|
|
||||||
expires: 2
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
//Generate the tree
|
|
||||||
$("#ulTreeDiv").attr("style","");
|
|
||||||
$("#tree").treeview({
|
|
||||||
collapsed: true,
|
|
||||||
animated: "medium",
|
|
||||||
control: "#sidetreecontrol",
|
|
||||||
persist: "cookie"
|
|
||||||
});
|
|
||||||
|
|
||||||
//after toc fully styled, display it. Until loading, a 'loading' image will be displayed
|
|
||||||
$("#tocLoading").attr("style","display:none;");
|
|
||||||
// $("#ulTreeDiv").attr("style","display:block;");
|
|
||||||
|
|
||||||
//.searchButton is the css class applied to 'Go' button
|
|
||||||
$(function() {
|
|
||||||
$("button", ".searchButton").button();
|
|
||||||
|
|
||||||
$("button", ".searchButton").click(function() { return false; });
|
|
||||||
});
|
|
||||||
|
|
||||||
//'ui-tabs-1' is the cookie name which is used for the persistence of the tabs.(Content/Search tab)
|
|
||||||
if ($.cookie('ui-tabs-1') === '1') { //search tab is visible
|
|
||||||
if ($.cookie('textToSearch') != undefined && $.cookie('textToSearch').length > 0) {
|
|
||||||
document.getElementById('textToSearch').value = $.cookie('textToSearch');
|
|
||||||
Verifie('diaSearch_Form');
|
|
||||||
searchHighlight($.cookie('textToSearch'));
|
|
||||||
$("#showHideHighlight").css("display","block");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
syncToc(); //Synchronize the toc tree with the content pane, when loading the page.
|
|
||||||
//$("#doSearch").button(); //add jquery button styling to 'Go' button
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Synchronize with the tableOfContents
|
|
||||||
*/
|
|
||||||
function syncToc(){
|
|
||||||
var a = document.getElementById("webhelp-currentid");
|
|
||||||
if (a != undefined) {
|
|
||||||
var b = a.getElementsByTagName("a")[0];
|
|
||||||
|
|
||||||
if (b != undefined) {
|
|
||||||
//Setting the background for selected node.
|
|
||||||
var style = a.getAttribute("style");
|
|
||||||
if (style != null && !style.match(/background-color: Background;/)) {
|
|
||||||
a.setAttribute("style", "background-color: #DEE9E9; " + style);
|
|
||||||
b.setAttribute("style", "color: black;");
|
|
||||||
} else if (style != null) {
|
|
||||||
a.setAttribute("style", "background-color: #DEE9E9; " + style);
|
|
||||||
b.setAttribute("style", "color: black;");
|
|
||||||
} else {
|
|
||||||
a.setAttribute("style", "background-color: #DEE9E9; ");
|
|
||||||
b.setAttribute("style", "color: black;");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//shows the node related to current content.
|
|
||||||
//goes a recursive call from current node to ancestor nodes, displaying all of them.
|
|
||||||
while (a.parentNode && a.parentNode.nodeName) {
|
|
||||||
var parentNode = a.parentNode;
|
|
||||||
var nodeName = parentNode.nodeName;
|
|
||||||
|
|
||||||
if (nodeName.toLowerCase() == "ul") {
|
|
||||||
parentNode.setAttribute("style", "display: block;");
|
|
||||||
} else if (nodeName.toLocaleLowerCase() == "li") {
|
|
||||||
parentNode.setAttribute("class", "collapsable");
|
|
||||||
parentNode.firstChild.setAttribute("class", "hitarea collapsable-hitarea ");
|
|
||||||
}
|
|
||||||
a = parentNode;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Code for Show/Hide TOC
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
function showHideToc() {
|
|
||||||
var showHideButton = $("#showHideButton");
|
|
||||||
var leftNavigation = $("#leftnavigation");
|
|
||||||
var content = $("#content");
|
|
||||||
|
|
||||||
if (showHideButton != undefined && showHideButton.hasClass("pointLeft")) {
|
|
||||||
//Hide TOC
|
|
||||||
showHideButton.removeClass('pointLeft').addClass('pointRight');
|
|
||||||
content.css("margin", "0 0 0 0");
|
|
||||||
leftNavigation.css("display","none");
|
|
||||||
showHideButton.attr("title", "Show the TOC tree");
|
|
||||||
} else {
|
|
||||||
//Show the TOC
|
|
||||||
showHideButton.removeClass('pointRight').addClass('pointLeft');
|
|
||||||
content.css("margin", "0 0 0 280px");
|
|
||||||
leftNavigation.css("display","block");
|
|
||||||
showHideButton.attr("title", "Hide the TOC Tree");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Code for search highlighting
|
|
||||||
*/
|
|
||||||
var highlightOn = true;
|
|
||||||
function searchHighlight(searchText) {
|
|
||||||
highlightOn = true;
|
|
||||||
if (searchText != undefined) {
|
|
||||||
var wList;
|
|
||||||
var sList = new Array(); //stem list
|
|
||||||
//Highlight the search terms
|
|
||||||
searchText = searchText.toLowerCase().replace(/<\//g, "_st_").replace(/\$_/g, "_di_").replace(/\.|%2C|%3B|%21|%3A|@|\/|\*/g, " ").replace(/(%20)+/g, " ").replace(/_st_/g, "</").replace(/_di_/g, "%24_")
|
|
||||||
searchText = searchText.replace(/ +/g, " ");
|
|
||||||
searchText = searchText.replace(/ $/, "").replace(/^ /, "");
|
|
||||||
|
|
||||||
wList = searchText.split(" ");
|
|
||||||
$("#content").highlight(wList); //Highlight the search input
|
|
||||||
|
|
||||||
if(typeof stemmer != "undefined" ){
|
|
||||||
//Highlight the stems
|
|
||||||
for (var i = 0; i < wList.length; i++) {
|
|
||||||
var stemW = stemmer(wList[i]);
|
|
||||||
sList.push(stemW);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sList = wList;
|
|
||||||
}
|
|
||||||
$("#content").highlight(sList); //Highlight the search input's all stems
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function searchUnhighlight(){
|
|
||||||
highlightOn = false;
|
|
||||||
//unhighlight the search input's all stems
|
|
||||||
$("#content").unhighlight();
|
|
||||||
$("#content").unhighlight();
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleHighlight(){
|
|
||||||
if(highlightOn) {
|
|
||||||
searchUnhighlight();
|
|
||||||
} else {
|
|
||||||
searchHighlight($.cookie('textToSearch'));
|
|
||||||
}
|
|
||||||
}
|
|