İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
$("#output").on("click", "#features img", function () {
|
||||
$(".pvtRendererArea").addClass("full-screen");
|
||||
|
||||
let elem = document.documentElement;
|
||||
if (elem.requestFullscreen) {
|
||||
elem.requestFullscreen();
|
||||
} else if (elem.mozRequestFullScreen) { /* Firefox */
|
||||
elem.mozRequestFullScreen();
|
||||
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
|
||||
elem.webkitRequestFullscreen();
|
||||
} else if (elem.msRequestFullscreen) { /* IE/Edge */
|
||||
elem.msRequestFullscreen();
|
||||
}
|
||||
});
|
||||
|
||||
$("#saveLoadAreaIndicator").click(function() {
|
||||
$("#saveLoadArea").toggleClass("active");
|
||||
});
|
||||
|
||||
$(document).on("fullscreenchange", function() {
|
||||
if (!document.fullscreenElement) {
|
||||
$(".pvtRendererArea").removeClass("full-screen");
|
||||
}
|
||||
});
|
||||
|
||||
$(window).resize(function () {
|
||||
setTimeout(function(){
|
||||
fixRendererAreaElementHeight();
|
||||
checkOrientation();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
|
||||
checkOrientation();
|
||||
|
||||
$(window).on("orientationchange", function(){
|
||||
setTimeout(function(){
|
||||
checkOrientation();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
$(".dropdown-menu .close").on("click", function (event) {
|
||||
$(this).parent().next().remove();
|
||||
$(this).parent().remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function fixRendererAreaElementHeight() {
|
||||
let rendererAreaElement = $(".pvtRendererArea");
|
||||
rendererAreaElement.css({"height": ($(window).height() - rendererAreaElement.position().top - 10).toString() + "px"});
|
||||
}
|
||||
|
||||
function checkOrientation(){
|
||||
var win = {
|
||||
w: window.innerWidth,
|
||||
h: window.innerHeight
|
||||
};
|
||||
if(win.w < 768){
|
||||
if(win.w < win.h){
|
||||
$("#war").css("display", "block");
|
||||
$("#main").css("display", "none");
|
||||
}
|
||||
else{
|
||||
$("#main").css("display", "block");
|
||||
$("#war").css("display", "none");
|
||||
}
|
||||
}
|
||||
else{
|
||||
$("#main").css("display", "block");
|
||||
$("#war").css("display", "none");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,77 @@
|
||||
(function () {
|
||||
var callWithJQuery;
|
||||
|
||||
callWithJQuery = function (pivotModule) {
|
||||
if (typeof exports === "object" && typeof module === "object") {
|
||||
return pivotModule(require("jquery"));
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
return define(["jquery"], pivotModule);
|
||||
} else {
|
||||
return pivotModule(jQuery);
|
||||
}
|
||||
};
|
||||
|
||||
callWithJQuery(function ($) {
|
||||
var frFmt, frFmtInt, frFmtPct, nf, tpl;
|
||||
nf = $.pivotUtilities.numberFormat;
|
||||
tpl = $.pivotUtilities.aggregatorTemplates;
|
||||
frFmt = nf({
|
||||
digitsAfterDecimal: 3,
|
||||
thousandsSep: " ",
|
||||
decimalSep: ","
|
||||
});
|
||||
frFmtInt = nf({
|
||||
digitsAfterDecimal: 0,
|
||||
thousandsSep: " ",
|
||||
decimalSep: ","
|
||||
});
|
||||
frFmtPct = nf({
|
||||
digitsAfterDecimal: 1,
|
||||
scaler: 100,
|
||||
suffix: "%",
|
||||
thousandsSep: " ",
|
||||
decimalSep: ","
|
||||
});
|
||||
return $.pivotUtilities.locales.de = {
|
||||
localeStrings: {
|
||||
renderError: "Bei der Darstellung der Pivot-Tabelle ist ein Fehler aufgetreten.",
|
||||
computeError: "Bei der Berechnung der Pivot-Tabelle ist ein Fehler aufgetreten.",
|
||||
uiRenderError: "Bei der Darstellung Oberfläche der Pivot-Tabelle ist ein Fehler aufgetreten.",
|
||||
selectAll: "Alles auswählen",
|
||||
selectNone: "Nichts auswählen",
|
||||
tooMany: "(zu viele für Liste)",
|
||||
filterResults: "Ergebnisse filtern",
|
||||
totals: "Gesamt",
|
||||
vs: "gegen",
|
||||
by: "pro"
|
||||
},
|
||||
aggregators: {
|
||||
"Anzahl": tpl.count(frFmtInt),
|
||||
"Anzahl eindeutiger Werte": tpl.countUnique(frFmtInt),
|
||||
"Liste eindeutiger Werte": tpl.listUnique(", "),
|
||||
"Summe": tpl.sum(frFmt),
|
||||
"Ganzzahlige Summe": tpl.sum(frFmtInt),
|
||||
"Durchschnitt": tpl.average(frFmt),
|
||||
"Minimum": tpl.min(frFmt),
|
||||
"Maximum": tpl.max(frFmt),
|
||||
"Summe über Summe": tpl.sumOverSum(frFmt),
|
||||
"80% Obergrenze": tpl.sumOverSumBound80(true, frFmt),
|
||||
"80% Untergrenze": tpl.sumOverSumBound80(false, frFmt),
|
||||
"Summe als Anteil von Gesamt": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
|
||||
"Summe als Anteil von Zeile": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
|
||||
"Summe als Anteil von Spalte": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
|
||||
"Anzahl als Anteil von Gesamt": tpl.fractionOf(tpl.count(), "total", frFmtPct),
|
||||
"Anzahl als Anteil von Zeile": tpl.fractionOf(tpl.count(), "row", frFmtPct),
|
||||
"Anzahl als Anteil von Spalte": tpl.fractionOf(tpl.count(), "col", frFmtPct)
|
||||
},
|
||||
renderers: {
|
||||
"Tabelle": $.pivotUtilities.renderers["Table"],
|
||||
"Tabelle mit Balkendiagramm": $.pivotUtilities.renderers["Table Barchart"],
|
||||
"Heatmap": $.pivotUtilities.renderers["Heatmap"],
|
||||
"Heatmap pro Zeile": $.pivotUtilities.renderers["Row Heatmap"],
|
||||
"Heatmap pro Spalte": $.pivotUtilities.renderers["Col Heatmap"]
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user