umzug auf gitea
This commit is contained in:
4
Makefile
Normal file
4
Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
git-%:
|
||||
git add .
|
||||
git commit -m "$(@:git-%=%)"
|
||||
git push origin master
|
||||
2
TODO
Normal file
2
TODO
Normal file
@@ -0,0 +1,2 @@
|
||||
wenn box erstellt wird alle teile in der tabelle Bauteile der lieferbox zuordnen (am besten in der DBSachen.php eine eigene funktion like updateLieferbox(TXLCode){...})
|
||||
|
||||
144
css/auswertung.css
Normal file
144
css/auswertung.css
Normal file
@@ -0,0 +1,144 @@
|
||||
div .invisible{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
#btnEinzelbox{ margin: 0px 0px 10px 10px; }
|
||||
#btnLieferung{ margin: 0px 0px 10px 10px; }
|
||||
#divAuswertungen{ padding: 20px 0px 0px 10px; }
|
||||
|
||||
#lieferSteuerBtns{ position: relative; top: 10px; }
|
||||
#LieferdatenDiv{ position: absolute; top: 140px; }
|
||||
#tbPONr, #inpLieferDatum{ font-size: 1.1em; }
|
||||
#tbPONr{ position: absolute; top: 13px; left: 140px; }
|
||||
#inpLieferDatum{ position: absolute; top: 50px; left: 140px; }
|
||||
|
||||
#zuLieferndeBoxen{
|
||||
width: 85px;
|
||||
height: 440px;
|
||||
position: absolute;
|
||||
top: 240px;
|
||||
}
|
||||
#lbBoxen{
|
||||
width: 65px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#gewaehlteBoxen{
|
||||
position: absolute;
|
||||
top: 240px;
|
||||
left: 150px;
|
||||
}
|
||||
#gewaehlteBoxen>table>tbody>tr>td>input{
|
||||
margin-top: 1px;
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
#messdaten{
|
||||
position: absolute;
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
width: auto;
|
||||
height: 510px;
|
||||
top: 160px;
|
||||
left: 390px;
|
||||
box-shadow: 1px 1px 12px black;
|
||||
}
|
||||
|
||||
#tblMessdatenFuerLieferung>tbody>tr{
|
||||
text-shadow: 2px 2px 5px black;
|
||||
box-shadow: 2px 2px 6px black;
|
||||
}
|
||||
|
||||
#tblMessdatenFuerLieferung{
|
||||
border-spacing: 0px;
|
||||
text-shadow: 1px 1px 6px red;
|
||||
}
|
||||
#tblMessdatenFuerLieferung>tbody>tr>td{
|
||||
border-top: solid black 1px;
|
||||
border-left: solid black 1px;
|
||||
}
|
||||
|
||||
#tblMessdatenFuerLieferung>tbody>tr:nth-child(even) {background-color: #f2f2f2}
|
||||
#tblMessdatenFuerLieferung>tbody>tr:nth-child(odd) {background-color: #12f2f2}
|
||||
#tblMessdatenFuerLieferung>tbody>tr:hover {background-color: #f2f212}
|
||||
#tblMessdatenFuerLieferung>tbody>tr>th{
|
||||
border-left: solid black 1px;
|
||||
background-color: #11dd11;
|
||||
text-shadow: 0px 0px 0px;
|
||||
}
|
||||
|
||||
|
||||
#einzelbox{
|
||||
position: relative;
|
||||
border: solid black 1px;
|
||||
min-height: 330px;
|
||||
max-height: 330px;
|
||||
min-width: 855px;
|
||||
max-width: 855px;
|
||||
padding: 10px 10px 0px 10px;
|
||||
}
|
||||
|
||||
#divSelects{
|
||||
display: flex;
|
||||
float: left;
|
||||
height: auto;
|
||||
width: 98%;
|
||||
border-bottom: solid black 1px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#divSelects select{
|
||||
width: 75px;
|
||||
border-radius: 5px;
|
||||
margin-right: 5px;
|
||||
text-align: center;
|
||||
box-shadow: 2px 2px 6px black;
|
||||
}
|
||||
|
||||
#tblMesswerte{
|
||||
border-spacing: 0px;
|
||||
text-shadow: 1px 1px 6px red;
|
||||
}
|
||||
#tblMesswerte>tbody>tr>td{
|
||||
border-top: solid black 1px;
|
||||
border-left: solid black 1px;
|
||||
}
|
||||
|
||||
#tblMesswerte>tbody>tr:nth-child(even) {background-color: #f2f2f2}
|
||||
#tblMesswerte>tbody>tr:nth-child(odd) {background-color: #12f2f2}
|
||||
#tblMesswerte>tbody>tr:hover {background-color: #f2f212}
|
||||
#tblMesswerte>tbody>tr>td:hover {background-color: #12a212}
|
||||
|
||||
|
||||
#grafiken{
|
||||
display: flex;
|
||||
float: left;
|
||||
margin-top: 15px;
|
||||
|
||||
/*
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 950px;
|
||||
width: 830px;
|
||||
height: 600px;
|
||||
padding-left: 25px;
|
||||
*/
|
||||
}
|
||||
#chart{
|
||||
background: #cfcfcf;
|
||||
border: solid black 1px;
|
||||
box-shadow: 1px 1px 5px black;
|
||||
}
|
||||
#chart2{
|
||||
background: #cfcfcf;
|
||||
border: solid black 1px;
|
||||
box-shadow: 1px 1px 5px black;
|
||||
|
||||
}
|
||||
|
||||
#grafiken>table>tbody>tr>td>button{
|
||||
width: 75px;
|
||||
height: 30px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
54
css/auswertung_.css
Normal file
54
css/auswertung_.css
Normal file
@@ -0,0 +1,54 @@
|
||||
#results.table>tbody>tr>td{
|
||||
text-align: center;
|
||||
font-size:1.1em;
|
||||
height: 41px;
|
||||
border-left: solid black 1px;
|
||||
}
|
||||
|
||||
#results.table>tbody>tr:hover{
|
||||
background: #ccc;
|
||||
/*font-size: 1.1em;*/
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#tbld_id{display: none;}
|
||||
|
||||
#tblMesswerte{
|
||||
border: solid black 2px;
|
||||
width: 450px;
|
||||
font-family: Hack;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
#tblHeader{
|
||||
font-family: Hack;
|
||||
font-weight: bold;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
#tblMesswerte>tbody>tr>td{
|
||||
|
||||
padding: 2px 5px 2px 5px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
#results.table>tbody>tr>td:hover{
|
||||
*background: #3f5;
|
||||
}
|
||||
|
||||
#tbld_AbformComm,#tbld_LieferComm,#tbld_MessComm,#tbld_RauComm,#tbld_statusComm{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#tbld_OL1,#tbld_OL2,#tbld_OW1,#tbld_OW2,
|
||||
#tbld_R11,#tbld_R12,#tbld_R13,
|
||||
#tbld_R21,#tbld_R22,#tbld_R23,
|
||||
#tbld_R31,#tbld_R32,#tbld_R33,
|
||||
#tbld_R41,#tbld_R42,#tbld_R43,
|
||||
#tbld_CW,#tbld_LW
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
*/
|
||||
5771
css/bootstrap.min.css
vendored
Normal file
5771
css/bootstrap.min.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
71
css/boxenerstellung.css
Normal file
71
css/boxenerstellung.css
Normal file
@@ -0,0 +1,71 @@
|
||||
#boxenerstellung{
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
width: 355px;
|
||||
height: 460px;
|
||||
font-family: Hack;
|
||||
font-size: 0.9em;
|
||||
border: solid black 1px;
|
||||
border-radius: 7px;
|
||||
background: rgba(112, 151, 60, 0.4);
|
||||
box-shadow: 4px 4px 16px black;
|
||||
text-shadow: 1px 1px 3px #000;
|
||||
}
|
||||
|
||||
#divCodeUndBox{ position: relative; top: 15px; left: 15px; width: 325px; font-size: 1.5em;}
|
||||
|
||||
#tbBoxNr{ width: 75px; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tbTXLCode{ width: 130px; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
|
||||
#divBoxinhalt{ position: relative; width: 330px; height: 330px; top: 45px; left:20px;}
|
||||
#lblBoxInhalt{ position: relative; top: -10px; }
|
||||
#selBauteile{
|
||||
width: 170px;
|
||||
height: 270px;
|
||||
font-size: 1.6em;
|
||||
border: solid black 1px;
|
||||
box-shadow: 0 0 2px black;
|
||||
}
|
||||
|
||||
#divComments{
|
||||
position: relative;
|
||||
width: 125px;
|
||||
height: 335px;
|
||||
left: 180px;
|
||||
top: -295px;
|
||||
font-size: 1.3em;
|
||||
border-left: solid black 1px;
|
||||
padding-left: 10px;
|
||||
|
||||
}
|
||||
.tbCom{
|
||||
width: 90px;
|
||||
left: 10px;
|
||||
border: solid black 1px;
|
||||
box-shadow: 0 0 2px black;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
#lblCom{ font-size: 0.75em; position: absolute; top: -4px; left: 10px;}
|
||||
|
||||
#BETMPType{
|
||||
position: absolute;
|
||||
transform: rotate(-90deg);
|
||||
font-size: 7.8em;
|
||||
font-weight: bold;
|
||||
top: -70px;
|
||||
left: 300px;
|
||||
height: 140px;
|
||||
z-index: -20;
|
||||
}
|
||||
|
||||
#divBtns{
|
||||
position: absolute;
|
||||
left: 380px;
|
||||
top: 260px;
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
#btnReset{ width: 155px; text-align: center; box-shadow: 4px 4px 16px black;}
|
||||
#btnDelLast{ width: 155px; text-align: center; margin-top: 10px; box-shadow: 4px 4px 16px black;}
|
||||
#btnCreateBox{ width: 155px; text-align: center; margin-top: 10px; box-shadow: 4px 4px 16px black; display: block}
|
||||
167
css/c3.css
Normal file
167
css/c3.css
Normal file
@@ -0,0 +1,167 @@
|
||||
/*-- Chart --*/
|
||||
.c3 svg {
|
||||
font: 10px sans-serif;
|
||||
-webkit-tap-highlight-color: transparent; }
|
||||
|
||||
.c3 path, .c3 line {
|
||||
fill: none;
|
||||
stroke: #000; }
|
||||
|
||||
.c3 text {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none; }
|
||||
|
||||
.c3-legend-item-tile,
|
||||
.c3-xgrid-focus,
|
||||
.c3-ygrid,
|
||||
.c3-event-rect,
|
||||
.c3-bars path {
|
||||
shape-rendering: crispEdges; }
|
||||
|
||||
.c3-chart-arc path {
|
||||
stroke: #fff; }
|
||||
|
||||
.c3-chart-arc text {
|
||||
fill: #fff;
|
||||
font-size: 13px; }
|
||||
|
||||
/*-- Axis --*/
|
||||
/*-- Grid --*/
|
||||
.c3-grid line {
|
||||
stroke: #aaa; }
|
||||
|
||||
.c3-grid text {
|
||||
fill: #aaa; }
|
||||
|
||||
.c3-xgrid, .c3-ygrid {
|
||||
stroke-dasharray: 3 3; }
|
||||
|
||||
/*-- Text on Chart --*/
|
||||
.c3-text.c3-empty {
|
||||
fill: #808080;
|
||||
font-size: 2em; }
|
||||
|
||||
/*-- Line --*/
|
||||
.c3-line {
|
||||
stroke-width: 1px; }
|
||||
|
||||
/*-- Point --*/
|
||||
.c3-circle._expanded_ {
|
||||
stroke-width: 1px;
|
||||
stroke: white; }
|
||||
|
||||
.c3-selected-circle {
|
||||
fill: white;
|
||||
stroke-width: 2px; }
|
||||
|
||||
/*-- Bar --*/
|
||||
.c3-bar {
|
||||
stroke-width: 0; }
|
||||
|
||||
.c3-bar._expanded_ {
|
||||
fill-opacity: 0.75; }
|
||||
|
||||
/*-- Focus --*/
|
||||
.c3-target.c3-focused {
|
||||
opacity: 1; }
|
||||
|
||||
.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
|
||||
stroke-width: 2px; }
|
||||
|
||||
.c3-target.c3-defocused {
|
||||
opacity: 0.3 !important; }
|
||||
|
||||
/*-- Region --*/
|
||||
.c3-region {
|
||||
fill: steelblue;
|
||||
fill-opacity: .1; }
|
||||
|
||||
/*-- Brush --*/
|
||||
.c3-brush .extent {
|
||||
fill-opacity: .1; }
|
||||
|
||||
/*-- Select - Drag --*/
|
||||
/*-- Legend --*/
|
||||
.c3-legend-item {
|
||||
font-size: 12px; }
|
||||
|
||||
.c3-legend-item-hidden {
|
||||
opacity: 0.15; }
|
||||
|
||||
.c3-legend-background {
|
||||
opacity: 0.75;
|
||||
fill: white;
|
||||
stroke: lightgray;
|
||||
stroke-width: 1; }
|
||||
|
||||
/*-- Title --*/
|
||||
.c3-title {
|
||||
font: 14px sans-serif; }
|
||||
|
||||
/*-- Tooltip --*/
|
||||
.c3-tooltip-container {
|
||||
z-index: 10; }
|
||||
|
||||
.c3-tooltip {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
background-color: #fff;
|
||||
empty-cells: show;
|
||||
-webkit-box-shadow: 7px 7px 12px -9px #777777;
|
||||
-moz-box-shadow: 7px 7px 12px -9px #777777;
|
||||
box-shadow: 7px 7px 12px -9px #777777;
|
||||
opacity: 0.9; }
|
||||
|
||||
.c3-tooltip tr {
|
||||
border: 1px solid #CCC; }
|
||||
|
||||
.c3-tooltip th {
|
||||
background-color: #aaa;
|
||||
font-size: 14px;
|
||||
padding: 2px 5px;
|
||||
text-align: left;
|
||||
color: #FFF; }
|
||||
|
||||
.c3-tooltip td {
|
||||
font-size: 13px;
|
||||
padding: 3px 6px;
|
||||
background-color: #fff;
|
||||
border-left: 1px dotted #999; }
|
||||
|
||||
.c3-tooltip td > span {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 6px; }
|
||||
|
||||
.c3-tooltip td.value {
|
||||
text-align: right; }
|
||||
|
||||
/*-- Area --*/
|
||||
.c3-area {
|
||||
stroke-width: 0;
|
||||
opacity: 0.2; }
|
||||
|
||||
/*-- Arc --*/
|
||||
.c3-chart-arcs-title {
|
||||
dominant-baseline: middle;
|
||||
font-size: 1.3em; }
|
||||
|
||||
.c3-chart-arcs .c3-chart-arcs-background {
|
||||
fill: #e0e0e0;
|
||||
stroke: none; }
|
||||
|
||||
.c3-chart-arcs .c3-chart-arcs-gauge-unit {
|
||||
fill: #000;
|
||||
font-size: 16px; }
|
||||
|
||||
.c3-chart-arcs .c3-chart-arcs-gauge-max {
|
||||
fill: #777; }
|
||||
|
||||
.c3-chart-arcs .c3-chart-arcs-gauge-min {
|
||||
fill: #777; }
|
||||
|
||||
.c3-chart-arc .c3-gauge-value {
|
||||
fill: #000;
|
||||
/* font-size: 28px !important;*/ }
|
||||
7
css/converter.css
Normal file
7
css/converter.css
Normal file
@@ -0,0 +1,7 @@
|
||||
#tblToConvert{
|
||||
|
||||
width: 550px;
|
||||
height: 750px;
|
||||
border: dotted red 1px;
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
53
css/deckblatt.css
Normal file
53
css/deckblatt.css
Normal file
@@ -0,0 +1,53 @@
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #FAFAFA;
|
||||
font: 12pt "Tahoma";
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
}
|
||||
|
||||
.page {
|
||||
width: 210mm;
|
||||
min-height: 297mm;
|
||||
padding: 20mm;
|
||||
margin: 10mm auto;
|
||||
border: 1px #D3D3D3 solid;
|
||||
border-radius: 5px;
|
||||
background: white;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.subpage {
|
||||
padding: 1px;
|
||||
border: 1px red dashed;
|
||||
height: 257mm;
|
||||
outline: 2cm #FFEAEA solid;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media print {
|
||||
html, body {
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
}
|
||||
|
||||
.page {
|
||||
margin: 0;
|
||||
border: initial;
|
||||
border-radius: initial;
|
||||
width: initial;
|
||||
min-height: initial;
|
||||
box-shadow: initial;
|
||||
background: initial;
|
||||
page-break-after: always;
|
||||
}
|
||||
135
css/impromptu.css
Normal file
135
css/impromptu.css
Normal file
@@ -0,0 +1,135 @@
|
||||
/*! jQuery-Impromptu - v6.2.2 - 2015-11-14
|
||||
* http://trentrichardson.com/Impromptu
|
||||
* Copyright (c) 2015 Trent Richardson; Licensed MIT */
|
||||
.jqifade{
|
||||
position: absolute;
|
||||
background-color: #777777;
|
||||
}
|
||||
iframe.jqifade{
|
||||
display:block;
|
||||
z-index:-1;
|
||||
}
|
||||
div.jqi{
|
||||
width: 400px;
|
||||
max-width:90%;
|
||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
font-size: 11px;
|
||||
text-align: left;
|
||||
border: solid 1px #eeeeee;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
padding: 7px;
|
||||
}
|
||||
div.jqi .jqicontainer{
|
||||
}
|
||||
div.jqi .jqiclose{
|
||||
position: absolute;
|
||||
top: 4px; right: -2px;
|
||||
width: 18px;
|
||||
cursor: default;
|
||||
color: #bbbbbb;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.jqi .jqistate{
|
||||
background-color: #fff;
|
||||
}
|
||||
div.jqi .jqititle{
|
||||
padding: 5px 10px;
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
border-bottom: solid 1px #eeeeee;
|
||||
}
|
||||
div.jqi .jqimessage{
|
||||
padding: 10px;
|
||||
line-height: 20px;
|
||||
color: #444444;
|
||||
overflow: auto;
|
||||
}
|
||||
div.jqi .jqibuttonshide{
|
||||
display: none;
|
||||
}
|
||||
div.jqi .jqibuttons{
|
||||
text-align: right;
|
||||
margin: 0 -7px -7px -7px;
|
||||
border-top: solid 1px #e4e4e4;
|
||||
background-color: #f4f4f4;
|
||||
border-radius: 0 0 6px 6px;
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
-webkit-border-radius: 0 0 6px 6px;
|
||||
}
|
||||
div.jqi .jqibuttons button{
|
||||
margin: 0;
|
||||
padding: 15px 20px;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
border: none;
|
||||
border-left: solid 1px #e4e4e4;
|
||||
color: #777;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
div.jqi .jqibuttons button.jqidefaultbutton{
|
||||
color: #489afe;
|
||||
}
|
||||
div.jqi .jqibuttons button:hover,
|
||||
div.jqi .jqibuttons button:focus{
|
||||
color: #287ade;
|
||||
outline: none;
|
||||
}
|
||||
div.jqi .jqibuttons button[disabled]{
|
||||
color: #aaa;
|
||||
}
|
||||
.jqiwarning .jqi .jqibuttons{
|
||||
background-color: #b95656;
|
||||
}
|
||||
|
||||
/* sub states */
|
||||
div.jqi .jqiparentstate::after{
|
||||
background-color: #777;
|
||||
opacity: 0.6;
|
||||
filter: alpha(opacity=60);
|
||||
content: '';
|
||||
position: absolute;
|
||||
top:0;left:0;bottom:0;right:0;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
}
|
||||
div.jqi .jqisubstate{
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 20%;
|
||||
width: 60%;
|
||||
padding: 7px;
|
||||
border: solid 1px #eeeeee;
|
||||
border-top: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
-webkit-border-radius: 0 0 6px 6px;
|
||||
}
|
||||
div.jqi .jqisubstate .jqibuttons button{
|
||||
padding: 10px 18px;
|
||||
}
|
||||
|
||||
/* arrows for tooltips/tours */
|
||||
.jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}
|
||||
|
||||
.jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
|
||||
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
|
||||
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }
|
||||
|
||||
8
css/le.css
Normal file
8
css/le.css
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
body { font-family: Hack; }
|
||||
table { font-size: 1em; }
|
||||
|
||||
.ui-draggable, .ui-droppable { background-position: top; }
|
||||
|
||||
|
||||
|
||||
93
css/main.css
Normal file
93
css/main.css
Normal file
File diff suppressed because one or more lines are too long
244
css/menubar.css
Normal file
244
css/menubar.css
Normal file
@@ -0,0 +1,244 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Droid+Sans);
|
||||
|
||||
.menu_templ{
|
||||
width:750px;
|
||||
/*background-color:#709700;*/
|
||||
border-radius: 5px 5px 0 0;
|
||||
height: 35px;
|
||||
padding-top: 1px;
|
||||
padding-left: 1px;
|
||||
box-shadow: 0px 0px 7px #000000;
|
||||
}
|
||||
|
||||
ul#menu,ul#menu ul{
|
||||
margin:0;
|
||||
list-style:none;
|
||||
padding:0;
|
||||
}
|
||||
ul#menu,ul#menu .submenu{
|
||||
background-color:#FFFFFF;
|
||||
border: solid 1px #b2b2b4;
|
||||
-moz-border-radius:5px 5px 0 0;
|
||||
-webkit-border-radius:5px 5px 0 0;
|
||||
border-radius:5px 5px 0 0;
|
||||
}
|
||||
#menu{
|
||||
height: 30px;
|
||||
}
|
||||
ul#menu .submenu{
|
||||
visibility:hidden;
|
||||
position:absolute;
|
||||
left:-1px;
|
||||
top:100%;
|
||||
opacity:0;
|
||||
-moz-transition:all 0.5s;
|
||||
-webkit-transition:opacity 0.5s;
|
||||
-o-transition:opacity 0.5s,visibility 0.5s;
|
||||
transition:opacity 0.5s;
|
||||
float:left;
|
||||
z-index:2;
|
||||
background-color:#FFFFFF;
|
||||
background-image:-o-linear-gradient(-90deg,rgba(44,160,202,0),rgba(0,0,0,0.1));
|
||||
background-image:-moz-linear-gradient(-90deg,rgba(44,160,202,0),rgba(0,0,0,0.1));
|
||||
background-image:linear-gradient(180deg,rgba(44,160,202,0),rgba(0,0,0,0.1));
|
||||
background-image:-webkit-linear-gradient(-90deg,rgba(44,160,202,0),rgba(0,0,0,0.1));
|
||||
border-width:1px;
|
||||
border-radius:0px 0px 4px 4px;
|
||||
-moz-border-radius:0px 0px 4px 4px;
|
||||
-webkit-border-radius:0px;
|
||||
-webkit-border-bottom-right-radius:4px;
|
||||
-webkit-border-bottom-left-radius:4px;
|
||||
border-style:solid;
|
||||
border-color:#FFFFFF #bfc1c2 #bfc1c2 #bfc1c2;
|
||||
-moz-box-shadow:0 5px 5px rgba(20, 20, 25, 0.2), 0 0 0 1px #FFFFFF inset;
|
||||
-webkit-box-shadow:0 5px 5px rgba(20, 20, 25, 0.2), 0 0 0 1px #FFFFFF inset;
|
||||
box-shadow:0 5px 5px rgba(20, 20, 25, 0.2), 0 0 0 1px #FFFFFF inset;
|
||||
padding:5px;
|
||||
}
|
||||
ul#menu li:hover>.submenu{
|
||||
visibility:visible;
|
||||
opacity:1;
|
||||
}
|
||||
ul#menu li{
|
||||
position:relative;
|
||||
display:block;
|
||||
white-space:nowrap;
|
||||
font-size:1.4em;
|
||||
float:left;
|
||||
}
|
||||
ul#menu li:hover{
|
||||
z-index:1;
|
||||
}
|
||||
ul#menu ul .submenu{
|
||||
position:absolute;
|
||||
left:99%;
|
||||
top:0;
|
||||
border-radius:6px;
|
||||
-moz-border-radius:6px;
|
||||
-webkit-border-radius:6px;
|
||||
border-color:#bfc1c2;
|
||||
}
|
||||
ul#menu{
|
||||
font-size: 1.3em;
|
||||
z-index:999;
|
||||
position:relative;
|
||||
display:inline-block;
|
||||
padding:0;
|
||||
-moz-box-shadow:0 2px 0 #bfbfbf;
|
||||
-webkit-box-shadow:0 2px 0 #bfbfbf;
|
||||
box-shadow:0 2px 0 #bfbfbf;
|
||||
}
|
||||
ul#menu .column{
|
||||
float:left;
|
||||
}
|
||||
* html ul#menu li a{
|
||||
display:inline-block;
|
||||
}
|
||||
ul#menu>li{
|
||||
margin:0;
|
||||
}
|
||||
ul#menu a:active, ul#menu a:focus{
|
||||
outline-style:none;
|
||||
}
|
||||
ul#menu a:hover{
|
||||
text-decoration: underline;
|
||||
font-size: 0.6em;
|
||||
}
|
||||
ul#menu a{
|
||||
display:block;
|
||||
vertical-align:middle;
|
||||
text-align:left;
|
||||
text-decoration: none;
|
||||
font:0.6em 'Droid Sans', "Lucida Sans Unicode", "Lucida Grande", sans-serif;
|
||||
color:#709700;
|
||||
padding:4px 15px;
|
||||
background-color:;
|
||||
background-image:-o-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:-moz-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:-webkit-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-repeat:repeat;
|
||||
background-position:0 0;
|
||||
border-width:0px;
|
||||
border-style:none;
|
||||
border-color:;
|
||||
}
|
||||
ul#menu ul li{
|
||||
float:none;
|
||||
margin:0;
|
||||
}
|
||||
ul#menu ul a{
|
||||
text-align:left;
|
||||
padding:5px;
|
||||
-moz-box-shadow:none;
|
||||
-webkit-box-shadow:none;
|
||||
box-shadow:none;
|
||||
background-color:none;
|
||||
background-image:none;
|
||||
border-width:0;
|
||||
border-style:none;
|
||||
border-radius:6px;
|
||||
-moz-border-radius:6px;
|
||||
-webkit-border-radius:6px;
|
||||
color:#92979E;
|
||||
text-decoration:none;
|
||||
}
|
||||
ul#menu li:hover>a,ul#menu li a.pressed{
|
||||
border-style:none;
|
||||
color:#92979E;
|
||||
background-image:-o-linear-gradient(-90deg,rgba(85,85,85,0.13),rgba(255,255,255,0));
|
||||
background-image:-moz-linear-gradient(-90deg,rgba(85,85,85,0.13),rgba(255,255,255,0));
|
||||
background-image:linear-gradient(180deg,rgba(85,85,85,0.13),rgba(255,255,255,0));
|
||||
background-image:-webkit-linear-gradient(-90deg,rgba(85,85,85,0.13),rgba(255,255,255,0));
|
||||
background-position:0 100%;
|
||||
text-decoration:none;
|
||||
}
|
||||
ul#menu img{
|
||||
border:none;
|
||||
vertical-align:middle;
|
||||
margin-right:13px;
|
||||
}
|
||||
ul#menu ul span{
|
||||
background-image:none;
|
||||
padding-right:5px;
|
||||
}
|
||||
ul#menu ul li:hover>a,ul#menu ul li a.pressed{
|
||||
-moz-box-shadow:0 1px 0 #CF7E4C;
|
||||
-webkit-box-shadow:0 1px 0 #CF7E4C;
|
||||
box-shadow:0 1px 0 #CF7E4C;
|
||||
background-color:#ef9d58;
|
||||
background-image:-o-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:-moz-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
background-image:-webkit-linear-gradient(-90deg,rgba(255,255,255,0),rgba(85,85,85,0.13));
|
||||
border-style:none;
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
ul#menu li.topfirst>a{
|
||||
-moz-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
-webkit-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
background-color:#FFFFFF;
|
||||
border-width:0 1px 0 0;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
border-radius:5px 0 0 0;
|
||||
-moz-border-radius:5px 0 0 0;
|
||||
-webkit-border-radius:5px;
|
||||
-webkit-border-top-right-radius:0;
|
||||
-webkit-border-bottom-right-radius:0;
|
||||
-webkit-border-bottom-left-radius:0;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
ul#menu li.topfirst:hover>a,ul#menu li.topfirst a.pressed{
|
||||
-moz-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
-webkit-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
ul#menu li.topmenu>a{
|
||||
-moz-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
-webkit-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
background-color:#FFFFFF;
|
||||
border-width:0 1px 0 0;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
ul#menu li.topmenu:hover>a,ul#menu li.topmenu a.pressed{
|
||||
-moz-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
-webkit-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
ul#menu li.toplast>a{
|
||||
-moz-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
-webkit-box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
box-shadow:0 0 0 1px #FFFFFF inset;
|
||||
background-color:#FFFFFF;
|
||||
border-width:0px;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
border-radius:0 5px 0 0;
|
||||
-moz-border-radius:0 5px 0 0;
|
||||
-webkit-border-radius:0;
|
||||
-webkit-border-top-right-radius:5px;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
ul#menu li.toplast:hover>a,ul#menu li.toplast a.pressed{
|
||||
-moz-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
-webkit-box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
box-shadow:0 4px 6px -2px rgba(0,20,50, 0.26) inset;
|
||||
background-color:#FFFFFF;
|
||||
border-style:solid;
|
||||
border-color:#bfc1c2;
|
||||
text-shadow:0 1px 0 #FFFFFF;
|
||||
}
|
||||
302
css/messmasken.css
Normal file
302
css/messmasken.css
Normal file
@@ -0,0 +1,302 @@
|
||||
.inp_messwerte{ border: solid black 1px; box-shadow: 0 0 2px black; border-radius: 5px}
|
||||
|
||||
|
||||
/**************
|
||||
****** ******
|
||||
*** Archiv ***
|
||||
****** ******
|
||||
**************/
|
||||
|
||||
|
||||
#divMessArchiv{ position: absolute; width: 1050px; height: 600px; top: 60px; left: 750px; border: 1px solid red; z-index: -100;}
|
||||
#divMessArchivBtns { position: absolute; width: 1050px; height: 600px; top: 60px; left: 750px;}
|
||||
#divMessArchivHead{ position: absolute; width: 1032px; height: 24px; top: 120px;}
|
||||
#divMessArchivData{ overflow-y: scroll; position: absolute; width: inherit; height: 420px; top: 150px; border: solid 1px green;}
|
||||
#divMessArchivFoot{ position: absolute; width: 1032px;; height: 24px; top: 570px;}
|
||||
|
||||
#tblMessarchivHead>thead>tr>th.txlcode{ width: 120px; }
|
||||
#tblMessarchiv>tbody>tr>td.txlcode{ width: 129px; }
|
||||
#tblMessarchivFoot>tfoot>tr>th.txlcode{ width: 120px; }
|
||||
#tblMessarchiv{ border: 1px solid black; vertical-align: top;}
|
||||
#tblMessarchiv>tbody>tr>td{ border: 1px solid black; text-align: center; width: 53px;}
|
||||
#tblMessarchivHead>thead>tr>th{ border: 1px solid black; text-align: center; width: 53px;}
|
||||
#tblMessarchivFoot>tfoot>tr>th{ border: 1px solid black; text-align: center; width: 53px;}
|
||||
|
||||
canvas{ position: absolute; border: solid black 2px; width: 1050px !important; height: 300px !important; top: 600px; background: #fff}
|
||||
.btnMA{ width: 85px; height: 35px; margin-bottom: 5px; margin-left: 5px;}
|
||||
|
||||
/**************
|
||||
****** ******
|
||||
**** 3040 ****
|
||||
****** ******
|
||||
**************/
|
||||
|
||||
#MM3040bauteilOuter{ position:relative; border-collapse:collapse; border:1px solid #000; padding:5px; background:#aaa; width:545px; height:685px; margin:15px;}
|
||||
#MM3040bauteilInner{ position:relative; border-collapse:collapse; border:1px dashed #000; padding:5px; margin-top:55px; margin-left:65px; width:400px; height:550px;}
|
||||
|
||||
#divComm3040{ position:relative; top:350px; left:10px; }
|
||||
#divDesc3040{ position:relative; left:85px; top:240px; }
|
||||
#divToolpart3040{ position:relative; top:-325px; left:260px;}
|
||||
|
||||
#divSide1-3040{ text-align:center; position:absolute; height:30px; width:85px; top:235px; left:320px; font-size:12px; font-weight:bold;}
|
||||
#divSide2-3040{ text-align:center; position:absolute; height:30px; width:85px; top:235px; left:10px; font-size:12px; font-weight:bold;}
|
||||
#divSide3-3040{ text-align:center; position:absolute; height:30px; width:70px; top:510px; left:170px; font-size:12px; font-weight:bold;}
|
||||
#divSide4-3040{ text-align:center; position:absolute; height:30px; width:70px; top:10px; left:170px; font-size:12px; font-weight:bold;}
|
||||
|
||||
#divR1-3040{ position:relative; width:60px; height:400px; top:-930px; left:485px; }
|
||||
#divR2-3040{ position:relative; width:60px; height:400px; top:-465px; left:0px; }
|
||||
#divR3-3040{ position:relative; width:400px; height:60px; top:5px; left:70px; }
|
||||
#divR4-3040{ position:relative; width:400px; height:60px; top:-1060px; left:70px; }
|
||||
|
||||
#tb_mm3040_OL1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3040_OL2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3040_OW1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3040_OW2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
|
||||
#mm3040Desc{ font-weight:bold; font-size:6em; }
|
||||
#tb_mm3040_comm{ font-size:1.3em; width:360px; resize:none; }
|
||||
|
||||
#tb_mm3040_tool{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm3040_rev{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm3040_part{ width:42px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
|
||||
#tb_mm3040_r11{ position:relative; top:-145px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r12{ position:relative; top:57px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r13{ position:relative; top:320px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3040_r21{ position:relative; top:365px; left:0; width:50px; text-align:center; }
|
||||
#tb_mm3040_r22{ position:relative; top:57px; left:0; width:50px; text-align:center; }
|
||||
#tb_mm3040_r23{ position:relative; top:-195px; left:0; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3040_r31{ position:relative; top:0; left:340px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r32{ position:relative; top:0; left:100px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r33{ position:relative; top:0; left:-125px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3040_r41{ position:relative; top:0; left:10px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r42{ position:relative; top:0; left:100px; width:50px; text-align:center; }
|
||||
#tb_mm3040_r43{ position:relative; top:0; left:210px; width:50px; text-align:center; }
|
||||
|
||||
#btn_mm3040_check{ position:absolute; top:570px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm3040_eintragen{ position:absolute; top:630px; left:587px; height:50px; width:90px; }
|
||||
|
||||
#btn_mm3040_uups{ position:absolute; top:690px; left:587px; height:50px; width:90px; }
|
||||
|
||||
#btn_mm3040_archiv{ position:absolute; top:65px; left:587px; height:50px; width:90px; }
|
||||
|
||||
#divZeichnungPrim3040{
|
||||
position: absolute;
|
||||
top: 55px;
|
||||
left: 700px;
|
||||
height: 720px;
|
||||
border: black solid 1px;
|
||||
width: 600px;
|
||||
background-image: url(../img/zeichnung3040_primitiv.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 600px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
#divZeichnungPrim3040>.inp_messwerte{ width: 70px; height: 25px; position: absolute; font-weight: bold; text-align: center;}
|
||||
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_il1{ top: 273px; left: 320px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_il2{ top: 273px; left: 62px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_iw1{ top: 53px; left: 193px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_iw2{ top: 493px; left: 193px; }
|
||||
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_ol1{ top: 273px; left: 400px; transform: rotate(-90deg); }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_ol2{ top: 273px; left: -2px; transform: rotate(-90deg); }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_ow1{ top: 13px; left: 193px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_ow2{ top: 543px; left: 193px; }
|
||||
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_r1{ position: absolute; top: 650px; left: 320px; height: 25px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_r2{ position: absolute; top: 650px; left: 70px; height: 25px; }
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_r3{ position: absolute; top: 430px; left: 520px; height: 25px; transform: rotate(-90deg);}
|
||||
#divZeichnungPrim3040>#div_ausw_mm3040_r4{ position: absolute; top: 110px; left: 520px; height: 25px; transform: rotate(-90deg);}
|
||||
|
||||
.tolGruen { background: limegreen; }
|
||||
.tolGelb { background: yellow; }
|
||||
.tolRot { background: red; color: yellowgreen}
|
||||
|
||||
#messerg{
|
||||
position: absolute;
|
||||
top: 250px;
|
||||
left: 181px;
|
||||
width: 240px;
|
||||
height: 80px;
|
||||
border: black solid 1px;
|
||||
display: block;
|
||||
box-shadow: 0 0 2px black;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
background: seagreen;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/**************
|
||||
****** ******
|
||||
**** 3030 ****
|
||||
****** ******
|
||||
**************/
|
||||
|
||||
#MM3030bauteilOuter{ position:relative; border-collapse:collapse; border:1px solid #000; padding:5px; background:#aaa; width:545px; height:545px; margin:15px;}
|
||||
#MM3030bauteilInner{ position:relative; border-collapse:collapse; border:1px dashed #000; padding:5px; margin-top:55px; margin-left:65px; width:400px; height:400px;}
|
||||
|
||||
#divComm3030{ position: absolute; top:500px; left:-70px; }
|
||||
#divDesc3030{ position: absolute; top:140px; left:85px; }
|
||||
#divToolpart3030{ position:absolute; top:65px; left:260px;}
|
||||
|
||||
#divSide1-3030{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:320px; font-size:12px; font-weight:bold;}
|
||||
#divSide2-3030{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:10px; font-size:12px; font-weight:bold;}
|
||||
#divSide3-3030{ text-align:center; position:absolute; height:30px; width:70px; top:360px; left:170px; font-size:12px; font-weight:bold;}
|
||||
#divSide4-3030{ text-align:center; position:absolute; height:30px; width:70px; top:10px; left:170px; font-size:12px; font-weight:bold;}
|
||||
|
||||
#divR1-3030{ position:absolute; width:60px; height:400px; top:60px; left:485px; }
|
||||
#divR2-3030{ position:absolute; width:60px; height:400px; top:60px; left:10px; }
|
||||
#divR3-3030{ position:absolute; width:407px; height:35px; top:475px; left:70px; word-spacing: 110px; }
|
||||
#divR4-3030{ position:absolute; width:407px; height:35px; top:30px; left:70px; word-spacing: 110px;}
|
||||
|
||||
#tb_mm3030_OL1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3030_OL2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3030_OW1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm3030_OW2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
|
||||
#mm3030Desc{font-weight:bold; font-size:6em; }
|
||||
#tb_mm3030_comm{ font-size:1.3em; width:360px; resize:none; }
|
||||
|
||||
#tb_mm3030_tool{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm3030_rev{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm3030_part{ width:42px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
|
||||
#tb_mm3030_r11{ margin-top: 15px; width:50px; text-align:center; }
|
||||
#tb_mm3030_r12{ margin-top: 140px; width:50px; text-align:center; }
|
||||
#tb_mm3030_r13{ margin-top: 170px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3030_r21{ margin-top: 170px; width:50px; text-align:center; }
|
||||
#tb_mm3030_r22{ margin-top: 140px; width:50px; text-align:center; }
|
||||
#tb_mm3030_r23{ margin-top: 15px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3030_r31{ width:50px; text-align:center; }
|
||||
#tb_mm3030_r32{ width:50px; text-align:center; }
|
||||
#tb_mm3030_r33{ width:50px; text-align:center; }
|
||||
|
||||
#tb_mm3030_r41{ width:50px; text-align:center; }
|
||||
#tb_mm3030_r42{ width:50px; text-align:center; }
|
||||
#tb_mm3030_r43{ width:50px; text-align:center; }
|
||||
|
||||
#btn_mm3030_check{ position:absolute; top:470px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm3030_eintragen{ position:absolute; top:530px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm3030_uups{ position:absolute; top:590px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm3030_archiv{ position:absolute; top:65px; left:587px; height:50px; width:90px; }
|
||||
|
||||
|
||||
/**************
|
||||
****** ******
|
||||
**** 2121 ****
|
||||
****** ******
|
||||
**************/
|
||||
|
||||
|
||||
#MM2121bauteilOuter{ position:relative; border-collapse:collapse; border:1px solid #000; padding:5px; background:#aaa; width:545px; height:545px; margin:15px;}
|
||||
#MM2121bauteilInner{ position:relative; border-collapse:collapse; border:1px dashed #000; padding:5px; margin-top:55px; margin-left:65px; width:400px; height:400px;}
|
||||
|
||||
#divComm2121{ position: absolute; top:500px; left:-70px; }
|
||||
#divDesc2121{ position: absolute; top:140px; left:85px; }
|
||||
#divToolpart2121{ position:absolute; top:65px; left:260px;}
|
||||
|
||||
#divSide1-2121{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:320px; font-size:12px; font-weight:bold;}
|
||||
#divSide2-2121{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:-30px; font-size:12px; font-weight:bold;}
|
||||
#divSide3-2121{ text-align:center; position:absolute; height:30px; width:70px; top:385px; left:170px; font-size:12px; font-weight:bold;}
|
||||
#divSide4-2121{ text-align:center; position:absolute; height:30px; width:70px; top:10px; left:170px; font-size:12px; font-weight:bold;}
|
||||
|
||||
#divR1-2121{ position:absolute; width:60px; height:400px; top:60px; left:485px; }
|
||||
#divR2-2121{ position:absolute; width:60px; height:400px; top:60px; left:10px; }
|
||||
#divR3-2121{ position:absolute; width:407px; height:35px; top:475px; left:120px; word-spacing: 170px; }
|
||||
#divR4-2121{ position:absolute; width:407px; height:35px; top:30px; left:120px; word-spacing: 170px;}
|
||||
|
||||
#tb_mm2121_OL1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121_OL2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121_OW1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121_OW2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
|
||||
#mm2121Desc{font-weight:bold; font-size:6em; }
|
||||
#tb_mm2121_comm{ font-size:1.3em; width:360px; resize:none; }
|
||||
|
||||
#tb_mm2121_tool{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm2121_rev{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm2121_part{ width:42px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
|
||||
#tb_mm2121_r11{ margin-top: 50px; width:50px; text-align:center; }
|
||||
#tb_mm2121_r12{ margin-top: 250px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121_r21{ margin-top: 50px; width:50px; text-align:center; }
|
||||
#tb_mm2121_r22{ margin-top: 250px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121_r31{ width:50px; text-align:center; }
|
||||
#tb_mm2121_r32{ width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121_r41{ width:50px; text-align:center; }
|
||||
#tb_mm2121_r42{ width:50px; text-align:center; }
|
||||
|
||||
#btn_mm2121_check{ position:absolute; top:470px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121_eintragen{ position:absolute; top:530px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121_uups{ position:absolute; top:590px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121_archiv{ position:absolute; top:65px; left:587px; height:50px; width:90px; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**************
|
||||
****** ******
|
||||
**** 2121C ****
|
||||
****** ******
|
||||
**************/
|
||||
|
||||
#MM2121CbauteilOuter{ position:relative; border-collapse:collapse; border:1px solid #000; padding:5px; background:#aaa; width:545px; height:545px; margin:15px;}
|
||||
#MM2121CbauteilInner{ position:relative; border-collapse:collapse; border:1px dashed #000; padding:5px; margin-top:55px; margin-left:65px; width:400px; height:400px;}
|
||||
|
||||
#divComm2121C{ position: absolute; top:500px; left:-70px; }
|
||||
#divDesc2121C{ position: absolute; top:140px; left:85px; }
|
||||
#divToolpart2121C{ position:absolute; top:65px; left:260px;}
|
||||
|
||||
#divSide1-2121C{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:320px; font-size:12px; font-weight:bold;}
|
||||
#divSide2-2121C{ text-align:center; position:absolute; height:30px; width:85px; top:185px; left:-30px; font-size:12px; font-weight:bold;}
|
||||
#divSide3-2121C{ text-align:center; position:absolute; height:30px; width:70px; top:385px; left:170px; font-size:12px; font-weight:bold;}
|
||||
#divSide4-2121C{ text-align:center; position:absolute; height:30px; width:70px; top:10px; left:170px; font-size:12px; font-weight:bold;}
|
||||
|
||||
#divR1-2121C{ position:absolute; width:60px; height:400px; top:60px; left:485px; }
|
||||
#divR2-2121C{ position:absolute; width:60px; height:400px; top:60px; left:10px; }
|
||||
#divR3-2121C{ position:absolute; width:407px; height:35px; top:475px; left:120px; word-spacing: 170px; }
|
||||
#divR4-2121C{ position:absolute; width:407px; height:35px; top:30px; left:120px; word-spacing: 170px;}
|
||||
|
||||
#tb_mm2121C_OL1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121C_OL2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121C_OW1{ width:65px; text-align:center; font-size:1.25em; }
|
||||
#tb_mm2121C_OW2{ width:65px; text-align:center; font-size:1.25em; }
|
||||
|
||||
#mm2121CDesc{font-weight:bold; font-size:6em; }
|
||||
#tb_mm2121C_comm{ font-size:1.3em; width:360px; resize:none; }
|
||||
|
||||
#tb_mm2121C_tool{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm2121C_rev{ width:25px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
#tb_mm2121C_part{ width:42px; text-align:center; border: solid black 1px; box-shadow: 0 0 2px black;}
|
||||
|
||||
#tb_mm2121C_r11{ margin-top: 50px; width:50px; text-align:center; }
|
||||
#tb_mm2121C_r12{ margin-top: 250px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121C_r21{ margin-top: 50px; width:50px; text-align:center; }
|
||||
#tb_mm2121C_r22{ margin-top: 250px; width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121C_r31{ width:50px; text-align:center; }
|
||||
#tb_mm2121C_r32{ width:50px; text-align:center; }
|
||||
|
||||
#tb_mm2121C_r41{ width:50px; text-align:center; }
|
||||
#tb_mm2121C_r42{ width:50px; text-align:center; }
|
||||
|
||||
#btn_mm2121C_check{ position:absolute; top:470px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121C_eintragen{ position:absolute; top:530px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121C_uups{ position:absolute; top:590px; left:587px; height:50px; width:90px; }
|
||||
#btn_mm2121C_archiv{ position:absolute; top:65px; left:587px; height:50px; width:90px; }
|
||||
|
||||
57
css/mmtest.css
Normal file
57
css/mmtest.css
Normal file
@@ -0,0 +1,57 @@
|
||||
#messmaske{
|
||||
position: relative;
|
||||
top: 20px;
|
||||
left: -2px;
|
||||
border: solid green 1px;
|
||||
width: 600px;
|
||||
min-height: 650px;
|
||||
|
||||
}
|
||||
|
||||
#MM3030bauteilOuter{
|
||||
position: absolute;
|
||||
border: solid black 1px;
|
||||
width: 600px;
|
||||
height: 750px;
|
||||
}
|
||||
|
||||
#MM3030bauteilInner{
|
||||
position: relative;
|
||||
left: 50px;
|
||||
top: 50px;
|
||||
width: 500px;
|
||||
height: 650px;
|
||||
border: solid black 1px;
|
||||
|
||||
}
|
||||
|
||||
#divBtns{
|
||||
|
||||
}
|
||||
|
||||
#tb_mm3030_tool{ width: 40px;}
|
||||
#tb_mm3030_rev{ width: 40px;}
|
||||
#tb_mm3030_part{ width: 60px;}
|
||||
|
||||
|
||||
.inp_messwerte{ width: 45px; }
|
||||
|
||||
.col1{ width: 55px; position: relative; border: solid black 1px;}
|
||||
.col2{ width: 75px; position: relative; border: solid black 1px;}
|
||||
.col3{ width: 165px; position: relative; border: solid black 1px;}
|
||||
.col4{ width: 75px; position: relative; border: solid black 1px;}
|
||||
.col5{ width: 5px; position: relative; border: solid black 1px;}
|
||||
.col6{ width: 75px; position: relative; border: solid black 1px;}
|
||||
.col7{ width: 75px; position: relative; border: solid black 1px;}
|
||||
.col8{ width: 75px; position: relative; border: solid black 1px;}
|
||||
|
||||
#row1{ height: 28px; border: solid red 1px;}
|
||||
#row2{ height: 40px;}
|
||||
#row3{ height: 40px;}
|
||||
#row4{ height: 40px;}
|
||||
#row5{ height: 40px;}
|
||||
#row6{ height: 40px;}
|
||||
#row7{ height: 40px;}
|
||||
#row8{ height: 40px;}
|
||||
|
||||
|
||||
108
css/ofensachen.css
Normal file
108
css/ofensachen.css
Normal file
@@ -0,0 +1,108 @@
|
||||
#btnTestingKF480{
|
||||
position: relative;
|
||||
left: 330px;
|
||||
}
|
||||
|
||||
#BeladeForm{
|
||||
width: 700px;
|
||||
margin-top: 5px;
|
||||
margin-left: 5px;
|
||||
padding-top: 5px;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 5px;
|
||||
font-family: Hack;
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
|
||||
th.center{ text-align: center;}
|
||||
th.left{ text-align: left;}
|
||||
th.right{ text-align: right;}
|
||||
td.center{ text-align: center;}
|
||||
td.left{ text-align: left;}
|
||||
td.right{ text-align: right;}
|
||||
|
||||
td.desc{ text-align: right}
|
||||
td.input{ text-align: left;}
|
||||
|
||||
#tblOfenKF480>tbody>tr>td>input{ border: solid black 1px; box-shadow: 0 0 2px black; }
|
||||
#tblOfenKF80S>tbody>tr>td>input{ border: solid black 1px; box-shadow: 0 0 2px black; }
|
||||
#tblOfenKF80>tbody>tr>td>input{ border: solid black 1px; box-shadow: 0 0 2px black; }
|
||||
|
||||
#ofenname{ position: relative; font-size: 1.6em; font-variant: petite-caps; }
|
||||
|
||||
input#beladezeit{width: 85px;}
|
||||
input#beladedatum{width: 100px;}
|
||||
|
||||
input{ font-family: Hack; font-size: 0.87em; }
|
||||
|
||||
tr#e11, tr#e12, tr#e13, tr#e14, tr#e15, tr#e16, tr#e17, tr#e18, tr#e19, tr#e20{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#divOfenBtns{
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
float: left;
|
||||
z-index: 10;
|
||||
}
|
||||
#btnLoadLetzteBeladungKF480{
|
||||
position: relative;
|
||||
width: 250px;
|
||||
font-weight: bold;
|
||||
font-family: Hack;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#btnShowMoreEbenenKF480{
|
||||
font-family: Hack;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
width: 175px;
|
||||
}
|
||||
|
||||
#btnShowLessEbenenKF480{
|
||||
font-family: Hack;
|
||||
font-size: 1.2em;
|
||||
display: none;
|
||||
position: relative;
|
||||
width: 175px;
|
||||
}
|
||||
|
||||
#btnInsertBeladungKF480 {
|
||||
font-family: Hack;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
width: 270px;
|
||||
height: 45px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#btnLoadLetzteBeladungKF80S{ width: 250px;}
|
||||
#btnLoadLetzteBeladungKF80{ width: 250px;}
|
||||
|
||||
#btnInsertBeladungKF80S{ width: 300px; text-align: center; }
|
||||
#btnInsertBeladungKF80{ width: 300px; text-align: center; }
|
||||
|
||||
#tbKommKF480{ margin-top: 5px; margin-bottom: 5px; width: 585px; background: #0A0A6A; color: #FFFF66; font-family: Hack; font-size: 1em; }
|
||||
#tbKommKF80S{ margin-top: 5px; margin-bottom: 5px; width: 585px; background: #0A0A6A; color: #FFFF66; font-family: Hack; font-size: 1em; }
|
||||
#tbKommKF80{ margin-top: 5px; margin-bottom: 5px; width: 585px; background: #0A0A6A; color: #FFFF66; font-family: Hack; font-size: 1em; }
|
||||
|
||||
table#codetable{
|
||||
position: absolute;
|
||||
width: 113px;
|
||||
height: 75px;
|
||||
left: 566px;
|
||||
top: 52px;
|
||||
font-family: Hack;
|
||||
font-size: 1.0em;
|
||||
border: solid 2px black;
|
||||
}
|
||||
|
||||
td#ct3040 { background: #2222FF; color: #00F5F5; padding-left: 4px; box-shadow: 0 0 3px black; }
|
||||
td#ct2121 { background: #300E0E; color: #a5a5a5; padding-left: 4px; box-shadow: 0 0 3px black; }
|
||||
td#ct3030 { background: #CCCCCC; color: #212121; padding-left: 4px; box-shadow: 0 0 3px black; }
|
||||
|
||||
115
css/rauheiten.css
Normal file
115
css/rauheiten.css
Normal file
@@ -0,0 +1,115 @@
|
||||
#rauheiten{
|
||||
position: absolute;
|
||||
margin-top: 80px;
|
||||
margin-left: 25px;
|
||||
width: 700px;
|
||||
min-height: 700px;
|
||||
max-height: 700px;
|
||||
font-family: Hack;
|
||||
border: solid black 1px;
|
||||
background: rgba(112, 151, 60, 0.4);
|
||||
box-shadow: 2px 2px 16px 2px black;
|
||||
text-shadow: 1px 1px 3px #000;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#RHStartwerte{
|
||||
position: fixed;
|
||||
width: 670px;
|
||||
left: 40px;
|
||||
top: 55px;
|
||||
letter-spacing: 2px;
|
||||
vertical-align: center;
|
||||
box-shadow: 1px 1px 6px black;
|
||||
border-radius: 15px;
|
||||
padding: 5px 5px 5px 10px;
|
||||
}
|
||||
|
||||
#tbStartwert{width: 110px; margin-right: 10px; }
|
||||
#tbEndwert{width: 110px; }
|
||||
|
||||
#RHInputs{
|
||||
position: relative;
|
||||
padding-top: 10px;
|
||||
padding-left: 10px;
|
||||
padding-bottom: 25px;
|
||||
width: 600px;
|
||||
min-height: 500px;
|
||||
height: auto;
|
||||
left: 50px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.bauteilnr{
|
||||
text-shadow: 0 0 2px white;
|
||||
}
|
||||
|
||||
i{
|
||||
text-shadow: 0 0 2px white;
|
||||
}
|
||||
|
||||
#btnNew{ width: 110px; margin-left: 10px; font-weight: normal; font-family: Times; letter-spacing: 3px; }
|
||||
#btnAdd{ width: 140px; margin-left: 10px; font-weight: normal; font-family: Times; letter-spacing: 3px; border-radius: 5px 15px 15px 5px;}
|
||||
|
||||
#tblMesswerte{
|
||||
width: 100% !important;
|
||||
}
|
||||
#tblMesswerte>tr{
|
||||
border-top: solid gray 1px;
|
||||
border-bottom: solid gray 1px;
|
||||
}
|
||||
#tblMesswerte>tbody>tr>td>input{
|
||||
margin: 2px;
|
||||
border: black solid 1px;
|
||||
box-shadow: 0 0 2px black;
|
||||
|
||||
}
|
||||
|
||||
#tblMesswerte>thead>tr{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tbMesswerte{
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
.smallhead {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
#tblHelp{
|
||||
position: absolute;
|
||||
border: solid black 1px;
|
||||
border-radius: 6px;
|
||||
padding: 10px;
|
||||
padding-top: 25px;
|
||||
left: 780px;
|
||||
top: 65px;
|
||||
text-shadow: 0 0 2px green;
|
||||
font-weight: bold;
|
||||
font-size: 0.75em;
|
||||
box-shadow: 5px 5px 15px black;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#btnCloseHelp{
|
||||
position: relative;
|
||||
transform: rotate(90deg);
|
||||
top: 25px;
|
||||
left: 880px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
z-index: 1115;
|
||||
border-radius: 5px;
|
||||
box-shadow: 2px 2px 1px black;
|
||||
padding: 0px 0px 3px 0px;
|
||||
}
|
||||
|
||||
#help{
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
#btnCloseHelp:hover{ cursor: pointer;}
|
||||
932
css/swa.css
Normal file
932
css/swa.css
Normal file
@@ -0,0 +1,932 @@
|
||||
body.stop-scrolling {
|
||||
height: 100%;
|
||||
overflow: hidden; }
|
||||
|
||||
.sweet-overlay {
|
||||
background-color: black;
|
||||
/* IE8 */
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
|
||||
/* IE8 */
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
z-index: 10000; }
|
||||
|
||||
.sweet-alert {
|
||||
background-color: white;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
width: 478px;
|
||||
padding: 17px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -256px;
|
||||
margin-top: -200px;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
z-index: 99999; }
|
||||
@media all and (max-width: 540px) {
|
||||
.sweet-alert {
|
||||
width: auto;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
left: 15px;
|
||||
right: 15px; } }
|
||||
.sweet-alert h2 {
|
||||
color: #575757;
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
position: relative;
|
||||
margin: 25px 0;
|
||||
padding: 0;
|
||||
line-height: 40px;
|
||||
display: block; }
|
||||
.sweet-alert p {
|
||||
color: #797979;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
position: relative;
|
||||
text-align: inherit;
|
||||
float: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: normal; }
|
||||
.sweet-alert fieldset {
|
||||
border: none;
|
||||
position: relative; }
|
||||
.sweet-alert .sa-error-container {
|
||||
background-color: #f1f1f1;
|
||||
margin-left: -17px;
|
||||
margin-right: -17px;
|
||||
overflow: hidden;
|
||||
padding: 0 10px;
|
||||
max-height: 0;
|
||||
webkit-transition: padding 0.15s, max-height 0.15s;
|
||||
transition: padding 0.15s, max-height 0.15s; }
|
||||
.sweet-alert .sa-error-container.show {
|
||||
padding: 10px 0;
|
||||
max-height: 100px;
|
||||
webkit-transition: padding 0.2s, max-height 0.2s;
|
||||
transition: padding 0.25s, max-height 0.25s; }
|
||||
.sweet-alert .sa-error-container .icon {
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background-color: #ea7d7d;
|
||||
color: white;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
margin-right: 3px; }
|
||||
.sweet-alert .sa-error-container p {
|
||||
display: inline-block; }
|
||||
.sweet-alert .sa-input-error {
|
||||
position: absolute;
|
||||
top: 29px;
|
||||
right: 26px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
opacity: 0;
|
||||
-webkit-transform: scale(0.5);
|
||||
transform: scale(0.5);
|
||||
-webkit-transform-origin: 50% 50%;
|
||||
transform-origin: 50% 50%;
|
||||
-webkit-transition: all 0.1s;
|
||||
transition: all 0.1s; }
|
||||
.sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
|
||||
content: "";
|
||||
width: 20px;
|
||||
height: 6px;
|
||||
background-color: #f06e57;
|
||||
border-radius: 3px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -4px;
|
||||
left: 50%;
|
||||
margin-left: -9px; }
|
||||
.sweet-alert .sa-input-error::before {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
.sweet-alert .sa-input-error::after {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.sweet-alert .sa-input-error.show {
|
||||
opacity: 1;
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1); }
|
||||
.sweet-alert input {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #d7d7d7;
|
||||
height: 43px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 17px;
|
||||
font-size: 18px;
|
||||
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
|
||||
padding: 0 12px;
|
||||
display: none;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s; }
|
||||
.sweet-alert input:focus {
|
||||
outline: none;
|
||||
box-shadow: 0px 0px 3px #c4e6f5;
|
||||
border: 1px solid #b4dbed; }
|
||||
.sweet-alert input:focus::-moz-placeholder {
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.5; }
|
||||
.sweet-alert input:focus:-ms-input-placeholder {
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.5; }
|
||||
.sweet-alert input:focus::-webkit-input-placeholder {
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.5; }
|
||||
.sweet-alert input::-moz-placeholder {
|
||||
color: #bdbdbd; }
|
||||
.sweet-alert input:-ms-input-placeholder {
|
||||
color: #bdbdbd; }
|
||||
.sweet-alert input::-webkit-input-placeholder {
|
||||
color: #bdbdbd; }
|
||||
.sweet-alert.show-input input {
|
||||
display: block; }
|
||||
.sweet-alert .sa-confirm-button-container {
|
||||
display: inline-block;
|
||||
position: relative; }
|
||||
.sweet-alert .la-ball-fall {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -27px;
|
||||
margin-top: 4px;
|
||||
opacity: 0;
|
||||
visibility: hidden; }
|
||||
.sweet-alert button {
|
||||
background-color: #8CD4F5;
|
||||
color: white;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
font-size: 17px;
|
||||
font-weight: 500;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 5px;
|
||||
padding: 10px 32px;
|
||||
margin: 26px 5px 0 5px;
|
||||
cursor: pointer; }
|
||||
.sweet-alert button:focus {
|
||||
outline: none;
|
||||
box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
|
||||
.sweet-alert button:hover {
|
||||
background-color: #7ecff4; }
|
||||
.sweet-alert button:active {
|
||||
background-color: #5dc2f1; }
|
||||
.sweet-alert button.cancel {
|
||||
background-color: #C1C1C1; }
|
||||
.sweet-alert button.cancel:hover {
|
||||
background-color: #b9b9b9; }
|
||||
.sweet-alert button.cancel:active {
|
||||
background-color: #a8a8a8; }
|
||||
.sweet-alert button.cancel:focus {
|
||||
box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
|
||||
.sweet-alert button[disabled] {
|
||||
opacity: .6;
|
||||
cursor: default; }
|
||||
.sweet-alert button.confirm[disabled] {
|
||||
color: transparent; }
|
||||
.sweet-alert button.confirm[disabled] ~ .la-ball-fall {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transition-delay: 0s; }
|
||||
.sweet-alert button::-moz-focus-inner {
|
||||
border: 0; }
|
||||
.sweet-alert[data-has-cancel-button=false] button {
|
||||
box-shadow: none !important; }
|
||||
.sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
|
||||
padding-bottom: 40px; }
|
||||
.sweet-alert .sa-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid gray;
|
||||
-webkit-border-radius: 40px;
|
||||
border-radius: 40px;
|
||||
border-radius: 50%;
|
||||
margin: 20px auto;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
box-sizing: content-box; }
|
||||
.sweet-alert .sa-icon.sa-error {
|
||||
border-color: #F27474; }
|
||||
.sweet-alert .sa-icon.sa-error .sa-x-mark {
|
||||
position: relative;
|
||||
display: block; }
|
||||
.sweet-alert .sa-icon.sa-error .sa-line {
|
||||
position: absolute;
|
||||
height: 5px;
|
||||
width: 47px;
|
||||
background-color: #F27474;
|
||||
display: block;
|
||||
top: 37px;
|
||||
border-radius: 2px; }
|
||||
.sweet-alert .sa-icon.sa-error .sa-line.sa-left {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
left: 17px; }
|
||||
.sweet-alert .sa-icon.sa-error .sa-line.sa-right {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
right: 16px; }
|
||||
.sweet-alert .sa-icon.sa-warning {
|
||||
border-color: #F8BB86; }
|
||||
.sweet-alert .sa-icon.sa-warning .sa-body {
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 47px;
|
||||
left: 50%;
|
||||
top: 10px;
|
||||
-webkit-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: #F8BB86; }
|
||||
.sweet-alert .sa-icon.sa-warning .sa-dot {
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
left: 50%;
|
||||
bottom: 10px;
|
||||
background-color: #F8BB86; }
|
||||
.sweet-alert .sa-icon.sa-info {
|
||||
border-color: #C9DAE1; }
|
||||
.sweet-alert .sa-icon.sa-info::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 29px;
|
||||
left: 50%;
|
||||
bottom: 17px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: #C9DAE1; }
|
||||
.sweet-alert .sa-icon.sa-info::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
top: 19px;
|
||||
background-color: #C9DAE1; }
|
||||
.sweet-alert .sa-icon.sa-success {
|
||||
border-color: #A5DC86; }
|
||||
.sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
|
||||
content: '';
|
||||
-webkit-border-radius: 40px;
|
||||
border-radius: 40px;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 120px;
|
||||
background: white;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.sweet-alert .sa-icon.sa-success::before {
|
||||
-webkit-border-radius: 120px 0 0 120px;
|
||||
border-radius: 120px 0 0 120px;
|
||||
top: -7px;
|
||||
left: -33px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 60px 60px;
|
||||
transform-origin: 60px 60px; }
|
||||
.sweet-alert .sa-icon.sa-success::after {
|
||||
-webkit-border-radius: 0 120px 120px 0;
|
||||
border-radius: 0 120px 120px 0;
|
||||
top: -11px;
|
||||
left: 30px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 0px 60px;
|
||||
transform-origin: 0px 60px; }
|
||||
.sweet-alert .sa-icon.sa-success .sa-placeholder {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid rgba(165, 220, 134, 0.2);
|
||||
-webkit-border-radius: 40px;
|
||||
border-radius: 40px;
|
||||
border-radius: 50%;
|
||||
box-sizing: content-box;
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
top: -4px;
|
||||
z-index: 2; }
|
||||
.sweet-alert .sa-icon.sa-success .sa-fix {
|
||||
width: 5px;
|
||||
height: 90px;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 8px;
|
||||
z-index: 1;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
.sweet-alert .sa-icon.sa-success .sa-line {
|
||||
height: 5px;
|
||||
background-color: #A5DC86;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 2; }
|
||||
.sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 46px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.sweet-alert .sa-icon.sa-success .sa-line.sa-long {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
.sweet-alert .sa-icon.sa-custom {
|
||||
background-size: contain;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat; }
|
||||
|
||||
/*
|
||||
* Animations
|
||||
*/
|
||||
@-webkit-keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7); }
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05); }
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-transform: scale(0.95); }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); } }
|
||||
|
||||
@keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7); }
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05); }
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-transform: scale(0.95); }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); } }
|
||||
|
||||
@-webkit-keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); }
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5); } }
|
||||
|
||||
@keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); }
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5); } }
|
||||
|
||||
@-webkit-keyframes slideFromTop {
|
||||
0% {
|
||||
top: 0%; }
|
||||
100% {
|
||||
top: 50%; } }
|
||||
|
||||
@keyframes slideFromTop {
|
||||
0% {
|
||||
top: 0%; }
|
||||
100% {
|
||||
top: 50%; } }
|
||||
|
||||
@-webkit-keyframes slideToTop {
|
||||
0% {
|
||||
top: 50%; }
|
||||
100% {
|
||||
top: 0%; } }
|
||||
|
||||
@keyframes slideToTop {
|
||||
0% {
|
||||
top: 50%; }
|
||||
100% {
|
||||
top: 0%; } }
|
||||
|
||||
@-webkit-keyframes slideFromBottom {
|
||||
0% {
|
||||
top: 70%; }
|
||||
100% {
|
||||
top: 50%; } }
|
||||
|
||||
@keyframes slideFromBottom {
|
||||
0% {
|
||||
top: 70%; }
|
||||
100% {
|
||||
top: 50%; } }
|
||||
|
||||
@-webkit-keyframes slideToBottom {
|
||||
0% {
|
||||
top: 50%; }
|
||||
100% {
|
||||
top: 70%; } }
|
||||
|
||||
@keyframes slideToBottom {
|
||||
0% {
|
||||
top: 50%; }
|
||||
100% {
|
||||
top: 70%; } }
|
||||
|
||||
.showSweetAlert[data-animation=pop] {
|
||||
-webkit-animation: showSweetAlert 0.3s;
|
||||
animation: showSweetAlert 0.3s; }
|
||||
|
||||
.showSweetAlert[data-animation=none] {
|
||||
-webkit-animation: none;
|
||||
animation: none; }
|
||||
|
||||
.showSweetAlert[data-animation=slide-from-top] {
|
||||
-webkit-animation: slideFromTop 0.3s;
|
||||
animation: slideFromTop 0.3s; }
|
||||
|
||||
.showSweetAlert[data-animation=slide-from-bottom] {
|
||||
-webkit-animation: slideFromBottom 0.3s;
|
||||
animation: slideFromBottom 0.3s; }
|
||||
|
||||
.hideSweetAlert[data-animation=pop] {
|
||||
-webkit-animation: hideSweetAlert 0.2s;
|
||||
animation: hideSweetAlert 0.2s; }
|
||||
|
||||
.hideSweetAlert[data-animation=none] {
|
||||
-webkit-animation: none;
|
||||
animation: none; }
|
||||
|
||||
.hideSweetAlert[data-animation=slide-from-top] {
|
||||
-webkit-animation: slideToTop 0.4s;
|
||||
animation: slideToTop 0.4s; }
|
||||
|
||||
.hideSweetAlert[data-animation=slide-from-bottom] {
|
||||
-webkit-animation: slideToBottom 0.3s;
|
||||
animation: slideToBottom 0.3s; }
|
||||
|
||||
@-webkit-keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
|
||||
@keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
|
||||
@-webkit-keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
|
||||
@keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
|
||||
@-webkit-keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); }
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); } }
|
||||
|
||||
@keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); }
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); } }
|
||||
|
||||
.animateSuccessTip {
|
||||
-webkit-animation: animateSuccessTip 0.75s;
|
||||
animation: animateSuccessTip 0.75s; }
|
||||
|
||||
.animateSuccessLong {
|
||||
-webkit-animation: animateSuccessLong 0.75s;
|
||||
animation: animateSuccessLong 0.75s; }
|
||||
|
||||
.sa-icon.sa-success.animate::after {
|
||||
-webkit-animation: rotatePlaceholder 4.25s ease-in;
|
||||
animation: rotatePlaceholder 4.25s ease-in; }
|
||||
|
||||
@-webkit-keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
|
||||
.animateErrorIcon {
|
||||
-webkit-animation: animateErrorIcon 0.5s;
|
||||
animation: animateErrorIcon 0.5s; }
|
||||
|
||||
@-webkit-keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
|
||||
.animateXMark {
|
||||
-webkit-animation: animateXMark 0.5s;
|
||||
animation: animateXMark 0.5s; }
|
||||
|
||||
@-webkit-keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486; }
|
||||
100% {
|
||||
border-color: #F8BB86; } }
|
||||
|
||||
@keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486; }
|
||||
100% {
|
||||
border-color: #F8BB86; } }
|
||||
|
||||
.pulseWarning {
|
||||
-webkit-animation: pulseWarning 0.75s infinite alternate;
|
||||
animation: pulseWarning 0.75s infinite alternate; }
|
||||
|
||||
@-webkit-keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486; }
|
||||
100% {
|
||||
background-color: #F8BB86; } }
|
||||
|
||||
@keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486; }
|
||||
100% {
|
||||
background-color: #F8BB86; } }
|
||||
|
||||
.pulseWarningIns {
|
||||
-webkit-animation: pulseWarningIns 0.75s infinite alternate;
|
||||
animation: pulseWarningIns 0.75s infinite alternate; }
|
||||
|
||||
@-webkit-keyframes rotate-loading {
|
||||
0% {
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes rotate-loading {
|
||||
0% {
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
/* Internet Explorer 9 has some special quirks that are fixed here */
|
||||
/* The icons are not animated. */
|
||||
/* This file is automatically merged into sweet-alert.min.js through Gulp */
|
||||
/* Error icon */
|
||||
.sweet-alert .sa-icon.sa-error .sa-line.sa-left {
|
||||
-ms-transform: rotate(45deg) \9; }
|
||||
|
||||
.sweet-alert .sa-icon.sa-error .sa-line.sa-right {
|
||||
-ms-transform: rotate(-45deg) \9; }
|
||||
|
||||
/* Success icon */
|
||||
.sweet-alert .sa-icon.sa-success {
|
||||
border-color: transparent\9; }
|
||||
|
||||
.sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
|
||||
-ms-transform: rotate(45deg) \9; }
|
||||
|
||||
.sweet-alert .sa-icon.sa-success .sa-line.sa-long {
|
||||
-ms-transform: rotate(-45deg) \9; }
|
||||
|
||||
/*!
|
||||
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
|
||||
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
|
||||
* Licensed under MIT
|
||||
*/
|
||||
.la-ball-fall,
|
||||
.la-ball-fall > div {
|
||||
position: relative;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.la-ball-fall {
|
||||
display: block;
|
||||
font-size: 0;
|
||||
color: #fff; }
|
||||
|
||||
.la-ball-fall.la-dark {
|
||||
color: #333; }
|
||||
|
||||
.la-ball-fall > div {
|
||||
display: inline-block;
|
||||
float: none;
|
||||
background-color: currentColor;
|
||||
border: 0 solid currentColor; }
|
||||
|
||||
.la-ball-fall {
|
||||
width: 54px;
|
||||
height: 18px; }
|
||||
|
||||
.la-ball-fall > div {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 4px;
|
||||
border-radius: 100%;
|
||||
opacity: 0;
|
||||
-webkit-animation: ball-fall 1s ease-in-out infinite;
|
||||
-moz-animation: ball-fall 1s ease-in-out infinite;
|
||||
-o-animation: ball-fall 1s ease-in-out infinite;
|
||||
animation: ball-fall 1s ease-in-out infinite; }
|
||||
|
||||
.la-ball-fall > div:nth-child(1) {
|
||||
-webkit-animation-delay: -200ms;
|
||||
-moz-animation-delay: -200ms;
|
||||
-o-animation-delay: -200ms;
|
||||
animation-delay: -200ms; }
|
||||
|
||||
.la-ball-fall > div:nth-child(2) {
|
||||
-webkit-animation-delay: -100ms;
|
||||
-moz-animation-delay: -100ms;
|
||||
-o-animation-delay: -100ms;
|
||||
animation-delay: -100ms; }
|
||||
|
||||
.la-ball-fall > div:nth-child(3) {
|
||||
-webkit-animation-delay: 0ms;
|
||||
-moz-animation-delay: 0ms;
|
||||
-o-animation-delay: 0ms;
|
||||
animation-delay: 0ms; }
|
||||
|
||||
.la-ball-fall.la-sm {
|
||||
width: 26px;
|
||||
height: 8px; }
|
||||
|
||||
.la-ball-fall.la-sm > div {
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
margin: 2px; }
|
||||
|
||||
.la-ball-fall.la-2x {
|
||||
width: 108px;
|
||||
height: 36px; }
|
||||
|
||||
.la-ball-fall.la-2x > div {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 8px; }
|
||||
|
||||
.la-ball-fall.la-3x {
|
||||
width: 162px;
|
||||
height: 54px; }
|
||||
|
||||
.la-ball-fall.la-3x > div {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin: 12px; }
|
||||
|
||||
/*
|
||||
* Animation
|
||||
*/
|
||||
@-webkit-keyframes ball-fall {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(-145%);
|
||||
transform: translateY(-145%); }
|
||||
10% {
|
||||
opacity: .5; }
|
||||
20% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
80% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
90% {
|
||||
opacity: .5; }
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(145%);
|
||||
transform: translateY(145%); } }
|
||||
|
||||
@-moz-keyframes ball-fall {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateY(-145%);
|
||||
transform: translateY(-145%); }
|
||||
10% {
|
||||
opacity: .5; }
|
||||
20% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
80% {
|
||||
opacity: 1;
|
||||
-moz-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
90% {
|
||||
opacity: .5; }
|
||||
100% {
|
||||
opacity: 0;
|
||||
-moz-transform: translateY(145%);
|
||||
transform: translateY(145%); } }
|
||||
|
||||
@-o-keyframes ball-fall {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-o-transform: translateY(-145%);
|
||||
transform: translateY(-145%); }
|
||||
10% {
|
||||
opacity: .5; }
|
||||
20% {
|
||||
opacity: 1;
|
||||
-o-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
80% {
|
||||
opacity: 1;
|
||||
-o-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
90% {
|
||||
opacity: .5; }
|
||||
100% {
|
||||
opacity: 0;
|
||||
-o-transform: translateY(145%);
|
||||
transform: translateY(145%); } }
|
||||
|
||||
@keyframes ball-fall {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(-145%);
|
||||
-moz-transform: translateY(-145%);
|
||||
-o-transform: translateY(-145%);
|
||||
transform: translateY(-145%); }
|
||||
10% {
|
||||
opacity: .5; }
|
||||
20% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
80% {
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
transform: translateY(0); }
|
||||
90% {
|
||||
opacity: .5; }
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translateY(145%);
|
||||
-moz-transform: translateY(145%);
|
||||
-o-transform: translateY(145%);
|
||||
transform: translateY(145%); } }
|
||||
612
css/swa2.css
Normal file
612
css/swa2.css
Normal file
@@ -0,0 +1,612 @@
|
||||
.swal2-overlay {
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
z-index: 1000; }
|
||||
|
||||
.swal2-modal {
|
||||
background-color: #fff;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-top: -200px;
|
||||
max-height: 90%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
display: none;
|
||||
z-index: 2000; }
|
||||
.swal2-modal:focus {
|
||||
outline: none; }
|
||||
.swal2-modal.loading {
|
||||
overflow-y: hidden; }
|
||||
.swal2-modal h2 {
|
||||
color: #575757;
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 60px;
|
||||
display: block; }
|
||||
.swal2-modal hr {
|
||||
height: 10px;
|
||||
color: transparent;
|
||||
border: 0; }
|
||||
.swal2-modal button.styled {
|
||||
color: #fff;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
font-size: 17px;
|
||||
font-weight: 500;
|
||||
border-radius: 5px;
|
||||
padding: 10px 32px;
|
||||
margin: 0 5px;
|
||||
cursor: pointer; }
|
||||
.swal2-modal button.styled:focus {
|
||||
outline: none; }
|
||||
.swal2-modal button.styled[disabled] {
|
||||
opacity: .4;
|
||||
cursor: no-drop; }
|
||||
.swal2-modal button.styled.loading {
|
||||
box-sizing: border-box;
|
||||
border: 4px solid transparent;
|
||||
border-color: transparent;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
margin: -2px 30px;
|
||||
vertical-align: top;
|
||||
background-color: transparent !important;
|
||||
color: transparent;
|
||||
cursor: default;
|
||||
border-radius: 100%;
|
||||
-webkit-animation: rotate-loading 1.5s linear 0s infinite normal;
|
||||
animation: rotate-loading 1.5s linear 0s infinite normal; }
|
||||
.swal2-modal button.styled::-moz-focus-inner {
|
||||
border: 0; }
|
||||
.swal2-modal .swal2-image {
|
||||
margin: 20px auto;
|
||||
max-width: 100%; }
|
||||
.swal2-modal .swal2-close {
|
||||
font-size: 36px;
|
||||
line-height: 36px;
|
||||
font-family: serif;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 13px;
|
||||
cursor: pointer;
|
||||
color: #cfcfcf;
|
||||
-webkit-transition: all 0.1s ease;
|
||||
transition: all 0.1s ease; }
|
||||
.swal2-modal .swal2-close:hover {
|
||||
color: #d55; }
|
||||
.swal2-modal > .swal2-input,
|
||||
.swal2-modal > .swal2-textarea,
|
||||
.swal2-modal > .swal2-select,
|
||||
.swal2-modal > .swal2-radio,
|
||||
.swal2-modal > .swal2-checkbox {
|
||||
display: none; }
|
||||
|
||||
.swal2-content {
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
position: relative;
|
||||
float: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: normal;
|
||||
color: #555; }
|
||||
|
||||
.swal2-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid #808080;
|
||||
border-radius: 50%;
|
||||
margin: 20px auto 30px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
box-sizing: content-box;
|
||||
cursor: default;
|
||||
/* http://stackoverflow.com/a/4407335/1331425 */
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.swal2-icon.swal2-error {
|
||||
border-color: #f27474; }
|
||||
.swal2-icon.swal2-error .x-mark {
|
||||
position: relative;
|
||||
display: block; }
|
||||
.swal2-icon.swal2-error .line {
|
||||
position: absolute;
|
||||
height: 5px;
|
||||
width: 47px;
|
||||
background-color: #f27474;
|
||||
display: block;
|
||||
top: 37px;
|
||||
border-radius: 2px; }
|
||||
.swal2-icon.swal2-error .line.left {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
left: 17px; }
|
||||
.swal2-icon.swal2-error .line.right {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
right: 16px; }
|
||||
.swal2-icon.swal2-warning {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #f8bb86;
|
||||
border-color: #f8bb86;
|
||||
font-size: 60px;
|
||||
line-height: 80px;
|
||||
text-align: center; }
|
||||
.swal2-icon.swal2-info {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
color: #3fc3ee;
|
||||
border-color: #3fc3ee;
|
||||
font-size: 60px;
|
||||
line-height: 80px;
|
||||
text-align: center; }
|
||||
.swal2-icon.swal2-question {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #c9dae1;
|
||||
border-color: #c9dae1;
|
||||
font-size: 60px;
|
||||
line-height: 80px;
|
||||
text-align: center; }
|
||||
.swal2-icon.swal2-success {
|
||||
border-color: #a5dc86; }
|
||||
.swal2-icon.swal2-success::before, .swal2-icon.swal2-success::after {
|
||||
content: '';
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 120px;
|
||||
background: #fff;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.swal2-icon.swal2-success::before {
|
||||
border-radius: 120px 0 0 120px;
|
||||
top: -7px;
|
||||
left: -33px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 60px 60px;
|
||||
transform-origin: 60px 60px; }
|
||||
.swal2-icon.swal2-success::after {
|
||||
border-radius: 0 120px 120px 0;
|
||||
top: -11px;
|
||||
left: 30px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 0 60px;
|
||||
transform-origin: 0 60px; }
|
||||
.swal2-icon.swal2-success .placeholder {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid rgba(165, 220, 134, 0.2);
|
||||
border-radius: 50%;
|
||||
box-sizing: content-box;
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
top: -4px;
|
||||
z-index: 2; }
|
||||
.swal2-icon.swal2-success .fix {
|
||||
width: 7px;
|
||||
height: 90px;
|
||||
background-color: #fff;
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 8px;
|
||||
z-index: 1;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
.swal2-icon.swal2-success .line {
|
||||
height: 5px;
|
||||
background-color: #a5dc86;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 2; }
|
||||
.swal2-icon.swal2-success .line.tip {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 46px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg); }
|
||||
.swal2-icon.swal2-success .line.long {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
|
||||
.swal2-input,
|
||||
.swal2-textarea,
|
||||
.swal2-select,
|
||||
.swal2-radio,
|
||||
.swal2-checkbox {
|
||||
margin: 20px auto; }
|
||||
|
||||
.swal2-input:not([type="file"]), .swal2-textarea {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #d7d7d7;
|
||||
font-size: 18px;
|
||||
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s; }
|
||||
.swal2-input:not([type="file"]).error, .swal2-textarea.error {
|
||||
border-color: #f06e57 !important; }
|
||||
.swal2-input:not([type="file"]):focus, .swal2-textarea:focus {
|
||||
outline: none;
|
||||
box-shadow: 0px 0px 3px #c4e6f5;
|
||||
border: 1px solid #b4dbed; }
|
||||
.swal2-input:not([type="file"]):focus::-moz-placeholder, .swal2-textarea:focus::-moz-placeholder {
|
||||
-webkit-transition: opacity 0.3s 0.03s ease;
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.8; }
|
||||
.swal2-input:not([type="file"]):focus:-ms-input-placeholder, .swal2-textarea:focus:-ms-input-placeholder {
|
||||
-webkit-transition: opacity 0.3s 0.03s ease;
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.8; }
|
||||
.swal2-input:not([type="file"]):focus::-webkit-input-placeholder, .swal2-textarea:focus::-webkit-input-placeholder {
|
||||
-webkit-transition: opacity 0.3s 0.03s ease;
|
||||
transition: opacity 0.3s 0.03s ease;
|
||||
opacity: 0.8; }
|
||||
.swal2-input:not([type="file"])::-moz-placeholder, .swal2-textarea::-moz-placeholder {
|
||||
color: #bdbdbd; }
|
||||
.swal2-input:not([type="file"]):-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
|
||||
color: #bdbdbd; }
|
||||
.swal2-input:not([type="file"])::-webkit-input-placeholder, .swal2-textarea::-webkit-input-placeholder {
|
||||
color: #bdbdbd; }
|
||||
|
||||
.swal2-input:not([type="file"]) {
|
||||
height: 43px;
|
||||
padding: 0 12px; }
|
||||
|
||||
.swal2-input[type="file"] {
|
||||
font-size: 20px; }
|
||||
|
||||
.swal2-textarea {
|
||||
height: 108px;
|
||||
padding: 12px; }
|
||||
|
||||
.swal2-select {
|
||||
color: #555;
|
||||
font-size: inherit;
|
||||
padding: 5px 10px;
|
||||
min-width: 40%;
|
||||
max-width: 100%; }
|
||||
|
||||
.swal2-radio {
|
||||
border: 0; }
|
||||
.swal2-radio label:not(:first-child) {
|
||||
margin-left: 20px; }
|
||||
.swal2-radio input, .swal2-radio span {
|
||||
vertical-align: middle; }
|
||||
.swal2-radio input {
|
||||
margin: 0 3px 0 0; }
|
||||
|
||||
.swal2-checkbox {
|
||||
color: #555; }
|
||||
.swal2-checkbox input, .swal2-checkbox span {
|
||||
vertical-align: middle; }
|
||||
|
||||
.swal2-validationerror {
|
||||
background-color: #f1f1f1;
|
||||
margin: 0 -20px;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
color: #797979;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
display: none; }
|
||||
.swal2-validationerror::before {
|
||||
content: "!";
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background-color: #ea7d7d;
|
||||
color: white;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
margin-right: 10px; }
|
||||
|
||||
@-webkit-keyframes showSweetAlert {
|
||||
0% {
|
||||
-webkit-transform: scale(0.7);
|
||||
transform: scale(0.7); }
|
||||
45% {
|
||||
-webkit-transform: scale(1.05);
|
||||
transform: scale(1.05); }
|
||||
80% {
|
||||
-webkit-transform: scale(0.95);
|
||||
transform: scale(0.95); }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1); } }
|
||||
|
||||
@keyframes showSweetAlert {
|
||||
0% {
|
||||
-webkit-transform: scale(0.7);
|
||||
transform: scale(0.7); }
|
||||
45% {
|
||||
-webkit-transform: scale(1.05);
|
||||
transform: scale(1.05); }
|
||||
80% {
|
||||
-webkit-transform: scale(0.95);
|
||||
transform: scale(0.95); }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1); } }
|
||||
|
||||
@-webkit-keyframes hideSweetAlert {
|
||||
0% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 1; }
|
||||
100% {
|
||||
-webkit-transform: scale(0.5);
|
||||
transform: scale(0.5);
|
||||
opacity: 0; } }
|
||||
|
||||
@keyframes hideSweetAlert {
|
||||
0% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 1; }
|
||||
100% {
|
||||
-webkit-transform: scale(0.5);
|
||||
transform: scale(0.5);
|
||||
opacity: 0; } }
|
||||
|
||||
.show-swal2 {
|
||||
-webkit-animation: showSweetAlert 0.3s;
|
||||
animation: showSweetAlert 0.3s; }
|
||||
.show-swal2.no-animation {
|
||||
-webkit-animation: none;
|
||||
animation: none; }
|
||||
|
||||
.hide-swal2 {
|
||||
-webkit-animation: hideSweetAlert 0.15s;
|
||||
animation: hideSweetAlert 0.15s; }
|
||||
.hide-swal2.no-animation {
|
||||
-webkit-animation: none;
|
||||
animation: none; }
|
||||
|
||||
@-webkit-keyframes animate-success-tip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
|
||||
@keyframes animate-success-tip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
|
||||
@-webkit-keyframes animate-success-long {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
|
||||
@keyframes animate-success-long {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
|
||||
@-webkit-keyframes rotatePlaceholder {
|
||||
0% {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
5% {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
12% {
|
||||
-webkit-transform: rotate(-405deg);
|
||||
transform: rotate(-405deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(-405deg);
|
||||
transform: rotate(-405deg); } }
|
||||
|
||||
@keyframes rotatePlaceholder {
|
||||
0% {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
5% {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg); }
|
||||
12% {
|
||||
-webkit-transform: rotate(-405deg);
|
||||
transform: rotate(-405deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(-405deg);
|
||||
transform: rotate(-405deg); } }
|
||||
|
||||
.animate-success-tip {
|
||||
-webkit-animation: animate-success-tip 0.75s;
|
||||
animation: animate-success-tip 0.75s; }
|
||||
|
||||
.animate-success-long {
|
||||
-webkit-animation: animate-success-long 0.75s;
|
||||
animation: animate-success-long 0.75s; }
|
||||
|
||||
.swal2-icon.swal2-success.animate::after {
|
||||
-webkit-animation: rotatePlaceholder 4.25s ease-in;
|
||||
animation: rotatePlaceholder 4.25s ease-in; }
|
||||
|
||||
@-webkit-keyframes animate-error-icon {
|
||||
0% {
|
||||
-webkit-transform: rotateX(100deg);
|
||||
transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
-webkit-transform: rotateX(0deg);
|
||||
transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes animate-error-icon {
|
||||
0% {
|
||||
-webkit-transform: rotateX(100deg);
|
||||
transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
-webkit-transform: rotateX(0deg);
|
||||
transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
|
||||
.animate-error-icon {
|
||||
-webkit-animation: animate-error-icon 0.5s;
|
||||
animation: animate-error-icon 0.5s; }
|
||||
|
||||
@-webkit-keyframes animate-x-mark {
|
||||
0% {
|
||||
-webkit-transform: scale(0.4);
|
||||
transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
-webkit-transform: scale(0.4);
|
||||
transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
-webkit-transform: scale(1.15);
|
||||
transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
|
||||
@keyframes animate-x-mark {
|
||||
0% {
|
||||
-webkit-transform: scale(0.4);
|
||||
transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
-webkit-transform: scale(0.4);
|
||||
transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
-webkit-transform: scale(1.15);
|
||||
transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
|
||||
.animate-x-mark {
|
||||
-webkit-animation: animate-x-mark 0.5s;
|
||||
animation: animate-x-mark 0.5s; }
|
||||
|
||||
@-webkit-keyframes pulse-warning {
|
||||
0% {
|
||||
border-color: #f8d486; }
|
||||
100% {
|
||||
border-color: #f8bb86; } }
|
||||
|
||||
@keyframes pulse-warning {
|
||||
0% {
|
||||
border-color: #f8d486; }
|
||||
100% {
|
||||
border-color: #f8bb86; } }
|
||||
|
||||
.pulse-warning {
|
||||
-webkit-animation: pulse-warning 0.75s infinite alternate;
|
||||
animation: pulse-warning 0.75s infinite alternate; }
|
||||
|
||||
@-webkit-keyframes rotate-loading {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes rotate-loading {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
587
css/unneeded/bootstrap-theme.css
vendored
Normal file
587
css/unneeded/bootstrap-theme.css
vendored
Normal file
@@ -0,0 +1,587 @@
|
||||
/*!
|
||||
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
||||
* Copyright 2011-2015 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
.btn-default,
|
||||
.btn-primary,
|
||||
.btn-success,
|
||||
.btn-info,
|
||||
.btn-warning,
|
||||
.btn-danger {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-primary:active,
|
||||
.btn-success:active,
|
||||
.btn-info:active,
|
||||
.btn-warning:active,
|
||||
.btn-danger:active,
|
||||
.btn-default.active,
|
||||
.btn-primary.active,
|
||||
.btn-success.active,
|
||||
.btn-info.active,
|
||||
.btn-warning.active,
|
||||
.btn-danger.active {
|
||||
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-primary.disabled,
|
||||
.btn-success.disabled,
|
||||
.btn-info.disabled,
|
||||
.btn-warning.disabled,
|
||||
.btn-danger.disabled,
|
||||
.btn-default[disabled],
|
||||
.btn-primary[disabled],
|
||||
.btn-success[disabled],
|
||||
.btn-info[disabled],
|
||||
.btn-warning[disabled],
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
fieldset[disabled] .btn-primary,
|
||||
fieldset[disabled] .btn-success,
|
||||
fieldset[disabled] .btn-info,
|
||||
fieldset[disabled] .btn-warning,
|
||||
fieldset[disabled] .btn-danger {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.btn-default .badge,
|
||||
.btn-primary .badge,
|
||||
.btn-success .badge,
|
||||
.btn-info .badge,
|
||||
.btn-warning .badge,
|
||||
.btn-danger .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.btn:active,
|
||||
.btn.active {
|
||||
background-image: none;
|
||||
}
|
||||
.btn-default {
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dbdbdb;
|
||||
border-color: #ccc;
|
||||
}
|
||||
.btn-default:hover,
|
||||
.btn-default:focus {
|
||||
background-color: #e0e0e0;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
border-color: #dbdbdb;
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-default[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
.btn-default.disabled:hover,
|
||||
.btn-default[disabled]:hover,
|
||||
fieldset[disabled] .btn-default:hover,
|
||||
.btn-default.disabled:focus,
|
||||
.btn-default[disabled]:focus,
|
||||
fieldset[disabled] .btn-default:focus,
|
||||
.btn-default.disabled.focus,
|
||||
.btn-default[disabled].focus,
|
||||
fieldset[disabled] .btn-default.focus,
|
||||
.btn-default.disabled:active,
|
||||
.btn-default[disabled]:active,
|
||||
fieldset[disabled] .btn-default:active,
|
||||
.btn-default.disabled.active,
|
||||
.btn-default[disabled].active,
|
||||
fieldset[disabled] .btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.btn-primary:focus {
|
||||
background-color: #265a88;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-primary:active,
|
||||
.btn-primary.active {
|
||||
background-color: #265a88;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary.disabled,
|
||||
.btn-primary[disabled],
|
||||
fieldset[disabled] .btn-primary,
|
||||
.btn-primary.disabled:hover,
|
||||
.btn-primary[disabled]:hover,
|
||||
fieldset[disabled] .btn-primary:hover,
|
||||
.btn-primary.disabled:focus,
|
||||
.btn-primary[disabled]:focus,
|
||||
fieldset[disabled] .btn-primary:focus,
|
||||
.btn-primary.disabled.focus,
|
||||
.btn-primary[disabled].focus,
|
||||
fieldset[disabled] .btn-primary.focus,
|
||||
.btn-primary.disabled:active,
|
||||
.btn-primary[disabled]:active,
|
||||
fieldset[disabled] .btn-primary:active,
|
||||
.btn-primary.disabled.active,
|
||||
.btn-primary[disabled].active,
|
||||
fieldset[disabled] .btn-primary.active {
|
||||
background-color: #265a88;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success:hover,
|
||||
.btn-success:focus {
|
||||
background-color: #419641;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-success:active,
|
||||
.btn-success.active {
|
||||
background-color: #419641;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success.disabled,
|
||||
.btn-success[disabled],
|
||||
fieldset[disabled] .btn-success,
|
||||
.btn-success.disabled:hover,
|
||||
.btn-success[disabled]:hover,
|
||||
fieldset[disabled] .btn-success:hover,
|
||||
.btn-success.disabled:focus,
|
||||
.btn-success[disabled]:focus,
|
||||
fieldset[disabled] .btn-success:focus,
|
||||
.btn-success.disabled.focus,
|
||||
.btn-success[disabled].focus,
|
||||
fieldset[disabled] .btn-success.focus,
|
||||
.btn-success.disabled:active,
|
||||
.btn-success[disabled]:active,
|
||||
fieldset[disabled] .btn-success:active,
|
||||
.btn-success.disabled.active,
|
||||
.btn-success[disabled].active,
|
||||
fieldset[disabled] .btn-success.active {
|
||||
background-color: #419641;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info:hover,
|
||||
.btn-info:focus {
|
||||
background-color: #2aabd2;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-info:active,
|
||||
.btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info.disabled,
|
||||
.btn-info[disabled],
|
||||
fieldset[disabled] .btn-info,
|
||||
.btn-info.disabled:hover,
|
||||
.btn-info[disabled]:hover,
|
||||
fieldset[disabled] .btn-info:hover,
|
||||
.btn-info.disabled:focus,
|
||||
.btn-info[disabled]:focus,
|
||||
fieldset[disabled] .btn-info:focus,
|
||||
.btn-info.disabled.focus,
|
||||
.btn-info[disabled].focus,
|
||||
fieldset[disabled] .btn-info.focus,
|
||||
.btn-info.disabled:active,
|
||||
.btn-info[disabled]:active,
|
||||
fieldset[disabled] .btn-info:active,
|
||||
.btn-info.disabled.active,
|
||||
.btn-info[disabled].active,
|
||||
fieldset[disabled] .btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning:hover,
|
||||
.btn-warning:focus {
|
||||
background-color: #eb9316;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-warning:active,
|
||||
.btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning.disabled,
|
||||
.btn-warning[disabled],
|
||||
fieldset[disabled] .btn-warning,
|
||||
.btn-warning.disabled:hover,
|
||||
.btn-warning[disabled]:hover,
|
||||
fieldset[disabled] .btn-warning:hover,
|
||||
.btn-warning.disabled:focus,
|
||||
.btn-warning[disabled]:focus,
|
||||
fieldset[disabled] .btn-warning:focus,
|
||||
.btn-warning.disabled.focus,
|
||||
.btn-warning[disabled].focus,
|
||||
fieldset[disabled] .btn-warning.focus,
|
||||
.btn-warning.disabled:active,
|
||||
.btn-warning[disabled]:active,
|
||||
fieldset[disabled] .btn-warning:active,
|
||||
.btn-warning.disabled.active,
|
||||
.btn-warning[disabled].active,
|
||||
fieldset[disabled] .btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger:hover,
|
||||
.btn-danger:focus {
|
||||
background-color: #c12e2a;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-danger:active,
|
||||
.btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger.disabled,
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-danger,
|
||||
.btn-danger.disabled:hover,
|
||||
.btn-danger[disabled]:hover,
|
||||
fieldset[disabled] .btn-danger:hover,
|
||||
.btn-danger.disabled:focus,
|
||||
.btn-danger[disabled]:focus,
|
||||
fieldset[disabled] .btn-danger:focus,
|
||||
.btn-danger.disabled.focus,
|
||||
.btn-danger[disabled].focus,
|
||||
fieldset[disabled] .btn-danger.focus,
|
||||
.btn-danger.disabled:active,
|
||||
.btn-danger[disabled]:active,
|
||||
fieldset[disabled] .btn-danger:active,
|
||||
.btn-danger.disabled.active,
|
||||
.btn-danger[disabled].active,
|
||||
fieldset[disabled] .btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
background-image: none;
|
||||
}
|
||||
.thumbnail,
|
||||
.img-thumbnail {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus {
|
||||
background-color: #e8e8e8;
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.dropdown-menu > .active > a,
|
||||
.dropdown-menu > .active > a:hover,
|
||||
.dropdown-menu > .active > a:focus {
|
||||
background-color: #2e6da4;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.navbar-default {
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-default .navbar-nav > .open > a,
|
||||
.navbar-default .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
|
||||
background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-brand,
|
||||
.navbar-nav > li > a {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
||||
}
|
||||
.navbar-inverse {
|
||||
background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
|
||||
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.navbar-inverse .navbar-nav > .open > a,
|
||||
.navbar-inverse .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
|
||||
background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-inverse .navbar-brand,
|
||||
.navbar-inverse .navbar-nav > li > a {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-static-top,
|
||||
.navbar-fixed-top,
|
||||
.navbar-fixed-bottom {
|
||||
border-radius: 0;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
|
||||
color: #fff;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
}
|
||||
.alert {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.alert-success {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b2dba1;
|
||||
}
|
||||
.alert-info {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #9acfea;
|
||||
}
|
||||
.alert-warning {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #f5e79e;
|
||||
}
|
||||
.alert-danger {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dca7a7;
|
||||
}
|
||||
.progress {
|
||||
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-striped {
|
||||
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
}
|
||||
.list-group {
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.list-group-item.active,
|
||||
.list-group-item.active:hover,
|
||||
.list-group-item.active:focus {
|
||||
text-shadow: 0 -1px 0 #286090;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #2b669a;
|
||||
}
|
||||
.list-group-item.active .badge,
|
||||
.list-group-item.active:hover .badge,
|
||||
.list-group-item.active:focus .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.panel {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.panel-default > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-primary > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-success > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-info > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-warning > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-danger > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.well {
|
||||
background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dcdcdc;
|
||||
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-theme.css.map */
|
||||
1
css/unneeded/bootstrap-theme.css.map
Normal file
1
css/unneeded/bootstrap-theme.css.map
Normal file
File diff suppressed because one or more lines are too long
6
css/unneeded/bootstrap-theme.min.css
vendored
Normal file
6
css/unneeded/bootstrap-theme.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
css/unneeded/bootstrap-theme.min.css.map
Normal file
1
css/unneeded/bootstrap-theme.min.css.map
Normal file
File diff suppressed because one or more lines are too long
6760
css/unneeded/bootstrap.css
vendored
Normal file
6760
css/unneeded/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
css/unneeded/bootstrap.css.map
Normal file
1
css/unneeded/bootstrap.css.map
Normal file
File diff suppressed because one or more lines are too long
1
css/unneeded/bootstrap.min.css.map
Normal file
1
css/unneeded/bootstrap.min.css.map
Normal file
File diff suppressed because one or more lines are too long
BIN
fonts/glyphicons-halflings-regular.eot
Normal file
BIN
fonts/glyphicons-halflings-regular.eot
Normal file
Binary file not shown.
288
fonts/glyphicons-halflings-regular.svg
Normal file
288
fonts/glyphicons-halflings-regular.svg
Normal file
@@ -0,0 +1,288 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata></metadata>
|
||||
<defs>
|
||||
<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
|
||||
<font-face units-per-em="1200" ascent="960" descent="-240" />
|
||||
<missing-glyph horiz-adv-x="500" />
|
||||
<glyph horiz-adv-x="0" />
|
||||
<glyph horiz-adv-x="400" />
|
||||
<glyph unicode=" " />
|
||||
<glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
|
||||
<glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode=" " />
|
||||
<glyph unicode="¥" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
|
||||
<glyph unicode=" " horiz-adv-x="650" />
|
||||
<glyph unicode=" " horiz-adv-x="1300" />
|
||||
<glyph unicode=" " horiz-adv-x="650" />
|
||||
<glyph unicode=" " horiz-adv-x="1300" />
|
||||
<glyph unicode=" " horiz-adv-x="433" />
|
||||
<glyph unicode=" " horiz-adv-x="325" />
|
||||
<glyph unicode=" " horiz-adv-x="216" />
|
||||
<glyph unicode=" " horiz-adv-x="216" />
|
||||
<glyph unicode=" " horiz-adv-x="162" />
|
||||
<glyph unicode=" " horiz-adv-x="260" />
|
||||
<glyph unicode=" " horiz-adv-x="72" />
|
||||
<glyph unicode=" " horiz-adv-x="260" />
|
||||
<glyph unicode=" " horiz-adv-x="325" />
|
||||
<glyph unicode="€" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
|
||||
<glyph unicode="₽" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
|
||||
<glyph unicode="−" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="⌛" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
|
||||
<glyph unicode="◼" horiz-adv-x="500" d="M0 0z" />
|
||||
<glyph unicode="☁" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
|
||||
<glyph unicode="⛺" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
|
||||
<glyph unicode="✉" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
|
||||
<glyph unicode="✏" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
|
||||
<glyph unicode="" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
|
||||
<glyph unicode="" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
|
||||
<glyph unicode="" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
|
||||
<glyph unicode="" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
|
||||
<glyph unicode="" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
|
||||
<glyph unicode="" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
|
||||
<glyph unicode="" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
|
||||
<glyph unicode="" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
|
||||
<glyph unicode="" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
|
||||
<glyph unicode="" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
|
||||
<glyph unicode="" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
|
||||
<glyph unicode="" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
|
||||
<glyph unicode="" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
|
||||
<glyph unicode="" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
|
||||
<glyph unicode="" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
|
||||
<glyph unicode="" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
|
||||
<glyph unicode="" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
|
||||
<glyph unicode="" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
|
||||
<glyph unicode="" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
|
||||
<glyph unicode="" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
|
||||
<glyph unicode="" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
|
||||
<glyph unicode="" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
|
||||
<glyph unicode="" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
|
||||
<glyph unicode="" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
|
||||
<glyph unicode="" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
|
||||
<glyph unicode="" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
|
||||
<glyph unicode="" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
|
||||
<glyph unicode="" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
|
||||
<glyph unicode="" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
|
||||
<glyph unicode="" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
|
||||
<glyph unicode="" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
|
||||
<glyph unicode="" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
|
||||
<glyph unicode="" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
|
||||
<glyph unicode="" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
|
||||
<glyph unicode="" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
|
||||
<glyph unicode="" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
|
||||
<glyph unicode="" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
|
||||
<glyph unicode="" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
|
||||
<glyph unicode="" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
|
||||
<glyph unicode="" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
|
||||
<glyph unicode="" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
|
||||
<glyph unicode="" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
|
||||
<glyph unicode="" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
|
||||
<glyph unicode="" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
|
||||
<glyph unicode="" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
|
||||
<glyph unicode="" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
|
||||
<glyph unicode="" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
|
||||
<glyph unicode="" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
|
||||
<glyph unicode="" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
|
||||
<glyph unicode="" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
|
||||
<glyph unicode="" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
|
||||
<glyph unicode="" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
|
||||
<glyph unicode="" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
|
||||
<glyph unicode="" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
|
||||
<glyph unicode="" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
|
||||
<glyph unicode="" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
|
||||
<glyph unicode="" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
|
||||
<glyph unicode="" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
|
||||
<glyph unicode="" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
|
||||
<glyph unicode="" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
|
||||
<glyph unicode="" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
|
||||
<glyph unicode="" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
|
||||
<glyph unicode="" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
|
||||
<glyph unicode="" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
|
||||
<glyph unicode="" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
|
||||
<glyph unicode="" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
|
||||
<glyph unicode="" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
|
||||
<glyph unicode="" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
|
||||
<glyph unicode="" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
|
||||
<glyph unicode="" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
|
||||
<glyph unicode="" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
|
||||
<glyph unicode="" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
|
||||
<glyph unicode="" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
|
||||
<glyph unicode="" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
|
||||
<glyph unicode="" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
|
||||
<glyph unicode="" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
|
||||
<glyph unicode="" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
|
||||
<glyph unicode="" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
|
||||
<glyph unicode="" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
|
||||
<glyph unicode="" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
|
||||
<glyph unicode="" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
|
||||
<glyph unicode="" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
|
||||
<glyph unicode="" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
|
||||
<glyph unicode="" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
|
||||
<glyph unicode="" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
|
||||
<glyph unicode="" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
|
||||
<glyph unicode="" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
|
||||
<glyph unicode="" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
|
||||
<glyph unicode="" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
|
||||
<glyph unicode="" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
|
||||
<glyph unicode="" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
|
||||
<glyph unicode="" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
|
||||
<glyph unicode="" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
|
||||
<glyph unicode="" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
|
||||
<glyph unicode="" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
|
||||
<glyph unicode="" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
|
||||
<glyph unicode="" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
|
||||
<glyph unicode="" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
|
||||
<glyph unicode="" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
|
||||
<glyph unicode="" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
|
||||
<glyph unicode="" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
|
||||
<glyph unicode="" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
|
||||
<glyph unicode="" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
|
||||
<glyph unicode="" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
|
||||
<glyph unicode="" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
|
||||
<glyph unicode="" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
|
||||
<glyph unicode="" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
|
||||
<glyph unicode="" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
|
||||
<glyph unicode="" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
|
||||
<glyph unicode="" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
|
||||
<glyph unicode="" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
|
||||
<glyph unicode="" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
|
||||
<glyph unicode="" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
|
||||
<glyph unicode="" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
|
||||
<glyph unicode="" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
|
||||
<glyph unicode="" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
|
||||
<glyph unicode="" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
|
||||
<glyph unicode="" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
|
||||
<glyph unicode="" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
|
||||
<glyph unicode="" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
|
||||
<glyph unicode="" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
|
||||
<glyph unicode="" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
|
||||
<glyph unicode="" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
|
||||
<glyph unicode="" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
|
||||
<glyph unicode="" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
|
||||
<glyph unicode="" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
|
||||
<glyph unicode="" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
|
||||
<glyph unicode="" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
|
||||
<glyph unicode="" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
|
||||
<glyph unicode="" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
|
||||
<glyph unicode="" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
|
||||
<glyph unicode="" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
|
||||
<glyph unicode="" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
|
||||
<glyph unicode="" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
|
||||
<glyph unicode="" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
|
||||
<glyph unicode="" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
|
||||
<glyph unicode="" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
|
||||
<glyph unicode="" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
|
||||
<glyph unicode="" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
|
||||
<glyph unicode="" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
|
||||
<glyph unicode="" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
|
||||
<glyph unicode="" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
|
||||
<glyph unicode="" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
|
||||
<glyph unicode="" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
|
||||
<glyph unicode="" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
|
||||
<glyph unicode="" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
|
||||
<glyph unicode="" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
|
||||
<glyph unicode="" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
|
||||
<glyph unicode="" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
|
||||
<glyph unicode="" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
|
||||
<glyph unicode="" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
|
||||
<glyph unicode="" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
|
||||
<glyph unicode="" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
|
||||
<glyph unicode="" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
|
||||
<glyph unicode="" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
|
||||
<glyph unicode="" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
|
||||
<glyph unicode="" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
|
||||
<glyph unicode="" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
|
||||
<glyph unicode="" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
|
||||
<glyph unicode="" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
|
||||
<glyph unicode="" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
|
||||
<glyph unicode="" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
|
||||
<glyph unicode="" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
|
||||
<glyph unicode="" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
|
||||
<glyph unicode="" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
|
||||
<glyph unicode="" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
|
||||
<glyph unicode="" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
|
||||
<glyph unicode="" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
|
||||
<glyph unicode="" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
|
||||
<glyph unicode="" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
|
||||
<glyph unicode="" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
|
||||
<glyph unicode="" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
|
||||
<glyph unicode="" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
|
||||
<glyph unicode="" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
|
||||
<glyph unicode="" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
|
||||
<glyph unicode="" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
|
||||
<glyph unicode="" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
|
||||
<glyph unicode="" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
|
||||
<glyph unicode="" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
|
||||
<glyph unicode="" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
|
||||
<glyph unicode="" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
|
||||
<glyph unicode="" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
|
||||
<glyph unicode="" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
|
||||
<glyph unicode="🔑" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
|
||||
<glyph unicode="🚪" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
After Width: | Height: | Size: 106 KiB |
BIN
fonts/glyphicons-halflings-regular.ttf
Normal file
BIN
fonts/glyphicons-halflings-regular.ttf
Normal file
Binary file not shown.
BIN
fonts/glyphicons-halflings-regular.woff
Normal file
BIN
fonts/glyphicons-halflings-regular.woff
Normal file
Binary file not shown.
BIN
fonts/glyphicons-halflings-regular.woff2
Normal file
BIN
fonts/glyphicons-halflings-regular.woff2
Normal file
Binary file not shown.
20
html/Deckblatt.html
Normal file
20
html/Deckblatt.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Deckblatt-Template</title>
|
||||
<link rel="stylesheet" href="/css/deckblatt.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
|
||||
<div class="page">
|
||||
<div class="subpage">Page 1/2</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
45
html/auswertenEinzelneBox.html
Normal file
45
html/auswertenEinzelneBox.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<div>
|
||||
<div id="header">
|
||||
<table id=tblHeader>
|
||||
<tr><td>Bauteiltyp wählen:</td></tr>
|
||||
</table>
|
||||
|
||||
<button id="btn_getBoxen3040">3040</button>
|
||||
<button id="btn_getBoxen3030">3030</button>
|
||||
<button id="btn_getBoxen2121">2121</button>
|
||||
<button id="btn_getBoxen2121C">2121C</button>
|
||||
</div>
|
||||
<div id="Boxen">
|
||||
<select id="lb_boxen">
|
||||
<option> noch nichts geladen </option>
|
||||
</select>
|
||||
<!-- <table>
|
||||
<tr>
|
||||
</tr>
|
||||
</table> -->
|
||||
</div>
|
||||
<div id="div_table">
|
||||
<table id="tblMesswerte" class="table-striped table-bordered">
|
||||
<thead id="theadMesswerte">
|
||||
<tr>
|
||||
<th>TXLCode</th>
|
||||
<th>OL1</th>
|
||||
<th>OL2</th>
|
||||
<th>OW1</th>
|
||||
<th>IW2</th>
|
||||
<th>IL1</th>
|
||||
<th>IL2</th>
|
||||
<th>IW1</th>
|
||||
<th>IW2</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
<th>R4</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbodyMesswerte">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
108
html/auswertung.html
Normal file
108
html/auswertung.html
Normal file
@@ -0,0 +1,108 @@
|
||||
<div id="divAuswertungen">
|
||||
<div id="divButtons">
|
||||
<button id="btnEinzelbox" class="mybtn">Einzelboxauswertung</button>
|
||||
<button id="btnLieferung" class="mybtn">Lieferung</button>
|
||||
</div>
|
||||
<div id="einzelbox" class="invisible">
|
||||
<div id="divSelects">
|
||||
<table>
|
||||
<tr><th>Typ</th><th>BoxNr</th></tr>
|
||||
<tr><td>
|
||||
<select id="selTmpTyp">
|
||||
<option value="none"></option>
|
||||
<option value="3040"> 3040 </option>
|
||||
<option value="3030"> 3030 </option>
|
||||
<option value="2121"> 2121 </option>
|
||||
<option value="2121C"> 2121C </option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select id="selBoxNr" class="invisible"></select>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div><!-- end divSelects-->
|
||||
<div id="divRawdata">
|
||||
<table id="tblMesswerte" class="invisible">
|
||||
<thead id="theadMesswerte">
|
||||
<tr>
|
||||
<th>TXLCode</th>
|
||||
<th>OL1</th>
|
||||
<th>OL2</th>
|
||||
<th>OW1</th>
|
||||
<th>IW2</th>
|
||||
<th>IL1</th>
|
||||
<th>IL2</th>
|
||||
<th>IW1</th>
|
||||
<th>IW2</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
<th>R4</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbodyMesswerte">
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- end divRawdata-->
|
||||
</div><!-- end einzelbox-->
|
||||
|
||||
<div id="lieferDiv" class="invisible">
|
||||
<div id="lieferTyp">
|
||||
<button id="btnLT3040" class="small-btn">3040</button>
|
||||
<button id="btnLT3030" class="small-btn">3030</button>
|
||||
<button id="btnLT2121" class="small-btn">2121</button>
|
||||
<button id="btnLT2121C" class="small-btn">2121C</button>
|
||||
</div>
|
||||
<div id="lieferSteuerBtns">
|
||||
<button id="btnLieferReset" class="small-btn">zurücksetzen</button>
|
||||
<button id="btnLieferungErstellen" class="small-btn">Lieferung zusammenstellen</button>
|
||||
<button id="btnZumtesten" class="small-btn">'n test-ding'</button>
|
||||
</div>
|
||||
<div id="LieferdatenDiv">
|
||||
<p class="bold"> PO-Nr: </p><input type="text" id="tbPONr" placeholder="12345678-90" class="inp_messwerte">
|
||||
<p class="bold">Lieferdatum: </p><input type="date" id="inpLieferDatum" placeholder="JJJJMMTT" class="inp_messwerte">
|
||||
</div>
|
||||
<div id="zuLieferndeBoxen">
|
||||
<select size=18 multiple id="lbBoxen">
|
||||
</select>
|
||||
</div>
|
||||
<div id="gewaehlteBoxen">
|
||||
<table>
|
||||
<tr><td>Box 1: </td><td><input type="text" id="gewBox01" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 2: </td><td><input type="text" id="gewBox02" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 3: </td><td><input type="text" id="gewBox03" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 4: </td><td><input type="text" id="gewBox04" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 5: </td><td><input type="text" id="gewBox05" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 6: </td><td><input type="text" id="gewBox06" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 7: </td><td><input type="text" id="gewBox07" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 8: </td><td><input type="text" id="gewBox08" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 9: </td><td><input type="text" id="gewBox09" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 10: </td><td><input type="text" id="gewBox10" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 11: </td><td><input type="text" id="gewBox11" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 12: </td><td><input type="text" id="gewBox12" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 13: </td><td><input type="text" id="gewBox13" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 14: </td><td><input type="text" id="gewBox14" class="inp_messwerte"></input></td></tr>
|
||||
<tr><td>Box 15: </td><td><input type="text" id="gewBox15" class="inp_messwerte"></input></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="messdaten">
|
||||
<table id="tblMessdatenFuerLieferung">
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- end lieferDiv-->
|
||||
|
||||
<div id="grafiken">
|
||||
<table id="btnCharts" class="invisible">
|
||||
<tr><td><button id="btnChart1" class="mybtnsmall">OL/OW</button></td></tr>
|
||||
<tr><td><button id="btnChart2" class="mybtnsmall">IL/IW</button></td></tr>
|
||||
<tr><td><button id="btnChart3" class="mybtnsmall">RIMs</button></td></tr>
|
||||
<tr><td><button id="btnChart4" class="mybtnsmall">R-Diffs</button></td></tr>
|
||||
<tr><td><button id="btnChart5" class="mybtnsmall">Rauh.</button></td></tr>
|
||||
<tr><td><button id="btnChart6" class="mybtnsmall"></button></td></tr>
|
||||
<tr><td><button id="btnChart7" class="mybtnsmall">gen</button></td></tr>
|
||||
</table>
|
||||
<div id="chart" class="invisible" style="height: 420px; width: 700px;"></div>
|
||||
<div id="chart2" class="invisible" style="height: 420px; width: 700px;"></div>
|
||||
</div><!-- end grafiken-->
|
||||
</div>
|
||||
141
html/auswertung_.html
Normal file
141
html/auswertung_.html
Normal file
@@ -0,0 +1,141 @@
|
||||
<div>
|
||||
<div id="header">
|
||||
<table style="text-align: center; border: solid black 1px; font-family: Hack; font-size: 1.3em;"><tr>
|
||||
<td style="border: solid black 1px; padding: 25px;">3040: <select class="aw">
|
||||
<option value="none"> auswählen </option>
|
||||
<option value="GW1"> Alle </option>
|
||||
<option value="GW101">Tool 1</option>
|
||||
<option value="GW102">Tool 2</option>
|
||||
<option value="GW103">Tool 3</option>
|
||||
<option value="GW104">Tool 4</option>
|
||||
<option value="GW105">Tool 5</option>
|
||||
<option value="GW106">Tool 6</option>
|
||||
<option value="GW107">Tool 7</option>
|
||||
<option value="GW108">Tool 8</option>
|
||||
<option value="GW109">Tool 9</option>
|
||||
<option value="GW110">Tool 10</option>
|
||||
<option value="GW111">Tool 11</option>
|
||||
<option value="GW112">Tool 12</option>
|
||||
<option value="GW113">Tool 13</option>
|
||||
<option value="GW114">Tool 14</option>
|
||||
<option value="GW115">Tool 15</option>
|
||||
</select></td>
|
||||
<td style="border: solid black 1px; padding: 25px;">2121: <select class="aw">
|
||||
<option value="none"> auswählen </option>
|
||||
<option value="GA1"> Alle </option>
|
||||
<option value="GA101">Tool 1</option>
|
||||
<option value="GA102">Tool 2</option>
|
||||
<option value="GA103">Tool 3</option>
|
||||
<option value="GA104">Tool 4</option>
|
||||
<option value="GA105">Tool 5</option>
|
||||
<option value="GA106">Tool 6</option>
|
||||
<option value="GA107">Tool 7</option>
|
||||
<option value="GA108">Tool 8</option>
|
||||
<option value="GA109">Tool 9</option>
|
||||
<option value="GA110">Tool 10</option>
|
||||
<option value="GA111">Tool 11</option>
|
||||
<option value="GA112">Tool 12</option>
|
||||
<option value="GA113">Tool 13</option>
|
||||
<option value="GA114">Tool 14</option>
|
||||
<option value="GA115">Tool 15</option>
|
||||
</select></td>
|
||||
<td style="border: solid black 1px; padding: 25px;">2121C: <select class="aw">
|
||||
<option value="none"> auswählen </option>
|
||||
<option value="GC1"> Alle </option>
|
||||
<option value="GC101">Tool 1</option>
|
||||
<option value="GC102">Tool 2</option>
|
||||
<option value="GC103">Tool 3</option>
|
||||
<option value="GC104">Tool 4</option>
|
||||
<option value="GC105">Tool 5</option>
|
||||
<option value="GC106">Tool 6</option>
|
||||
<option value="GC107">Tool 7</option>
|
||||
<option value="GC108">Tool 8</option>
|
||||
<option value="GC109">Tool 9</option>
|
||||
<option value="GC110">Tool 10</option>
|
||||
<option value="GC111">Tool 11</option>
|
||||
<option value="GC112">Tool 12</option>
|
||||
<option value="GC113">Tool 13</option>
|
||||
<option value="GC114">Tool 14</option>
|
||||
<option value="GC115">Tool 15</option>
|
||||
</select></td>
|
||||
<td style="border: solid black 1px; padding: 25px;">3030: <select class="aw">
|
||||
<option value="none"> auswählen </option>
|
||||
<option value="GX1"> Alle </option>
|
||||
<option value="GX101">Tool 1</option>
|
||||
<option value="GX102">Tool 2</option>
|
||||
<option value="GX103">Tool 3</option>
|
||||
<option value="GX104">Tool 4</option>
|
||||
<option value="GX105">Tool 5</option>
|
||||
<option value="GX106">Tool 6</option>
|
||||
<option value="GX107">Tool 7</option>
|
||||
<option value="GX108">Tool 8</option>
|
||||
<option value="GX109">Tool 9</option>
|
||||
<option value="GX110">Tool 10</option>
|
||||
<option value="GX111">Tool 11</option>
|
||||
<option value="GX112">Tool 12</option>
|
||||
<option value="GX113">Tool 13</option>
|
||||
<option value="GX114">Tool 14</option>
|
||||
<option value="GX115">Tool 15</option>
|
||||
</select></td>
|
||||
</tr></table>
|
||||
<button id="getBauteile">3040</button>
|
||||
</div>
|
||||
<div id="daten">
|
||||
<table id="results" class="table table-striped tablesorter">
|
||||
<thead>
|
||||
<tr id="resultsHead">
|
||||
<th>TXLCode</th>
|
||||
<th>status</th>
|
||||
<th>Abf-Dat</th>
|
||||
<th>Mess-Dat</th>
|
||||
<th>Rau-Dat</th>
|
||||
<th>Lief-Dat</th>
|
||||
<th>Lieferbox</th>
|
||||
<th>Ofen</th>
|
||||
<th>SchottOrderNr</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <tr>
|
||||
<th style="display: none;">id</th>
|
||||
<th>TXLCode</th>
|
||||
<th style="display: none;">status</th>
|
||||
<th>Abformdatum</th>
|
||||
<th>Messdatum</th>
|
||||
<th>Rauheitsdatum</th>
|
||||
<th>Lieferbox</th>
|
||||
<th style="display: none;">Lieferdatum</th>
|
||||
<th style="display: none;">geliefert</th>
|
||||
<th>Ofen</th>
|
||||
<th style="display: none;">Ofenposition</th>
|
||||
<th style="display: none;">OL1</th>
|
||||
<th style="display: none;">OL2</th>
|
||||
<th style="display: none;">OW1</th>
|
||||
<th style="display: none;">OW2</th>
|
||||
<th style="display: none;">R11</th>
|
||||
<th style="display: none;">R12</th>
|
||||
<th style="display: none;">R13</th>
|
||||
<th style="display: none;">R21</th>
|
||||
<th style="display: none;">R22</th>
|
||||
<th style="display: none;">R23</th>
|
||||
<th style="display: none;">R31</th>
|
||||
<th style="display: none;">R32</th>
|
||||
<th style="display: none;">R33</th>
|
||||
<th style="display: none;">R41</th>
|
||||
<th style="display: none;">R42</th>
|
||||
<th style="display: none;">R43</th>
|
||||
<th style="display: none;">CW</th>
|
||||
<th style="display: none;">LW</th>
|
||||
<th style="display: none;">AbformComm</th>
|
||||
<th style="display: none;">MessComm</th>
|
||||
<th style="display: none;">RauComm</th>
|
||||
<th style="display: none;">LieferComm</th>
|
||||
<th style="display: none;">SchottOrderNr</th>
|
||||
<th style="display: none;">statusComm</th>
|
||||
</tr> -->
|
||||
49
html/boxenerstellen.html
Normal file
49
html/boxenerstellen.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<div id="boxenerstellung">
|
||||
<div id="divCodeUndBox">
|
||||
<table>
|
||||
<tr><td><label for="tbTXLCode" id="lblTXLCode">TXLCode: </label></td><td><input type="text" name="TXLCode" id="tbTXLCode"></td></tr>
|
||||
<tr><td><label for="tbBoxNr" id="lblBoxNr">Boxennummer:</label></td><td><input type="number" name="BoxNr" id="tbBoxNr"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<form id="Boxerstellung">
|
||||
<div id="divBoxinhalt">
|
||||
<label for="tbBoxinhalt" id="lblBoxInhalt">Boxeninhalt:</label><br />
|
||||
<select id="selBauteile" size="9">
|
||||
<option value="part1"></option>
|
||||
<option value="part2"></option>
|
||||
<option value="part3"></option>
|
||||
<option value="part4"></option>
|
||||
<option value="part5"></option>
|
||||
<option value="part6"></option>
|
||||
<option value="part7"></option>
|
||||
<option value="part8"></option>
|
||||
<option value="part9"></option>
|
||||
</select>
|
||||
<div id="divComments">
|
||||
<label for="tbCom1" id="lblCom">Kommentare:</label><br />
|
||||
<label for="tbCom1" id="lblCom1"> 1 </label><input type="text" name="Com1" id="tbCom1" class="tbCom">
|
||||
<label for="tbCom2" id="lblCom2"> 2 </label><input type="text" name="Com2" id="tbCom2" class="tbCom">
|
||||
<label for="tbCom3" id="lblCom3"> 3 </label><input type="text" name="Com3" id="tbCom3" class="tbCom">
|
||||
<label for="tbCom4" id="lblCom4"> 4 </label><input type="text" name="Com4" id="tbCom4" class="tbCom">
|
||||
<label for="tbCom5" id="lblCom5"> 5 </label><input type="text" name="Com5" id="tbCom5" class="tbCom">
|
||||
<label for="tbCom6" id="lblCom6"> 6 </label><input type="text" name="Com6" id="tbCom6" class="tbCom">
|
||||
<label for="tbCom7" id="lblCom7"> 7 </label><input type="text" name="Com7" id="tbCom7" class="tbCom">
|
||||
<label for="tbCom8" id="lblCom8"> 8 </label><input type="text" name="Com8" id="tbCom8" class="tbCom">
|
||||
<label for="tbCom9" id="lblCom9"> 9 </label><input type="text" name="Com9" id="tbCom9" class="tbCom">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="divFlavor">
|
||||
<p id="BETMPType"></p>
|
||||
</div>
|
||||
<div id="divBtns">
|
||||
<button class="mybtn" id="btnReset">Neustart</button>
|
||||
<button class="mybtn" id="btnDelLast">lösche letzes Bauteil</button>
|
||||
<button class="mybtn" id="btnCreateBox" disabled>Box erstellen</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="line"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
17
html/chartTest.html
Normal file
17
html/chartTest.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script src="/js/canvasjs-1.7.0.js"></script>
|
||||
<script src="/js/jquery-1.12.4.js"></script>
|
||||
<script src="/js/chartTest.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="btns">
|
||||
<button id="btn00">show</button>
|
||||
<button id="btn01">+</button>
|
||||
<button id="btn02">-</button>
|
||||
<button id="btn03">?</button>
|
||||
</div>
|
||||
<div id="chartContainer" style="height: 450px; width: 800px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
19
html/chartTest2.html
Normal file
19
html/chartTest2.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/css/c3.css">
|
||||
<script src="http://d3js.org/d3.v3.js"></script>
|
||||
<script src="/js/c3.js"></script>
|
||||
<script src="/js/jquery-1.12.4.js"></script>
|
||||
<script src="/js/chartTest2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="btns">
|
||||
<button id="btn00">show</button>
|
||||
<button id="btn01">+</button>
|
||||
<button id="btn02">-</button>
|
||||
<button id="btn03">?</button>
|
||||
</div>
|
||||
<div id="chart" style="height: 450px; width: 800px; border: solid black 1px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
10
html/converter.html
Normal file
10
html/converter.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<h2>!CONVERTER!</h2>
|
||||
<div id="divConverter">
|
||||
<table id="tblToConvert">
|
||||
<thead></thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<div id="convBtns">
|
||||
<button id="btnGet2121">get 2121</button>
|
||||
</div>
|
||||
</div>
|
||||
53
html/messarchiv.html
Normal file
53
html/messarchiv.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<button id="btn_ma_t1" class="btnMA">Tool 1</button>
|
||||
<button id="btn_ma_t2" class="btnMA">Tool 2</button>
|
||||
<button id="btn_ma_t3" class="btnMA">Tool 3</button>
|
||||
<button id="btn_ma_t4" class="btnMA">Tool 4</button>
|
||||
<button id="btn_ma_t5" class="btnMA">Tool 5</button>
|
||||
<button id="btn_ma_t6" class="btnMA">Tool 6</button>
|
||||
<button id="btn_ma_t7" class="btnMA">Tool 7</button>
|
||||
<button id="btn_ma_t8" class="btnMA">Tool 8</button>
|
||||
<button id="btn_ma_t9" class="btnMA">Tool 9</button>
|
||||
<button id="btn_ma_t10" class="btnMA">Tool 10</button>
|
||||
<button id="btn_ma_t11" class="btnMA">Tool 11</button>
|
||||
<button id="btn_ma_t12" class="btnMA">Tool 12</button>
|
||||
<button id="btn_ma_t13" class="btnMA">Tool 13</button>
|
||||
<button id="btn_ma_t14" class="btnMA">Tool 14</button>
|
||||
<button id="btn_ma_t15" class="btnMA">Tool 15</button>
|
||||
<button id="btn_ma_t16" class="btnMA">Tool 16</button>
|
||||
<button id="btn_ma_t17" class="btnMA">Tool 17</button>
|
||||
<button id="btn_ma_t18" class="btnMA">Tool 18</button>
|
||||
<button id="btn_ma_t19" class="btnMA">Tool 19</button>
|
||||
<button id="btn_ma_t20" class="btnMA">Tool 20</button>
|
||||
<button id="btn_ma_t21" class="btnMA">Tool 21</button>
|
||||
<button id="btn_ma_t22" class="btnMA">Tool 22</button>
|
||||
<button id="btn_ma_t23" class="btnMA">Tool 23</button>
|
||||
<button id="btn_ma_t24" class="btnMA">Tool 24</button>
|
||||
<button id="btn_ma_t25" class="btnMA">Tool 25</button>
|
||||
<table id="tblMessarchiv">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>TXLCode</th>
|
||||
<th>Tool</th>
|
||||
<th>Part</th>
|
||||
<th>OL1</th>
|
||||
<th>OL2</th>
|
||||
<th>OW1</th>
|
||||
<th>OW2</th>
|
||||
<th>R11</th>
|
||||
<th>R12</th>
|
||||
<th>R13</th>
|
||||
<th>R21</th>
|
||||
<th>R22</th>
|
||||
<th>R23</th>
|
||||
<th>R31</th>
|
||||
<th>R32</th>
|
||||
<th>R33</th>
|
||||
<th>R41</th>
|
||||
<th>R42</th>
|
||||
<th>R43</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
41
html/messmaske2121.html
Normal file
41
html/messmaske2121.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<div id="messmaske">
|
||||
<form id="frmMM2121">
|
||||
<div id="MM2121bauteilOuter">
|
||||
<div id="MM2121bauteilInner">
|
||||
<div id="divComm2121"><textarea id="tb_mm2121_comm" class="comm" cols="40" rows="2" placeholder="Kommentar (falls nötig)"></textarea></div>
|
||||
<div id="divDesc2121"><p id="mm2121Desc">2121</p></div>
|
||||
<div id="divToolpart2121">
|
||||
<input type="text" id="tb_mm2121_tool" placeholder="TT" tabindex="1">
|
||||
<input type="text" id="tb_mm2121_rev" placeholder="RR" tabindex="2">
|
||||
<input type="text" id="tb_mm2121_part" placeholder="PPPP" tabindex="3">
|
||||
</div>
|
||||
<div id="divSide1-2121"><span class="sideNr" id="MM2121Side1"><input type="text" class="inp_messwerte" id="tb_mm2121_OL1" placeholder="OL1" tabindex="4">1</span></div>
|
||||
<div id="divSide2-2121"><span class="sideNr" id="MM2121Side2">2</span></div>
|
||||
<div id="divSide4-2121"><span class="sideNr" id="MM2121Side4">4<input type="text" class="inp_messwerte" id="tb_mm2121_OW1" placeholder="OW1" tabindex="5"></span></div>
|
||||
<div id="divSide3-2121"><span class="sideNr" id="MM2121Side3">3</span></div>
|
||||
</div>
|
||||
|
||||
<div id="divR3-2121">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r31" placeholder="R31" tabindex="6">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r32" placeholder="R32" tabindex="7">
|
||||
</div>
|
||||
<div id="divR2-2121">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r21" placeholder="R21" tabindex="8">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r22" placeholder="R22" tabindex="9">
|
||||
</div>
|
||||
<div id="divR4-2121">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r41" placeholder="R41" tabindex="10">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r42" placeholder="R42" tabindex="11">
|
||||
</div>
|
||||
<div id="divR1-2121">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r11" placeholder="R11" tabindex="12">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121_r12" placeholder="R12" tabindex="13">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<button id="btn_mm2121_check" tabindex="14">Check</button>
|
||||
<button id="btn_mm2121_eintragen" tabindex="15">eintragen</button>
|
||||
<button id="btn_mm2121_uups">Uups!</button>
|
||||
|
||||
</div>
|
||||
41
html/messmaske2121C.html
Normal file
41
html/messmaske2121C.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<div id="messmaske">
|
||||
<form id="frmMM2121C">
|
||||
<div id="MM2121CbauteilOuter">
|
||||
<div id="MM2121CbauteilInner">
|
||||
<div id="divComm2121C"><textarea id="tb_mm2121C_comm" class="comm" cols="40" rows="2" placeholder="Kommentar (falls nötig)"></textarea></div>
|
||||
<div id="divDesc2121C"><p id="mm2121CDesc">2121C</p></div>
|
||||
<div id="divToolpart2121C">
|
||||
<input type="text" id="tb_mm2121C_tool" placeholder="TT" tabindex="1">
|
||||
<input type="text" id="tb_mm2121C_rev" placeholder="RR" tabindex="2">
|
||||
<input type="text" id="tb_mm2121C_part" placeholder="PPPP" tabindex="3">
|
||||
</div>
|
||||
<div id="divSide1-2121C"><span class="sideNr" id="MM2121CSide1"><input type="text" class="inp_messwerte" id="tb_mm2121C_OL1" placeholder="OL1" tabindex="4">1</span></div>
|
||||
<div id="divSide2-2121C"><span class="sideNr" id="MM2121CSide2">2</span></div>
|
||||
<div id="divSide4-2121C"><span class="sideNr" id="MM2121CSide4">4<input type="text" class="inp_messwerte" id="tb_mm2121C_OW1" placeholder="OW1" tabindex="5"></span></div>
|
||||
<div id="divSide3-2121C"><span class="sideNr" id="MM2121CSide3">3</span></div>
|
||||
</div>
|
||||
|
||||
<div id="divR3-2121C">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r31" placeholder="R31" tabindex="6">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r32" placeholder="R32" tabindex="7">
|
||||
</div>
|
||||
<div id="divR2-2121C">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r21" placeholder="R21" tabindex="8">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r22" placeholder="R22" tabindex="9">
|
||||
</div>
|
||||
<div id="divR4-2121C">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r41" placeholder="R41" tabindex="10">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r42" placeholder="R42" tabindex="11">
|
||||
</div>
|
||||
<div id="divR1-2121C">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r11" placeholder="R11" tabindex="12">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm2121C_r12" placeholder="R12" tabindex="13">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<button id="btn_mm2121C_check" tabindex="14">Check</button>
|
||||
<button id="btn_mm2121C_eintragen" tabindex="15">eintragen</button>
|
||||
<button id="btn_mm2121C_uups">Uups!</button>
|
||||
|
||||
</div>
|
||||
45
html/messmaske3030.html
Normal file
45
html/messmaske3030.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<form id="frmMM3030">
|
||||
<div id="messmaske">
|
||||
<div id="MM3030bauteilOuter">
|
||||
<div id="MM3030bauteilInner">
|
||||
<div id="divComm3030"><textarea id="tb_mm3030_comm" class="comm" cols="40" rows="2" placeholder="Kommentar (falls nötig)"></textarea></div>
|
||||
<div id="divDesc3030"><p id="mm3030Desc">3030</p></div>
|
||||
<div id="divToolpart3030">
|
||||
<input type="text" id="tb_mm3030_tool" placeholder="TT" tabindex="1">
|
||||
<input type="text" id="tb_mm3030_rev" placeholder="RR" tabindex="2">
|
||||
<input type="text" id="tb_mm3030_part" placeholder="PPPP" tabindex="3">
|
||||
</div>
|
||||
<div id="divSide1-3030"><span class="sideNr" id="MM3030Side1"><input type="text" class="inp_messwerte" id="tb_mm3030_OL1" placeholder="OL1" tabindex="4">1</span></div>
|
||||
<div id="divSide2-3030"><span class="sideNr" id="MM3030Side2">2<input type="text" class="inp_messwerte" id="tb_mm3030_OL2" placeholder="OL2" tabindex="5"></span></div>
|
||||
<div id="divSide4-3030"><span class="sideNr" id="MM3030Side4">4<input type="text" class="inp_messwerte" id="tb_mm3030_OW1" placeholder="OW1" tabindex="6"></span></div>
|
||||
<div id="divSide3-3030"><span class="sideNr" id="MM3030Side3"><input type="text" class="inp_messwerte" id="tb_mm3030_OW2" placeholder="OW2" tabindex="7">3</span></div>
|
||||
</div>
|
||||
|
||||
<div id="divR3-3030">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r33" placeholder="R33" tabindex="10">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r32" placeholder="R32" tabindex="9">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r31" placeholder="R31" tabindex="8">
|
||||
</div>
|
||||
<div id="divR2-3030">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r23" placeholder="R23" tabindex="13">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r22" placeholder="R22" tabindex="12">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r21" placeholder="R21" tabindex="11">
|
||||
</div>
|
||||
<div id="divR4-3030">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r41" placeholder="R41" tabindex="14">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r42" placeholder="R42" tabindex="15">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r43" placeholder="R43" tabindex="16">
|
||||
</div>
|
||||
<div id="divR1-3030">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r11" placeholder="R11" tabindex="17">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r12" placeholder="R12" tabindex="18">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3030_r13" placeholder="R13" tabindex="19">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<button id="btn_mm3030_check" tabindex="20">Check</button>
|
||||
<button id="btn_mm3030_eintragen" tabindex="21">eintragen</button>
|
||||
<button id="btn_mm3030_uups">Uups!</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
111
html/messmaske3040.html
Normal file
111
html/messmaske3040.html
Normal file
@@ -0,0 +1,111 @@
|
||||
<div id="messmaske">
|
||||
<form id="frmMM3040">
|
||||
<div id="MM3040bauteilOuter">
|
||||
<div id="MM3040bauteilInner">
|
||||
<div id="divComm3040"><textarea id="tb_mm3040_comm" class="comm" cols="40" rows="2" placeholder="Kommentar (falls nötig)"></textarea></div>
|
||||
<div id="divDesc3040"><p id="mm3040Desc">3040</p></div>
|
||||
<div id="divToolpart3040">
|
||||
<input type="text" id="tb_mm3040_tool" placeholder="TT" tabindex="1">
|
||||
<input type="text" id="tb_mm3040_rev" placeholder="RR" tabindex="2">
|
||||
<input type="text" id="tb_mm3040_part" placeholder="PPPP" tabindex="3">
|
||||
</div>
|
||||
<div id="divSide1-3040"><span class="sideNr" id="MM3040Side1"><input type="text" class="inp_messwerte" id="tb_mm3040_OL1" placeholder="OL1" tabindex="4"> 1</span></div>
|
||||
<div id="divSide2-3040"><span class="sideNr" id="MM3040Side2">2 <input type="text" class="inp_messwerte" id="tb_mm3040_OL2" placeholder="OL2" tabindex="5"></span></div>
|
||||
<div id="divSide4-3040"><span class="sideNr" id="MM3040Side4">4<input type="text" class="inp_messwerte" id="tb_mm3040_OW1" placeholder="OW1" tabindex="6"></span></div>
|
||||
<div id="divSide3-3040"><span class="sideNr" id="MM3040Side3"><input type="text" class="inp_messwerte" id="tb_mm3040_OW2" placeholder="OW2" tabindex="7">3</span></div>
|
||||
</div>
|
||||
|
||||
<div id="divR3-3040">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r31" placeholder="R31" tabindex="8">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r32" placeholder="R32" tabindex="9">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r33" placeholder="R33" tabindex="10">
|
||||
</div>
|
||||
<div id="divR2-3040">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r21" placeholder="R21" tabindex="11">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r22" placeholder="R22" tabindex="12">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r23" placeholder="R23" tabindex="13">
|
||||
</div>
|
||||
<div id="divR4-3040">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r41" placeholder="R41" tabindex="14">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r42" placeholder="R42" tabindex="15">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r43" placeholder="R43" tabindex="16">
|
||||
</div>
|
||||
<div id="divR1-3040">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r11" placeholder="R11" tabindex="17">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r12" placeholder="R12" tabindex="18">
|
||||
<input type="text" class="inp_messwerte" id="tb_mm3040_r13" placeholder="R13" tabindex="19">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<button id="btn_mm3040_archiv">Archiv</button>
|
||||
<button id="btn_mm3040_check" tabindex="20">Check</button>
|
||||
<button id="btn_mm3040_eintragen" tabindex="21">eintragen</button>
|
||||
<button id="btn_mm3040_uups">Uups!</button>
|
||||
<div id="divMessArchivBtns" class="invisible">
|
||||
<button id="btn_ma_t1" class="btnMA">Tool 1</button>
|
||||
<button id="btn_ma_t2" class="btnMA">Tool 2</button>
|
||||
<button id="btn_ma_t3" class="btnMA">Tool 3</button>
|
||||
<button id="btn_ma_t4" class="btnMA">Tool 4</button>
|
||||
<button id="btn_ma_t5" class="btnMA">Tool 5</button>
|
||||
<button id="btn_ma_t6" class="btnMA">Tool 6</button>
|
||||
<button id="btn_ma_t7" class="btnMA">Tool 7</button>
|
||||
<button id="btn_ma_t8" class="btnMA">Tool 8</button>
|
||||
<button id="btn_ma_t9" class="btnMA">Tool 9</button>
|
||||
<button id="btn_ma_t10" class="btnMA">Tool 10</button>
|
||||
<button id="btn_ma_t11" class="btnMA">Tool 11</button>
|
||||
<button id="btn_ma_t12" class="btnMA">Tool 12</button>
|
||||
<button id="btn_ma_t13" class="btnMA">Tool 13</button>
|
||||
<button id="btn_ma_t14" class="btnMA">Tool 14</button>
|
||||
<button id="btn_ma_t15" class="btnMA">Tool 15</button>
|
||||
<button id="btn_ma_t16" class="btnMA">Tool 16</button>
|
||||
<button id="btn_ma_t17" class="btnMA">Tool 17</button>
|
||||
<button id="btn_ma_t18" class="btnMA">Tool 18</button>
|
||||
<button id="btn_ma_t19" class="btnMA">Tool 19</button>
|
||||
<button id="btn_ma_t20" class="btnMA">Tool 20</button>
|
||||
<button id="btn_ma_t21" class="btnMA">Tool 21</button>
|
||||
<button id="btn_ma_t22" class="btnMA">Tool 22</button>
|
||||
<button id="btn_ma_t23" class="btnMA">Tool 23</button>
|
||||
<button id="btn_ma_t24" class="btnMA">Tool 24</button>
|
||||
<button id="btn_ma_t25" class="btnMA">Tool 25</button>
|
||||
</div>
|
||||
<div id="divMessArchiv" class="invisible">
|
||||
<div id="divMessArchivHead">
|
||||
<table id="tblMessarchivHead">
|
||||
<thead>
|
||||
<tr><th class="txlcode">TXLCode</th><th>Tool</th><th>Part</th><th>OL1</th><th>OL2</th><th>OW1</th><th>OW2</th><th>R11</th><th>R12</th><th>R13</th><th>R21</th><th>R22</th><th>R23</th><th>R31</th><th>R32</th><th>R33</th><th>R41</th><th>R42</th><th>R43</th></tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divMessArchivData">
|
||||
<table id="tblMessarchiv">
|
||||
<tbody>
|
||||
<!-- programaticly filled -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="divMessArchivFoot">
|
||||
<table id="tblMessarchivFoot">
|
||||
<tfoot>
|
||||
<tr><th class="txlcode">TXLCode</th><th>Tool</th><th>Part</th><th>OL1</th><th>OL2</th><th>OW1</th><th>OW2</th><th>R11</th><th>R12</th><th>R13</th><th>R21</th><th>R22</th><th>R23</th><th>R31</th><th>R32</th><th>R33</th><th>R41</th><th>R42</th><th>R43</th></tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div id="chartArea"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="divZeichnungPrim3040">
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_ol1"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_ol2"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_ow1"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_ow2"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_il1"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_il2"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_iw1"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_iw2"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_r1"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_r2"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_r3"></div>
|
||||
<div class="inp_messwerte" id="div_ausw_mm3040_r4"></div>
|
||||
</div>
|
||||
<div id="messerg" class="invisible"><p>noch nicht ausgewertet</p></messerg>
|
||||
92
html/mmtest.html
Normal file
92
html/mmtest.html
Normal file
@@ -0,0 +1,92 @@
|
||||
<html><head>
|
||||
<meta charset="utf-8">
|
||||
<title>TZÜ</title>
|
||||
<link rel="stylesheet" href="/css/mmtest.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="MM3030bauteilOuter">
|
||||
<div id="MM3030bauteilInner"></div>
|
||||
</div>
|
||||
<table id="messmaske">
|
||||
<tr id="row1">
|
||||
<td id="c11" class="row1 col1"></td>
|
||||
<td id="c12" class="row1 col2"><input type="text" class="inp_messwerte" id="tb_mm3030_r41" placeholder="R41" tabindex="14"></td>
|
||||
<td id="c13" class="row1 col3"></td>
|
||||
<td id="c14" class="row1 col4"><input type="text" class="inp_messwerte" id="tb_mm3030_r42" placeholder="R42" tabindex="15"></td>
|
||||
<td id="c15" class="row1 col5"></td>
|
||||
<td id="c16" class="row1 col6"></td>
|
||||
<td id="c17" class="row1 col7"><input type="text" class="inp_messwerte" id="tb_mm3030_r43" placeholder="R43" tabindex="16"></td>
|
||||
</tr>
|
||||
<tr id="row2">
|
||||
<td id="c21" class="row2 col1"><input type="text" class="inp_messwerte" id="tb_mm3030_r23" placeholder="R23" tabindex="13"></td>
|
||||
<td id="c22" class="row2 col2"></td>
|
||||
<td id="c23" class="row2 col3"></td>
|
||||
<td id="c24" class="row2 col4">4<input type="text" class="inp_messwerte" id="tb_mm3030_OW1" placeholder="OW1" tabindex="6"></td>
|
||||
<td id="c25" class="row2 col5"></td>
|
||||
<td id="c26" class="row2 col6"></td>
|
||||
<td id="c27" class="row2 col7"></td>
|
||||
<td id="c28" class="row2 col8"><input type="text" class="inp_messwerte" id="tb_mm3030_r11" placeholder="R11" tabindex="17"></td>
|
||||
</tr>
|
||||
<tr id="row3">
|
||||
<td id="c31" class="row3 col1"></td>
|
||||
<td id="c32" class="row3 col2"></td>
|
||||
<td id="c33" class="row3 col3"></td>
|
||||
<td id="c34" class="row3 col4"></td>
|
||||
<td id="c35" class="row3 col5"></td>
|
||||
<td id="c36" class="row3 col6" colspan="2">
|
||||
<input type="text" id="tb_mm3030_tool" placeholder="TT" tabindex="1">
|
||||
<input type="text" id="tb_mm3030_rev" placeholder="RR" tabindex="2">
|
||||
<input type="text" id="tb_mm3030_part" placeholder="PPPP" tabindex="3">
|
||||
</td>
|
||||
<td id="c37" class="row3 col7"></td>
|
||||
</tr>
|
||||
<tr id="row4">
|
||||
<td id="c41" class="row4 col1"><input type="text" class="inp_messwerte" id="tb_mm3030_r22" placeholder="R22" tabindex="12"></td>
|
||||
<td id="c42" class="row4 col2">2<input type="text" class="inp_messwerte" id="tb_mm3030_OL2" placeholder="OL2" tabindex="5"></td>
|
||||
<td id="c43" class="row4 col3"></td>
|
||||
<td id="c44" class="row4 col4"></td>
|
||||
<td id="c45" class="row4 col5"></td>
|
||||
<td id="c46" class="row4 col6"></td>
|
||||
<td id="c47" class="row4 col7"><input type="text" class="inp_messwerte" id="tb_mm3030_OL1" placeholder="OL1" tabindex="4">1</td>
|
||||
<td id="c48" class="row4 col8"><input type="text" class="inp_messwerte" id="tb_mm3030_r12" placeholder="R12" tabindex="18"></td>
|
||||
</tr>
|
||||
<tr id="row5">
|
||||
<td id="c51" class="row5 col1"></td>
|
||||
<td id="c52" class="row5 col2"></td>
|
||||
<td id="c53" class="row5 col3" colspan="4"><textarea id="tb_mm3030_comm" class="comm" cols="40" rows="2" placeholder="Kommentar (falls nötig)"></textarea></td>
|
||||
<td id="c54" class="row5 col4"></td>
|
||||
<td id="c55" class="row5 col5"></td>
|
||||
</tr>
|
||||
<tr id="row6">
|
||||
<td id="c61" class="row6 col1"></td>
|
||||
<td id="c62" class="row6 col2"></td>
|
||||
<td id="c63" class="row6 col3" colspan="4"><p id="mm3030Desc">3030</p></td>
|
||||
<td id="c64" class="row6 col4"></td>
|
||||
<td id="c65" class="row6 col5"></td>
|
||||
</tr>
|
||||
<tr id="row7">
|
||||
<td id="c71" class="row7 col1"><input type="text" class="inp_messwerte" id="tb_mm3030_r21" placeholder="R21" tabindex="11"></td>
|
||||
<td id="c72" class="row7 col2"></td>
|
||||
<td id="c73" class="row7 col3"></td>
|
||||
<td id="c74" class="row7 col4"><input type="text" class="inp_messwerte" id="tb_mm3030_OW2" placeholder="OW2" tabindex="7">3</td>
|
||||
<td id="c75" class="row7 col5"></td>
|
||||
<td id="c76" class="row7 col6"></td>
|
||||
<td id="c77" class="row7 col7"></td>
|
||||
<td id="c78" class="row7 col8"><input type="text" class="inp_messwerte" id="tb_mm3030_r13" placeholder="R13" tabindex="19"></td>
|
||||
</tr>
|
||||
<tr id="row8">
|
||||
<td id="c81" class="row8 col1"></td>
|
||||
<td id="c82" class="row8 col2"><input type="text" class="inp_messwerte" id="tb_mm3030_r33" placeholder="R33" tabindex="10"></td>
|
||||
<td id="c83" class="row8 col3"></td>
|
||||
<td id="c84" class="row8 col4"><input type="text" class="inp_messwerte" id="tb_mm3030_r32" placeholder="R32" tabindex="9"></td>
|
||||
<td id="c85" class="row8 col5"></td>
|
||||
<td id="c86" class="row8 col6"></td>
|
||||
<td id="c87" class="row8 col7"><input type="text" class="inp_messwerte" id="tb_mm3030_r31" placeholder="R31" tabindex="8"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="divBtns">
|
||||
<button disabled="" id="btn_mm3030_check" tabindex="20">Check</button>
|
||||
<button disabled="" id="btn_mm3030_eintragen" tabindex="21">eintragen</button>
|
||||
<button id="btn_mm3030_uups">Uups!</button>
|
||||
</div>
|
||||
</body></html>
|
||||
56
html/ofenKF480.html
Normal file
56
html/ofenKF480.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<div id="BeladeForm">
|
||||
<div id="divOfenBtns">
|
||||
<!--div id="btnLoadLetzteBeladungKF480" class="mybtn">autom. Ausfüllen</div>
|
||||
<div id="btnShowMoreEbenenKF480" class="mybtn">+10 Ebenen</div>
|
||||
<div id="btnShowLessEbenenKF480" class="mybtn">-10 Ebenen</div-->
|
||||
<button id="btnLoadLetzteBeladungKF480" class="mybtn">autom. Ausfüllen</button>
|
||||
<button id="btnShowMoreEbenenKF480" class="mybtn">+10 Ebenen</button>
|
||||
<button id="btnShowLessEbenenKF480" class="mybtn">-10 Ebenen</button>
|
||||
</div>
|
||||
<!-- <button id="btnTestingKF480" class="mybtn">testen</button> -->
|
||||
<div id="ofenname">KF480 (Big Mama)</div>
|
||||
<form id="frmOfenbeladung">
|
||||
<input type="hidden" id="OfenName" value="OfenKF480">
|
||||
<table id="tblOfenKF480">
|
||||
<tr><th class="center">Ebene</th><th class="center">Bestückung</th><th class="center">Kommentar</th><th class="center">Schott OrderNr.</th></tr>
|
||||
<tr id="e20"><td class="center">20</td><td><input type="text" id="tbE20KF480" name="tbE20KF480" class="tbTXLCode"></td><td><input type="text" id="KommE20KF480" name="KommE20KF480"></td><td><input type="text" id="SON20KF480" name="SON20KF480"></td></tr>
|
||||
<tr id="e18"><td class="center">18</td><td><input type="text" id="tbE18KF480" name="tbE18KF480" class="tbTXLCode"></td><td><input type="text" id="KommE18KF480" name="KommE18KF480"></td><td><input type="text" id="SON18KF480" name="SON18KF480"></td></tr>
|
||||
<tr id="e17"><td class="center">17</td><td><input type="text" id="tbE17KF480" name="tbE17KF480" class="tbTXLCode"></td><td><input type="text" id="KommE17KF480" name="KommE17KF480"></td><td><input type="text" id="SON17KF480" name="SON17KF480"></td></tr>
|
||||
<tr id="e19"><td class="center">19</td><td><input type="text" id="tbE19KF480" name="tbE19KF480" class="tbTXLCode"></td><td><input type="text" id="KommE19KF480" name="KommE19KF480"></td><td><input type="text" id="SON19KF480" name="SON19KF480"></td></tr>
|
||||
<tr id="e16"><td class="center">16</td><td><input type="text" id="tbE16KF480" name="tbE16KF480" class="tbTXLCode"></td><td><input type="text" id="KommE16KF480" name="KommE16KF480"></td><td><input type="text" id="SON16KF480" name="SON16KF480"></td></tr>
|
||||
<tr id="e15"><td class="center">15</td><td><input type="text" id="tbE15KF480" name="tbE15KF480" class="tbTXLCode"></td><td><input type="text" id="KommE15KF480" name="KommE15KF480"></td><td><input type="text" id="SON15KF480" name="SON15KF480"></td></tr>
|
||||
<tr id="e14"><td class="center">14</td><td><input type="text" id="tbE14KF480" name="tbE14KF480" class="tbTXLCode"></td><td><input type="text" id="KommE14KF480" name="KommE14KF480"></td><td><input type="text" id="SON14KF480" name="SON14KF480"></td></tr>
|
||||
<tr id="e13"><td class="center">13</td><td><input type="text" id="tbE13KF480" name="tbE13KF480" class="tbTXLCode"></td><td><input type="text" id="KommE13KF480" name="KommE13KF480"></td><td><input type="text" id="SON13KF480" name="SON13KF480"></td></tr>
|
||||
<tr id="e12"><td class="center">12</td><td><input type="text" id="tbE12KF480" name="tbE12KF480" class="tbTXLCode"></td><td><input type="text" id="KommE12KF480" name="KommE12KF480"></td><td><input type="text" id="SON12KF480" name="SON12KF480"></td></tr>
|
||||
<tr id="e11"><td class="center">11</td><td><input type="text" id="tbE11KF480" name="tbE11KF480" class="tbTXLCode"></td><td><input type="text" id="KommE11KF480" name="KommE11KF480"></td><td><input type="text" id="SON11KF480" name="SON11KF480"></td></tr>
|
||||
<tr id="e10"><td class="center">10</td><td><input type="text" id="tbE10KF480" name="tbE10KF480" class="tbTXLCode"></td><td><input type="text" id="KommE10KF480" name="KommE10KF480"></td><td><input type="text" id="SON10KF480" name="SON10KF480"></td></tr>
|
||||
<tr id="e09"><td class="center">09</td><td><input type="text" id="tbE09KF480" name="tbE09KF480" class="tbTXLCode"></td><td><input type="text" id="KommE09KF480" name="KommE09KF480"></td><td><input type="text" id="SON09KF480" name="SON09KF480"></td></tr>
|
||||
<tr id="e08"><td class="center">08</td><td><input type="text" id="tbE08KF480" name="tbE08KF480" class="tbTXLCode"></td><td><input type="text" id="KommE08KF480" name="KommE08KF480"></td><td><input type="text" id="SON08KF480" name="SON08KF480"></td></tr>
|
||||
<tr id="e07"><td class="center">07</td><td><input type="text" id="tbE07KF480" name="tbE07KF480" class="tbTXLCode"></td><td><input type="text" id="KommE07KF480" name="KommE07KF480"></td><td><input type="text" id="SON07KF480" name="SON07KF480"></td></tr>
|
||||
<tr id="e06"><td class="center">06</td><td><input type="text" id="tbE06KF480" name="tbE06KF480" class="tbTXLCode"></td><td><input type="text" id="KommE06KF480" name="KommE06KF480"></td><td><input type="text" id="SON06KF480" name="SON06KF480"></td></tr>
|
||||
<tr id="e05"><td class="center">05</td><td><input type="text" id="tbE05KF480" name="tbE05KF480" class="tbTXLCode"></td><td><input type="text" id="KommE05KF480" name="KommE05KF480"></td><td><input type="text" id="SON05KF480" name="SON05KF480"></td></tr>
|
||||
<tr id="e04"><td class="center">04</td><td><input type="text" id="tbE04KF480" name="tbE04KF480" class="tbTXLCode"></td><td><input type="text" id="KommE04KF480" name="KommE04KF480"></td><td><input type="text" id="SON04KF480" name="SON04KF480"></td></tr>
|
||||
<tr id="e03"><td class="center">03</td><td><input type="text" id="tbE03KF480" name="tbE03KF480" class="tbTXLCode"></td><td><input type="text" id="KommE03KF480" name="KommE03KF480"></td><td><input type="text" id="SON03KF480" name="SON03KF480"></td></tr>
|
||||
<tr id="e02"><td class="center">02</td><td><input type="text" id="tbE02KF480" name="tbE02KF480" class="tbTXLCode"></td><td><input type="text" id="KommE02KF480" name="KommE02KF480"></td><td><input type="text" id="SON02KF480" name="SON02KF480"></td></tr>
|
||||
<tr id="e01"><td class="center">01</td><td><input type="text" id="tbE01KF480" name="tbE01KF480" class="tbTXLCode"></td><td><input type="text" id="KommE01KF480" name="KommE01KF480"></td><td><input type="text" id="SON01KF480" name="SON01KF480"></td></tr>
|
||||
<tr>
|
||||
<td class="desc">Datum:</td><td class="input"><input type="text" name="beladedatum" id="beladedatum"></td>
|
||||
<td class="desc">Zeit:</td><td class="input"><input type="text" name="beladezeit" id="beladezeit"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="text" id="tbKommKF480" name="tbKommKF480" placeholder="Kommentar (wenn nötig)">
|
||||
<input type="hidden" id="auto" name="auto" value="1">
|
||||
<input type="hidden" id="Ofen" name="Ofen" value="KF480">
|
||||
<input type="hidden" id="func" name="func" value="insertBeladung">
|
||||
</form>
|
||||
<button id="btnInsertBeladungKF480" class="mybtn visible">Beladung eintragen</button>
|
||||
</div>
|
||||
<div id="schottnummern"></div>
|
||||
<div id="Codetable">
|
||||
<table id="codetable">
|
||||
<tr><td id="ct3040">3040 = GW1</td></tr>
|
||||
<tr><td id="ct2121">2121 = GA1</td></tr>
|
||||
<tr><td id="ct3030">3030 = GX1</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<p id="debug"></p>
|
||||
38
html/ofenKF80.html
Normal file
38
html/ofenKF80.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<div id="BeladeForm">
|
||||
<button id="btnLoadLetzteBeladungKF80" class="mybtn" class="center">autom. Ausfüllen</button>
|
||||
<div id="ofenname">KF80 (Little Ben)</div>
|
||||
<form id="frmOfenbeladung">
|
||||
<table id="tblOfenKF80">
|
||||
<tr><th class="center">Ebene</th><th class="center">Bestückung</th><th class="center">Kommentar</th><th class="center">Schott OrderNr.</th></tr>
|
||||
<tr id="e10"><td class="center">10</td><td><input type="text" id="tbE10KF80" name="tbE10KF80" class="tbTXLCode"></td><td><input type="text" id="KommE10KF80" name="KommE10KF80"></td><td><input type="text" id="SON10KF80" name="SON10KF80"></td></tr>
|
||||
<tr id="e09"><td class="center">09</td><td><input type="text" id="tbE09KF80" name="tbE09KF80" class="tbTXLCode"></td><td><input type="text" id="KommE09KF80" name="KommE09KF80"></td><td><input type="text" id="SON09KF80" name="SON09KF80"></td></tr>
|
||||
<tr id="e08"><td class="center">08</td><td><input type="text" id="tbE08KF80" name="tbE08KF80" class="tbTXLCode"></td><td><input type="text" id="KommE08KF80" name="KommE08KF80"></td><td><input type="text" id="SON08KF80" name="SON08KF80"></td></tr>
|
||||
<tr id="e07"><td class="center">07</td><td><input type="text" id="tbE07KF80" name="tbE07KF80" class="tbTXLCode"></td><td><input type="text" id="KommE07KF80" name="KommE07KF80"></td><td><input type="text" id="SON07KF80" name="SON07KF80"></td></tr>
|
||||
<tr id="e06"><td class="center">06</td><td><input type="text" id="tbE06KF80" name="tbE06KF80" class="tbTXLCode"></td><td><input type="text" id="KommE06KF80" name="KommE06KF80"></td><td><input type="text" id="SON06KF80" name="SON06KF80"></td></tr>
|
||||
<tr id="e05"><td class="center">05</td><td><input type="text" id="tbE05KF80" name="tbE05KF80" class="tbTXLCode"></td><td><input type="text" id="KommE05KF80" name="KommE05KF80"></td><td><input type="text" id="SON05KF80" name="SON05KF80"></td></tr>
|
||||
<tr id="e04"><td class="center">04</td><td><input type="text" id="tbE04KF80" name="tbE04KF80" class="tbTXLCode"></td><td><input type="text" id="KommE04KF80" name="KommE04KF80"></td><td><input type="text" id="SON04KF80" name="SON04KF80"></td></tr>
|
||||
<tr id="e03"><td class="center">03</td><td><input type="text" id="tbE03KF80" name="tbE03KF80" class="tbTXLCode"></td><td><input type="text" id="KommE03KF80" name="KommE03KF80"></td><td><input type="text" id="SON03KF80" name="SON03KF80"></td></tr>
|
||||
<tr id="e02"><td class="center">02</td><td><input type="text" id="tbE02KF80" name="tbE02KF80" class="tbTXLCode"></td><td><input type="text" id="KommE02KF80" name="KommE02KF80"></td><td><input type="text" id="SON02KF80" name="SON02KF80"></td></tr>
|
||||
<tr id="e01"><td class="center">01</td><td><input type="text" id="tbE01KF80" name="tbE01KF80" class="tbTXLCode"></td><td><input type="text" id="KommE01KF80" name="KommE01KF80"></td><td><input type="text" id="SON01KF80" name="SON01KF80"></td></tr>
|
||||
<tr>
|
||||
<td class="desc">Datum:</td><td class="input"><input type="date" name="beladedatum" id="beladedatum" value=""></td>
|
||||
<td class="desc">Zeit:</td><td class="input"><input type="time" name="beladezeit" id="beladezeit" value=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="text" id="tbKommKF80" name="tbKommKF80" placeholder="Kommentar (wenn nötig)">
|
||||
<input type="hidden" id="auto" name="auto" value="1">
|
||||
<input type="hidden" id="Ofen" name="Ofen" value="KF80">
|
||||
<input type="hidden" id="func" name="func" value="insertBeladung">
|
||||
</form>
|
||||
<button id="btnInsertBeladungKF80" class="mybtn" class="center">Beladung eintragen</button>
|
||||
</div>
|
||||
<div id="schottnummern"></div>
|
||||
<div id="Codetable">
|
||||
<table id="codetable">
|
||||
<tr><td id="ct3040">3040 = GW1</td></tr>
|
||||
<tr><td id="ct2121">2121 = GA1</td></tr>
|
||||
<tr><td id="ct3030">3030 = GX1</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p id="debug"></p>
|
||||
39
html/ofenKF80S.html
Normal file
39
html/ofenKF80S.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<div id="BeladeForm">
|
||||
<button id="btnLoadLetzteBeladungKF80S" class="mybtn">autom. Ausfüllen</button>
|
||||
<!-- <button id="btnTestingKF80S" class="mybtn">testen</button> -->
|
||||
<div id="ofenname">KF80S (Sweet Susi)</div>
|
||||
<form id="frmOfenbeladung">
|
||||
<table id="tblOfenKF80S">
|
||||
<tr><th class="center">Ebene</th><th class="center">Bestückung</th><th class="center">Kommentar</th><th class="center">Schott OrderNr.</th></tr>
|
||||
<tr id="e10"><td class="center">10</td><td><input type="text" id="tbE10KF80S" name="tbE10KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE10KF80S" name="KommE10KF80S"></td><td><input type="text" id="SON10KF80S" name="SON10KF80S"></td></tr>
|
||||
<tr id="e09"><td class="center">09</td><td><input type="text" id="tbE09KF80S" name="tbE09KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE09KF80S" name="KommE09KF80S"></td><td><input type="text" id="SON09KF80S" name="SON09KF80S"></td></tr>
|
||||
<tr id="e08"><td class="center">08</td><td><input type="text" id="tbE08KF80S" name="tbE08KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE08KF80S" name="KommE08KF80S"></td><td><input type="text" id="SON08KF80S" name="SON08KF80S"></td></tr>
|
||||
<tr id="e07"><td class="center">07</td><td><input type="text" id="tbE07KF80S" name="tbE07KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE07KF80S" name="KommE07KF80S"></td><td><input type="text" id="SON07KF80S" name="SON07KF80S"></td></tr>
|
||||
<tr id="e06"><td class="center">06</td><td><input type="text" id="tbE06KF80S" name="tbE06KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE06KF80S" name="KommE06KF80S"></td><td><input type="text" id="SON06KF80S" name="SON06KF80S"></td></tr>
|
||||
<tr id="e05"><td class="center">05</td><td><input type="text" id="tbE05KF80S" name="tbE05KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE05KF80S" name="KommE05KF80S"></td><td><input type="text" id="SON05KF80S" name="SON05KF80S"></td></tr>
|
||||
<tr id="e04"><td class="center">04</td><td><input type="text" id="tbE04KF80S" name="tbE04KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE04KF80S" name="KommE04KF80S"></td><td><input type="text" id="SON04KF80S" name="SON04KF80S"></td></tr>
|
||||
<tr id="e03"><td class="center">03</td><td><input type="text" id="tbE03KF80S" name="tbE03KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE03KF80S" name="KommE03KF80S"></td><td><input type="text" id="SON03KF80S" name="SON03KF80S"></td></tr>
|
||||
<tr id="e02"><td class="center">02</td><td><input type="text" id="tbE02KF80S" name="tbE02KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE02KF80S" name="KommE02KF80S"></td><td><input type="text" id="SON02KF80S" name="SON02KF80S"></td></tr>
|
||||
<tr id="e01"><td class="center">01</td><td><input type="text" id="tbE01KF80S" name="tbE01KF80S" class="tbTXLCode"></td><td><input type="text" id="KommE01KF80S" name="KommE01KF80S"></td><td><input type="text" id="SON01KF80S" name="SON01KF80S"></td></tr>
|
||||
<tr>
|
||||
<td class="desc">Datum:</td><td class="input"><input type="date" name="beladedatum" id="beladedatum" value=""></td>
|
||||
<td class="desc">Zeit:</td><td class="input"><input type="time" name="beladezeit" id="beladezeit" value=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="text" id="tbKommKF80S" name="tbKommKF80S" placeholder="Kommentar (wenn nötig)">
|
||||
<input type="hidden" id="auto" name="auto" value="1">
|
||||
<input type="hidden" id="Ofen" name="Ofen" value="KF80S">
|
||||
<input type="hidden" id="func" name="func" value="insertBeladung">
|
||||
</form>
|
||||
<button id="btnInsertBeladungKF80S" class="mybtn">Beladung eintragen</button>
|
||||
</div>
|
||||
<div id="schottnummern"></div>
|
||||
<div id="Codetable">
|
||||
<table id="codetable">
|
||||
<tr><td id="ct3040">3040 = GW1</td></tr>
|
||||
<tr><td id="ct2121">2121 = GA1</td></tr>
|
||||
<tr><td id="ct3030">3030 = GX1</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p id="debug"></p>
|
||||
64
html/rauheiten.html
Normal file
64
html/rauheiten.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<div id="rauheiten">
|
||||
<div id="RHStartwerte">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Start:<input id="tbStartwert" class="wheelable" type="text" value="GW101020100"></td>
|
||||
<td>Ende:<input id="tbEndwert" class="wheelable" type="text" value="GW101020100"></td>
|
||||
<td><button class="mybtn" id="btnNew">erstellen</button></td>
|
||||
<td><button class="mybtn" id="btnAdd">hinzufügen</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="RHInputs">
|
||||
<table id="tblMesswerte">
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div id="RHbtns">
|
||||
</div>
|
||||
</div>
|
||||
<div id="help">
|
||||
<table id="tblHelp">
|
||||
<tr><td class="right">Shift:</td><td class="left">Tool</td></tr>
|
||||
<tr><td class="right">Strg:</td><td class="left">Revision</td></tr>
|
||||
<tr><td class="right">beide:</td><td class="left">Typ</td></tr>
|
||||
<tr><td class="right">keine:</td><td class="left">BauteilNr</td></tr>
|
||||
</table>
|
||||
<!--div id="btnCloseHelp"><</div-->
|
||||
</div>
|
||||
|
||||
<!--
|
||||
|
||||
$('body').off("mousedown", "#btnCloseHelp");
|
||||
$('body').off("mouseup", "#btnCloseHelp");
|
||||
|
||||
$("body").on("mousedown", "#btnCloseHelp", function(e) {
|
||||
|
||||
|
||||
$("#btnCloseHelp").attr("style","box-shadow: 1px 1px 2px black");
|
||||
console.log("click");
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$("body").on("mouseup", "#btnCloseHelp", function(e) {
|
||||
$("#btnCloseHelp").attr("style","box-shadow: 2px 2px 1px black");
|
||||
console.log("clack");
|
||||
return false;
|
||||
|
||||
|
||||
});
|
||||
var tglState = 0;
|
||||
|
||||
function toggleHelp() {
|
||||
|
||||
if ( tglState === 0 ){
|
||||
$("#btnCloseHelp").attr("style","height: 55px");
|
||||
tglState = 1;
|
||||
} else {
|
||||
$("#btnCloseHelp").attr("style","height: 55px");
|
||||
tglState = 0;
|
||||
}
|
||||
}
|
||||
|
||||
-->
|
||||
66
html/tabTest.html
Normal file
66
html/tabTest.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery UI Tabs - Default functionality</title>
|
||||
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
|
||||
<link rel="stylesheet" href="/css/le.css">
|
||||
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
|
||||
<script>
|
||||
$( function() {
|
||||
$( "#tabs" ).tabs();
|
||||
} );
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tab-1">Tool 1</a></li>
|
||||
<li><a href="#tab-2">Tool 2</a></li>
|
||||
<li><a href="#tab-3">Tool 3</a></li>
|
||||
<li><a href="#tab-4">Tool 4</a></li>
|
||||
<li><a href="#tab-5">Tool 5</a></li>
|
||||
<li><a href="#tab-6">Tool 6</a></li>
|
||||
<li><a href="#tab-7">Tool 7</a></li>
|
||||
<li><a href="#tab-8">Tool 8</a></li>
|
||||
<li><a href="#tab-9">Tool 9</a></li>
|
||||
<li><a href="#tab-10">Tool 10</a></li>
|
||||
<li><a href="#tab-11">Tool 11</a></li>
|
||||
<li><a href="#tab-12">Tool 12</a></li>
|
||||
<li><a href="#tab-13">Tool 13</a></li>
|
||||
<li><a href="#tab-14">Tool 14</a></li>
|
||||
<li><a href="#tab-15">Tool 15</a></li>
|
||||
<li><a href="#tab-16">Tool 16</a></li>
|
||||
<li><a href="#tab-17">Tool 17</a></li>
|
||||
<li><a href="#tab-18">Tool 18</a></li>
|
||||
<li><a href="#tab-19">Tool 19</a></li>
|
||||
<li><a href="#tab-20">Tool 20</a></li>
|
||||
</ul>
|
||||
<div id="tab-1">Tab 1</div>
|
||||
<div id="tab-2">Tab 2</div>
|
||||
<div id="tab-3">Tab 3</div>
|
||||
<div id="tab-4">Tab 4</div>
|
||||
<div id="tab-5">Tab 5</div>
|
||||
<div id="tab-6">Tab 6</div>
|
||||
<div id="tab-7">Tab 7</div>
|
||||
<div id="tab-8">Tab 8</div>
|
||||
<div id="tab-9">Tab 9</div>
|
||||
<div id="tab-10">Tab 10</div>
|
||||
<div id="tab-11">Tab 11</div>
|
||||
<div id="tab-12">Tab 12</div>
|
||||
<div id="tab-13">Tab 13</div>
|
||||
<div id="tab-14">Tab 14</div>
|
||||
<div id="tab-15">Tab 15</div>
|
||||
<div id="tab-16">Tab 16</div>
|
||||
<div id="tab-17">Tab 17</div>
|
||||
<div id="tab-18">Tab 18</div>
|
||||
<div id="tab-19">Tab 19</div>
|
||||
<div id="tab-20">Tab 20</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
img/zeichnung3040_primitiv.png
Normal file
BIN
img/zeichnung3040_primitiv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
84
index.html
Normal file
84
index.html
Normal file
@@ -0,0 +1,84 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>TZÜ</title>
|
||||
<link rel="stylesheet" href="css/menubar.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/swa2.css">
|
||||
<link rel="stylesheet" href="css/impromptu.css">
|
||||
<link rel="stylesheet" href="css/messmasken.css">
|
||||
<link rel="stylesheet" href="css/ofensachen.css">
|
||||
<link rel="stylesheet" href="css/boxenerstellung.css">
|
||||
<link rel="stylesheet" href="css/rauheiten.css">
|
||||
<link rel="stylesheet" href="css/auswertung.css">
|
||||
<link rel="stylesheet" href="css/converter.css">
|
||||
<link rel="stylesheet" href="css/c3.css">
|
||||
|
||||
<script src="js/jquery-1.12.4.js"></script>
|
||||
<script src="js/swa2.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/toJSON.js"></script>
|
||||
<script src="js/helper.js"></script>
|
||||
<script src="js/messmasken.js"></script>
|
||||
<script src="js/ofensachen.js"></script>
|
||||
<script src="js/boxenerstellung.js"></script>
|
||||
<script src="js/auswertung.js"></script>
|
||||
<script src="js/auswertungEinzelneBox.js"></script>
|
||||
<script src="js/tablesorter.js"></script>
|
||||
<script src="js/rauheiten.js"></script>
|
||||
<script src="js/dbsachen.js"></script>
|
||||
<script src="js/converter.js"></script>
|
||||
<script src="js/jquery-mousewheel.js"></script>
|
||||
<script src="js/canvasjs.min.js"></script>
|
||||
<script src="js/d3.v3.js"></script>
|
||||
<script src="js/c3.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="menu_templ">
|
||||
<ul id="menu" class="topmenu">
|
||||
<li class="topfirst"><a href="/" style="height:24px;line-height:24px;">Home</a></li>
|
||||
<li class="topmenu"><a style="height:24px;line-height:24px;">Beladungen</a>
|
||||
<div class="submenu">
|
||||
<div class="column">
|
||||
<ul>
|
||||
<li><a onclick="loadKF480()">KF480</a></li>
|
||||
<li><a onclick="loadKF80S()">KF80S</a></li>
|
||||
<li><a onclick="loadKF80()">KF80</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="topmenu"><a style="height:24px;line-height:24px;">Messen</a>
|
||||
<div class="submenu">
|
||||
<div class="column">
|
||||
<ul>
|
||||
<li><a onclick="loadMM3040()">3040</a></li>
|
||||
<li><a onclick="loadMM3030()">3030</a></li>
|
||||
<li><a onclick="loadMM2121()">2121</a></li>
|
||||
<li><a onclick="loadMM2121C()">2121C</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="topmenu"><a onclick="loadBE()" style="height:24px;line-height:24px;">Boxen</a></li>
|
||||
<li class="topmenu"><a onclick="loadRH()" style="height:24px;line-height:24px;">Rauheiten</a></li>
|
||||
<li class="topmenu"><a onclick="loadAW()" style="height:24px;line-height:24px;">Auswertungen</a></li>
|
||||
|
||||
|
||||
<li class="topmenu"><a onclick="" style="height:24px;line-height:24px;">AA</a></li>
|
||||
<li class="toplast"><a onclick="" style="height:24px;line-height:24px;">Hilfe</a></li>
|
||||
</ul>
|
||||
</div><!-- #menu_teml ende -->
|
||||
<div id="mainContainer">
|
||||
<div>
|
||||
<h3>Tach!</h3>
|
||||
</div>
|
||||
</div><!-- #mainContainer ende -->
|
||||
<footer class="container-fluid text-center">
|
||||
<p id="debug">noch keine Meldungen</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
104
index_old.html
Normal file
104
index_old.html
Normal file
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>TZÜ</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!--link rel="stylesheet" href="css/bootstrap.min.css"-->
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/swa2.css">
|
||||
<link rel="stylesheet" href="css/impromptu.css">
|
||||
<link rel="stylesheet" href="css/messmasken.css">
|
||||
<link rel="stylesheet" href="css/ofensachen.css">
|
||||
<link rel="stylesheet" href="css/boxenerstellung.css">
|
||||
<link rel="stylesheet" href="css/rauheiten.css">
|
||||
<link rel="stylesheet" href="css/auswertung.css">
|
||||
<link rel="stylesheet" href="css/converter.css">
|
||||
|
||||
<script src="js/jquery-1.12.4.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
<script src="js/swa2.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/toJSON.js"></script>
|
||||
<script src="js/helper.js"></script>
|
||||
<script src="js/messmasken.js"></script>
|
||||
<script src="js/ofensachen.js"></script>
|
||||
<script src="js/boxenerstellung.js"></script>
|
||||
<script src="js/auswertungen.js"></script>
|
||||
<script src="js/auswertungEinzelneBox.js"></script>
|
||||
<script src="js/tablesorter.js"></script>
|
||||
<script src="js/rauheiten.js"></script>
|
||||
<script src="js/dbsachen.js"></script>
|
||||
<script src="js/converter.js"></script>
|
||||
<script src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar" id="navBar">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a id="navBarSpacer"> </a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> Beladungen <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a onclick="loadKF480()" href="#">KF480</a></li>
|
||||
<li><a onclick="loadKF80S()" href="#">KF80S</a></li>
|
||||
<li><a onclick="loadKF80()" href="#">KF80</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Messen <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a onclick="loadMM3040()" href="#">3040</a></li>
|
||||
<li><a onclick="loadMM3030()" href="#">3030</a></li>
|
||||
<li><a onclick="loadMM2121()" href="#">2121</a></li>
|
||||
<li><a onclick="loadMM2121C()" href="#">2121C</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a onclick="loadBE()" href="#" id="menuBoxenErstellen">Boxen erstellen </a></li>
|
||||
<li><a onclick="loadRH()" href="#">Rauheiten erf. </a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Auswertungen <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a onclick="loadAW()" href="#">erste versuche</a></li>
|
||||
<li><a onclick="loadBAW()" href="#">einzelne Box</a></li>
|
||||
<li><a onclick="loadMM3030()" href="#">3030</a></li>
|
||||
<li><a onclick="loadMM2121()" href="#">2121</a></li>
|
||||
<li><a onclick="loadMM2121C()" href="#">2121C</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a onclick="loadConverter()">Ausschuss</a></li>
|
||||
<li id="menuHelp"><a onclick="" href="#">Hilfe</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div id="mainContainer">
|
||||
<div class="container-fluid bg-3 text-center">
|
||||
<h3>Tach!</h3>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<button id="show">Dialog</button>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<p>2</p>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<p>3</p>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<p>4</p>
|
||||
</div>
|
||||
</div><!--.row ende-->
|
||||
</div><!-- .container-fluid ende -->
|
||||
</div><!-- #mainContainer ende -->
|
||||
|
||||
<footer class="container-fluid text-center">
|
||||
<p id="debug">noch keine Meldungen</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
630
js/JsBarcode.code128.beautified.js
Normal file
630
js/JsBarcode.code128.beautified.js
Normal file
@@ -0,0 +1,630 @@
|
||||
!function(t) {
|
||||
function e(r) {
|
||||
if (n[r]) return n[r].exports;
|
||||
var i = n[r] = {
|
||||
i: r,
|
||||
l: !1,
|
||||
exports: {}
|
||||
};
|
||||
return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
|
||||
}
|
||||
var n = {};
|
||||
return e.m = t, e.c = n, e.p = "", e(e.s = 7);
|
||||
}([ function(t, e) {
|
||||
"use strict";
|
||||
function n(t, e) {
|
||||
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var r = function() {
|
||||
function t(e) {
|
||||
n(this, t), this.bytes = [];
|
||||
for (var r = 0; r < e.length; ++r) this.bytes.push(e.charCodeAt(r));
|
||||
this.string = e.substring(1), this.encodings = [ 740, 644, 638, 176, 164, 100, 224, 220, 124, 608, 604, 572, 436, 244, 230, 484, 260, 254, 650, 628, 614, 764, 652, 902, 868, 836, 830, 892, 844, 842, 752, 734, 590, 304, 112, 94, 416, 128, 122, 672, 576, 570, 464, 422, 134, 496, 478, 142, 910, 678, 582, 768, 762, 774, 880, 862, 814, 896, 890, 818, 914, 602, 930, 328, 292, 200, 158, 68, 62, 424, 412, 232, 218, 76, 74, 554, 616, 978, 556, 146, 340, 212, 182, 508, 268, 266, 956, 940, 938, 758, 782, 974, 400, 310, 118, 512, 506, 960, 954, 502, 518, 886, 966, 668, 680, 692, 5379 ];
|
||||
}
|
||||
return t.prototype.encode = function() {
|
||||
var t, e = this.bytes, n = e.shift() - 105;
|
||||
return 103 === n ? t = this.nextA(e, 1) : 104 === n ? t = this.nextB(e, 1) : 105 === n && (t = this.nextC(e, 1)),
|
||||
{
|
||||
text: this.string.replace(/[^\x20-\x7E]/g, ""),
|
||||
data: this.getEncoding(n) + t.result + this.getEncoding((t.checksum + n) % 103) + this.getEncoding(106)
|
||||
};
|
||||
}, t.prototype.getEncoding = function(t) {
|
||||
return this.encodings[t] ? (this.encodings[t] + 1e3).toString(2) : "";
|
||||
}, t.prototype.valid = function() {
|
||||
return -1 !== this.string.search(/^[\x00-\x7F\xC8-\xD3]+$/);
|
||||
}, t.prototype.nextA = function(t, e) {
|
||||
if (t.length <= 0) return {
|
||||
result: "",
|
||||
checksum: 0
|
||||
};
|
||||
var n, r;
|
||||
if (t[0] >= 200) r = t[0] - 105, t.shift(), 99 === r ? n = this.nextC(t, e + 1) : 100 === r ? n = this.nextB(t, e + 1) : 98 === r ? (t[0] = t[0] > 95 ? t[0] - 96 : t[0],
|
||||
n = this.nextA(t, e + 1)) : n = this.nextA(t, e + 1); else {
|
||||
var i = t[0];
|
||||
r = 32 > i ? i + 64 : i - 32, t.shift(), n = this.nextA(t, e + 1);
|
||||
}
|
||||
var o = this.getEncoding(r), a = r * e;
|
||||
return {
|
||||
result: o + n.result,
|
||||
checksum: a + n.checksum
|
||||
};
|
||||
}, t.prototype.nextB = function(t, e) {
|
||||
if (t.length <= 0) return {
|
||||
result: "",
|
||||
checksum: 0
|
||||
};
|
||||
var n, r;
|
||||
t[0] >= 200 ? (r = t[0] - 105, t.shift(), 99 === r ? n = this.nextC(t, e + 1) : 101 === r ? n = this.nextA(t, e + 1) : 98 === r ? (t[0] = t[0] < 32 ? t[0] + 96 : t[0],
|
||||
n = this.nextB(t, e + 1)) : n = this.nextB(t, e + 1)) : (r = t[0] - 32, t.shift(),
|
||||
n = this.nextB(t, e + 1));
|
||||
var i = this.getEncoding(r), o = r * e;
|
||||
return {
|
||||
result: i + n.result,
|
||||
checksum: o + n.checksum
|
||||
};
|
||||
}, t.prototype.nextC = function(t, e) {
|
||||
if (t.length <= 0) return {
|
||||
result: "",
|
||||
checksum: 0
|
||||
};
|
||||
var n, r;
|
||||
t[0] >= 200 ? (r = t[0] - 105, t.shift(), n = 100 === r ? this.nextB(t, e + 1) : 101 === r ? this.nextA(t, e + 1) : this.nextC(t, e + 1)) : (r = 10 * (t[0] - 48) + t[1] - 48,
|
||||
t.shift(), t.shift(), n = this.nextC(t, e + 1));
|
||||
var i = this.getEncoding(r), o = r * e;
|
||||
return {
|
||||
result: i + n.result,
|
||||
checksum: o + n.checksum
|
||||
};
|
||||
}, t;
|
||||
}();
|
||||
e["default"] = r;
|
||||
}, function(t, e) {
|
||||
"use strict";
|
||||
function n(t, e) {
|
||||
var n, r = {};
|
||||
for (n in t) t.hasOwnProperty(n) && (r[n] = t[n]);
|
||||
for (n in e) e.hasOwnProperty(n) && "undefined" != typeof e[n] && (r[n] = e[n]);
|
||||
return r;
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e["default"] = n;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var r = n(12);
|
||||
e["default"] = {
|
||||
CODE128: r.CODE128,
|
||||
CODE128A: r.CODE128A,
|
||||
CODE128B: r.CODE128B,
|
||||
CODE128C: r.CODE128C
|
||||
};
|
||||
}, function(t, e) {
|
||||
"use strict";
|
||||
function n(t) {
|
||||
return t.marginTop = t.marginTop || t.margin, t.marginBottom = t.marginBottom || t.margin,
|
||||
t.marginRight = t.marginRight || t.margin, t.marginLeft = t.marginLeft || t.margin,
|
||||
t;
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e["default"] = n;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
var n = {};
|
||||
for (var r in e) t.hasAttribute("jsbarcode-" + r.toLowerCase()) && (n[r] = t.getAttribute("jsbarcode-" + r.toLowerCase())),
|
||||
t.hasAttribute("data-" + r.toLowerCase()) && (n[r] = t.getAttribute("data-" + r.toLowerCase()));
|
||||
return n.value = t.getAttribute("jsbarcode-value") || t.getAttribute("data-value"),
|
||||
n = (0, a["default"])(n);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var o = n(13), a = r(o);
|
||||
e["default"] = i;
|
||||
}, function(t, e) {
|
||||
"use strict";
|
||||
function n(t) {
|
||||
function e(t) {
|
||||
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e(t[r]); else t.text = t.text || "",
|
||||
t.data = t.data || "", n.push(t);
|
||||
}
|
||||
var n = [];
|
||||
return e(t), n;
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e["default"] = n;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var i = n(14), o = r(i), a = n(15), u = r(a);
|
||||
e["default"] = {
|
||||
canvas: o["default"],
|
||||
svg: u["default"]
|
||||
};
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
b.prototype[e] = b.prototype[e.toUpperCase()] = b.prototype[e.toLowerCase()] = function(n, r) {
|
||||
var i = (0, p["default"])(this._options, r), a = t[e], u = o(n, a, i);
|
||||
return this._encodings.push(u), this;
|
||||
};
|
||||
}
|
||||
function o(t, e, n) {
|
||||
var r = new e(t, n);
|
||||
if (!r.valid()) {
|
||||
if (n.valid === O.valid) throw new Error('"' + t + '" is not a valid input for ' + _);
|
||||
n.valid(!1);
|
||||
}
|
||||
var i = r.encode();
|
||||
i = (0, x["default"])(i);
|
||||
for (var o = 0; o < i.length; o++) i[o].options = (0, p["default"])(n, i[o].options);
|
||||
return i;
|
||||
}
|
||||
function a() {
|
||||
return l["default"].CODE128 ? "CODE128" : Object.keys(l["default"])[0];
|
||||
}
|
||||
function u(t, e, n) {
|
||||
var r = d["default"][t.renderer];
|
||||
e = (0, x["default"])(e);
|
||||
for (var i = 0; i < e.length; i++) e[i].options = (0, p["default"])(n, e[i].options),
|
||||
(0, m["default"])(e[i].options);
|
||||
(0, m["default"])(n), r(t.element, e, n), t.afterRender && t.afterRender();
|
||||
}
|
||||
function s(t) {
|
||||
if ("string" == typeof t) {
|
||||
var e = document.querySelectorAll(t);
|
||||
if (0 === e.length) throw new Error("No element found");
|
||||
for (var n = [], r = 0; r < e.length; r++) n.push(s(e[r]));
|
||||
return n;
|
||||
}
|
||||
if (Array.isArray(t)) {
|
||||
for (var n = [], r = 0; r < t.length; r++) n.push(s(t[r]));
|
||||
return n;
|
||||
}
|
||||
if ("undefined" != typeof HTMLCanvasElement && t instanceof HTMLImageElement) {
|
||||
var i = document.createElement("canvas");
|
||||
return {
|
||||
element: i,
|
||||
options: (0, C["default"])(t, O),
|
||||
renderer: "canvas",
|
||||
afterRender: function() {
|
||||
t.setAttribute("src", i.toDataURL());
|
||||
}
|
||||
};
|
||||
}
|
||||
if ("undefined" != typeof SVGElement && t instanceof SVGElement) return {
|
||||
element: t,
|
||||
options: (0, C["default"])(t, O),
|
||||
renderer: "svg"
|
||||
};
|
||||
if ("undefined" != typeof HTMLCanvasElement && t instanceof HTMLCanvasElement) return {
|
||||
element: t,
|
||||
options: (0, C["default"])(t, O),
|
||||
renderer: "canvas"
|
||||
};
|
||||
if (t.getContext) return {
|
||||
element: t,
|
||||
renderer: "canvas"
|
||||
};
|
||||
throw new Error("Not supported type to render on.");
|
||||
}
|
||||
var f = n(2), l = r(f), c = n(6), d = r(c), h = n(1), p = r(h), g = n(5), x = r(g), v = n(3), m = r(v), y = n(4), C = r(y), b = function() {}, w = function(t, e, n) {
|
||||
var r = new b();
|
||||
if ("undefined" == typeof t) throw Error("No element to render on was provided.");
|
||||
return r._renderProperties = s(t), r._encodings = [], r._options = O, "undefined" != typeof e && (n = n || {},
|
||||
n.format || (n.format = a()), r.options(n), r[n.format](e, n), r.render()), r;
|
||||
};
|
||||
w.getModule = function(t) {
|
||||
return l["default"][t];
|
||||
};
|
||||
for (var _ in l["default"]) l["default"].hasOwnProperty(_) && i(l["default"], _);
|
||||
b.prototype.options = function(t) {
|
||||
return this._options = (0, p["default"])(this._options, t), this;
|
||||
}, b.prototype.blank = function(t) {
|
||||
var e = "0".repeat(t);
|
||||
return this._encodings.push({
|
||||
data: e
|
||||
}), this;
|
||||
}, b.prototype.init = function() {
|
||||
Array.isArray(this._renderProperties) || (this._renderProperties = [ this._renderProperties ]);
|
||||
var t;
|
||||
for (var e in this._renderProperties) {
|
||||
t = this._renderProperties[e];
|
||||
var n = (0, p["default"])(this._options, t.options);
|
||||
"auto" == n.format && (n.format = a());
|
||||
var r = n.value, i = l["default"][n.format.toUpperCase()], s = o(r, i, n);
|
||||
u(t, s, n);
|
||||
}
|
||||
}, b.prototype.render = function() {
|
||||
if (Array.isArray(this._renderProperties)) for (var t in this._renderProperties) u(this._renderProperties[t], this._encodings, this._options); else u(this._renderProperties, this._encodings, this._options);
|
||||
return this._options.valid(!0), this;
|
||||
}, "undefined" != typeof window && (window.JsBarcode = w), "undefined" != typeof jQuery && (jQuery.fn.JsBarcode = function(t, e) {
|
||||
var n = [];
|
||||
return jQuery(this).each(function() {
|
||||
n.push(this);
|
||||
}), w(n, t, e);
|
||||
}), t.exports = w;
|
||||
var O = {
|
||||
width: 2,
|
||||
height: 100,
|
||||
format: "auto",
|
||||
displayValue: !0,
|
||||
fontOptions: "",
|
||||
font: "monospace",
|
||||
textAlign: "center",
|
||||
textPosition: "bottom",
|
||||
textMargin: 2,
|
||||
fontSize: 20,
|
||||
background: "#ffffff",
|
||||
lineColor: "#000000",
|
||||
margin: 10,
|
||||
marginTop: void 0,
|
||||
marginBottom: void 0,
|
||||
marginLeft: void 0,
|
||||
marginRight: void 0,
|
||||
valid: function(t) {}
|
||||
};
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function o(t, e) {
|
||||
if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return !e || "object" != typeof e && "function" != typeof e ? t : e;
|
||||
}
|
||||
function a(t, e) {
|
||||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
||||
t.prototype = Object.create(e && e.prototype, {
|
||||
constructor: {
|
||||
value: t,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
configurable: !0
|
||||
}
|
||||
}), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var u = n(0), s = r(u), f = function(t) {
|
||||
function e(n) {
|
||||
return i(this, e), o(this, t.call(this, String.fromCharCode(208) + n));
|
||||
}
|
||||
return a(e, t), e.prototype.valid = function() {
|
||||
return -1 !== this.string.search(/^[\x00-\x5F\xC8-\xCF]+$/);
|
||||
}, e;
|
||||
}(s["default"]);
|
||||
e["default"] = f;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function o(t, e) {
|
||||
if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return !e || "object" != typeof e && "function" != typeof e ? t : e;
|
||||
}
|
||||
function a(t, e) {
|
||||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
||||
t.prototype = Object.create(e && e.prototype, {
|
||||
constructor: {
|
||||
value: t,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
configurable: !0
|
||||
}
|
||||
}), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var u = n(0), s = r(u), f = function(t) {
|
||||
function e(n) {
|
||||
return i(this, e), o(this, t.call(this, String.fromCharCode(209) + n));
|
||||
}
|
||||
return a(e, t), e.prototype.valid = function() {
|
||||
return -1 !== this.string.search(/^[\x20-\x7F\xC8-\xCF]+$/);
|
||||
}, e;
|
||||
}(s["default"]);
|
||||
e["default"] = f;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function o(t, e) {
|
||||
if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return !e || "object" != typeof e && "function" != typeof e ? t : e;
|
||||
}
|
||||
function a(t, e) {
|
||||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
||||
t.prototype = Object.create(e && e.prototype, {
|
||||
constructor: {
|
||||
value: t,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
configurable: !0
|
||||
}
|
||||
}), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var u = n(0), s = r(u), f = function(t) {
|
||||
function e(n) {
|
||||
return i(this, e), o(this, t.call(this, String.fromCharCode(210) + n));
|
||||
}
|
||||
return a(e, t), e.prototype.valid = function() {
|
||||
return -1 !== this.string.search(/^(\xCF*[0-9]{2}\xCF*)+$/);
|
||||
}, e;
|
||||
}(s["default"]);
|
||||
e["default"] = f;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e) {
|
||||
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
function o(t, e) {
|
||||
if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return !e || "object" != typeof e && "function" != typeof e ? t : e;
|
||||
}
|
||||
function a(t, e) {
|
||||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
||||
t.prototype = Object.create(e && e.prototype, {
|
||||
constructor: {
|
||||
value: t,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
configurable: !0
|
||||
}
|
||||
}), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
||||
}
|
||||
function u(t) {
|
||||
var e, n = t.match(/^[\x00-\x5F\xC8-\xCF]*/)[0].length, r = t.match(/^[\x20-\x7F\xC8-\xCF]*/)[0].length, i = t.match(/^(\xCF*[0-9]{2}\xCF*)*/)[0].length;
|
||||
return e = i >= 2 ? String.fromCharCode(210) + l(t) : n > r ? String.fromCharCode(208) + s(t) : String.fromCharCode(209) + f(t),
|
||||
e = e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, function(t, e) {
|
||||
return String.fromCharCode(203) + e;
|
||||
});
|
||||
}
|
||||
function s(t) {
|
||||
var e = t.match(/^([\x00-\x5F\xC8-\xCF]+?)(([0-9]{2}){2,})([^0-9]|$)/);
|
||||
if (e) return e[1] + String.fromCharCode(204) + l(t.substring(e[1].length));
|
||||
var n = t.match(/^[\x00-\x5F\xC8-\xCF]+/);
|
||||
return n[0].length === t.length ? t : n[0] + String.fromCharCode(205) + f(t.substring(n[0].length));
|
||||
}
|
||||
function f(t) {
|
||||
var e = t.match(/^([\x20-\x7F\xC8-\xCF]+?)(([0-9]{2}){2,})([^0-9]|$)/);
|
||||
if (e) return e[1] + String.fromCharCode(204) + l(t.substring(e[1].length));
|
||||
var n = t.match(/^[\x20-\x7F\xC8-\xCF]+/);
|
||||
return n[0].length === t.length ? t : n[0] + String.fromCharCode(206) + s(t.substring(n[0].length));
|
||||
}
|
||||
function l(t) {
|
||||
var e = t.match(/^(\xCF*[0-9]{2}\xCF*)+/)[0], n = e.length;
|
||||
if (n === t.length) return t;
|
||||
t = t.substring(n);
|
||||
var r = t.match(/^[\x00-\x5F\xC8-\xCF]*/)[0].length, i = t.match(/^[\x20-\x7F\xC8-\xCF]*/)[0].length;
|
||||
return r >= i ? e + String.fromCharCode(206) + s(t) : e + String.fromCharCode(205) + f(t);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var c = n(0), d = r(c), h = function(t) {
|
||||
function e(n) {
|
||||
i(this, e);
|
||||
var r = o(this, t.call(this, n));
|
||||
if (-1 !== n.search(/^[\x00-\x7F\xC8-\xD3]+$/)) var r = o(this, t.call(this, u(n))); else var r = o(this, t.call(this, n));
|
||||
return o(r);
|
||||
}
|
||||
return a(e, t), e;
|
||||
}(d["default"]);
|
||||
e["default"] = h;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.CODE128C = e.CODE128B = e.CODE128A = e.CODE128 = void 0;
|
||||
var i = n(11), o = r(i), a = n(8), u = r(a), s = n(9), f = r(s), l = n(10), c = r(l);
|
||||
e.CODE128 = o["default"], e.CODE128A = u["default"], e.CODE128B = f["default"],
|
||||
e.CODE128C = c["default"];
|
||||
}, function(t, e) {
|
||||
"use strict";
|
||||
function n(t) {
|
||||
var e = [ "width", "height", "textMargin", "fontSize", "margin", "marginLeft", "marginBottom", "marginLeft", "marginRight" ];
|
||||
for (var n in e) n = e[n], "string" == typeof t[n] && (t[n] = parseInt(t[n], 10));
|
||||
return "string" == typeof t.displayValue && (t.displayValue = "false" != t.displayValue),
|
||||
t;
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e["default"] = n;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e, n) {
|
||||
if (!t.getContext) throw new Error("The browser does not support canvas.");
|
||||
o(t, n, e);
|
||||
for (var r = 0; r < e.length; r++) {
|
||||
var i = (0, c["default"])(n, e[r].options);
|
||||
a(t, i, e[r]), u(t, i, e[r]), s(t, e[r]);
|
||||
}
|
||||
f(t);
|
||||
}
|
||||
function o(t, e, n) {
|
||||
var r = t.getContext("2d");
|
||||
r.save();
|
||||
for (var i = 0, o = 0, a = 0; a < n.length; a++) {
|
||||
var u = (0, c["default"])(u, n[a].options);
|
||||
r.font = u.fontOptions + " " + u.fontSize + "px " + u.font;
|
||||
var s = r.measureText(n[a].text).width, f = n[a].data.length * u.width;
|
||||
n[a].width = Math.ceil(Math.max(s, f));
|
||||
var l = u.height + (u.displayValue && n[a].text.length > 0 ? u.fontSize : 0) + u.textMargin + u.marginTop + u.marginBottom, d = 0;
|
||||
u.displayValue && s > f && ("center" == u.textAlign ? d = Math.floor((s - f) / 2) : "left" == u.textAlign ? d = 0 : "right" == u.textAlign && (d = Math.floor(s - f))),
|
||||
n[a].barcodePadding = d, l > o && (o = l), i += n[a].width;
|
||||
}
|
||||
t.width = i + e.marginLeft + e.marginRight, t.height = o, r.clearRect(0, 0, t.width, t.height),
|
||||
e.background && (r.fillStyle = e.background, r.fillRect(0, 0, t.width, t.height)),
|
||||
r.translate(e.marginLeft, 0);
|
||||
}
|
||||
function a(t, e, n) {
|
||||
var r, i, o = t.getContext("2d"), a = n.data;
|
||||
r = "top" == e.textPosition ? e.marginTop + e.fontSize + e.textMargin : e.marginTop,
|
||||
i = e.height, o.fillStyle = e.lineColor;
|
||||
for (var u = 0; u < a.length; u++) {
|
||||
var s = u * e.width + n.barcodePadding;
|
||||
"1" === a[u] ? o.fillRect(s, r, e.width, e.height) : a[u] && o.fillRect(s, r, e.width, e.height * a[u]);
|
||||
}
|
||||
}
|
||||
function u(t, e, n) {
|
||||
var r = t.getContext("2d"), i = e.fontOptions + " " + e.fontSize + "px " + e.font;
|
||||
if (e.displayValue) {
|
||||
var o, a;
|
||||
a = "top" == e.textPosition ? e.marginTop + e.fontSize - e.textMargin : e.height + e.textMargin + e.marginTop + e.fontSize,
|
||||
r.font = i, "left" == e.textAlign || n.barcodePadding > 0 ? (o = 0, r.textAlign = "left") : "right" == e.textAlign ? (o = n.width - 1,
|
||||
r.textAlign = "right") : (o = n.width / 2, r.textAlign = "center"), r.fillText(n.text, o, a);
|
||||
}
|
||||
}
|
||||
function s(t, e) {
|
||||
var n = t.getContext("2d");
|
||||
n.translate(e.width, 0);
|
||||
}
|
||||
function f(t) {
|
||||
var e = t.getContext("2d");
|
||||
e.restore();
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var l = n(1), c = r(l);
|
||||
e["default"] = i;
|
||||
}, function(t, e, n) {
|
||||
"use strict";
|
||||
function r(t) {
|
||||
return t && t.__esModule ? t : {
|
||||
"default": t
|
||||
};
|
||||
}
|
||||
function i(t, e, n) {
|
||||
var r = n.marginLeft;
|
||||
o(t, n, e);
|
||||
for (var i = 0; i < e.length; i++) {
|
||||
var s = (0, h["default"])(n, e[i].options), c = f(r, s.marginTop, t);
|
||||
l(c, s, e[i]), a(c, s, e[i]), u(c, s, e[i]), r += e[i].width;
|
||||
}
|
||||
}
|
||||
function o(t, e, n) {
|
||||
for (;t.firstChild; ) t.removeChild(t.firstChild);
|
||||
for (var r = 0, i = 0, o = 0; o < n.length; o++) {
|
||||
var a = (0, h["default"])(a, n[o].options), u = s(n[o].text, t, a), f = n[o].data.length * a.width;
|
||||
n[o].width = Math.ceil(Math.max(u, f));
|
||||
var l = a.height + (a.displayValue && n[o].text.length > 0 ? a.fontSize : 0) + a.textMargin + a.marginTop + a.marginBottom, c = 0;
|
||||
a.displayValue && u > f && ("center" == a.textAlign ? c = Math.floor((u - f) / 2) : "left" == a.textAlign ? c = 0 : "right" == a.textAlign && (c = Math.floor(u - f))),
|
||||
n[o].barcodePadding = c, l > i && (i = l), r += n[o].width;
|
||||
}
|
||||
var d = r + e.marginLeft + e.marginRight, g = i;
|
||||
t.setAttribute("width", d + "px"), t.setAttribute("height", g + "px"), t.setAttribute("x", "0px"),
|
||||
t.setAttribute("y", "0px"), t.setAttribute("viewBox", "0 0 " + d + " " + g), t.setAttribute("xmlns", p),
|
||||
t.setAttribute("version", "1.1"), e.background && (t.style.background = e.background);
|
||||
}
|
||||
function a(t, e, n) {
|
||||
var r, i, o = n.data;
|
||||
r = "top" == e.textPosition ? e.fontSize + e.textMargin : 0, i = e.height;
|
||||
for (var a = 0, u = 0; u < o.length; u++) {
|
||||
var s = u * e.width + n.barcodePadding;
|
||||
"1" === o[u] ? a++ : a > 0 && (c(s - e.width * a, r, e.width * a, e.height, t),
|
||||
a = 0);
|
||||
}
|
||||
a > 0 && c(s - e.width * (a - 1), r, e.width * a, e.height, t);
|
||||
}
|
||||
function u(t, e, n) {
|
||||
var r = document.createElementNS(p, "text");
|
||||
if (e.displayValue) {
|
||||
var i, o;
|
||||
r.setAttribute("style", "font:" + e.fontOptions + " " + e.fontSize + "px " + e.font),
|
||||
o = "top" == e.textPosition ? e.fontSize - e.textMargin : e.height + e.textMargin + e.fontSize,
|
||||
"left" == e.textAlign || n.barcodePadding > 0 ? (i = 0, r.setAttribute("text-anchor", "start")) : "right" == e.textAlign ? (i = n.width - 1,
|
||||
r.setAttribute("text-anchor", "end")) : (i = n.width / 2, r.setAttribute("text-anchor", "middle")),
|
||||
r.setAttribute("x", i), r.setAttribute("y", o), r.appendChild(document.createTextNode(n.text)),
|
||||
t.appendChild(r);
|
||||
}
|
||||
}
|
||||
function s(t, e, n) {
|
||||
var r = document.createElement("canvas").getContext("2d");
|
||||
r.font = n.fontOptions + " " + n.fontSize + "px " + n.font;
|
||||
var i = r.measureText(t).width;
|
||||
return i;
|
||||
}
|
||||
function f(t, e, n) {
|
||||
var r = document.createElementNS(p, "g");
|
||||
return r.setAttribute("transform", "translate(" + t + ", " + e + ")"), n.appendChild(r),
|
||||
r;
|
||||
}
|
||||
function l(t, e, n) {
|
||||
t.setAttribute("style", "fill:" + e.lineColor + ";");
|
||||
}
|
||||
function c(t, e, n, r, i) {
|
||||
var o = document.createElementNS(p, "rect");
|
||||
o.setAttribute("x", t), o.setAttribute("y", e), o.setAttribute("width", n), o.setAttribute("height", r),
|
||||
i.appendChild(o);
|
||||
}
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
var d = n(1), h = r(d);
|
||||
e["default"] = i;
|
||||
var p = "http://www.w3.org/2000/svg";
|
||||
} ]);
|
||||
1
js/JsBarcode.code128.min.js
vendored
Normal file
1
js/JsBarcode.code128.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
95
js/___temp.js
Normal file
95
js/___temp.js
Normal file
@@ -0,0 +1,95 @@
|
||||
$('body').off('click', '#btnZumtesten');
|
||||
$('body').on('click', '#btnZumtesten', function(){
|
||||
$("#tbPONr").val("21178795-10");
|
||||
$("#inpLieferDatum").val("20160512");
|
||||
getFirstEmptyInput().value = 416;
|
||||
getFirstEmptyInput().value = 417;
|
||||
getFirstEmptyInput().value = 418;
|
||||
getFirstEmptyInput().value = 419;
|
||||
getFirstEmptyInput().value = 420;
|
||||
getFirstEmptyInput().value = 421;
|
||||
getFirstEmptyInput().value = 422;
|
||||
getFirstEmptyInput().value = 423;
|
||||
getFirstEmptyInput().value = 424;
|
||||
getFirstEmptyInput().value = 425;
|
||||
getFirstEmptyInput().value = 426;
|
||||
getFirstEmptyInput().value = 427;
|
||||
getFirstEmptyInput().value = 428;
|
||||
getFirstEmptyInput().value = 429;
|
||||
getFirstEmptyInput().value = 430;
|
||||
$('#btnLieferungErstellen').trigger('click');
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('body').off('click', "#btnLT3040, #btnLT3030, #btnLT2121, #btnLT2121C");
|
||||
|
||||
$('body').on('click', "#btnLT3040", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT3040').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "3040";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT3030", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT3030').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "3030";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT2121", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT2121').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "2121";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT2121C", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT2121C').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "2121C";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
|
||||
function getZuLieferndeBoxen(){
|
||||
var listOfBoxes = [];
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
var cnt = 0;
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value !== "") {
|
||||
listOfBoxes.push(textboxes[i].value);
|
||||
}
|
||||
}
|
||||
return listOfBoxes;
|
||||
}
|
||||
|
||||
function N(val){ return Number(val).toFixed(2); }
|
||||
function getFirstEmptyInput(){
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value === "") {
|
||||
return textboxes[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$('body').off('click', '#btnLieferReset');
|
||||
$('body').on('click', '#btnLieferReset', function(){
|
||||
resetLieferForm();
|
||||
});
|
||||
|
||||
function fillinLieferboxen(liefertyp){
|
||||
$("#lbBoxen option[value='none']").remove();
|
||||
result = DB.getAllBoxNr(liefertyp); // alle boxen des typs holen
|
||||
boxArr = result.split("; "); // in ein array packen
|
||||
$('select#lbBoxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('select#lbBoxen').append($('<option>', {
|
||||
value: boxNr, // und jedes array-element als option
|
||||
text: boxNr // in die select-liste packen
|
||||
}));
|
||||
});
|
||||
}
|
||||
662
js/auswertung.js
Normal file
662
js/auswertung.js
Normal file
@@ -0,0 +1,662 @@
|
||||
var OL3040JSON = []; var OW3040JSON = []; var IL3040JSON = []; var IW3040JSON = []; var R123040JSON = []; var R343040JSON = []; var Rau3040JSON = [];
|
||||
var OL3030JSON = []; var OW3030JSON = []; var IL3030JSON = []; var IW3030JSON = []; var R123030JSON = []; var R343030JSON = []; var Rau3030JSON = [];
|
||||
var OL2121JSON = []; var OW2121JSON = []; var IL2121JSON = []; var IW2121JSON = []; var R122121JSON = []; var R342121JSON = []; var Rau2121JSON = [];
|
||||
var OL2121CJSON = []; var OW2121CJSON = []; var IL2121CJSON = []; var IW2121CJSON = []; var R122121CJSON = []; var R342121CJSON = []; var Rau2121CJSON = [];
|
||||
|
||||
var rows = [];
|
||||
var headerGross = "<tr><th>TXLCode</th><th>OL1</th><th>OL2</th><th>OW1</th><th>IW2</th><th>IL1</th><th>IL2</th><th>IW1</th><th>IW2</th><th>R1</th><th>R2</th><th>R3</th><th>R4</th><th>LW</th><th>CW</th></tr>";
|
||||
var headerKlein = "<tr><th>TXLCode</th><th>OL</th><th>OW</th><th>IL</th><th>IW</th><th>R1</th><th>R2</th><th>R3</th><th>R4</th></tr>";
|
||||
var liefertyp = "none";
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
$("body").on("click", "#btnEinzelbox", function(){
|
||||
$("div#einzelbox").removeClass("invisible");
|
||||
$("div#lieferDiv").addClass("invisible");
|
||||
$("#divButtons").addClass("invisible");
|
||||
});
|
||||
$("body").on("click", "#btnLieferung", function(){
|
||||
$("div#einzelbox").addClass("invisible");
|
||||
$("div#lieferDiv").removeClass("invisible");
|
||||
$("#divButtons").addClass("invisible");
|
||||
});
|
||||
|
||||
/*
|
||||
* Einzelbox
|
||||
*
|
||||
*/
|
||||
|
||||
$("body").off("change", "#selTmpTyp");
|
||||
$("body").on("change", "#selTmpTyp", function(e){
|
||||
var tmpTyp = e.target.value;
|
||||
$("#selTmpTyp option[value='none']").remove();
|
||||
result = DB.getAllBoxNr(tmpTyp);
|
||||
boxArr = result.split(";");
|
||||
$('select#selBoxNr').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('select#selBoxNr').append($('<option>', {
|
||||
value: boxNr,
|
||||
text: boxNr
|
||||
}));
|
||||
});
|
||||
$('select#selBoxNr').removeClass("invisible");
|
||||
|
||||
if ( tmpTyp === "3040" || tmpTyp === "3030" ) { $("#theadMesswerte").html(headerGross); }
|
||||
if ( tmpTyp === "2121" || tmpTyp === "2121C" ) { $("#theadMesswerte").html(headerKlein); }
|
||||
});
|
||||
|
||||
$("body").off("change", "#selBoxNr");
|
||||
$("body").on("change", "#selBoxNr", function(e){
|
||||
var boxNr = e.target.value;
|
||||
var tmpTyp = $('#selTmpTyp')[0].value;
|
||||
var objMesswerte = $.parseJSON(DB.getBoxMesswerte(tmpTyp, boxNr));
|
||||
var tr = "";
|
||||
|
||||
$.each(objMesswerte, function(txlcode) {
|
||||
actMessObj = $(this);
|
||||
m = actMessObj[0];
|
||||
|
||||
if ( tmpTyp === "3040" || tmpTyp === "3030" ) {
|
||||
OL1 = Number(m.OL1); OL2 = Number(m.OL2);
|
||||
OW1 = Number(m.OW1); OW2 = Number(m.OW2);
|
||||
R11 = Number(m.R11) - messadapter; R12 = Number(m.R12) - messadapter; R13 = Number(m.R13) - messadapter;
|
||||
R21 = Number(m.R21) - messadapter; R22 = Number(m.R22) - messadapter; R23 = Number(m.R23) - messadapter;
|
||||
R31 = Number(m.R31) - messadapter; R32 = Number(m.R32) - messadapter; R33 = Number(m.R33) - messadapter;
|
||||
R41 = Number(m.R41) - messadapter; R42 = Number(m.R42) - messadapter; R43 = Number(m.R43) - messadapter;
|
||||
LW = Number(m.LW);
|
||||
CW = Number(m.CW);
|
||||
|
||||
IL1 = ((OL1 - R31) - R43);
|
||||
IL2 = ((OL2 - R33) - R41);
|
||||
IW1 = ((OW1 - R11) - R23);
|
||||
IW2 = ((OW2 - R13) - R21);
|
||||
R1 = (R11 + R12 + R13) / 3;
|
||||
R2 = (R21 + R22 + R23) / 3;
|
||||
R3 = (R31 + R32 + R33) / 3;
|
||||
R4 = (R41 + R42 + R43) / 3;
|
||||
tr += "<tr><td>" + txlcode + "</td> \
|
||||
<td>" + OL1.toFixed(2) + "</td> \
|
||||
<td>" + OL2.toFixed(2) + "</td> \
|
||||
<td>" + OW1.toFixed(2) + "</td> \
|
||||
<td>" + OW2.toFixed(2) + "</td> \
|
||||
<td>" + IL1.toFixed(2) + "</td> \
|
||||
<td>" + IL2.toFixed(2) + "</td> \
|
||||
<td>" + IW1.toFixed(2) + "</td> \
|
||||
<td>" + IW2.toFixed(2) + "</td> \
|
||||
<td>" + R1.toFixed(2) + "</td> \
|
||||
<td>" + R2.toFixed(2) + "</td> \
|
||||
<td>" + R3.toFixed(2) + "</td> \
|
||||
<td>" + R4.toFixed(2) + "</td> \
|
||||
<td>" + LW + "</td> \
|
||||
<td>" + CW + "</td> \
|
||||
</tr>";
|
||||
} else if ( tmpTyp === "2121" || tmpTyp === "2121C" ) {
|
||||
OL = Number(m.OL1); OW = Number(m.OW1);
|
||||
R11 = Number(m.R11) - messadapter; R12 = Number(m.R12) - messadapter;
|
||||
R21 = Number(m.R21) - messadapter; R22 = Number(m.R22) - messadapter;
|
||||
R31 = Number(m.R31) - messadapter; R32 = Number(m.R32) - messadapter;
|
||||
R41 = Number(m.R41) - messadapter; R42 = Number(m.R42) - messadapter;
|
||||
|
||||
IL = ((OL - R31) - R42);
|
||||
IW = ((OW - R11) - R22);
|
||||
R1 = (R11 + R12) / 2;
|
||||
R2 = (R21 + R22) / 2;
|
||||
R3 = (R31 + R32) / 2;
|
||||
R4 = (R41 + R42) / 2;
|
||||
tr += "<tr><td>" + txlcode + "</td> \
|
||||
<td>" + OL.toFixed(2) + "</td> \
|
||||
<td>" + OW.toFixed(2) + "</td> \
|
||||
<td>" + IL.toFixed(2) + "</td> \
|
||||
<td>" + IW.toFixed(2) + "</td> \
|
||||
<td>" + R1.toFixed(2) + "</td> \
|
||||
<td>" + R2.toFixed(2) + "</td> \
|
||||
<td>" + R3.toFixed(2) + "</td> \
|
||||
<td>" + R4.toFixed(2) + "</td> \
|
||||
</tr>";
|
||||
}
|
||||
}); // end each
|
||||
|
||||
$("#tbodyMesswerte").html(tr);
|
||||
$("#tblMesswerte").removeClass("invisible");
|
||||
$("#btnCharts").removeClass("invisible");
|
||||
$("#chart").removeClass("invisible");
|
||||
$("#chart2").removeClass("invisible");
|
||||
|
||||
rows = [];
|
||||
var actType = $('#selTmpTyp')[0].value;
|
||||
var objMesswerte = HTMLTable2Array(actType);
|
||||
fillChartArray(objMesswerte, actType);
|
||||
$("#btnChart1").trigger("click");
|
||||
});
|
||||
|
||||
|
||||
$("body").off("click", "#btnChart1");
|
||||
$("body").off("click", "#btnChart2");
|
||||
$("body").off("click", "#btnChart3");
|
||||
$("body").off("click", "#btnChart4");
|
||||
$("body").off("click", "#btnChart5");
|
||||
$("body").off("click", "#btnChart6");
|
||||
$("body").off("click", "#btnChart7");
|
||||
|
||||
|
||||
$("body").on("click", "#btnChart1", function(e){
|
||||
var tmpTyp = $('#selTmpTyp')[0].value;
|
||||
if ( tmpTyp === "3040") {
|
||||
dispChart("#chart", OL3040JSON, ['OL1', 'OL2', 'min', 'nom', 'max'], "Outer Length", 429.4, 429.6);
|
||||
dispChart("#chart2", OW3040JSON, ['OW1', 'OW2', 'min', 'nom', 'max'], "Outer Width", 310.5, 310.7);
|
||||
} else if ( tmpTyp === "3030") {
|
||||
dispChart("#chart", OL3030JSON, ['OL1', 'OL2', 'min', 'nom', 'max'], "Outer Length");
|
||||
dispChart("#chart2", OW3030JSON, ['OW1', 'OW2', 'min', 'nom', 'max'], "Outer Width");
|
||||
} else if ( tmpTyp === "2121") {
|
||||
dispChart("#chart", OL2121JSON, ['OL', 'min', 'nom', 'max'], "Outer Length", 222.00, 222.20);
|
||||
dispChart("#chart2", OW2121JSON, ['OW', 'min', 'nom', 'max'], "Outer Width", 222.00, 222.20);
|
||||
} else if ( tmpTyp === "2121C") {
|
||||
dispChart("#chart", OL2121CJSON, ['OL', 'min', 'nom', 'max'], "Outer Length");
|
||||
dispChart("#chart2", OW2121CJSON, ['OW', 'min', 'nom', 'max'], "Outer Width");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnChart2", function(e){
|
||||
var tmpTyp = $('#selTmpTyp')[0].value;
|
||||
if ( tmpTyp === "3040") {
|
||||
dispChart("#chart", IL3040JSON, ['IL1', 'IL2', 'min', 'nom', 'max'], "Inner Length", 421.98, 422.38);
|
||||
dispChart("#chart2", IW3040JSON, ['IW1', 'IW2', 'min', 'nom', 'max'], "Inner Width", 303.08, 303.48);
|
||||
} else if ( tmpTyp === "3030") {
|
||||
dispChart("#chart", IL3030JSON, ['IL1', 'IL2', 'min', 'nom', 'max'], "Inner Length");
|
||||
dispChart("#chart2", IW3030JSON, ['IW1', 'IW2', 'min', 'nom', 'max'], "Inner Width");
|
||||
} else if ( tmpTyp === "2121") {
|
||||
dispChart("#chart", IL2121JSON, ['IL', 'min', 'nom', 'max'], "Inner Length", 213.78, 214.18);
|
||||
dispChart("#chart2", IW2121JSON, ['IW', 'min', 'nom', 'max'], "Inner Width", 213.78, 214.18);
|
||||
} else if ( tmpTyp === "2121C") {
|
||||
dispChart("#chart", IL2121CJSON, ['IL', 'min', 'nom', 'max'], "Inner Length");
|
||||
dispChart("#chart2", IW2121CJSON, ['IW', 'min', 'nom', 'max'], "Inner Width");
|
||||
}
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnChart3", function(e){
|
||||
var tmpTyp = $('#selTmpTyp')[0].value;
|
||||
if ( tmpTyp === "3040") {
|
||||
dispChart("#chart", R123040JSON, ['R1', 'R2'], "R1 <-> R2", 3, 4);
|
||||
dispChart("#chart2", R343040JSON, ['R3', 'R4'], "R3 <-> R4", 3, 4);
|
||||
} else if ( tmpTyp === "3030") {
|
||||
dispChart("#chart", R123030JSON, ['R1', 'R2'], "R1 <-> R2");
|
||||
dispChart("#chart2", R343030JSON, ['R3', 'R4'], "R3 <-> R4");
|
||||
} else if ( tmpTyp === "2121") {
|
||||
dispChart("#chart", R122121JSON, ['R1', 'R2'], "R1 <-> R2", 3.5, 4.5);
|
||||
dispChart("#chart2", R342121JSON, ['R3', 'R4'], "R3 <-> R4", 3.5, 4.5);
|
||||
} else if ( tmpTyp === "2121C") {
|
||||
dispChart("#chart", R122121CJSON, ['R1', 'R2',], "R1 <-> R2");
|
||||
dispChart("#chart2", R342121CJSON, ['R3', 'R4'], "R3 <-> R4");
|
||||
}
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnChart4", function(e){
|
||||
var tmpTyp = $('#selTmpTyp')[0].value;
|
||||
if ( tmpTyp === "3040") {
|
||||
dispChart("#chart", R123040JSON, ['diff'], "R1 <-> R2", -0.5, 0.5);
|
||||
dispChart("#chart2", R343040JSON, ['diff'], "R3 <-> R4", -0.5, 0.5);
|
||||
} else if ( tmpTyp === "3030") {
|
||||
dispChart("#chart", R123030JSON, ['diff'], "R1 <-> R2");
|
||||
dispChart("#chart2", R343030JSON, ['diff'], "R3 <-> R4");
|
||||
} else if ( tmpTyp === "2121") {
|
||||
dispChart("#chart", R122121JSON, ['diff'], "R1 <-> R2", -0.5, 0.5);
|
||||
dispChart("#chart2", R342121JSON, ['diff'], "R3 <-> R4", -0.5, 0.5);
|
||||
} else if ( tmpTyp === "2121C") {
|
||||
dispChart("#chart", R122121CJSON, ['diff'], "R1 <-> R2");
|
||||
dispChart("#chart2", R342121CJSON, ['diff'], "R3 <-> R4");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("body").on("click", "#btnChart5", function(e){ /* FOO */ });
|
||||
$("body").on("click", "#btnChart6", function(e){ /* FOO */ });
|
||||
$("body").on("click", "#btnChart7", function(e){
|
||||
rows = [];
|
||||
var actType = $('#selTmpTyp')[0].value;
|
||||
var objMesswerte = HTMLTable2Array(actType);
|
||||
fillChartArray(objMesswerte, actType);
|
||||
});
|
||||
|
||||
/*
|
||||
* Lieferung
|
||||
*
|
||||
*/
|
||||
|
||||
$('body').off('click', "#btnLT3040, #btnLT3030, #btnLT2121, #btnLT2121C");
|
||||
|
||||
$('body').on('click', "#btnLT3040", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT3040').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "3040";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT3030", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT3030').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "3030";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT2121", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT2121').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "2121";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').on('click', "#btnLT2121C", function(){
|
||||
resetBtnColor();
|
||||
$('#btnLT2121C').removeClass().addClass('small-btn-selected');
|
||||
liefertyp = "2121C";
|
||||
fillinLieferboxen(liefertyp);
|
||||
});
|
||||
|
||||
$('body').off('dblclick', '#zuLieferndeBoxen');
|
||||
$('body').on('dblclick', '#zuLieferndeBoxen', function(e) {
|
||||
|
||||
var actBoxNr = e.target.value;
|
||||
|
||||
if ( checkIfExists(actBoxNr) ) {
|
||||
swal("Achtung", "Box ist schon drüben", 'warning');
|
||||
} else {
|
||||
getFirstEmptyInput().value = actBoxNr;
|
||||
if ( getFilledBoxesCount() === 15 ){
|
||||
swal("Voll", "Mehr als 15 geht nicht", 'info');
|
||||
$('#lbBoxen').prop("disabled", true)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('body').off('click', '#btnLieferReset');
|
||||
$('body').on('click', '#btnLieferReset', function(){
|
||||
resetLieferForm();
|
||||
});
|
||||
|
||||
/*
|
||||
* Lieferdaten zusammenstellen:
|
||||
*
|
||||
* - alle messdaten der eingetragenen boxen holen
|
||||
* - die messdaten in die tabelle schreiben
|
||||
* - die messdaten für das xlsx-PHP-Script vorbereiten
|
||||
* TODO: diese datan dann dem script übergeben, welches dann die xlsx erstellt
|
||||
*
|
||||
*/
|
||||
$('body').off('click', '#btnLieferungErstellen');
|
||||
$('body').on('click', '#btnLieferungErstellen', function(){
|
||||
|
||||
$("#tblMessdatenFuerLieferung").html = "";
|
||||
var headerGross = "<tr><th>LBox</th><th>Box&Pos</th><th>TXLCode</th><th>OL1</th><th>OL2</th><th>OW1</th><th>IW2</th><th>IL1</th><th>IL2</th><th>IW1</th><th>IW2</th><th>R1</th><th>R2</th><th>R3</th><th>R4</th><th>LW</th><th>CW</th></tr>";
|
||||
var headerKlein = "<tr><th>LBox</th><th>Box&Pos</th><th>TXLCode</th><th>OL</th><th>OW</th><th>IL</th><th>IW</th><th>R1</th><th>R2</th><th>R3</th><th>R4</th><th>LW</th><th>CW</th></tr>";
|
||||
|
||||
// hole die boxnummern aus den input-feldern
|
||||
var listOfBoxes = getZuLieferndeBoxen();
|
||||
var listOfMesswerte = {};
|
||||
var boxmesswertekomplett = {
|
||||
"lieferdaten":{
|
||||
"poNr": $('#tbPONr').val(),
|
||||
"lieferdatum": $('#inpLieferDatum').val(),
|
||||
"anzahlBoxen": listOfBoxes.length,
|
||||
"liefertyp": liefertyp
|
||||
}
|
||||
};
|
||||
var tr = "";
|
||||
console.log("Anzahl zu holende Boxen: " + listOfBoxes.length);
|
||||
//console.log(listOfBoxes);
|
||||
|
||||
// schiebe alle zu liefernden boxen in ein array
|
||||
for ( var i = 0; i < listOfBoxes.length; ++i ){
|
||||
listOfMesswerte[i + 1] = $.parseJSON(DB.getBoxMesswerte(liefertyp, listOfBoxes[i]));
|
||||
}
|
||||
//console.log(listOfMesswerte);
|
||||
|
||||
|
||||
var partCnt;
|
||||
|
||||
$.each( listOfMesswerte, function(i, e){
|
||||
if ( liefertyp === "3040" || liefertyp === "3030" ) {
|
||||
tr += headerGross;
|
||||
partCnt = 1;
|
||||
$.each(e, function(key, val){
|
||||
messwerte = val;
|
||||
txlcode = key;
|
||||
ol1 = val["OL1"]; ol2 = val["OL2"];
|
||||
ow1 = val["OW1"]; ow2 = val["OW2"];
|
||||
r11 = val["R11"] - messadapter; r12 = val["R12"] - messadapter; r13 = val["R13"] - messadapter;
|
||||
r21 = val["R21"] - messadapter; r22 = val["R22"] - messadapter; r23 = val["R23"] - messadapter;
|
||||
r31 = val["R31"] - messadapter; r32 = val["R32"] - messadapter; r33 = val["R33"] - messadapter;
|
||||
r41 = val["R41"] - messadapter; r42 = val["R42"] - messadapter; r43 = val["R43"] - messadapter;
|
||||
LW = val["LW"]; CW = val["CW"]
|
||||
r1 = (r11 + r12 + r13) / 3; r2 = (r21 + r22 + r23) / 3;
|
||||
r3 = (r31 + r32 + r33) / 3; r4 = (r41 + r42 + r43) / 3;
|
||||
il1 = ((ol1 - r31) - r43); il2 = ((ol2 - r33) - r41);
|
||||
iw1 = ((ow1 - r11) - r23); iw2 = ((ow2 - r13) - r21);
|
||||
//console.log("Box " + i + " Platz " + partCnt + ": " + key + "=>" + N(ol1) + ", " + N(ol2) + ", " + N(ow1) + ", " + N(ow2) + ", " + N(il1) + ", " + N(il2) + ", " + N(iw1) + ", " + N(iw2) + ", " + N(r1) + ", " + N(r2) + ", " + N(r3) + ", " + N(r4) + ", " + LW + ", " + CW);
|
||||
|
||||
tr += "<tr><td>" + listOfBoxes[i -1] + "</td> \
|
||||
<td>" + i + "-" + partCnt + "</td> \
|
||||
<td>" + txlcode + "</td> \
|
||||
<td>" + N(ol1) + "</td><td>" + N(ol2) + "</td><td>" + N(ow1) + "</td><td>" + N(ow2) + "</td> \
|
||||
<td>" + N(il1) + "</td><td>" + N(il2) + "</td><td>" + N(iw1) + "</td><td>" + N(iw2) + "</td> \
|
||||
<td>" + N(r1) + "</td><td>" + N(r2) + "</td><td>" + N(r3) + "</td><td>" + N(r4) + "</td> \
|
||||
<td>" + LW + "</td><td>" + CW + "</td> \
|
||||
</tr>";
|
||||
arr= [
|
||||
"",
|
||||
Number(txlcode.substr(3,2)) + "-" + Number(txlcode.substr(7,4)),
|
||||
txlcode,
|
||||
N(ol1), N(ol2), N(ow1), N(ow2),
|
||||
N(r1), N(r2), N(r3), N(r4),
|
||||
LW, CW,
|
||||
N(il1), N(il2), N(iw1), N(iw2)
|
||||
];
|
||||
boxmesswertekomplett["Box" + i + "Pos" + partCnt] = arr;
|
||||
++partCnt;
|
||||
});
|
||||
|
||||
} else if ( liefertyp === "2121" || liefertyp === "2121C" ) {
|
||||
tr += headerKlein;
|
||||
partCnt = 1;
|
||||
$.each(e, function(key, val){
|
||||
messwerte = val;
|
||||
txlcode = key;
|
||||
ol = val["OL1"]; ow = val["OW1"];
|
||||
r11 = val["R11"] - messadapter; r12 = val["R12"] - messadapter;
|
||||
r21 = val["R21"] - messadapter; r22 = val["R22"] - messadapter;
|
||||
r31 = val["R31"] - messadapter; r32 = val["R32"] - messadapter;
|
||||
r41 = val["R41"] - messadapter; r42 = val["R42"] - messadapter;
|
||||
LW = val["LW"]; CW = val["CW"]
|
||||
r1 = (r11 + r12) / 2; r2 = (r21 + r22) / 2;
|
||||
r3 = (r31 + r32) / 2; r4 = (r41 + r42) / 2;
|
||||
il = ((ol - r31) - r42); iw = ((ow - r11) - r22);
|
||||
//console.log("Box " + i + " Platz " + partCnt + ": " + key + "=>" + N(ol1) + ", " + N(ol2) + ", " + N(ow1) + ", " + N(ow2) + ", " + N(il1) + ", " + N(il2) + ", " + N(iw1) + ", " + N(iw2) + ", " + N(r1) + ", " + N(r2) + ", " + N(r3) + ", " + N(r4) + ", " + LW + ", " + CW);
|
||||
|
||||
tr += "<tr><td>" + listOfBoxes[i -1] + "</td> \
|
||||
<td>" + i + "-" + partCnt + "</td> \
|
||||
<td>" + txlcode + "</td> \
|
||||
<td>" + N(ol) + "</td><td>" + N(ow) + "</td> \
|
||||
<td>" + N(il) + "</td><td>" + N(iw) + "</td> \
|
||||
<td>" + N(r1) + "</td><td>" + N(r2) + "</td><td>" + N(r3) + "</td><td>" + N(r4) + "</td> \
|
||||
<td>" + LW + "</td><td>" + CW + "</td> \
|
||||
</tr>";
|
||||
arr= [
|
||||
"",
|
||||
// ist zwar ein string, wird aber als zahl behandelt um die fuehrenden nullen zu entfernen
|
||||
Number(txlcode.substr(3,2)) + "-" + Number(txlcode.substr(7,4)),
|
||||
txlcode,
|
||||
N(ol), N(ow),
|
||||
N(r1), N(r2), N(r3), N(r4),
|
||||
LW, CW,
|
||||
N(il), N(iw)
|
||||
];
|
||||
boxmesswertekomplett["Box" + i + "Pos" + partCnt] = arr;
|
||||
++partCnt;
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
$("#tblMessdatenFuerLieferung").html(tr);
|
||||
myJSON = {"func": "createXLSX", boxmesswertekomplett}
|
||||
$("p#debug").text(JSON.stringify(myJSON));
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function N(val){ return Number(val).toFixed(2); }
|
||||
function getZuLieferndeBoxen(){
|
||||
var listOfBoxes = [];
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
var cnt = 0;
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value !== "") {
|
||||
listOfBoxes.push(textboxes[i].value);
|
||||
}
|
||||
}
|
||||
return listOfBoxes;
|
||||
}
|
||||
|
||||
function messwerteHolen(tmpType, boxen){
|
||||
|
||||
// $.each( boxen, function( index, value ){
|
||||
// var pele = document.createElement("p"); // Create with DOM
|
||||
// pele.innerHTML = index + " : " + value;
|
||||
// $('#re').append(pele);
|
||||
// });
|
||||
|
||||
// OL1 = 333.4; OL2 = 333.5;
|
||||
// OW1 = 333.4; OW2 = 333.5;
|
||||
// R11 = 3.61; R12 = 3.62; R13 = 3.63;
|
||||
// R21 = 3.61; R22 = 3.62; R23 = 3.63;
|
||||
// R31 = 3.61; R32 = 3.62; R33 = 3.63;
|
||||
// R41 = 3.61; R42 = 3.62; R43 = 3.63;
|
||||
|
||||
// tr += "<tr><td>" + txlcode + "</td> \
|
||||
// <td>" + OL.toFixed(2) + "</td> \
|
||||
// <td>" + OW.toFixed(2) + "</td> \
|
||||
// <td>" + IL.toFixed(2) + "</td> \
|
||||
// <td>" + IW.toFixed(2) + "</td> \
|
||||
// <td>" + R1.toFixed(2) + "</td> \
|
||||
// <td>" + R2.toFixed(2) + "</td> \
|
||||
// <td>" + R3.toFixed(2) + "</td> \
|
||||
// <td>" + R4.toFixed(2) + "</td> \
|
||||
// </tr>";
|
||||
|
||||
// $("#tbodyMesswerte").html(tr);
|
||||
}
|
||||
|
||||
function fillinLieferboxen(liefertyp){
|
||||
$("#lbBoxen option[value='none']").remove();
|
||||
result = DB.getAllBoxNr(liefertyp); // alle boxen des typs holen
|
||||
boxArr = result.split("; "); // in ein array packen
|
||||
$('select#lbBoxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('select#lbBoxen').append($('<option>', {
|
||||
value: boxNr, // und jedes array-element als option
|
||||
text: boxNr // in die select-liste packen
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
// erste leere input-box holen, in der mittels dblclick die boxnummer eingetragen wird
|
||||
function getFirstEmptyInput(){
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value === "") {
|
||||
return textboxes[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// zaehlen, wie viele boxen schon eingetragen sind
|
||||
function getFilledBoxesCount(){
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
var cnt = 0;
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value !== "") {
|
||||
cnt = cnt + 1;
|
||||
}
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
||||
function checkIfExists(BoxNr){
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox") && textboxes[i].value === BoxNr) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function resetLieferForm(){
|
||||
var textboxes = document.querySelectorAll("input[type=text]");
|
||||
for (var i = 0; i < textboxes.length; ++i) {
|
||||
if ( (textboxes[i].id).startsWith("gewBox")) {
|
||||
textboxes[i].value = "";
|
||||
}
|
||||
}
|
||||
$("#tbPONr").val("");
|
||||
$("#inpLieferDatum").val("");
|
||||
$('#lbBoxen').prop("disabled", false).html("");
|
||||
$("#tblMessdatenFuerLieferung").html("");
|
||||
resetBtnColor();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function resetBtnColor(){
|
||||
$('#btnLT3040, #btnLT3030, #btnLT2121, #btnLT2121C').removeClass().addClass('small-btn');
|
||||
}
|
||||
|
||||
|
||||
function fillChartArray(messwerte, actType){
|
||||
|
||||
OL3040JSON = []; OW3040JSON = []; IL3040JSON = []; IW3040JSON = []; R123040JSON = []; R343040JSON = []; Rau3040JSON = [];
|
||||
OL3030JSON = []; OW3030JSON = []; IL3030JSON = []; IW3030JSON = []; R123030JSON = []; R343030JSON = []; Rau3030JSON = [];
|
||||
OL2121JSON = []; OW2121JSON = []; IL2121JSON = []; IW2121JSON = []; R122121JSON = []; R342121JSON = []; Rau2121JSON = [];
|
||||
OL2121CJSON = []; OW2121CJSON = []; IL2121CJSON = []; IW2121CJSON = []; R122121CJSON = []; R342121CJSON = []; Rau2121CJSON = [];
|
||||
|
||||
switch ( actType ){
|
||||
case "3040":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL3040JSON.push({ code: toolpart, OL1: Number(item.OL1), OL2: Number(item.OL2), min: 429.40, nom: 429.50, max: 429.60 });
|
||||
OW3040JSON.push({ code: toolpart, OW1: Number(item.OW1), OW2: Number(item.OW2), min: 310.50, nom: 310.60, max: 310.70 });
|
||||
IL3040JSON.push({ code: toolpart, IL1: Number(item.IL1), IL2: Number(item.IL2), min: 421.98, nom: 422.18, max: 422.38 });
|
||||
IW3040JSON.push({ code: toolpart, IW1: Number(item.IW1), IW2: Number(item.IW2), min: 303.08, nom: 303.28, max: 303.48 });
|
||||
|
||||
var diff12 = 0; var diff34 = 0;
|
||||
|
||||
if ( Number(item.R1) > Number(item.R2) ) {
|
||||
diff12 = Number(item.R1) - Number(item.R2);
|
||||
} else {
|
||||
diff12 = Number(item.R2) - Number(item.R1);
|
||||
}
|
||||
|
||||
if ( Number(item.R3) > Number(item.R4) ) {
|
||||
diff34 = Number(item.R3) - Number(item.R4);
|
||||
} else {
|
||||
diff34 = Number(item.R4) - Number(item.R3);
|
||||
}
|
||||
|
||||
R123040JSON.push({ code: toolpart, R1: Number(item.R1), R2: Number(item.R2), diff: diff12 });
|
||||
R343040JSON.push({ code: toolpart, R3: Number(item.R3), R4: Number(item.R4), diff: diff34 });
|
||||
});
|
||||
break;
|
||||
case "3030":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL3030JSON.push({ code: toolpart, OL1: Number(item.OL1), OL2: Number(item.OL2), min: 323.20, nom: 323.40, max: 323.60 });
|
||||
OW3030JSON.push({ code: toolpart, OW1: Number(item.OW1), OW2: Number(item.OW2), min: 323.20, nom: 323.40, max: 323.60 });
|
||||
IL3030JSON.push({ code: toolpart, IL1: Number(item.IL1), IL2: Number(item.IL2), min: 315.48, nom: 315.68, max: 315.88 });
|
||||
IW3030JSON.push({ code: toolpart, IW1: Number(item.IW1), IW2: Number(item.IW2), min: 315.48, nom: 315.68, max: 315.88 });
|
||||
R123030JSON.push({ code: toolpart, R1: Number(item.R1), R2: Number(item.R2) });
|
||||
R343030JSON.push({ code: toolpart, R3: Number(item.R3), R4: Number(item.R4) });
|
||||
});
|
||||
break;
|
||||
case "2121":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL2121JSON.push({ code: toolpart, OL: Number(item.OL), min: 222.00, nom: 222.10, max: 222.20 });
|
||||
OW2121JSON.push({ code: toolpart, OW: Number(item.OW), min: 222.00, nom: 222.10, max: 222.20 });
|
||||
IL2121JSON.push({ code: toolpart, IL: Number(item.IL), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
IW2121JSON.push({ code: toolpart, IW: Number(item.IW), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
R122121JSON.push({ code: toolpart, R1: Number(item.R1), R2: Number(item.R2) });
|
||||
R342121JSON.push({ code: toolpart, R3: Number(item.R3), R4: Number(item.R4) });
|
||||
|
||||
var diff12 = 0; var diff34 = 0;
|
||||
|
||||
if ( Number(item.R1) > Number(item.R2) ) {
|
||||
diff12 = Number(item.R1) - Number(item.R2);
|
||||
} else {
|
||||
diff12 = Number(item.R2) - Number(item.R1);
|
||||
}
|
||||
|
||||
if ( Number(item.R3) > Number(item.R4) ) {
|
||||
diff34 = Number(item.R3) - Number(item.R4);
|
||||
} else {
|
||||
diff34 = Number(item.R4) - Number(item.R3);
|
||||
}
|
||||
|
||||
R122121JSON.push({ code: toolpart, R1: Number(item.R1), R2: Number(item.R2), diff: diff12 });
|
||||
R342121JSON.push({ code: toolpart, R3: Number(item.R3), R4: Number(item.R4), diff: diff34 });
|
||||
|
||||
});
|
||||
break;
|
||||
case "2121C":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL2121CJSON.push({ code: toolpart, OL: Number(item.OL), min: 217.60, nom: 217.70, max: 217.80 });
|
||||
OW2121CJSON.push({ code: toolpart, OW: Number(item.OW), min: 217.60, nom: 217.70, max: 217.80 });
|
||||
IL2121CJSON.push({ code: toolpart, IL: Number(item.IL), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
IW2121CJSON.push({ code: toolpart, IW: Number(item.IW), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
R122121CJSON.push({ code: toolpart, R1: Number(item.R1), R2: Number(item.R2) });
|
||||
R342121CJSON.push({ code: toolpart, R3: Number(item.R3), R4: Number(item.R4) });
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function HTMLTable2Array(type) {
|
||||
if ( type === "3040" || type === "3030" ) {
|
||||
$('#tbodyMesswerte tr').each(function(i, n){
|
||||
var $row = $(n);
|
||||
rows.push({
|
||||
TXLCode: $row.find('td:eq(0)').text().trim(),
|
||||
OL1: $row.find('td:eq(1)').text().trim(),
|
||||
OL2: $row.find('td:eq(2)').text().trim(),
|
||||
OW1: $row.find('td:eq(3)').text().trim(),
|
||||
OW2: $row.find('td:eq(4)').text().trim(),
|
||||
IL1: $row.find('td:eq(5)').text().trim(),
|
||||
IL2: $row.find('td:eq(6)').text().trim(),
|
||||
IW1: $row.find('td:eq(7)').text().trim(),
|
||||
IW2: $row.find('td:eq(8)').text().trim(),
|
||||
R1: $row.find('td:eq(9)').text().trim(),
|
||||
R2: $row.find('td:eq(10)').text().trim(),
|
||||
R3: $row.find('td:eq(11)').text().trim(),
|
||||
R4: $row.find('td:eq(12)').text().trim()
|
||||
});
|
||||
});
|
||||
} else if ( type === "2121" || type === "2121C" ) {
|
||||
$('#tbodyMesswerte tr').each(function(i, n){
|
||||
var $row = $(n);
|
||||
rows.push({
|
||||
TXLCode: $row.find('td:eq(0)').text().trim(),
|
||||
OL: $row.find('td:eq(1)').text().trim(),
|
||||
OW: $row.find('td:eq(2)').text().trim(),
|
||||
IL: $row.find('td:eq(3)').text().trim(),
|
||||
IW: $row.find('td:eq(4)').text().trim(),
|
||||
R1: $row.find('td:eq(5)').text().trim(),
|
||||
R2: $row.find('td:eq(6)').text().trim(),
|
||||
R3: $row.find('td:eq(7)').text().trim(),
|
||||
R4: $row.find('td:eq(8)').text().trim()
|
||||
});
|
||||
});
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
|
||||
function dispChart(binder, values, bezeichnerArr, lblText, minVal, maxVal){
|
||||
setTimeout(function () {
|
||||
chart = c3.generate({
|
||||
bindto: binder,
|
||||
data: { json: values, keys: { x: 'code', value: bezeichnerArr } },
|
||||
axis: {
|
||||
x: { type: 'category', label: { text: lblText, position: "inner-center" } },
|
||||
y: { tick: { format: d3.format(".2f") }, min: minVal, max: maxVal },
|
||||
y2: {inner: true },
|
||||
color: { pattern: ['violet', 'yellow', 'red', 'green', 'blue'] }
|
||||
}
|
||||
});
|
||||
}, 250);
|
||||
}
|
||||
116
js/auswertungEinzelneBox.js
Normal file
116
js/auswertungEinzelneBox.js
Normal file
@@ -0,0 +1,116 @@
|
||||
$(document).ready(function () {
|
||||
$('#lb_boxen').attr("style", "width: 150px");
|
||||
$('#lb_boxen').html("<option>noch nichts gewählt</option>");
|
||||
|
||||
|
||||
$("body").off("click", "#btn_getBoxen3040")
|
||||
$("body").off("click", "#btn_getBoxen3030")
|
||||
$("body").off("click", "#btn_getBoxen2121")
|
||||
$("body").off("change", "select#lb_boxen")
|
||||
|
||||
|
||||
|
||||
$("body").on("click", "#btn_getBoxen3040", function() {
|
||||
result = DB.getAllBoxNr("3040");
|
||||
boxArr = result.split(";");
|
||||
$('#lb_boxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('#lb_boxen').append($('<option>', {
|
||||
value: boxNr,
|
||||
text: boxNr
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_getBoxen3030", function() {
|
||||
result = DB.getAllBoxNr("3030");
|
||||
boxArr = result.split(";");
|
||||
$('#lb_boxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('#lb_boxen').append($('<option>', {
|
||||
value: boxNr,
|
||||
text: boxNr
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_getBoxen2121", function() {
|
||||
result = DB.getAllBoxNr("2121");
|
||||
boxArr = result.split(";");
|
||||
$('#lb_boxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('#lb_boxen').append($('<option>', {
|
||||
value: boxNr,
|
||||
text: boxNr
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_getBoxen2121C", function() {
|
||||
result = DB.getAllBoxNr("2121C");
|
||||
boxArr = result.split(";");
|
||||
$('#lb_boxen').html("");
|
||||
$.each(boxArr, function(index, boxNr) {
|
||||
$('#lb_boxen').append($('<option>', {
|
||||
value: boxNr,
|
||||
text: boxNr
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$("body").on("change", "select#lb_boxen", function() {
|
||||
|
||||
|
||||
|
||||
var tbody = $('#tbodyMesswerte');
|
||||
var boxNr = $(this).val();
|
||||
var tr;
|
||||
var objMesswerte = $.parseJSON(DB.getBoxMesswerte("3040", boxNr));
|
||||
console.log(objMesswerte);
|
||||
|
||||
$.each(objMesswerte, function(txlcode) {
|
||||
actMessObj = $(this);
|
||||
m = actMessObj[0];
|
||||
|
||||
OL1 = Number(m.OL1); OL2 = Number(m.OL2);
|
||||
OW1 = Number(m.OW1); OW2 = Number(m.OW2);
|
||||
R11 = Number(m.R11) - messadapter; R12 = Number(m.R12) - messadapter; R13 = Number(m.R13) - messadapter;
|
||||
R21 = Number(m.R21) - messadapter; R22 = Number(m.R22) - messadapter; R23 = Number(m.R23) - messadapter;
|
||||
R31 = Number(m.R31) - messadapter; R32 = Number(m.R32) - messadapter; R33 = Number(m.R33) - messadapter;
|
||||
R41 = Number(m.R41) - messadapter; R42 = Number(m.R42) - messadapter; R43 = Number(m.R43) - messadapter;
|
||||
|
||||
IL1 = ((OL1 - R31) - R43);
|
||||
IL2 = ((OL2 - R33) - R41);
|
||||
IW1 = ((OW1 - R11) - R23);
|
||||
IW2 = ((OW2 - R13) - R21);
|
||||
R1 = (R11 + R12 + R13) / 3;
|
||||
R2 = (R21 + R22 + R23) / 3;
|
||||
R3 = (R31 + R32 + R33) / 3;
|
||||
R4 = (R41 + R42 + R43) / 3;
|
||||
|
||||
|
||||
tr += "<tr><td>" + txlcode + "</td> \
|
||||
<td>" + OL1.toFixed(2) + "</td> \
|
||||
<td>" + OL2.toFixed(2) + "</td> \
|
||||
<td>" + OW1.toFixed(2) + "</td> \
|
||||
<td>" + OW2.toFixed(2) + "</td> \
|
||||
<td>" + IL1.toFixed(2) + "</td> \
|
||||
<td>" + IL2.toFixed(2) + "</td> \
|
||||
<td>" + IW1.toFixed(2) + "</td> \
|
||||
<td>" + IW2.toFixed(2) + "</td> \
|
||||
<td>" + R1.toFixed(2) + "</td> \
|
||||
<td>" + R2.toFixed(2) + "</td> \
|
||||
<td>" + R3.toFixed(2) + "</td> \
|
||||
<td>" + R4.toFixed(2) + "</td> \
|
||||
</tr>";
|
||||
}); // end each
|
||||
$("#tbodyMesswerte").html(tr);
|
||||
$("#theadMesswerte").show();
|
||||
//});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
56
js/auswertungen.js
Normal file
56
js/auswertungen.js
Normal file
@@ -0,0 +1,56 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
$("body").off("click", "#getBauteile");
|
||||
$("select").off('change');
|
||||
|
||||
|
||||
$("body").on("change", "select.aw", function() {
|
||||
var typToShow = $(this).val();
|
||||
if ( typToShow === "none" ) {
|
||||
resetTable();
|
||||
return;
|
||||
}
|
||||
|
||||
console.log( "Zeige Bauteile des Typs " + typToShow + " an ...");
|
||||
var arr = $.parseJSON(DB.getBauteile(typToShow));
|
||||
resetTable();
|
||||
getBauteile(arr);
|
||||
});
|
||||
|
||||
$("body").on("click", "#getBauteile", function() {
|
||||
resetTable();
|
||||
getBauteile();
|
||||
$("#results").tablesorter();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function resetTable() { $("#results").html("<thead><tr id=\"resultsHead\"><th>TXLCode</th><th>status</th><th>Abf-Dat</th><th>Mess-Dat</th><th>Rau-Dat</th><th>Lief-Dat</th><th>Lieferbox</th><th>Ofen</th><th>SchottOrderNr</th></tr></thead><tbody></tbody>"); }
|
||||
|
||||
function getBauteile(arr) {
|
||||
|
||||
|
||||
$.each(arr, function(idx, ele){
|
||||
var abfDate = ele.Abformdatum.split(" ");
|
||||
var messDate = ele.Messdatum.split(" ");
|
||||
var rauDate = ele.Rauheitsdatum.split(" ");
|
||||
var liefDate = ele.Lieferdatum
|
||||
var row = "";
|
||||
if ( abfDate[0] === "0000-00-00" ) { abfDate[0] = "-/-"; }
|
||||
if ( messDate[0] === "0000-00-00" ) { messDate[0] = "-/-"; }
|
||||
if ( rauDate[0] === "0000-00-00" ) { rauDate[0] = "-/-"; }
|
||||
if ( liefDate === "0000-00-00" ) { liefDate = "-/-"; }
|
||||
|
||||
$tr = $('<tr id="SQLrow_' + ele.id + '">').append(
|
||||
$('<td>').text(ele.TXLCode),
|
||||
$('<td>').text(ele.status),
|
||||
$('<td>').text(abfDate[0]),
|
||||
$('<td>').text(messDate[0]),
|
||||
$('<td>').text(rauDate[0]),
|
||||
$('<td>').text(liefDate),
|
||||
$('<td>').text(ele.Lieferbox),
|
||||
$('<td>').text(ele.Ofen),
|
||||
$('<td>').text(ele.SchottOrderNr)
|
||||
).appendTo('#results');
|
||||
});
|
||||
}
|
||||
2363
js/bootstrap.js
vendored
Normal file
2363
js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
js/bootstrap.min.js
vendored
Normal file
7
js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
365
js/boxenerstellung.js
Normal file
365
js/boxenerstellung.js
Normal file
@@ -0,0 +1,365 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
if ( VERBOSE ) { console.log("boxenerstellung.js loading ..."); }
|
||||
activateTBCodeAndDeactivateBtnAddBox();
|
||||
|
||||
// erstmal den Inhalt aller Boxen und Typen holen ...
|
||||
BE.boxInhalte3040 = DB.getBoxinhalte("3040");
|
||||
BE.boxInhalte3030 = DB.getBoxinhalte("3030");
|
||||
BE.boxInhalte2121 = DB.getBoxinhalte("2121");
|
||||
BE.boxInhalte2121C = DB.getBoxinhalte("2121C");
|
||||
|
||||
|
||||
$("body").off("keypress", "#tbTXLCode");
|
||||
$("body").off("click", "#btnDelLast");
|
||||
$("body").off("click", "#btnCreateBox");
|
||||
$("body").off("click", "#btnReset");
|
||||
|
||||
$('body').on("keypress", "body", function(e){ e.preventDefault(); });
|
||||
$("body").on("keypress", "#tbTXLCode", function(e) {
|
||||
//e.preventDefault();
|
||||
|
||||
var keyCode = e.keyCode || e.which;
|
||||
if (keyCode === 13 ) {
|
||||
if ( e.target.value === "" ) { return; }
|
||||
|
||||
if ( BE.partCnt === 9 ) {
|
||||
swal("Achtung", "Box ist schon voll", "info");
|
||||
} else {
|
||||
var loc_code = e.target.value;
|
||||
if ( helper.looksLikeTXLCode(loc_code) === 0 ) {
|
||||
|
||||
var bauteilStatus = DB.getBauteilStatus(loc_code);
|
||||
var flavor = loc_code.substring(0,3);
|
||||
|
||||
// Bauteilabfrage
|
||||
if ( bauteilStatus === 2) { swal("Fehler", "Bauteil nicht in der DB vorhanden!", "error"); playSound("error"); $("#tbTXLCode").val("").focus(); return; }
|
||||
if ( bauteilStatus === 0) { swal("Fehler", "Bauteil noch nicht gemessen!", "error"); playSound("error"); $("#tbTXLCode").val("").focus(); return; }
|
||||
if ( bauteilStatus === -1) { swal("Fehler", "Fehler beim ermitteln des Bauteilstatus'.", "error"); playSound("error"); $("#tbTXLCode").val("").focus(); return; }
|
||||
|
||||
// hat das Bauteil schon einen Eintrag in der Spalte "Lieferbox"?
|
||||
if ( DB.getBauteilLieferbox(loc_code) > 0 ) { swal("Achtung", "Bauteil ist in der Bauteil-Tabelle schon einer Lieferbox zugewiesen (" + DB.getBauteilLieferbox(loc_code) + ")", "warning"); playSound("error"); $("#tbTXLCode").val("").focus(); return; }
|
||||
|
||||
// schon in der geradezu erstellenden box?
|
||||
if ( schonInDerBox(loc_code) ) { swal("Fehler", "Bauteil ist doch schon in der Box ...", "warning"); playSound("error"); $("#tbTXLCode").val("").focus(); return; }
|
||||
|
||||
// BE.boxInhalte3040 = DB.getBoxinhalte("3040");
|
||||
// BE.boxInhalte3030 = DB.getBoxinhalte("3030");
|
||||
// BE.boxInhalte2121 = DB.getBoxinhalte("2121");
|
||||
// BE.boxInhalte2121C = DB.getBoxinhalte("2121C");
|
||||
|
||||
// schon in einer anderen Box?
|
||||
if ( flavor === "GW1" ) {
|
||||
if ( BE.boxInhalte3040.includes(loc_code)) {
|
||||
swal("Achtung", "Bauteil ist schon in einer anderen Box ...", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
return;
|
||||
} else {
|
||||
playSound("ding");
|
||||
if ( DEBUG ) { console.log(loc_code + " in keiner Box"); }
|
||||
}
|
||||
} else if ( flavor === "GX1" ) {
|
||||
if ( BE.boxInhalte3030.includes(loc_code)) {
|
||||
swal("Achtung", "Bauteil ist schon in einer anderen Box ...", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
return;
|
||||
} else {
|
||||
playSound("ding");
|
||||
if ( DEBUG ) { console.log(loc_code + " in keiner Box"); }
|
||||
}
|
||||
} else if ( flavor === "GA1" ) {
|
||||
if ( BE.boxInhalte2121.includes(loc_code)) {
|
||||
swal("Achtung", "Bauteil ist schon in einer anderen Box ...", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
return;
|
||||
} else {
|
||||
playSound("ding");
|
||||
if ( DEBUG ) { console.log(loc_code + " in keiner Box"); }
|
||||
}
|
||||
} else if ( flavor === "GC1" ) {
|
||||
if ( BE.boxInhalte2121C.includes(loc_code)) {
|
||||
swal("Achtung", "Bauteil ist schon in einer anderen Box ...", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
return;
|
||||
} else {
|
||||
playSound("ding");
|
||||
if ( DEBUG ) { console.log(loc_code + " in keiner Box"); }
|
||||
}
|
||||
}
|
||||
|
||||
// hat das Bauteil schon einen Eintrag in der Spalte "Lieferbox"?
|
||||
// if ( DB.getBauteilLieferbox(loc_code) >= 0 ) {
|
||||
// swal("Achtung", "Bauteil ist schon in einer anderen Box ...", "warning");
|
||||
// playSound("error");
|
||||
// $("#tbTXLCode").val("").focus();
|
||||
// return;
|
||||
// }
|
||||
|
||||
// ist schon ein Bauteil in die liste eingetragen worden?
|
||||
if ( BE.flavToFill === "empty" ) {
|
||||
// nö ... also die Styles anpassen, weil 2121C als String länger ist
|
||||
// und BE.flavToFill festlegen
|
||||
if ( flavor === "GW1" ) {
|
||||
// 3040
|
||||
$("#BETMPType").text("3040");
|
||||
btnNormStyle();
|
||||
BE.flavToFill = "3040";
|
||||
setBoxNr(Number(DB.getLastBoxNr("3040")));
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else if ( flavor === "GX1" ) {
|
||||
// 3030
|
||||
$("#BETMPType").text("3030");
|
||||
btnNormStyle();
|
||||
BE.flavToFill = "3030";
|
||||
setBoxNr(Number(DB.getLastBoxNr("3030")));
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else if ( flavor === "GA1" ) {
|
||||
// 2121
|
||||
$("#BETMPType").text("2121");
|
||||
btnNormStyle();
|
||||
BE.flavToFill = "2121";
|
||||
setBoxNr(Number(DB.getLastBoxNr("2121")));
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else if ( flavor === "GC1" ) {
|
||||
// 2121C
|
||||
$("#BETMPType").text("2121C");
|
||||
$("#BETMPType").css ("font-size", "6.8em");
|
||||
$("#divBtns").css("top", "-390");
|
||||
BE.flavToFill = "2121C";
|
||||
setBoxNr(Number(DB.getLastBoxNr("2121C")));
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
}
|
||||
// es ist schon ein Bauteil eingetragen
|
||||
} else if ( BE.flavToFill === "3040" ) {
|
||||
if ( flavor === "GW1") {
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else {
|
||||
swal("Warnung", "Falscher Bauteiltyp\n<b>" + BE.flavToFill + "</b> vs. <b>" + flavor + "</b>", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
} else if ( BE.flavToFill === "3030" ) {
|
||||
if ( flavor === "GX1") {
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else {
|
||||
swal("Warnung", "Falscher Bauteiltyp\n<b>" + BE.flavToFill + "</b> vs. <b>" + flavor + "</b>", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
} else if ( BE.flavToFill === "2121" ) {
|
||||
if ( flavor === "GA1") {
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else {
|
||||
swal("Warnung", "Falscher Bauteiltyp\n<b>" + BE.flavToFill + "</b> vs. <b>" + flavor + "</b>", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
} else if ( BE.flavToFill === "2121C" ) {
|
||||
if ( flavor === "GC1") {
|
||||
writeToOptionAndDelTBox();
|
||||
BE.partCnt += 1;
|
||||
} else {
|
||||
swal("Warnung", "Falscher Bauteiltyp\n<b>" + BE.flavToFill + "</b> vs. <b>" + flavor + "</b>", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
}
|
||||
|
||||
if ( BE.partCnt === 9 ) {
|
||||
deactivateTBCodeAndActivateBtnAddBox();
|
||||
swal("Fertig", "Box ist gefüllt", "info");
|
||||
playSound("ding");
|
||||
}
|
||||
|
||||
} else {
|
||||
swal("Error", "Falscher Trixell-Code", "warning");
|
||||
playSound("error");
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("body").on("click", "#btnDelLast", function () {
|
||||
delLastPart();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnCreateBox", function () {
|
||||
|
||||
var tmpType = $('#BETMPType').text();
|
||||
var newBoxNr = $('#tbBoxNr').val();
|
||||
var revBox = 0;
|
||||
var contArr = [ newBoxNr,
|
||||
$('#selBauteile option[value=part1]').text(), $('#selBauteile option[value=part2]').text(), $('#selBauteile option[value=part3]').text(),
|
||||
$('#selBauteile option[value=part4]').text(), $('#selBauteile option[value=part5]').text(), $('#selBauteile option[value=part6]').text(),
|
||||
$('#selBauteile option[value=part7]').text(), $('#selBauteile option[value=part8]').text(), $('#selBauteile option[value=part9]').text()
|
||||
];
|
||||
var commArr = [ "foobar",
|
||||
$('#tbCom1').text(), $('#tbCom2').text(), $('#tbCom3').text(), $('#tbCom4').text(), $('#tbCom5').text(),
|
||||
$('#tbCom6').text(), $('#tbCom7').text(), $('#tbCom8').text(), $('#tbCom9').text()
|
||||
];
|
||||
|
||||
var myNewBoxJSON = {};
|
||||
myNewBoxJSON.func = "newVersandBox";
|
||||
myNewBoxJSON.tmpType = tmpType;
|
||||
myNewBoxJSON.newBoxNr = newBoxNr;
|
||||
myNewBoxJSON.revBox = revBox;
|
||||
myNewBoxJSON.dateTime = heute() + " " + jetzt();
|
||||
myNewBoxJSON.part1 = contArr[1];
|
||||
myNewBoxJSON.part2 = contArr[2];
|
||||
myNewBoxJSON.part3 = contArr[3];
|
||||
myNewBoxJSON.part4 = contArr[4];
|
||||
myNewBoxJSON.part5 = contArr[5];
|
||||
myNewBoxJSON.part6 = contArr[6];
|
||||
myNewBoxJSON.part7 = contArr[7];
|
||||
myNewBoxJSON.part8 = contArr[8];
|
||||
myNewBoxJSON.part9 = contArr[9];
|
||||
myNewBoxJSON.partCom1 = commArr[1];
|
||||
myNewBoxJSON.partCom2 = commArr[2];
|
||||
myNewBoxJSON.partCom3 = commArr[3];
|
||||
myNewBoxJSON.partCom4 = commArr[4];
|
||||
myNewBoxJSON.partCom5 = commArr[5];
|
||||
myNewBoxJSON.partCom6 = commArr[6];
|
||||
myNewBoxJSON.partCom7 = commArr[7];
|
||||
myNewBoxJSON.partCom8 = commArr[8];
|
||||
myNewBoxJSON.partCom9 = commArr[9];
|
||||
|
||||
|
||||
if ( myNewBoxJSON.part1 !== "" && myNewBoxJSON.part2 !== "" && myNewBoxJSON.part3 !== "" && myNewBoxJSON.part4 !== "" && myNewBoxJSON.part5 !== "" && myNewBoxJSON.part6 !== "" && myNewBoxJSON.part7 !== "" && myNewBoxJSON.part8 !== "" && myNewBoxJSON.part9 !== "") {
|
||||
var responseInsertBox = DB.insertBox(myNewBoxJSON);
|
||||
|
||||
if ( responseInsertBox ) {
|
||||
var responseUpdateBauteilLieferbox = $.parseJSON(DB.updateBauteilLieferbox(contArr));
|
||||
var allUpdatesHadAffectedRows = true;
|
||||
var updateFehler = "";
|
||||
|
||||
/*
|
||||
* DB.updateBauteilLieferbox gibt ein JSON zurueck. Dieses wird durchlaufen
|
||||
* um zu schauen, ob alle SQL-Updates der Lieferbox auf das jeweilige Bauteil
|
||||
* eine Reihe in der SQL-Tabelle verändert haben. Wenn das Bauteil nicht in der
|
||||
* Tabelle Bauteile vorhanden wäre oder die Spalte schon die gleiche Lieferboxnummer
|
||||
* beinhaltet, würde $updateStmt->affected_rows den Wert 0 tragen, da nichts erändert wurde.
|
||||
* Ich kann _so_ also nicht sehen, ob ein Bauteil, welches schon in einer lieferbox ist,
|
||||
* hier nochmal eienr neuen Box zugewiesen wird. Diese Überprüfung sollte aber schon im
|
||||
* Vorfeld mit "BE.boxInhalte3040.includes(loc_code)" abgedeckt sein
|
||||
*
|
||||
*/
|
||||
|
||||
$.each(responseUpdateBauteilLieferbox, function( key, value ){
|
||||
if ( value === 0 ) {
|
||||
allUpdatesHadAffectedRows = false;
|
||||
if ( updateFehler === "" ) {
|
||||
updateFehler = key;
|
||||
} else {
|
||||
updateFehler = updateFehler + " & " + key
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#btnReset").trigger("click");
|
||||
if ( allUpdatesHadAffectedRows ) {
|
||||
playSound("tada");
|
||||
swal("Fertig", "Die Box wurde in die Datenbank eingetragen.", "success");
|
||||
$('#tbBoxNr').val("");
|
||||
} else {
|
||||
swal({
|
||||
title: 'Achtung',
|
||||
type: 'warning',
|
||||
html:
|
||||
'Die Box wurde in die Datenbank eingetragen, aber ' +
|
||||
'es gab Probleme bei dem zuweisen der Lieferbox bei ' +
|
||||
'mindestens einem Bauteil:' +
|
||||
'<pre>' + updateFehler + '</pre>',
|
||||
showCloseButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ok.',
|
||||
})
|
||||
}
|
||||
|
||||
} else {
|
||||
swal("Fehler", "beim Eintragen der Box in die Datenbank.\n<pre>Rückgabewert von DBSachen.php->insertNewVersandbox() = <b>false</b></pre>");
|
||||
playSound("error");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
swal("Fehler", "Box ist doch garnicht voll...", "error");
|
||||
playSound("error");
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnReset", function () {
|
||||
|
||||
BE.reset();
|
||||
btnNormStyle();
|
||||
resetOptionBox();
|
||||
$("#BETMPType").text("");
|
||||
btnNormStyle();
|
||||
});
|
||||
|
||||
|
||||
function delLastPart() {
|
||||
if ( BE.partCnt === 0 ) { return; }
|
||||
actCnt = BE.partCnt;
|
||||
$('#selBauteile option[value=part' + BE.partCnt + ']').text("");
|
||||
BE.partCnt -= 1;
|
||||
if ( BE.partCnt === 8 ) { activateTBCodeAndDeactivateBtnAddBox(); }
|
||||
}
|
||||
|
||||
function setBoxNr(lastBox) {
|
||||
var nextBox = lastBox + 1;
|
||||
var maxBox = nextBox + 3;
|
||||
$('#tbBoxNr').val( nextBox );
|
||||
$('#tbBoxNr').attr("disabled", "true");
|
||||
}
|
||||
|
||||
function writeToOptionAndDelTBox() {
|
||||
$('#selBauteile option[value=part' + (BE.partCnt + 1) + ']').text($("#tbTXLCode").val());
|
||||
$("#tbTXLCode").val("").focus();
|
||||
}
|
||||
|
||||
function btnNormStyle() {
|
||||
$("#BETMPType").css("font-size", "7.8em");
|
||||
$("#divBtns").css("top", "-400");
|
||||
}
|
||||
|
||||
function activateTBCodeAndDeactivateBtnAddBox() {
|
||||
$("#tbTXLCode").val("");
|
||||
$("#tbTXLCode").removeAttr("disabled");
|
||||
$("#btnCreateBox").attr("disabled", "true");;
|
||||
}
|
||||
|
||||
function deactivateTBCodeAndActivateBtnAddBox() {
|
||||
$("#tbTXLCode").val("");
|
||||
$("#tbTXLCode").attr("disabled", "true");
|
||||
$("#btnCreateBox").removeAttr("disabled");
|
||||
}
|
||||
|
||||
function resetOptionBox() {
|
||||
for ( i=0; i<=8; i++) {
|
||||
$('#selBauteile option[value=part' + (i + 1) + ']').text("");
|
||||
}
|
||||
}
|
||||
|
||||
function schonInDerBox(txlcode) {
|
||||
$('#selBauteile').each(function (e){
|
||||
act = $(this).text();
|
||||
});
|
||||
|
||||
return act.includes(txlcode);
|
||||
}
|
||||
if ( VERBOSE ) { console.log("boxenerstellung.js loaded ..."); }
|
||||
|
||||
});
|
||||
6
js/c3.min.js
vendored
Normal file
6
js/c3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
13750
js/canvasjs-1.7.0.js
Normal file
13750
js/canvasjs-1.7.0.js
Normal file
File diff suppressed because it is too large
Load Diff
644
js/canvasjs.min.js
vendored
Normal file
644
js/canvasjs.min.js
vendored
Normal file
@@ -0,0 +1,644 @@
|
||||
/*
|
||||
CanvasJS HTML5 & JavaScript Charts - v1.9.8 GA - http://canvasjs.com/
|
||||
Copyright 2017 fenopix
|
||||
|
||||
--------------------- License Information --------------------
|
||||
CanvasJS is a commercial product which requires purchase of license. Without a commercial license you can use it for evaluation purposes for upto 30 days. Please refer to the following link for further details.
|
||||
http://canvasjs.com/license-canvasjs/
|
||||
|
||||
*/
|
||||
(function(){function U(a,d){a.prototype=Pa(d.prototype);a.prototype.constructor=a;a.base=d.prototype}function Pa(a){function d(){}d.prototype=a;return new d}function Ha(a,d,b){"millisecond"===b?a.setMilliseconds(a.getMilliseconds()+1*d):"second"===b?a.setSeconds(a.getSeconds()+1*d):"minute"===b?a.setMinutes(a.getMinutes()+1*d):"hour"===b?a.setHours(a.getHours()+1*d):"day"===b?a.setDate(a.getDate()+1*d):"week"===b?a.setDate(a.getDate()+7*d):"month"===b?a.setMonth(a.getMonth()+1*d):"year"===b&&a.setFullYear(a.getFullYear()+
|
||||
1*d);return a}function O(a,d){var b=!1;0>a&&(b=!0,a*=-1);a=""+a;for(d=d?d:1;a.length<d;)a="0"+a;return b?"-"+a:a}function ka(a){if(!a)return a;a=a.replace(/^\s\s*/,"");for(var d=/\s/,b=a.length;d.test(a.charAt(--b)););return a.slice(0,b+1)}function Qa(a){a.roundRect=function(a,b,c,f,g,h,l,k){l&&(this.fillStyle=l);k&&(this.strokeStyle=k);"undefined"===typeof g&&(g=5);this.lineWidth=h;this.beginPath();this.moveTo(a+g,b);this.lineTo(a+c-g,b);this.quadraticCurveTo(a+c,b,a+c,b+g);this.lineTo(a+c,b+f-g);
|
||||
this.quadraticCurveTo(a+c,b+f,a+c-g,b+f);this.lineTo(a+g,b+f);this.quadraticCurveTo(a,b+f,a,b+f-g);this.lineTo(a,b+g);this.quadraticCurveTo(a,b,a+g,b);this.closePath();l&&this.fill();k&&0<h&&this.stroke()}}function ya(a,d){return a-d}function Ia(a,d){return a.x-d.x}function G(a){var d=((a&16711680)>>16).toString(16),b=((a&65280)>>8).toString(16);a=((a&255)>>0).toString(16);d=2>d.length?"0"+d:d;b=2>b.length?"0"+b:b;a=2>a.length?"0"+a:a;return"#"+d+b+a}function Ra(a,d){var b=this.length>>>0,c=Number(d)||
|
||||
0,c=0>c?Math.ceil(c):Math.floor(c);for(0>c&&(c+=b);c<b;c++)if(c in this&&this[c]===a)return c;return-1}function x(a){return null===a||"undefined"===typeof a}function qa(a){a.indexOf||(a.indexOf=Ra);return a}function Ja(a,d,b){b=b||"normal";var c=a+"_"+d+"_"+b,f=Ka[c];if(isNaN(f)){try{a="position:absolute; left:0px; top:-20000px; padding:0px;margin:0px;border:none;white-space:pre;line-height:normal;font-family:"+a+"; font-size:"+d+"px; font-weight:"+b+";";if(!ba){var g=document.body;ba=document.createElement("span");
|
||||
ba.innerHTML="";var h=document.createTextNode("Mpgyi");ba.appendChild(h);g.appendChild(ba)}ba.style.display="";ba.setAttribute("style",a);f=Math.round(ba.offsetHeight);ba.style.display="none"}catch(l){f=Math.ceil(1.1*d)}f=Math.max(f,d);Ka[c]=f}return f}function I(a,d){var b=[];if(b={solid:[],shortDash:[3,1],shortDot:[1,1],shortDashDot:[3,1,1,1],shortDashDotDot:[3,1,1,1,1,1],dot:[1,2],dash:[4,2],dashDot:[4,2,1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2]}[a||"solid"])for(var c=
|
||||
0;c<b.length;c++)b[c]*=d;else b=[];return b}function K(a,d,b,c){if(a.addEventListener)a.addEventListener(d,b,c||!1);else if(a.attachEvent)a.attachEvent("on"+d,function(c){c=c||window.event;c.preventDefault=c.preventDefault||function(){c.returnValue=!1};c.stopPropagation=c.stopPropagation||function(){c.cancelBubble=!0};b.call(a,c)});else return!1}function La(a,d,b){a*=Q;d*=Q;a=b.getImageData(a,d,2,2).data;d=!0;for(b=0;4>b;b++)if(a[b]!==a[b+4]|a[b]!==a[b+8]|a[b]!==a[b+12]){d=!1;break}return d?a[0]<<
|
||||
16|a[1]<<8|a[2]:0}function L(a,d,b){return a in d?d[a]:b[a]}function ra(a,d,b){if(u&&Ma){var c=a.getContext("2d");sa=c.webkitBackingStorePixelRatio||c.mozBackingStorePixelRatio||c.msBackingStorePixelRatio||c.oBackingStorePixelRatio||c.backingStorePixelRatio||1;Q=za/sa;a.width=d*Q;a.height=b*Q;za!==sa&&(a.style.width=d+"px",a.style.height=b+"px",c.scale(Q,Q))}else a.width=d,a.height=b}function Sa(a){if(!Aa){var d=!1,b=!1;"undefined"===typeof ca.Chart.creditHref?(a.creditHref="http://canvasjs.com/",
|
||||
a.creditText="CanvasJS.com"):(d=a.updateOption("creditText"),b=a.updateOption("creditHref"));if(a.creditHref&&a.creditText){a._creditLink||(a._creditLink=document.createElement("a"),a._creditLink.setAttribute("class","canvasjs-chart-credit"),a._creditLink.setAttribute("style","outline:none;margin:0px;position:absolute;right:2px;top:"+(a.height-14)+"px;color:dimgrey;text-decoration:none;font-size:11px;font-family: Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif"),a._creditLink.setAttribute("tabIndex",
|
||||
-1),a._creditLink.setAttribute("target","_blank"));if(0===a.renderCount||d||b)a._creditLink.setAttribute("href",a.creditHref),a._creditLink.innerHTML=a.creditText;a._creditLink&&a.creditHref&&a.creditText?(a._creditLink.parentElement||a._canvasJSContainer.appendChild(a._creditLink),a._creditLink.style.top=a.height-14+"px"):a._creditLink.parentElement&&a._canvasJSContainer.removeChild(a._creditLink)}}}function ga(a,d){var b=document.createElement("canvas");b.setAttribute("class","canvasjs-chart-canvas");
|
||||
ra(b,a,d);u||"undefined"===typeof G_vmlCanvasManager||G_vmlCanvasManager.initElement(b);return b}function Ba(a,d,b){if(a&&d&&b){b=b+"."+d;var c="image/"+d;a=a.toDataURL(c);var f=!1,g=document.createElement("a");g.download=b;g.href=a;g.target="_blank";if("undefined"!==typeof Blob&&new Blob){for(var h=a.replace(/^data:[a-z/]*;base64,/,""),h=atob(h),l=new ArrayBuffer(h.length),l=new Uint8Array(l),k=0;k<h.length;k++)l[k]=h.charCodeAt(k);d=new Blob([l.buffer],{type:"image/"+d});try{window.navigator.msSaveBlob(d,
|
||||
b),f=!0}catch(m){g.dataset.downloadurl=[c,g.download,g.href].join(":"),g.href=window.URL.createObjectURL(d)}}if(!f)try{event=document.createEvent("MouseEvents"),event.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),g.dispatchEvent?g.dispatchEvent(event):g.fireEvent&&g.fireEvent("onclick")}catch(n){d=window.open(),d.document.write("<img src='"+a+"'></img><div>Please right click on the image and save it to your device</div>"),d.document.close()}}}function T(a,d,b){d.getAttribute("state")!==
|
||||
b&&(d.setAttribute("state",b),d.setAttribute("type","button"),d.style.position="relative",d.style.margin="0px 0px 0px 0px",d.style.padding="3px 4px 0px 4px",d.style.cssFloat="left",d.setAttribute("title",a._cultureInfo[b+"Text"]),d.innerHTML="<img style='height:16px;' src='"+Ta[b].image+"' alt='"+a._cultureInfo[b+"Text"]+"' />")}function ta(){for(var a=null,d=0;d<arguments.length;d++)a=arguments[d],a.style&&(a.style.display="inline")}function Y(){for(var a=null,d=0;d<arguments.length;d++)(a=arguments[d])&&
|
||||
a.style&&(a.style.display="none")}function M(a,d,b,c){this._defaultsKey=a;this.parent=c;this._eventListeners=[];c={};b&&(ia[b]&&ia[b][a])&&(c=ia[b][a]);this.options=d?d:{_isPlaceholder:!0};this.setOptions(this.options,c)}function A(a,d){d=d||{};A.base.constructor.call(this,"Chart",d,d.theme?d.theme:"theme1");var b=this;this._containerId=a;this._objectsInitialized=!1;this.overlaidCanvasCtx=this.ctx=null;this._indexLabels=[];this._panTimerId=0;this._lastTouchEventType="";this._lastTouchData=null;this.isAnimating=
|
||||
!1;this.renderCount=0;this.panEnabled=this.disableToolTip=this.animatedRender=!1;this._defaultCursor="default";this.plotArea={canvas:null,ctx:null,x1:0,y1:0,x2:0,y2:0,width:0,height:0};this._dataInRenderedOrder=[];if(this.container="string"===typeof this._containerId?document.getElementById(this._containerId):this._containerId){this.container.innerHTML="";var c=0,f=0,c=this.options.width?this.width:0<this.container.clientWidth?this.container.clientWidth:this.width,f=this.options.height?this.height:
|
||||
0<this.container.clientHeight?this.container.clientHeight:this.height;this.width=c;this.height=f;this.x1=this.y1=0;this.x2=this.width;this.y2=this.height;this._selectedColorSet="undefined"!==typeof ha[this.colorSet]?ha[this.colorSet]:ha.colorSet1;this._canvasJSContainer=document.createElement("div");this._canvasJSContainer.setAttribute("class","canvasjs-chart-container");this._canvasJSContainer.style.position="relative";this._canvasJSContainer.style.textAlign="left";this._canvasJSContainer.style.cursor=
|
||||
"auto";u||(this._canvasJSContainer.style.height="0px");this.container.appendChild(this._canvasJSContainer);this.canvas=ga(c,f);this.canvas.style.position="absolute";this.canvas.getContext&&(this._canvasJSContainer.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.ctx.textBaseline="top",Qa(this.ctx),u?this.plotArea.ctx=this.ctx:(this.plotArea.canvas=ga(c,f),this.plotArea.canvas.style.position="absolute",this.plotArea.canvas.setAttribute("class","plotAreaCanvas"),this._canvasJSContainer.appendChild(this.plotArea.canvas),
|
||||
this.plotArea.ctx=this.plotArea.canvas.getContext("2d")),this.overlaidCanvas=ga(c,f),this.overlaidCanvas.style.position="absolute",this._canvasJSContainer.appendChild(this.overlaidCanvas),this.overlaidCanvasCtx=this.overlaidCanvas.getContext("2d"),this.overlaidCanvasCtx.textBaseline="top",this._eventManager=new la(this),K(window,"resize",function(){b._updateSize()&&b.render()}),this._toolBar=document.createElement("div"),this._toolBar.setAttribute("class","canvasjs-chart-toolbar"),this._toolBar.style.cssText=
|
||||
"position: absolute; right: 1px; top: 1px;",this._canvasJSContainer.appendChild(this._toolBar),this.bounds={x1:0,y1:0,x2:this.width,y2:this.height},K(this.overlaidCanvas,"click",function(a){b._mouseEventHandler(a)}),K(this.overlaidCanvas,"mousemove",function(a){b._mouseEventHandler(a)}),K(this.overlaidCanvas,"mouseup",function(a){b._mouseEventHandler(a)}),K(this.overlaidCanvas,"mousedown",function(a){b._mouseEventHandler(a);Y(b._dropdownMenu)}),K(this.overlaidCanvas,"mouseout",function(a){b._mouseEventHandler(a)}),
|
||||
K(this.overlaidCanvas,window.navigator.msPointerEnabled?"MSPointerDown":"touchstart",function(a){b._touchEventHandler(a)}),K(this.overlaidCanvas,window.navigator.msPointerEnabled?"MSPointerMove":"touchmove",function(a){b._touchEventHandler(a)}),K(this.overlaidCanvas,window.navigator.msPointerEnabled?"MSPointerUp":"touchend",function(a){b._touchEventHandler(a)}),K(this.overlaidCanvas,window.navigator.msPointerEnabled?"MSPointerCancel":"touchcancel",function(a){b._touchEventHandler(a)}),this.toolTip=
|
||||
new S(this,this.options.toolTip),this.data=null,this.axisX=[],this.axisX2=[],this.axisY=[],this.axisY2=[],this.sessionVariables={axisX:[],axisX2:[],axisY:[],axisY2:[]})}else window.console&&window.console.log('CanvasJS Error: Chart Container with id "'+this._containerId+'" was not found')}function ua(a,d){for(var b=[],c,f=0;f<a.length;f++)if(0==f)b.push(a[0]);else{var g,h,l;l=f-1;g=0===l?0:l-1;h=l===a.length-1?l:l+1;c=Math.abs((a[h].x-a[g].x)/(0===a[h].x-a[l].x?0.01:a[h].x-a[l].x))*(d-1)/2+1;var k=
|
||||
(a[h].x-a[g].x)/c;c=(a[h].y-a[g].y)/c;b[b.length]=a[l].x>a[g].x&&0<k||a[l].x<a[g].x&&0>k?{x:a[l].x+k/3,y:a[l].y+c/3}:{x:a[l].x,y:a[l].y+c/9};l=f;g=0===l?0:l-1;h=l===a.length-1?l:l+1;c=Math.abs((a[h].x-a[g].x)/(0===a[l].x-a[g].x?0.01:a[l].x-a[g].x))*(d-1)/2+1;k=(a[h].x-a[g].x)/c;c=(a[h].y-a[g].y)/c;b[b.length]=a[l].x>a[g].x&&0<k||a[l].x<a[g].x&&0>k?{x:a[l].x-k/3,y:a[l].y-c/3}:{x:a[l].x,y:a[l].y-c/9};b[b.length]=a[f]}return b}function Na(a,d){if(null===a||"undefined"===typeof a)return d;var b=parseFloat(a.toString())*
|
||||
(0<=a.toString().indexOf("%")?d/100:1);return!isNaN(b)&&b<=d&&0<=b?b:d}function ja(a,d,b,c,f){"undefined"===typeof f&&(f=0);this._padding=f;this._x1=a;this._y1=d;this._x2=b;this._y2=c;this._rightOccupied=this._leftOccupied=this._bottomOccupied=this._topOccupied=this._padding}function W(a,d){W.base.constructor.call(this,"TextBlock",d);this.ctx=a;this._isDirty=!0;this._wrappedText=null}function ma(a,d){ma.base.constructor.call(this,"Title",d,a.theme,a);this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx;
|
||||
this.optionsName="title";if(x(this.options.margin)&&a.options.subtitles)for(var b=a.options.subtitles,c=0;c<b.length;c++)if((x(b[c].horizontalAlign)&&"center"===this.horizontalAlign||b[c].horizontalAlign===this.horizontalAlign)&&(x(b[c].verticalAlign)&&"top"===this.verticalAlign||b[c].verticalAlign===this.verticalAlign)&&!b[c].dockInsidePlotArea===!this.dockInsidePlotArea){this.margin=0;break}"undefined"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));this.height=
|
||||
this.width=null;this.bounds={x1:null,y1:null,x2:null,y2:null}}function va(a,d){va.base.constructor.call(this,"Subtitle",d,a.theme,a);this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx;this.optionsName="subtitles";this.isOptionsInArray=!0;"undefined"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));this.height=this.width=null;this.bounds={x1:null,y1:null,x2:null,y2:null}}function wa(a,d){wa.base.constructor.call(this,"Legend",d,a.theme,a);this.chart=
|
||||
a;this.canvas=a.canvas;this.ctx=this.chart.ctx;this.ghostCtx=this.chart._eventManager.ghostCtx;this.items=[];this.optionsName="legend";this.height=this.width=0;this.orientation=null;this.dataSeries=[];this.bounds={x1:null,y1:null,x2:null,y2:null};"undefined"===typeof this.options.fontSize&&(this.fontSize=this.chart.getAutoFontSize(this.fontSize));this.lineHeight=Ja(this.fontFamily,this.fontSize,this.fontWeight);this.horizontalSpacing=this.fontSize}function Ca(a,d){Ca.base.constructor.call(this,d);
|
||||
this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx}function $(a,d,b,c){$.base.constructor.call(this,"DataSeries",d,a.theme,a);this.chart=a;this.canvas=a.canvas;this._ctx=a.canvas.ctx;this.index=b;this.noDataPointsInPlotArea=0;this.id=c;this.chart._eventManager.objectMap[c]={id:c,objectType:"dataSeries",dataSeriesIndex:b};this.dataPointIds=[];this.plotUnit=[];this.axisY=this.axisX=null;this.optionsName="data";this.isOptionsInArray=!0;null===this.fillOpacity&&(this.type.match(/area/i)?this.fillOpacity=
|
||||
0.7:this.fillOpacity=1);this.axisPlacement=this.getDefaultAxisPlacement();"undefined"===typeof this.options.indexLabelFontSize&&(this.indexLabelFontSize=this.chart.getAutoFontSize(this.indexLabelFontSize))}function B(a,d,b,c,f){B.base.constructor.call(this,"Axis",d,a.theme,a);this.chart=a;this.canvas=a.canvas;this.ctx=a.ctx;this.intervalStartPosition=this.maxHeight=this.maxWidth=0;this.labels=[];this.dataSeries=[];this._stripLineLabels=this._ticks=this._labels=null;this.dataInfo={min:Infinity,max:-Infinity,
|
||||
viewPortMin:Infinity,viewPortMax:-Infinity,minDiff:Infinity};this.isOptionsInArray=!0;"axisX"===b?("left"===c||"bottom"===c?(this.optionsName="axisX",x(this.chart.sessionVariables.axisX[f])&&(this.chart.sessionVariables.axisX[f]={}),this.sessionVariables=this.chart.sessionVariables.axisX[f]):(this.optionsName="axisX2",x(this.chart.sessionVariables.axisX2[f])&&(this.chart.sessionVariables.axisX2[f]={}),this.sessionVariables=this.chart.sessionVariables.axisX2[f]),this.options.interval||(this.intervalType=
|
||||
null),"theme2"===this.chart.theme&&x(this.options.lineThickness)&&(this.lineThickness=2)):"left"===c||"top"===c?(this.optionsName="axisY",x(this.chart.sessionVariables.axisY[f])&&(this.chart.sessionVariables.axisY[f]={}),this.sessionVariables=this.chart.sessionVariables.axisY[f]):(this.optionsName="axisY2",x(this.chart.sessionVariables.axisY2[f])&&(this.chart.sessionVariables.axisY2[f]={}),this.sessionVariables=this.chart.sessionVariables.axisY2[f]);"undefined"===typeof this.options.titleFontSize&&
|
||||
(this.titleFontSize=this.chart.getAutoFontSize(this.titleFontSize));"undefined"===typeof this.options.labelFontSize&&(this.labelFontSize=this.chart.getAutoFontSize(this.labelFontSize));this.type=b;"axisX"!==b||d&&"undefined"!==typeof d.gridThickness||(this.gridThickness=0);this._position=c;this.lineCoordinates={x1:null,y1:null,x2:null,y2:null,width:null};this.labelAngle=(this.labelAngle%360+360)%360;90<this.labelAngle&&270>this.labelAngle?this.labelAngle-=180:270<=this.labelAngle&&360>=this.labelAngle&&
|
||||
(this.labelAngle-=360);if(this.options.stripLines&&0<this.options.stripLines.length)for(this.stripLines=[],d=0;d<this.options.stripLines.length;d++)this.stripLines.push(new na(this.chart,this.options.stripLines[d],a.theme,++this.chart._eventManager.lastObjectId,this));this._titleTextBlock=null;this.hasOptionChanged("viewportMinimum")&&null===this.viewportMinimum&&(this.options.viewportMinimum=void 0,this.sessionVariables.viewportMinimum=null);this.hasOptionChanged("viewportMinimum")||isNaN(this.sessionVariables.newViewportMinimum)||
|
||||
null===this.sessionVariables.newViewportMinimum?this.sessionVariables.newViewportMinimum=null:this.viewportMinimum=this.sessionVariables.newViewportMinimum;this.hasOptionChanged("viewportMaximum")&&null===this.viewportMaximum&&(this.options.viewportMaximum=void 0,this.sessionVariables.viewportMaximum=null);this.hasOptionChanged("viewportMaximum")||isNaN(this.sessionVariables.newViewportMaximum)||null===this.sessionVariables.newViewportMaximum?this.sessionVariables.newViewportMaximum=null:this.viewportMaximum=
|
||||
this.sessionVariables.newViewportMaximum;null!==this.minimum&&null!==this.viewportMinimum&&(this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum));null!==this.maximum&&null!==this.viewportMaximum&&(this.viewportMaximum=Math.min(this.viewportMaximum,this.maximum));this.trackChanges("viewportMinimum");this.trackChanges("viewportMaximum")}function na(a,d,b,c,f){na.base.constructor.call(this,"StripLine",d,b,f);this.id=c;this.chart=a;this.ctx=this.chart.ctx;this.label=this.label;this.axis=f;
|
||||
this.optionsName="stripLines";this.isOptionsInArray=!0;this._thicknessType="pixel";null!==this.startValue&&null!==this.endValue&&(this.value=f.logarithmic?Math.sqrt((this.startValue.getTime?this.startValue.getTime():this.startValue)*(this.endValue.getTime?this.endValue.getTime():this.endValue)):((this.startValue.getTime?this.startValue.getTime():this.startValue)+(this.endValue.getTime?this.endValue.getTime():this.endValue))/2,this.thickness=f.logarithmic?Math.log(this.endValue/this.startValue)/Math.log(f.logarithmBase):
|
||||
Math.max(this.endValue-this.startValue),this._thicknessType="value")}function S(a,d){S.base.constructor.call(this,"ToolTip",d,a.theme,a);this.chart=a;this.canvas=a.canvas;this.ctx=this.chart.ctx;this.currentDataPointIndex=this.currentSeriesIndex=-1;this._timerId=0;this._prevY=this._prevX=NaN;this.optionsName="toolTip";this._initialize()}function la(a){this.chart=a;this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=[];this.previousDataPointEventObject=null;this.ghostCanvas=
|
||||
ga(this.chart.width,this.chart.height);this.ghostCtx=this.ghostCanvas.getContext("2d");this.mouseoveredObjectMaps=[]}function oa(a){var d;a&&pa[a]&&(d=pa[a]);oa.base.constructor.call(this,"CultureInfo",d)}function Da(a){this.chart=a;this.ctx=this.chart.plotArea.ctx;this.animations=[];this.animationRequestId=null}var z={},u=!!document.createElement("canvas").getContext,ca={Chart:{width:500,height:400,zoomEnabled:!1,zoomType:"x",backgroundColor:"white",theme:"theme1",animationEnabled:!1,animationDuration:1200,
|
||||
dataPointWidth:null,dataPointMinWidth:null,dataPointMaxWidth:null,colorSet:"colorSet1",culture:"en",creditText:"CanvasJS",interactivityEnabled:!0,exportEnabled:!1,exportFileName:"Chart",rangeChanging:null,rangeChanged:null,publicProperties:{title:"readWrite",subtitles:"readWrite",toolTip:"readWrite",legend:"readWrite",axisX:"readWrite",axisY:"readWrite",axisX2:"readWrite",axisY2:"readWrite",data:"readWrite",options:"readWrite",bounds:"readOnly",container:"readOnly"}},Title:{padding:0,text:null,verticalAlign:"top",
|
||||
horizontalAlign:"center",fontSize:20,fontFamily:"Calibri",fontWeight:"normal",fontColor:"black",fontStyle:"normal",borderThickness:0,borderColor:"black",cornerRadius:0,backgroundColor:u?"transparent":null,margin:5,wrap:!0,maxWidth:null,dockInsidePlotArea:!1,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},Subtitle:{padding:0,text:null,verticalAlign:"top",horizontalAlign:"center",fontSize:14,fontFamily:"Calibri",fontWeight:"normal",fontColor:"black",fontStyle:"normal",borderThickness:0,
|
||||
borderColor:"black",cornerRadius:0,backgroundColor:null,margin:2,wrap:!0,maxWidth:null,dockInsidePlotArea:!1,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},Legend:{name:null,verticalAlign:"center",horizontalAlign:"right",fontSize:14,fontFamily:"calibri",fontWeight:"normal",fontColor:"black",fontStyle:"normal",cursor:null,itemmouseover:null,itemmouseout:null,itemmousemove:null,itemclick:null,dockInsidePlotArea:!1,reversed:!1,backgroundColor:u?"transparent":null,borderColor:u?
|
||||
"transparent":null,borderThickness:0,cornerRadius:0,maxWidth:null,maxHeight:null,markerMargin:null,itemMaxWidth:null,itemWidth:null,itemWrap:!0,itemTextFormatter:null,publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},ToolTip:{enabled:!0,shared:!1,animationEnabled:!0,content:null,contentFormatter:null,reversed:!1,backgroundColor:u?"rgba(255,255,255,.9)":"rgb(255,255,255)",borderColor:null,borderThickness:2,cornerRadius:5,fontSize:14,fontColor:"black",fontFamily:"Calibri, Arial, Georgia, serif;",
|
||||
fontWeight:"normal",fontStyle:"italic",publicProperties:{options:"readWrite",chart:"readOnly"}},Axis:{minimum:null,maximum:null,viewportMinimum:null,viewportMaximum:null,interval:null,intervalType:null,reversed:!1,logarithmic:!1,logarithmBase:10,title:null,titleFontColor:"black",titleFontSize:20,titleFontFamily:"arial",titleFontWeight:"normal",titleFontStyle:"normal",titleWrap:!0,titleMaxWidth:null,titleBackgroundColor:u?"transparent":null,titleBorderColor:u?"transparent":null,titleBorderThickness:0,
|
||||
titleCornerRadius:0,labelAngle:0,labelFontFamily:"arial",labelFontColor:"black",labelFontSize:12,labelFontWeight:"normal",labelFontStyle:"normal",labelAutoFit:!0,labelWrap:!0,labelMaxWidth:null,labelFormatter:null,labelBackgroundColor:u?"transparent":null,labelBorderColor:u?"transparent":null,labelBorderThickness:0,labelCornerRadius:0,prefix:"",suffix:"",includeZero:!0,tickLength:5,tickColor:"black",tickThickness:1,lineColor:"black",lineThickness:1,lineDashType:"solid",gridColor:"A0A0A0",gridThickness:0,
|
||||
gridDashType:"solid",interlacedColor:u?"transparent":null,valueFormatString:null,margin:2,stripLines:[],publicProperties:{options:"readWrite",bounds:"readOnly",chart:"readOnly"}},StripLine:{value:null,startValue:null,endValue:null,color:"orange",opacity:null,thickness:2,lineDashType:"solid",label:"",labelPlacement:"inside",labelAlign:"far",labelWrap:!0,labelMaxWidth:null,labelBackgroundColor:u?"transparent":null,labelBorderColor:u?"transparent":null,labelBorderThickness:0,labelCornerRadius:0,labelFontFamily:"arial",
|
||||
labelFontColor:"orange",labelFontSize:12,labelFontWeight:"normal",labelFontStyle:"normal",labelFormatter:null,showOnTop:!1,publicProperties:{options:"readWrite",axis:"readOnly",bounds:"readOnly",chart:"readOnly"}},DataSeries:{name:null,dataPoints:null,label:"",bevelEnabled:!1,highlightEnabled:!0,cursor:"default",indexLabel:"",indexLabelPlacement:"auto",indexLabelOrientation:"horizontal",indexLabelFontColor:"black",indexLabelFontSize:12,indexLabelFontStyle:"normal",indexLabelFontFamily:"Arial",indexLabelFontWeight:"normal",
|
||||
indexLabelBackgroundColor:null,indexLabelLineColor:"gray",indexLabelLineThickness:1,indexLabelLineDashType:"solid",indexLabelMaxWidth:null,indexLabelWrap:!0,indexLabelFormatter:null,lineThickness:2,lineDashType:"solid",connectNullData:!1,nullDataLineDashType:"dash",color:null,lineColor:null,risingColor:"white",fillOpacity:null,startAngle:0,radius:null,innerRadius:null,type:"column",xValueType:"number",axisXType:"primary",axisYType:"primary",axisXIndex:0,axisYIndex:0,xValueFormatString:null,yValueFormatString:null,
|
||||
zValueFormatString:null,percentFormatString:null,showInLegend:null,legendMarkerType:null,legendMarkerColor:null,legendText:null,legendMarkerBorderColor:u?"transparent":null,legendMarkerBorderThickness:0,markerType:"circle",markerColor:null,markerSize:null,markerBorderColor:u?"transparent":null,markerBorderThickness:0,mouseover:null,mouseout:null,mousemove:null,click:null,toolTipContent:null,visible:!0,publicProperties:{options:"readWrite",axisX:"readWrite",axisY:"readWrite",chart:"readOnly"}},TextBlock:{x:0,
|
||||
y:0,width:null,height:null,maxWidth:null,maxHeight:null,padding:0,angle:0,text:"",horizontalAlign:"center",fontSize:12,fontFamily:"calibri",fontWeight:"normal",fontColor:"black",fontStyle:"normal",borderThickness:0,borderColor:"black",cornerRadius:0,backgroundColor:null,textBaseline:"top"},CultureInfo:{decimalSeparator:".",digitGroupSeparator:",",zoomText:"Zoom",panText:"Pan",resetText:"Reset",menuText:"More Options",saveJPGText:"Save as JPEG",savePNGText:"Save as PNG",printText:"Print",days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
|
||||
shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")}},pa={en:{}},ha={colorSet1:"#369EAD #C24642 #7F6084 #86B402 #A2D1CF #C8B631 #6DBCEB #52514E #4F81BC #A064A1 #F79647".split(" "),colorSet2:"#4F81BC #C0504E #9BBB58 #23BFAA #8064A1 #4AACC5 #F79647 #33558B".split(" "),colorSet3:"#8CA1BC #36845C #017E82 #8CB9D0 #708C98 #94838D #F08891 #0366A7 #008276 #EE7757 #E5BA3A #F2990B #03557B #782970".split(" ")},
|
||||
ia={theme1:{Chart:{colorSet:"colorSet1"},Title:{fontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",fontSize:33,fontColor:"#3A3A3A",fontWeight:"bold",verticalAlign:"top",margin:5},Subtitle:{fontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",fontSize:16,fontColor:"#3A3A3A",fontWeight:"bold",verticalAlign:"top",margin:5},Axis:{titleFontSize:26,titleFontColor:"#666666",titleFontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",
|
||||
labelFontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",labelFontSize:18,labelFontColor:"grey",tickColor:"#BBBBBB",tickThickness:2,gridThickness:2,gridColor:"#BBBBBB",lineThickness:2,lineColor:"#BBBBBB"},Legend:{verticalAlign:"bottom",horizontalAlign:"center",fontFamily:u?"monospace, sans-serif,arial black":"calibri"},DataSeries:{indexLabelFontColor:"grey",indexLabelFontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",indexLabelFontSize:18,indexLabelLineThickness:1}},
|
||||
theme2:{Chart:{colorSet:"colorSet2"},Title:{fontFamily:"impact, charcoal, arial black, sans-serif",fontSize:32,fontColor:"#333333",verticalAlign:"top",margin:5},Subtitle:{fontFamily:"impact, charcoal, arial black, sans-serif",fontSize:14,fontColor:"#333333",verticalAlign:"top",margin:5},Axis:{titleFontSize:22,titleFontColor:"rgb(98,98,98)",titleFontFamily:u?"monospace, sans-serif,arial black":"arial",titleFontWeight:"bold",labelFontFamily:u?"monospace, Courier New, Courier":"arial",labelFontSize:16,
|
||||
labelFontColor:"grey",labelFontWeight:"bold",tickColor:"grey",tickThickness:2,gridThickness:2,gridColor:"grey",lineColor:"grey",lineThickness:0},Legend:{verticalAlign:"bottom",horizontalAlign:"center",fontFamily:u?"monospace, sans-serif,arial black":"arial"},DataSeries:{indexLabelFontColor:"grey",indexLabelFontFamily:u?"Courier New, Courier, monospace":"arial",indexLabelFontWeight:"bold",indexLabelFontSize:18,indexLabelLineThickness:1}},theme3:{Chart:{colorSet:"colorSet1"},Title:{fontFamily:u?"Candara, Optima, Trebuchet MS, Helvetica Neue, Helvetica, Trebuchet MS, serif":
|
||||
"calibri",fontSize:32,fontColor:"#3A3A3A",fontWeight:"bold",verticalAlign:"top",margin:5},Subtitle:{fontFamily:u?"Candara, Optima, Trebuchet MS, Helvetica Neue, Helvetica, Trebuchet MS, serif":"calibri",fontSize:16,fontColor:"#3A3A3A",fontWeight:"bold",verticalAlign:"top",margin:5},Axis:{titleFontSize:22,titleFontColor:"rgb(98,98,98)",titleFontFamily:u?"Verdana, Geneva, Calibri, sans-serif":"calibri",labelFontFamily:u?"Calibri, Optima, Candara, Verdana, Geneva, sans-serif":"calibri",labelFontSize:18,
|
||||
labelFontColor:"grey",tickColor:"grey",tickThickness:2,gridThickness:2,gridColor:"grey",lineThickness:2,lineColor:"grey"},Legend:{verticalAlign:"bottom",horizontalAlign:"center",fontFamily:u?"monospace, sans-serif,arial black":"calibri"},DataSeries:{bevelEnabled:!0,indexLabelFontColor:"grey",indexLabelFontFamily:u?"Candara, Optima, Calibri, Verdana, Geneva, sans-serif":"calibri",indexLabelFontSize:18,indexLabelLineColor:"lightgrey",indexLabelLineThickness:2}}},E={numberDuration:1,yearDuration:314496E5,
|
||||
monthDuration:2592E6,weekDuration:6048E5,dayDuration:864E5,hourDuration:36E5,minuteDuration:6E4,secondDuration:1E3,millisecondDuration:1,dayOfWeekFromInt:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")},Ka={},ba=null,Ea=function(){var a=/D{1,4}|M{1,4}|Y{1,4}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|f{1,3}|t{1,2}|T{1,2}|K|z{1,3}|"[^"]*"|'[^']*'/g,d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),b="Sun Mon Tue Wed Thu Fri Sat".split(" "),c="January February March April May June July August September October November December".split(" "),
|
||||
f="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),g=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g;return function(l,k,m){var n=m?m.days:d,p=m?m.months:c,e=m?m.shortDays:b,r=m?m.shortMonths:f;m="";var q=!1;l=l&&l.getTime?l:l?new Date(l):new Date;if(isNaN(l))throw SyntaxError("invalid date");"UTC:"===k.slice(0,4)&&(k=k.slice(4),q=!0);m=q?"getUTC":"get";var s=l[m+"Date"](),v=l[m+"Day"](),
|
||||
w=l[m+"Month"](),y=l[m+"FullYear"](),t=l[m+"Hours"](),u=l[m+"Minutes"](),Z=l[m+"Seconds"](),aa=l[m+"Milliseconds"](),x=q?0:l.getTimezoneOffset();return m=k.replace(a,function(a){switch(a){case "D":return s;case "DD":return O(s,2);case "DDD":return e[v];case "DDDD":return n[v];case "M":return w+1;case "MM":return O(w+1,2);case "MMM":return r[w];case "MMMM":return p[w];case "Y":return parseInt(String(y).slice(-2));case "YY":return O(String(y).slice(-2),2);case "YYY":return O(String(y).slice(-3),3);
|
||||
case "YYYY":return O(y,4);case "h":return t%12||12;case "hh":return O(t%12||12,2);case "H":return t;case "HH":return O(t,2);case "m":return u;case "mm":return O(u,2);case "s":return Z;case "ss":return O(Z,2);case "f":return String(aa).slice(0,1);case "ff":return O(String(aa).slice(0,2),2);case "fff":return O(String(aa).slice(0,3),3);case "t":return 12>t?"a":"p";case "tt":return 12>t?"am":"pm";case "T":return 12>t?"A":"P";case "TT":return 12>t?"AM":"PM";case "K":return q?"UTC":(String(l).match(g)||
|
||||
[""]).pop().replace(h,"");case "z":return(0<x?"-":"+")+Math.floor(Math.abs(x)/60);case "zz":return(0<x?"-":"+")+O(Math.floor(Math.abs(x)/60),2);case "zzz":return(0<x?"-":"+")+O(Math.floor(Math.abs(x)/60),2)+O(Math.abs(x)%60,2);default:return a.slice(1,a.length-1)}})}}(),da=function(a,d,b){if(null===a)return"";a=Number(a);var c=0>a?!0:!1;c&&(a*=-1);var f=b?b.decimalSeparator:".",g=b?b.digitGroupSeparator:",",h="";d=String(d);var h=1,l=b="",k=-1,m=[],n=[],p=0,e=0,r=0,q=!1,s=0,l=d.match(/"[^"]*"|'[^']*'|[eE][+-]*[0]+|[,]+[.]|\u2030|./g);
|
||||
d=null;for(var v=0;l&&v<l.length;v++)if(d=l[v],"."===d&&0>k)k=v;else{if("%"===d)h*=100;else if("\u2030"===d){h*=1E3;continue}else if(","===d[0]&&"."===d[d.length-1]){h/=Math.pow(1E3,d.length-1);k=v+d.length-1;continue}else"E"!==d[0]&&"e"!==d[0]||"0"!==d[d.length-1]||(q=!0);0>k?(m.push(d),"#"===d||"0"===d?p++:","===d&&r++):(n.push(d),"#"!==d&&"0"!==d||e++)}q&&(d=Math.floor(a),l=-Math.floor(Math.log(a)/Math.LN10+1),s=0===a?0:0===d?-(p+l):String(d).length-p,h/=Math.pow(10,s));0>k&&(k=v);h=(a*h).toFixed(e);
|
||||
d=h.split(".");h=(d[0]+"").split("");a=(d[1]+"").split("");h&&"0"===h[0]&&h.shift();for(q=l=v=e=k=0;0<m.length;)if(d=m.pop(),"#"===d||"0"===d)if(k++,k===p){var w=h,h=[];if("0"===d)for(d=p-e-(w?w.length:0);0<d;)w.unshift("0"),d--;for(;0<w.length;)b=w.pop()+b,q++,0===q%l&&(v===r&&0<w.length)&&(b=g+b)}else 0<h.length?(b=h.pop()+b,e++,q++):"0"===d&&(b="0"+b,e++,q++),0===q%l&&(v===r&&0<h.length)&&(b=g+b);else"E"!==d[0]&&"e"!==d[0]||"0"!==d[d.length-1]||!/[eE][+-]*[0]+/.test(d)?","===d?(v++,l=q,q=0,0<h.length&&
|
||||
(b=g+b)):b=1<d.length&&('"'===d[0]&&'"'===d[d.length-1]||"'"===d[0]&&"'"===d[d.length-1])?d.slice(1,d.length-1)+b:d+b:(d=0>s?d.replace("+","").replace("-",""):d.replace("-",""),b+=d.replace(/[0]+/,function(a){return O(s,a.length)}));g="";for(m=!1;0<n.length;)d=n.shift(),"#"===d||"0"===d?0<a.length&&0!==Number(a.join(""))?(g+=a.shift(),m=!0):"0"===d&&(g+="0",m=!0):1<d.length&&('"'===d[0]&&'"'===d[d.length-1]||"'"===d[0]&&"'"===d[d.length-1])?g+=d.slice(1,d.length-1):"E"!==d[0]&&"e"!==d[0]||"0"!==d[d.length-
|
||||
1]||!/[eE][+-]*[0]+/.test(d)?g+=d:(d=0>s?d.replace("+","").replace("-",""):d.replace("-",""),g+=d.replace(/[0]+/,function(a){return O(s,a.length)}));b+=(m?f:"")+g;return c?"-"+b:b},xa=function(a){var d=0,b=0;a=a||window.event;a.offsetX||0===a.offsetX?(d=a.offsetX,b=a.offsetY):a.layerX||0==a.layerX?(d=a.layerX,b=a.layerY):(d=a.pageX-a.target.offsetLeft,b=a.pageY-a.target.offsetTop);return{x:d,y:b}},Ma=!0,za=window.devicePixelRatio||1,sa=1,Q=Ma?za/sa:1,Aa=window&&window.location&&window.location.href&&
|
||||
window.location.href.indexOf&&(-1!==window.location.href.indexOf("canvasjs.com")||-1!==window.location.href.indexOf("fenopix.com")||-1!==window.location.href.indexOf("fiddle")),Ta={reset:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAcCAYAAAAAwr0iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAKRSURBVEiJrdY/iF1FFMfxzwnZrGISUSR/JLGIhoh/QiRNBLWxMLIWEkwbgiAoFgoW2mhlY6dgpY2IlRBRxBSKhSAKIklWJRYuMZKAhiyopAiaTY7FvRtmZ+/ed9/zHRjezLw5v/O9d86cuZGZpmURAfdn5o9DfdZNLXpjz+LziPgyIl6MiG0jPTJzZBuyDrP4BVm0P/AKbljTb4ToY/gGewYA7KyCl+1b3DUYANvwbiHw0gCAGRzBOzjTAXEOu0cC4Ch+r5x/HrpdrcZmvIDFSucMtnYCYC++6HmNDw8FKDT34ETrf639/azOr5vwRk/g5fbeuABtgC04XWk9VQLciMP4EH/3AFzErRNC7MXlQmsesSoHsGPE23hmEoBW+61K66HMXFmIMvN8myilXS36R01ub+KfYvw43ZXwYDX+AHP4BAci4pFJomfmr/ihmNofESsBImJGk7mlncrM45n5JPbhz0kAWpsv+juxaX21YIPmVJS2uNzJMS6ZNexC0d+I7fUWXLFyz2kSZlpWPvASlmqAf/FXNXf3FAF2F/1LuFifAlionB6dRuSI2IwHi6lzmXmp6xR8XY0fiIh7psAwh+3FuDkRHQVjl+a8lkXjo0kLUKH7XaV5oO86PmZ1FTzyP4K/XGl9v/zwfbW7BriiuETGCP5ch9bc9f97HF/vcFzCa5gdEPgWq+t/4v0V63oE1uF4h0DiFJ7HnSWMppDdh1dxtsPvJ2wcBNAKbsJXa0Ck5opdaBPsRNu/usba09i1KsaAVzmLt3sghrRjuK1Tf4xkegInxwy8gKf7dKMVH2QRsV5zXR/Cftyu+aKaKbbkQrsdH+PTzLzcqzkOQAVzM+7FHdiqqe2/YT4zF/t8S/sPmawyvC974vcAAAAASUVORK5CYII="},
|
||||
pan:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAJVSURBVFiFvZe7a1RBGMV/x2hWI4JpfKCIiSBKOoOCkID/wP4BFqIIFkE02ChIiC8QDKlSiI3YqRBsBVGwUNAUdiIEUgjiAzQIIsuKJsfizsXr5t7d+8jmwLDfzHz3nLOzc7+ZxTZlGyDgZiWOCuJ9wH2gCUyuqQFgF/AGcKJNrYkBYBj40CIet+muGQi/96kM4WS7C/Tm5VUg7whJg8BkEGkCR4BDYfodsADUgP6wErO5iCtswsuJb32hdbXy8qzL5TIdmzJinHdZoZIBZcSFkGlAKs1Z3YCketZcBtouuaQNkrblMiBpBrhme7mAgU4wMCvpcFsDkq4C54DFVRTH9h+i6vlE0r5UA5ImgCuh28jB28iIs7BIVCOeStoZD64P4uPAjUTygKSx2FsK2TIwkugfk9Qkfd/E+yMWHQCeSRqx/R3gOp3LazfaS2C4B5gHDgD7U9x3E3uAH7KNpC3AHHAwTL4FHgM9GQ8vAaPA0dB/Abxqk2/gBLA9MXba9r1k/d4LfA3JtwueBeM58ucS+edXnAW23wP10N3advEi9CXizTnyN4bPS7Zn4sH/dq3t18AY4e1YLYSy3g/csj2VnFshZPuOpOeSKHCodUINuGj7YetE6je1PV9QoNPJ9StNHKodx7nRbiWrGHBGXAi5DUiqtQwtpcWK0Jubt8CltA5MEV1IfwO7+VffPwGfia5m34CT4bXujIIX0Qna1/cGMNqV/wUJE2czxD8CQ4X5Sl7Jz7SILwCDpbjKPBRMHAd+EtX4HWV5Spdc2w8kDQGPbH8py/MXMygM69/FKz4AAAAASUVORK5CYII="},
|
||||
zoom:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAMqSURBVFiFvdfbj91TFMDxz57U6GUEMS1aYzyMtCSSDhWjCZMInpAI3khE/QHtgzdRkXgSCS8SES9epKLi0oRKNETjRahREq2KS1stdRujtDPtbA97n5zdn9+5zJxTK9k5v3POXmt991p7r71+IcaoGwkhTOIebMRqzOBTvIG3Y4zTXRmqSoyx5cAKbMJOHMFJnMZ8/jyFaXyMR7G6nb1aH22cP4BvcBxziG3GKfyTIR9D6BYg1KUghPBCDveFlb/24Av8iuUYw41YVsz5G7uxKcZ4aMEpwGt5NY3V/YbHsQ6rcAHOw/kYxigewr5CZw4fYGxBKcCLOFEYehXrMdRhr5yLETxVScsOLOkKAPfn1TYMPIvLFrShUlS2FDZm8XRHACzFAWl3R2xbqPMCYhmeLCAOYEMngAczbcTvuHYxzguIy/FesR9e6gSwU/OoPYHBHgHgviIKX2Flq7k34KhmcVnbi/PC8JX4MgMcxb118wZwdz5aISscqx7VRcox7MrPQ7i+btIAJrAkf9+bI9EPmZY2IAxiTSuAldLq4Y9+AcSUh78KP0tbAcwU35cXMD1JCIFUoGiehlqAz6TNB1f1C0DK+0h+nsNPrQC2a4bqGmlD9kOGcWt+Po6pVgDvSxfJaSkFd4UQBvoAsBYbCoB3a2flM7slA0R8iyt6rAFDeDPbm8eOTpVwGD9qVq7nLbIaZnmksPU1JtsCZMXNmpdRxFasWITzh6Xj3LCzra1OxcD2QjHiGVzdpfORnMqZio2PcF23ABdJF1Np4BPptlyPi6WzPYBzpJZtHe7A6xW9cnyP8TqA//SEIYRL8Bxul7rihvwgtVn78WcGGZXa9HGd5TDujDHuOePXNiHdKjWgZX/YbsxLx/ktqbjVzTlcjUSnvI5JrdlUVp6WesZZ6R1hRrpq9+EVTGS9jTjYAuKIouGpbcurEkIYxC051KNSamazsc+xK8b4S0VnEi/j0hqTP+M27O258egQwZuzs7pI7Mf4WQXIEDc5s9sux+5+1Py2EmP8UOq6GvWhIScxfdYjUERiAt9Jd84J6a16zf8JEKT3yCm8g1UxRv8CC4pyRhzR1uUAAAAASUVORK5CYII="},
|
||||
menu:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTUvMTTPsvU0AAAAP0lEQVRIie2SMQoAIBDDUvH/X667g8sJJ9KOhYYOkW0qGaU1MPdC0vGSbV19EACo3YMPAFH5BUBUjsqfAPpVXtNgGDfxEDCtAAAAAElFTkSuQmCC"}};(function(){z.fSDec=function(a){for(var d="",b=0;b<a.length;b++)d+=String.fromCharCode(a[b]-111);return d};z.str={tv:[195,225,216,208,219,143,197,212,225,
|
||||
226,216,222,221],fntStr:[223,231,143,178,208,219,216,209,225,216,155,143,187,228,210,216,211,208,143,182,225,208,221,211,212,155,143,187,228,210,216,211,208,143,194,208,221,226,143,196,221,216,210,222,211,212,155,143,176,225,216,208,219,155,143,226,208,221,226,156,226,212,225,216,213],tBl:[227,212,231,227,177,208,226,212,219,216,221,212],fnt:[213,222,221,227],fSy:[213,216,219,219,194,227,232,219,212],fTx:[213,216,219,219,195,212,231,227],gr:[214,225,212,232],ct:[210,227,231],tp:[227,222,223]};delete ca[z.fSDec([178,
|
||||
215,208,225,227])][z.fSDec([210,225,212,211,216,227,183,225,212,213])];z.pro={sCH:ca[z.fSDec([178,215,208,225,227])][z.fSDec([210,225,212,211,216,227,183,225,212,213])]};z.fAWm=function(a){if("undefined"===typeof z.pro.sCH&&!Aa){var d=a[z.fSDec(z.str.ct)];d[z.fSDec(z.str.tBl)]=z.fSDec(z.str.tp);d[z.fSDec(z.str.fnt)]=11+z.fSDec(z.str.fntStr);d[z.fSDec(z.str.fSy)]=z.fSDec(z.str.gr);d[z.fSDec(z.str.fTx)](z.fSDec(z.str.tv),2,a.height-11-2)}}})();(function(){z.ckDec=function(a){for(var d="",b=0;b<a.length;b++)d+=
|
||||
String.fromCharCode(a[b]-111);return d};z.str.ckn=[206,206,210,230,217,198,226,195,225];z.str.tem=[195,225,216,208,219,143,191,212,225,216,222,211,143,215,208,226,143,180,231,223,216,225,212,211,144];z.str.ctm=[191,219,212,208,226,212,143,210,222,221,227,208,210,227,143,226,208,219,212,226,175,210,208,221,229,208,226,217,226,157,210,222,220];z.str.ltm=[213,222,225,143,219,216,210,212,221,226,212,143,222,225,143,227,225,216,208,219,143,212,231,227,212,221,227,216,222,221];z.str.ckve=[212,231,223,216,
|
||||
225,212,226,172];z.str.mco=[225,214,209,208,151,161,164,164,155,161,164,164,155,161,164,164,155,159,157,164,152];z.str.mcw=[198,215,216,227,212];z.str.mct=[225,214,209,208,151,161,162,160,155,161,168,155,164,163,155,159,157,166,152];z.str.mcr=[193,212,211];z.fNg=function(a){if(!Aa)try{var d;a:{var b=RegExp(z.ckDec(z.str.ckn)+"=.*","gi"),c=new Date,f=document.cookie.match(b),g=localStorage&&localStorage.getItem("lclStg")&&JSON.parse(localStorage.getItem("lclStg")).name.match(z.ckDec(z.str.ckn))?JSON.parse(localStorage.getItem("lclStg")):
|
||||
null;if(f&&0<f.length||g){var h,b=[],l=[],k=null;if(f)for(var m=f[0].split("; "),f=0;f<m.length;f++)b.push(m[f].split("=")[0]),l.push(m[f].split("=")[1]);g&&(k=g);h={ckVal:Number(l[0]),lSVal:k?Number(k.val):null};g=null;h&&h.ckVal&&h.lSVal?g=Math.min(h.ckVal,h.lSVal):h&&h.ckVal?g=h.ckVal:h&&h.lSVal&&(g=h.lSVal);if(2592E6<Math.round(Math.abs(g-c.getTime()))){d=!0;break a}}else{l=new Date;k=l.getTime();l.setTime(k+31536E6);var n={name:z.ckDec(z.str.ckn),val:(new Date).getTime()};document.cookie=z.ckDec(z.str.ckn)+
|
||||
"="+(new Date).getTime()+"; "+z.ckDec(z.str.ckve)+l.toUTCString()+"; path=/;";localStorage.setItem("lclStg",JSON.stringify(n))}d=!1}if(d){d=20;var p=a.plotArea.ctx;p.font="bold "+d+(u?"px Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif":"px Lucida Sans Unicode");var e=z.ckDec(z.str.tem),r=p.measureText(e).width;p.fillStyle=u?z.ckDec(z.str.mco):z.ckDec(z.str.mcw);p.fillRect(a.plotArea.x2-r-8,a.plotArea.y2-2.5*d-8,r+4,2.5*d+8);p.fillStyle=u?z.ckDec(z.str.mct):z.ckDec(z.str.mcr);p.textBaseline=
|
||||
"top";p.fillText(e,a.plotArea.x2-r-4,a.plotArea.y2-2.5*d-2);d=14;p.font=d+(u?"px Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif":"px Lucida Sans Unicode");e=z.ckDec(z.str.ctm);r=p.measureText(e).width;p.fillStyle=u?z.ckDec(z.str.mct):z.ckDec(z.str.mcr);p.fillText(e,a.plotArea.x2-r-4,a.plotArea.y2-2*d-4);e=z.ckDec(z.str.ltm);r=p.measureText(e).width;p.fillText(e,a.plotArea.x2-r-4,a.plotArea.y2-d-4)}}catch(q){}}})();M.prototype.setOptions=function(a,d){if(ca[this._defaultsKey]){var b=
|
||||
ca[this._defaultsKey],c;for(c in b)"publicProperties"!==c&&b.hasOwnProperty(c)&&(this[c]=a&&c in a?a[c]:d&&c in d?d[c]:b[c])}};M.prototype.get=function(a){var d=ca[this._defaultsKey];if("options"===a)return this.options&&this.options._isPlaceholder?null:this.options;if(d.hasOwnProperty(a)||d.publicProperties&&d.publicProperties.hasOwnProperty(a))return this[a];window.console&&window.console.log('Property "'+a+"\" doesn't exist. Please check for typo.")};M.prototype.set=function(a,d,b){b="undefined"===
|
||||
typeof b?!0:b;var c=ca[this._defaultsKey];if("options"===a)this.createUserOptions(d);else if(c.hasOwnProperty(a)||c.publicProperties&&c.publicProperties.hasOwnProperty(a)&&"readWrite"===c.publicProperties[a])this.options._isPlaceholder&&this.createUserOptions(),this.options[a]=d;else{window.console&&(c.publicProperties&&c.publicProperties.hasOwnProperty(a)&&"readOnly"===c.publicProperties[a]?window.console.log('Property "'+a+'" is read-only.'):window.console.log('Property "'+a+"\" doesn't exist. Please check for typo."));
|
||||
return}b&&(chart=this.chart||this,chart.render())};M.prototype.addTo=function(a,d,b,c){c="undefined"===typeof c?!0:c;var f=ca[this._defaultsKey];f.hasOwnProperty(a)||f.publicProperties&&f.publicProperties.hasOwnProperty(a)&&"readWrite"===f.publicProperties[a]?(this.options._isPlaceholder&&this.createUserOptions(),"undefined"===typeof this.options[a]&&(this.options[a]=[]),a=this.options[a],b="undefined"===typeof b||null===b?a.length:b,a.splice(b,0,d),c&&(chart=this.chart||this,chart.render())):window.console&&
|
||||
(f.publicProperties&&f.publicProperties.hasOwnProperty(a)&&"readOnly"===f.publicProperties[a]?window.console.log('Property "'+a+'" is read-only.'):window.console.log('Property "'+a+"\" doesn't exist. Please check for typo."))};M.prototype.createUserOptions=function(a){if("undefined"!==typeof a||this.options._isPlaceholder)if(this.parent.options._isPlaceholder&&this.parent.createUserOptions(),this.isOptionsInArray){this.parent.options[this.optionsName]||(this.parent.options[this.optionsName]=[]);var d=
|
||||
this.parent.options[this.optionsName],b=d.length;this.options._isPlaceholder||(qa(d),b=d.indexOf(this.options));this.options="undefined"===typeof a?{}:a;d[b]=this.options}else this.options="undefined"===typeof a?{}:a,a=this.parent.options,this.optionsName?d=this.optionsName:(d=this._defaultsKey)&&0!==d.length?(b=d.charAt(0).toLowerCase(),1<d.length&&(b=b.concat(d.slice(1))),d=b):d=void 0,a[d]=this.options};M.prototype.remove=function(a){a="undefined"===typeof a?!0:a;if(this.isOptionsInArray){var d=
|
||||
this.parent.options[this.optionsName];qa(d);var b=d.indexOf(this.options);0<=b&&d.splice(b,1)}else delete this.parent.options[this.optionsName];a&&(chart=this.chart||this,chart.render())};M.prototype.updateOption=function(a){var d=ca[this._defaultsKey],b=this.options.theme?this.options.theme:this.chart&&this.chart.options.theme?this.chart.options.theme:"theme1",c={},f=this[a];b&&(ia[b]&&ia[b][this._defaultsKey])&&(c=ia[b][this._defaultsKey]);a in d&&(f=a in this.options?this.options[a]:c&&a in c?
|
||||
c[a]:d[a]);if(f===this[a])return!1;this[a]=f;return!0};M.prototype.trackChanges=function(a){if(!this.sessionVariables)throw"Session Variable Store not set";this.sessionVariables[a]=this.options[a]};M.prototype.isBeingTracked=function(a){this.options._oldOptions||(this.options._oldOptions={});return this.options._oldOptions[a]?!0:!1};M.prototype.hasOptionChanged=function(a){if(!this.sessionVariables)throw"Session Variable Store not set";return this.sessionVariables[a]!==this.options[a]};M.prototype.addEventListener=
|
||||
function(a,d,b){a&&d&&(this._eventListeners[a]=this._eventListeners[a]||[],this._eventListeners[a].push({context:b||this,eventHandler:d}))};M.prototype.removeEventListener=function(a,d){if(a&&d&&this._eventListeners[a])for(var b=this._eventListeners[a],c=0;c<b.length;c++)if(b[c].eventHandler===d){b[c].splice(c,1);break}};M.prototype.removeAllEventListeners=function(){this._eventListeners=[]};M.prototype.dispatchEvent=function(a,d,b){if(a&&this._eventListeners[a]){d=d||{};for(var c=this._eventListeners[a],
|
||||
f=0;f<c.length;f++)c[f].eventHandler.call(c[f].context,d)}"function"===typeof this[a]&&this[a].call(b||this.chart,d)};U(A,M);A.prototype._updateOptions=function(){var a=this;this.updateOption("width");this.updateOption("height");this.updateOption("dataPointWidth");this.updateOption("dataPointMinWidth");this.updateOption("dataPointMaxWidth");this.updateOption("interactivityEnabled");this.updateOption("theme");this.updateOption("colorSet")&&(this._selectedColorSet="undefined"!==typeof ha[this.colorSet]?
|
||||
ha[this.colorSet]:ha.colorSet1);this.updateOption("backgroundColor");this.backgroundColor||(this.backgroundColor="rgba(0,0,0,0)");this.updateOption("culture");this._cultureInfo=new oa(this.options.culture);this.updateOption("animationEnabled");this.animationEnabled=this.animationEnabled&&u;this.updateOption("animationDuration");this.updateOption("rangeChanging");this.updateOption("rangeChanged");this.updateOption("exportEnabled");this.updateOption("exportFileName");this.updateOption("zoomType");this.options.zoomEnabled?
|
||||
(this._zoomButton||(Y(this._zoomButton=document.createElement("button")),T(this,this._zoomButton,"pan"),this._toolBar.appendChild(this._zoomButton),K(this._zoomButton,"click",function(){a.zoomEnabled?(a.zoomEnabled=!1,a.panEnabled=!0,T(a,a._zoomButton,"zoom")):(a.zoomEnabled=!0,a.panEnabled=!1,T(a,a._zoomButton,"pan"));a.render()})),this._resetButton||(Y(this._resetButton=document.createElement("button")),T(this,this._resetButton,"reset"),this._toolBar.appendChild(this._resetButton),K(this._resetButton,
|
||||
"click",function(){a.toolTip.hide();a.zoomEnabled||a.panEnabled?(a.zoomEnabled=!0,a.panEnabled=!1,T(a,a._zoomButton,"pan"),a._defaultCursor="default",a.overlaidCanvas.style.cursor=a._defaultCursor):(a.zoomEnabled=!1,a.panEnabled=!1);if(a.sessionVariables.axisX)for(var b=0;b<a.sessionVariables.axisX.length;b++)a.sessionVariables.axisX[b].newViewportMinimum=null,a.sessionVariables.axisX[b].newViewportMaximum=null;if(a.sessionVariables.axisX2)for(b=0;b<a.sessionVariables.axisX2.length;b++)a.sessionVariables.axisX2[b].newViewportMinimum=
|
||||
null,a.sessionVariables.axisX2[b].newViewportMaximum=null;if(a.sessionVariables.axisY)for(b=0;b<a.sessionVariables.axisY.length;b++)a.sessionVariables.axisY[b].newViewportMinimum=null,a.sessionVariables.axisY[b].newViewportMaximum=null;if(a.sessionVariables.axisY2)for(b=0;b<a.sessionVariables.axisY2.length;b++)a.sessionVariables.axisY2[b].newViewportMinimum=null,a.sessionVariables.axisY2[b].newViewportMaximum=null;a.resetOverlayedCanvas();Y(a._zoomButton,a._resetButton);a._dispatchRangeEvent("rangeChanging",
|
||||
"reset");a.render();a._dispatchRangeEvent("rangeChanged","reset")}),this.overlaidCanvas.style.cursor=a._defaultCursor),this.zoomEnabled||this.panEnabled||(this._zoomButton?(a._zoomButton.getAttribute("state")===a._cultureInfo.zoomText?(this.panEnabled=!0,this.zoomEnabled=!1):(this.zoomEnabled=!0,this.panEnabled=!1),ta(a._zoomButton,a._resetButton)):(this.zoomEnabled=!0,this.panEnabled=!1))):this.panEnabled=this.zoomEnabled=!1;this._menuButton?this.exportEnabled?ta(this._menuButton):Y(this._menuButton):
|
||||
this.exportEnabled&&u&&(this._menuButton=document.createElement("button"),T(this,this._menuButton,"menu"),this._toolBar.appendChild(this._menuButton),K(this._menuButton,"click",function(){"none"!==a._dropdownMenu.style.display||a._dropDownCloseTime&&500>=(new Date).getTime()-a._dropDownCloseTime.getTime()||(a._dropdownMenu.style.display="block",a._menuButton.blur(),a._dropdownMenu.focus())},!0));if(!this._dropdownMenu&&this.exportEnabled&&u){this._dropdownMenu=document.createElement("div");this._dropdownMenu.setAttribute("tabindex",
|
||||
-1);this._dropdownMenu.style.cssText="position: absolute; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer;right: 1px;top: 25px;min-width: 120px;outline: 0;border: 1px solid silver;font-size: 14px;font-family: Calibri, Verdana, sans-serif;padding: 5px 0px 5px 0px;text-align: left;background-color: #fff;line-height: 20px;box-shadow: 2px 2px 10px #888888;";a._dropdownMenu.style.display="none";this._toolBar.appendChild(this._dropdownMenu);K(this._dropdownMenu,
|
||||
"blur",function(){Y(a._dropdownMenu);a._dropDownCloseTime=new Date},!0);var d=document.createElement("div");d.style.cssText="padding: 2px 15px 2px 10px";d.innerHTML=this._cultureInfo.printText;this._dropdownMenu.appendChild(d);K(d,"mouseover",function(){this.style.backgroundColor="#EEEEEE"},!0);K(d,"mouseout",function(){this.style.backgroundColor="transparent"},!0);K(d,"click",function(){a.print();Y(a._dropdownMenu)},!0);d=document.createElement("div");d.style.cssText="padding: 2px 15px 2px 10px";
|
||||
d.innerHTML=this._cultureInfo.saveJPGText;this._dropdownMenu.appendChild(d);K(d,"mouseover",function(){this.style.backgroundColor="#EEEEEE"},!0);K(d,"mouseout",function(){this.style.backgroundColor="transparent"},!0);K(d,"click",function(){Ba(a.canvas,"jpeg",a.exportFileName);Y(a._dropdownMenu)},!0);d=document.createElement("div");d.style.cssText="padding: 2px 15px 2px 10px";d.innerHTML=this._cultureInfo.savePNGText;this._dropdownMenu.appendChild(d);K(d,"mouseover",function(){this.style.backgroundColor=
|
||||
"#EEEEEE"},!0);K(d,"mouseout",function(){this.style.backgroundColor="transparent"},!0);K(d,"click",function(){Ba(a.canvas,"png",a.exportFileName);Y(a._dropdownMenu)},!0)}"none"!==this._toolBar.style.display&&this._zoomButton&&(this.panEnabled?T(a,a._zoomButton,"zoom"):T(a,a._zoomButton,"pan"),a._resetButton.getAttribute("state")!==a._cultureInfo.resetText&&T(a,a._resetButton,"reset"));this.options.toolTip&&this.toolTip.options!==this.options.toolTip&&(this.toolTip.options=this.options.toolTip);for(var b in this.toolTip.options)this.toolTip.options.hasOwnProperty(b)&&
|
||||
this.toolTip.updateOption(b)};A.prototype._updateSize=function(){var a=0,d=0;this.options.width?a=this.width:this.width=a=0<this.container.clientWidth?this.container.clientWidth:this.width;this.options.height?d=this.height:this.height=d=0<this.container.clientHeight?this.container.clientHeight:this.height;return this.canvas.width!==a*Q||this.canvas.height!==d*Q?(ra(this.canvas,a,d),ra(this.overlaidCanvas,a,d),ra(this._eventManager.ghostCanvas,a,d),!0):!1};A.prototype._initialize=function(){this._animator?
|
||||
this._animator.cancelAllAnimations():this._animator=new Da(this);this.removeAllEventListeners();this.disableToolTip=!1;this._axes=[];this.pieDoughnutClickHandler=null;this.animationRequestId&&this.cancelRequestAnimFrame.call(window,this.animationRequestId);this._updateOptions();this.animatedRender=u&&this.animationEnabled&&0===this.renderCount;this._updateSize();this.clearCanvas();this.ctx.beginPath();this.axisX=[];this.axisX2=[];this.axisY=[];this.axisY2=[];this._indexLabels=[];this._dataInRenderedOrder=
|
||||
[];this._events=[];this._eventManager&&this._eventManager.reset();this.plotInfo={axisPlacement:null,axisXValueType:null,plotTypes:[]};this.layoutManager=new ja(0,0,this.width,this.height,2);this.plotArea.layoutManager&&this.plotArea.layoutManager.reset();this.data=[];var a=0;if(this.options.data)for(var d=0;d<this.options.data.length;d++)if(a++,!this.options.data[d].type||0<=A._supportedChartTypes.indexOf(this.options.data[d].type)){var b=new $(this,this.options.data[d],a-1,++this._eventManager.lastObjectId);
|
||||
null===b.name&&(b.name="DataSeries "+a);null===b.color?1<this.options.data.length?(b._colorSet=[this._selectedColorSet[b.index%this._selectedColorSet.length]],b.color=this._selectedColorSet[b.index%this._selectedColorSet.length]):b._colorSet="line"===b.type||"stepLine"===b.type||"spline"===b.type||"area"===b.type||"stepArea"===b.type||"splineArea"===b.type||"stackedArea"===b.type||"stackedArea100"===b.type||"rangeArea"===b.type||"rangeSplineArea"===b.type||"candlestick"===b.type||"ohlc"===b.type?
|
||||
[this._selectedColorSet[0]]:this._selectedColorSet:b._colorSet=[b.color];null===b.markerSize&&(("line"===b.type||"stepLine"===b.type||"spline"===b.type||0<=b.type.toLowerCase().indexOf("area"))&&b.dataPoints&&b.dataPoints.length<this.width/16||"scatter"===b.type)&&(b.markerSize=8);"bubble"!==b.type&&"scatter"!==b.type||!b.dataPoints||(b.dataPoints.some?b.dataPoints.some(function(a){return a.x})&&b.dataPoints.sort(Ia):b.dataPoints.sort(Ia));this.data.push(b);var c=b.axisPlacement,f;"normal"===c?"xySwapped"===
|
||||
this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with bar chart':"none"===this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with pie chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement="normal"):"xySwapped"===c?"normal"===this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with line, area, column or pie chart':"none"===this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with pie chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement=
|
||||
"xySwapped"):"none"==c&&("normal"===this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with line, area, column or bar chart':"xySwapped"===this.plotInfo.axisPlacement?f='You cannot combine "'+b.type+'" with bar chart':null===this.plotInfo.axisPlacement&&(this.plotInfo.axisPlacement="none"));if(f&&window.console){window.console.log(f);return}}var g=this;this.addEventListener("dataAnimationIterationEnd",function(){z.fAWm&&z.fAWm(g);0!==g.axisX.length&&z.fNg&&z.fNg(g)});Sa(this);this._objectsInitialized=
|
||||
!0};A._supportedChartTypes=qa("line stepLine spline column area stepArea splineArea bar bubble scatter stackedColumn stackedColumn100 stackedBar stackedBar100 stackedArea stackedArea100 candlestick ohlc rangeColumn rangeBar rangeArea rangeSplineArea pie doughnut funnel".split(" "));A.prototype.render=function(a){a&&(this.options=a);this._initialize();var d=[];for(a=0;a<this.data.length;a++)if("normal"===this.plotInfo.axisPlacement||"xySwapped"===this.plotInfo.axisPlacement){if(!this.data[a].axisYType||
|
||||
"primary"===this.data[a].axisYType)if(this.options.axisY&&0<this.options.axisY.length){if(!this.axisY.length)for(var b=0;b<this.options.axisY.length;b++)"normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisY[b]=new B(this,this.options.axisY[b],"axisY","left",b)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY[b]=new B(this,this.options.axisY[b],"axisY","bottom",b));this.data[a].axisY=this.axisY[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY.length?
|
||||
this.data[a].axisYIndex:0];this.axisY[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY.length?this.data[a].axisYIndex:0].dataSeries.push(this.data[a])}else this.axisY.length||("normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisY[0]=new B(this,this.options.axisY,"axisY","left",0)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY[0]=new B(this,this.options.axisY,"axisY","bottom",0))),this.data[a].axisY=this.axisY[0],this.axisY[0].dataSeries.push(this.data[a]);
|
||||
if("secondary"===this.data[a].axisYType)if(this.options.axisY2&&0<this.options.axisY2.length){if(!this.axisY2.length)for(b=0;b<this.options.axisY2.length;b++)"normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisY2[b]=new B(this,this.options.axisY2[b],"axisY","right",b)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY2[b]=new B(this,this.options.axisY2[b],"axisY","top",b));this.data[a].axisY=this.axisY2[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY2.length?
|
||||
this.data[a].axisYIndex:0];this.axisY2[0<=this.data[a].axisYIndex&&this.data[a].axisYIndex<this.axisY2.length?this.data[a].axisYIndex:0].dataSeries.push(this.data[a])}else this.axisY2.length||("normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisY2[0]=new B(this,this.options.axisY2,"axisY","right",0)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisY2[0]=new B(this,this.options.axisY2,"axisY","top",0))),this.data[a].axisY=this.axisY2[0],this.axisY2[0].dataSeries.push(this.data[a]);
|
||||
if(!this.data[a].axisXType||"primary"===this.data[a].axisXType)if(this.options.axisX&&0<this.options.axisX.length){if(!this.axisX.length)for(b=0;b<this.options.axisX.length;b++)"normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisX[b]=new B(this,this.options.axisX[b],"axisX","bottom",b)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX[b]=new B(this,this.options.axisX[b],"axisX","left",b));this.data[a].axisX=this.axisX[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<
|
||||
this.axisX.length?this.data[a].axisXIndex:0];this.axisX[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX.length?this.data[a].axisXIndex:0].dataSeries.push(this.data[a])}else this.axisX.length||("normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisX[0]=new B(this,this.options.axisX,"axisX","bottom",0)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX[0]=new B(this,this.options.axisX,"axisX","left",0))),this.data[a].axisX=this.axisX[0],this.axisX[0].dataSeries.push(this.data[a]);
|
||||
if("secondary"===this.data[a].axisXType)if(this.options.axisX2&&0<this.options.axisX2.length){if(!this.axisX2.length)for(b=0;b<this.options.axisX2.length;b++)"normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisX2[b]=new B(this,this.options.axisX2[b],"axisX","top",b)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX2[b]=new B(this,this.options.axisX2[b],"axisX","right",b));this.data[a].axisX=this.axisX2[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX2.length?
|
||||
this.data[a].axisXIndex:0];this.axisX2[0<=this.data[a].axisXIndex&&this.data[a].axisXIndex<this.axisX2.length?this.data[a].axisXIndex:0].dataSeries.push(this.data[a])}else this.axisX2.length||("normal"===this.plotInfo.axisPlacement?this._axes.push(this.axisX2[0]=new B(this,this.options.axisX2,"axisX","top",0)):"xySwapped"===this.plotInfo.axisPlacement&&this._axes.push(this.axisX2[0]=new B(this,this.options.axisX2,"axisX","right",0))),this.data[a].axisX=this.axisX2[0],this.axisX2[0].dataSeries.push(this.data[a])}if(this.axisY){for(b=
|
||||
1;b<this.axisY.length;b++)"undefined"===typeof this.axisY[b].options.gridThickness&&(this.axisY[b].gridThickness=0);for(b=0;b<this.axisY.length-1;b++)"undefined"===typeof this.axisY[b].options.margin&&(this.axisY[b].margin=10)}if(this.axisY2){for(b=1;b<this.axisY2.length;b++)"undefined"===typeof this.axisY2[b].options.gridThickness&&(this.axisY2[b].gridThickness=0);for(b=0;b<this.axisY2.length-1;b++)"undefined"===typeof this.axisY2[b].options.margin&&(this.axisY2[b].margin=10)}this.axisY&&0<this.axisY.length&&
|
||||
(this.axisY2&&0<this.axisY2.length)&&(0<this.axisY[0].gridThickness&&"undefined"===typeof this.axisY2[0].options.gridThickness?this.axisY2[0].gridThickness=0:0<this.axisY2[0].gridThickness&&"undefined"===typeof this.axisY[0].options.gridThickness&&(this.axisY[0].gridThickness=0));if(this.axisX)for(b=0;b<this.axisX.length;b++)"undefined"===typeof this.axisX[b].options.gridThickness&&(this.axisX[b].gridThickness=0);if(this.axisX2)for(b=0;b<this.axisX2.length;b++)"undefined"===typeof this.axisX2[b].options.gridThickness&&
|
||||
(this.axisX2[b].gridThickness=0);this.axisX&&0<this.axisX.length&&(this.axisX2&&0<this.axisX2.length)&&(0<this.axisX[0].gridThickness&&"undefined"===typeof this.axisX2[0].options.gridThickness?this.axisX2[0].gridThickness=0:0<this.axisX2[0].gridThickness&&"undefined"===typeof this.axisX[0].options.gridThickness&&(this.axisX[0].gridThickness=0));b=!1;if(0<this._axes.length&&(this.zoomEnabled||this.panEnabled))for(a=0;a<this._axes.length;a++)if(null!==this._axes[a].viewportMinimum||null!==this._axes[a].viewportMaximum){b=
|
||||
!0;break}b?ta(this._zoomButton,this._resetButton):(Y(this._zoomButton,this._resetButton),this.options.zoomEnabled&&(this.zoomEnabled=!0,this.panEnabled=!1));this._processData();this.options.title&&(this.title=new ma(this,this.options.title),this.title.dockInsidePlotArea?d.push(this.title):this.title.render());if(this.options.subtitles)for(this.subtitles=[],a=0;a<this.options.subtitles.length;a++)b=new va(this,this.options.subtitles[a]),this.subtitles.push(b),b.dockInsidePlotArea?d.push(b):b.render();
|
||||
this.legend=new wa(this,this.options.legend);for(a=0;a<this.data.length;a++)(this.data[a].showInLegend||"pie"===this.data[a].type||"doughnut"===this.data[a].type)&&this.legend.dataSeries.push(this.data[a]);this.legend.dockInsidePlotArea?d.push(this.legend):this.legend.render();if("normal"===this.plotInfo.axisPlacement||"xySwapped"===this.plotInfo.axisPlacement)B.setLayoutAndRender(this.axisX,this.axisX2,this.axisY,this.axisY2,this.plotInfo.axisPlacement,this.layoutManager.getFreeSpace());else if("none"===
|
||||
this.plotInfo.axisPlacement)this.preparePlotArea();else return;for(a=0;a<d.length;a++)d[a].render();var c=[];if(this.animatedRender){var f=ga(this.width,this.height);f.getContext("2d").drawImage(this.canvas,0,0,this.width,this.height)}for(a=0;a<this.plotInfo.plotTypes.length;a++)for(var d=this.plotInfo.plotTypes[a],g=0;g<d.plotUnits.length;g++){var h=d.plotUnits[g],l=null;h.targetCanvas=null;this.animatedRender&&(h.targetCanvas=ga(this.width,this.height),h.targetCanvasCtx=h.targetCanvas.getContext("2d"));
|
||||
"line"===h.type?l=this.renderLine(h):"stepLine"===h.type?l=this.renderStepLine(h):"spline"===h.type?l=this.renderSpline(h):"column"===h.type?l=this.renderColumn(h):"bar"===h.type?l=this.renderBar(h):"area"===h.type?l=this.renderArea(h):"stepArea"===h.type?l=this.renderStepArea(h):"splineArea"===h.type?l=this.renderSplineArea(h):"stackedColumn"===h.type?l=this.renderStackedColumn(h):"stackedColumn100"===h.type?l=this.renderStackedColumn100(h):"stackedBar"===h.type?l=this.renderStackedBar(h):"stackedBar100"===
|
||||
h.type?l=this.renderStackedBar100(h):"stackedArea"===h.type?l=this.renderStackedArea(h):"stackedArea100"===h.type?l=this.renderStackedArea100(h):"bubble"===h.type?l=l=this.renderBubble(h):"scatter"===h.type?l=this.renderScatter(h):"pie"===h.type?this.renderPie(h):"doughnut"===h.type?this.renderPie(h):"candlestick"===h.type?l=this.renderCandlestick(h):"ohlc"===h.type?l=this.renderCandlestick(h):"rangeColumn"===h.type?l=this.renderRangeColumn(h):"rangeBar"===h.type?l=this.renderRangeBar(h):"rangeArea"===
|
||||
h.type?l=this.renderRangeArea(h):"rangeSplineArea"===h.type&&(l=this.renderRangeSplineArea(h));for(b=0;b<h.dataSeriesIndexes.length;b++)this._dataInRenderedOrder.push(this.data[h.dataSeriesIndexes[b]]);this.animatedRender&&l&&c.push(l)}this.animatedRender&&0<this._indexLabels.length&&(a=ga(this.width,this.height).getContext("2d"),c.push(this.renderIndexLabels(a)));var k=this;0<c.length?(k.disableToolTip=!0,k._animator.animate(200,k.animationDuration,function(a){k.ctx.clearRect(0,0,k.width,k.height);
|
||||
k.ctx.drawImage(f,0,0,Math.floor(k.width*Q),Math.floor(k.height*Q),0,0,k.width,k.height);for(var b=0;b<c.length;b++)l=c[b],1>a&&"undefined"!==typeof l.startTimePercent?a>=l.startTimePercent&&l.animationCallback(l.easingFunction(a-l.startTimePercent,0,1,1-l.startTimePercent),l):l.animationCallback(l.easingFunction(a,0,1,1),l);k.dispatchEvent("dataAnimationIterationEnd",{chart:k})},function(){c=[];for(var a=0;a<k.plotInfo.plotTypes.length;a++)for(var b=k.plotInfo.plotTypes[a],d=0;d<b.plotUnits.length;d++)b.plotUnits[d].targetCanvas=
|
||||
null;f=null;k.disableToolTip=!1})):(0<k._indexLabels.length&&k.renderIndexLabels(),k.dispatchEvent("dataAnimationIterationEnd",{chart:k}));this.attachPlotAreaEventHandlers();this.zoomEnabled||(this.panEnabled||!this._zoomButton||"none"===this._zoomButton.style.display)||Y(this._zoomButton,this._resetButton);this.toolTip._updateToolTip();this.renderCount++};A.prototype.attachPlotAreaEventHandlers=function(){this.attachEvent({context:this,chart:this,mousedown:this._plotAreaMouseDown,mouseup:this._plotAreaMouseUp,
|
||||
mousemove:this._plotAreaMouseMove,cursor:this.zoomEnabled?"col-resize":"move",cursor:this.panEnabled?"move":"default",capture:!0,bounds:this.plotArea})};A.prototype.categoriseDataSeries=function(){for(var a="",d=0;d<this.data.length;d++)if(a=this.data[d],a.dataPoints&&(0!==a.dataPoints.length&&a.visible)&&0<=A._supportedChartTypes.indexOf(a.type)){for(var b=null,c=!1,f=null,g=!1,h=0;h<this.plotInfo.plotTypes.length;h++)if(this.plotInfo.plotTypes[h].type===a.type){c=!0;b=this.plotInfo.plotTypes[h];
|
||||
break}c||(b={type:a.type,totalDataSeries:0,plotUnits:[]},this.plotInfo.plotTypes.push(b));for(h=0;h<b.plotUnits.length;h++)if(b.plotUnits[h].axisYType===a.axisYType&&b.plotUnits[h].axisXType===a.axisXType&&b.plotUnits[h].axisYIndex===a.axisYIndex&&b.plotUnits[h].axisXIndex===a.axisXIndex){g=!0;f=b.plotUnits[h];break}g||(f={type:a.type,previousDataSeriesCount:0,index:b.plotUnits.length,plotType:b,axisXType:a.axisXType,axisYType:a.axisYType,axisYIndex:a.axisYIndex,axisXIndex:a.axisXIndex,axisY:"primary"===
|
||||
a.axisYType?this.axisY[0<=a.axisYIndex&&a.axisYIndex<this.axisY.length?a.axisYIndex:0]:this.axisY2[0<=a.axisYIndex&&a.axisYIndex<this.axisY2.length?a.axisYIndex:0],axisX:"primary"===a.axisXType?this.axisX[0<=a.axisXIndex&&a.axisXIndex<this.axisX.length?a.axisXIndex:0]:this.axisX2[0<=a.axisXIndex&&a.axisXIndex<this.axisX2.length?a.axisXIndex:0],dataSeriesIndexes:[],yTotals:[]},b.plotUnits.push(f));b.totalDataSeries++;f.dataSeriesIndexes.push(d);a.plotUnit=f}for(d=0;d<this.plotInfo.plotTypes.length;d++)for(b=
|
||||
this.plotInfo.plotTypes[d],h=a=0;h<b.plotUnits.length;h++)b.plotUnits[h].previousDataSeriesCount=a,a+=b.plotUnits[h].dataSeriesIndexes.length};A.prototype.assignIdToDataPoints=function(){for(var a=0;a<this.data.length;a++){var d=this.data[a];if(d.dataPoints)for(var b=d.dataPoints.length,c=0;c<b;c++)d.dataPointIds[c]=++this._eventManager.lastObjectId}};A.prototype._processData=function(){this.assignIdToDataPoints();this.categoriseDataSeries();for(var a=0;a<this.plotInfo.plotTypes.length;a++)for(var d=
|
||||
this.plotInfo.plotTypes[a],b=0;b<d.plotUnits.length;b++){var c=d.plotUnits[b];"line"===c.type||"stepLine"===c.type||"spline"===c.type||"column"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"bar"===c.type||"bubble"===c.type||"scatter"===c.type?this._processMultiseriesPlotUnit(c):"stackedColumn"===c.type||"stackedBar"===c.type||"stackedArea"===c.type?this._processStackedPlotUnit(c):"stackedColumn100"===c.type||"stackedBar100"===c.type||"stackedArea100"===c.type?this._processStacked100PlotUnit(c):
|
||||
"candlestick"!==c.type&&"ohlc"!==c.type&&"rangeColumn"!==c.type&&"rangeBar"!==c.type&&"rangeArea"!==c.type&&"rangeSplineArea"!==c.type||this._processMultiYPlotUnit(c)}};A.prototype._processMultiseriesPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length))for(var d=a.axisY.dataInfo,b=a.axisX.dataInfo,c,f,g=!1,h=0;h<a.dataSeriesIndexes.length;h++){var l=this.data[a.dataSeriesIndexes[h]],k=0,m=!1,n=!1,p;if("normal"===l.axisPlacement||"xySwapped"===l.axisPlacement)var e=a.axisX.sessionVariables.newViewportMinimum?
|
||||
a.axisX.sessionVariables.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:a.axisX.logarithmic?0:-Infinity,r=a.axisX.sessionVariables.newViewportMaximum?a.axisX.sessionVariables.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;
|
||||
if(l.dataPoints[k].x&&l.dataPoints[k].x.getTime||"dateTime"===l.xValueType)g=!0;for(k=0;k<l.dataPoints.length;k++){"undefined"===typeof l.dataPoints[k].x&&(l.dataPoints[k].x=k+(a.axisX.logarithmic?1:0));l.dataPoints[k].x.getTime?(g=!0,c=l.dataPoints[k].x.getTime()):c=l.dataPoints[k].x;f=l.dataPoints[k].y;c<b.min&&(b.min=c);c>b.max&&(b.max=c);f<d.min&&(d.min=f);f>d.max&&(d.max=f);if(0<k){if(a.axisX.logarithmic){var q=c/l.dataPoints[k-1].x;1>q&&(q=1/q);b.minDiff>q&&1!==q&&(b.minDiff=q)}else q=c-l.dataPoints[k-
|
||||
1].x,0>q&&(q*=-1),b.minDiff>q&&0!==q&&(b.minDiff=q);null!==f&&null!==l.dataPoints[k-1].y&&(a.axisY.logarithmic?(q=f/l.dataPoints[k-1].y,1>q&&(q=1/q),d.minDiff>q&&1!==q&&(d.minDiff=q)):(q=f-l.dataPoints[k-1].y,0>q&&(q*=-1),d.minDiff>q&&0!==q&&(d.minDiff=q)))}if(c<e&&!m)null!==f&&(p=c);else{if(!m&&(m=!0,0<k)){k-=2;continue}if(c>r&&!n)n=!0;else if(c>r&&n)continue;l.dataPoints[k].label&&(a.axisX.labels[c]=l.dataPoints[k].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===
|
||||
f?b.viewPortMin===c&&p<c&&(b.viewPortMin=p):(f<d.viewPortMin&&(d.viewPortMin=f),f>d.viewPortMax&&(d.viewPortMax=f))}}this.plotInfo.axisXValueType=l.xValueType=g?"dateTime":"number"}};A.prototype._processStackedPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)){for(var d=a.axisY.dataInfo,b=a.axisX.dataInfo,c,f,g=!1,h=[],l=[],k=Infinity,m=0;m<a.dataSeriesIndexes.length;m++){var n=this.data[a.dataSeriesIndexes[m]],p=0,e=!1,r=!1,q;if("normal"===n.axisPlacement||"xySwapped"===
|
||||
n.axisPlacement)var s=this.sessionVariables.axisX.newViewportMinimum?this.sessionVariables.axisX.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:-Infinity,v=this.sessionVariables.axisX.newViewportMaximum?this.sessionVariables.axisX.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?
|
||||
this.options.axisX.maximum:Infinity;if(n.dataPoints[p].x&&n.dataPoints[p].x.getTime||"dateTime"===n.xValueType)g=!0;for(p=0;p<n.dataPoints.length;p++){"undefined"===typeof n.dataPoints[p].x&&(n.dataPoints[p].x=p+(a.axisX.logarithmic?1:0));n.dataPoints[p].x.getTime?(g=!0,c=n.dataPoints[p].x.getTime()):c=n.dataPoints[p].x;x(n.dataPoints[p].y)?f=0:(f=n.dataPoints[p].y,0===m&&(k=Math.min(f,k)));c<b.min&&(b.min=c);c>b.max&&(b.max=c);if(0<p){if(a.axisX.logarithmic){var w=c/n.dataPoints[p-1].x;1>w&&(w=1/
|
||||
w);b.minDiff>w&&1!==w&&(b.minDiff=w)}else w=c-n.dataPoints[p-1].x,0>w&&(w*=-1),b.minDiff>w&&0!==w&&(b.minDiff=w);null!==f&&null!==n.dataPoints[p-1].y&&(a.axisY.logarithmic?0<f&&(w=f/n.dataPoints[p-1].y,1>w&&(w=1/w),d.minDiff>w&&1!==w&&(d.minDiff=w)):(w=f-n.dataPoints[p-1].y,0>w&&(w*=-1),d.minDiff>w&&0!==w&&(d.minDiff=w)))}if(c<s&&!e)null!==n.dataPoints[p].y&&(q=c);else{if(!e&&(e=!0,0<p)){p-=2;continue}if(c>v&&!r)r=!0;else if(c>v&&r)continue;n.dataPoints[p].label&&(a.axisX.labels[c]=n.dataPoints[p].label);
|
||||
c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===n.dataPoints[p].y?b.viewPortMin===c&&q<c&&(b.viewPortMin=q):(a.yTotals[c]=(a.yTotals[c]?a.yTotals[c]:0)+Math.abs(f),0<=f?h[c]=h[c]?h[c]+f:f:l[c]=l[c]?l[c]+f:f)}}this.plotInfo.axisXValueType=n.xValueType=g?"dateTime":"number"}for(p in h)h.hasOwnProperty(p)&&!isNaN(p)&&(a=h[p],a<d.min&&(d.min=Math.min(a,k)),a>d.max&&(d.max=a),p<b.viewPortMin||p>b.viewPortMax||(a<d.viewPortMin&&(d.viewPortMin=Math.min(a,k)),a>d.viewPortMax&&
|
||||
(d.viewPortMax=a)));for(p in l)l.hasOwnProperty(p)&&!isNaN(p)&&(a=l[p],a<d.min&&(d.min=Math.min(a,k)),a>d.max&&(d.max=a),p<b.viewPortMin||p>b.viewPortMax||(a<d.viewPortMin&&(d.viewPortMin=Math.min(a,k)),a>d.viewPortMax&&(d.viewPortMax=a)))}};A.prototype._processStacked100PlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length)){for(var d=a.axisY.dataInfo,b=a.axisX.dataInfo,c,f,g=!1,h=!1,l=!1,k=[],m=0;m<a.dataSeriesIndexes.length;m++){var n=this.data[a.dataSeriesIndexes[m]],p=0,
|
||||
e=!1,r=!1,q;if("normal"===n.axisPlacement||"xySwapped"===n.axisPlacement)var s=this.sessionVariables.axisX.newViewportMinimum?this.sessionVariables.axisX.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:-Infinity,v=this.sessionVariables.axisX.newViewportMaximum?this.sessionVariables.axisX.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:
|
||||
this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(n.dataPoints[p].x&&n.dataPoints[p].x.getTime||"dateTime"===n.xValueType)g=!0;for(p=0;p<n.dataPoints.length;p++){"undefined"===typeof n.dataPoints[p].x&&(n.dataPoints[p].x=p+(a.axisX.logarithmic?1:0));n.dataPoints[p].x.getTime?(g=!0,c=n.dataPoints[p].x.getTime()):c=n.dataPoints[p].x;f=x(n.dataPoints[p].y)?null:n.dataPoints[p].y;c<b.min&&(b.min=c);c>b.max&&(b.max=c);if(0<p){if(a.axisX.logarithmic){var w=c/n.dataPoints[p-
|
||||
1].x;1>w&&(w=1/w);b.minDiff>w&&1!==w&&(b.minDiff=w)}else w=c-n.dataPoints[p-1].x,0>w&&(w*=-1),b.minDiff>w&&0!==w&&(b.minDiff=w);x(f)||null===n.dataPoints[p-1].y||(a.axisY.logarithmic?0<f&&(w=f/n.dataPoints[p-1].y,1>w&&(w=1/w),d.minDiff>w&&1!==w&&(d.minDiff=w)):(w=f-n.dataPoints[p-1].y,0>w&&(w*=-1),d.minDiff>w&&0!==w&&(d.minDiff=w)))}if(c<s&&!e)null!==f&&(q=c);else{if(!e&&(e=!0,0<p)){p-=2;continue}if(c>v&&!r)r=!0;else if(c>v&&r)continue;n.dataPoints[p].label&&(a.axisX.labels[c]=n.dataPoints[p].label);
|
||||
c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);null===f?b.viewPortMin===c&&q<c&&(b.viewPortMin=q):(a.yTotals[c]=(a.yTotals[c]?a.yTotals[c]:0)+Math.abs(f),0<=f?h=!0:0>f&&(l=!0),k[c]=k[c]?k[c]+Math.abs(f):Math.abs(f))}}this.plotInfo.axisXValueType=n.xValueType=g?"dateTime":"number"}a.axisY.logarithmic?(d.max=x(d.viewPortMax)?99*Math.pow(a.axisY.logarithmBase,-0.05):Math.max(d.viewPortMax,99*Math.pow(a.axisY.logarithmBase,-0.05)),d.min=x(d.viewPortMin)?1:Math.min(d.viewPortMin,
|
||||
1)):h&&!l?(d.max=x(d.viewPortMax)?99:Math.max(d.viewPortMax,99),d.min=x(d.viewPortMin)?1:Math.min(d.viewPortMin,1)):h&&l?(d.max=x(d.viewPortMax)?99:Math.max(d.viewPortMax,99),d.min=x(d.viewPortMin)?-99:Math.min(d.viewPortMin,-99)):!h&&l&&(d.max=x(d.viewPortMax)?-1:Math.max(d.viewPortMax,-1),d.min=x(d.viewPortMin)?-99:Math.min(d.viewPortMin,-99));d.viewPortMin=d.min;d.viewPortMax=d.max;a.dataPointYSums=k}};A.prototype._processMultiYPlotUnit=function(a){if(a.dataSeriesIndexes&&!(1>a.dataSeriesIndexes.length))for(var d=
|
||||
a.axisY.dataInfo,b=a.axisX.dataInfo,c,f,g,h,l=!1,k=0;k<a.dataSeriesIndexes.length;k++){var m=this.data[a.dataSeriesIndexes[k]],n=0,p=!1,e=!1,r,q,s;if("normal"===m.axisPlacement||"xySwapped"===m.axisPlacement)var v=this.sessionVariables.axisX.newViewportMinimum?this.sessionVariables.axisX.newViewportMinimum:this.options.axisX&&this.options.axisX.viewportMinimum?this.options.axisX.viewportMinimum:this.options.axisX&&this.options.axisX.minimum?this.options.axisX.minimum:-Infinity,w=this.sessionVariables.axisX.newViewportMaximum?
|
||||
this.sessionVariables.axisX.newViewportMaximum:this.options.axisX&&this.options.axisX.viewportMaximum?this.options.axisX.viewportMaximum:this.options.axisX&&this.options.axisX.maximum?this.options.axisX.maximum:Infinity;if(m.dataPoints[n].x&&m.dataPoints[n].x.getTime||"dateTime"===m.xValueType)l=!0;for(n=0;n<m.dataPoints.length;n++){"undefined"===typeof m.dataPoints[n].x&&(m.dataPoints[n].x=n+(a.axisX.logarithmic?1:0));m.dataPoints[n].x.getTime?(l=!0,c=m.dataPoints[n].x.getTime()):c=m.dataPoints[n].x;
|
||||
if((f=m.dataPoints[n].y)&&f.length){g=Math.min.apply(null,f);h=Math.max.apply(null,f);q=!0;for(var y=0;y<f.length;y++)null===f.k&&(q=!1);q&&(p||(s=r),r=c)}c<b.min&&(b.min=c);c>b.max&&(b.max=c);g<d.min&&(d.min=g);h>d.max&&(d.max=h);0<n&&(a.axisX.logarithmic?(q=c/m.dataPoints[n-1].x,1>q&&(q=1/q),b.minDiff>q&&1!==q&&(b.minDiff=q)):(q=c-m.dataPoints[n-1].x,0>q&&(q*=-1),b.minDiff>q&&0!==q&&(b.minDiff=q)),f&&(null!==f[0]&&m.dataPoints[n-1].y&&null!==m.dataPoints[n-1].y[0])&&(a.axisY.logarithmic?(q=f[0]/
|
||||
m.dataPoints[n-1].y[0],1>q&&(q=1/q),d.minDiff>q&&1!==q&&(d.minDiff=q)):(q=f[0]-m.dataPoints[n-1].y[0],0>q&&(q*=-1),d.minDiff>q&&0!==q&&(d.minDiff=q))));if(!(c<v)||p){if(!p&&(p=!0,0<n)){n-=2;r=s;continue}if(c>w&&!e)e=!0;else if(c>w&&e)continue;m.dataPoints[n].label&&(a.axisX.labels[c]=m.dataPoints[n].label);c<b.viewPortMin&&(b.viewPortMin=c);c>b.viewPortMax&&(b.viewPortMax=c);if(b.viewPortMin===c&&f)for(y=0;y<f.length;y++)if(null===f[y]&&r<c){b.viewPortMin=r;break}null===f?b.viewPortMin===c&&r<c&&
|
||||
(b.viewPortMin=r):(g<d.viewPortMin&&(d.viewPortMin=g),h>d.viewPortMax&&(d.viewPortMax=h))}}this.plotInfo.axisXValueType=m.xValueType=l?"dateTime":"number"}};A.prototype.getDataPointAtXY=function(a,d,b){b=b||!1;for(var c=[],f=this._dataInRenderedOrder.length-1;0<=f;f--){var g=null;(g=this._dataInRenderedOrder[f].getDataPointAtXY(a,d,b))&&c.push(g)}a=null;d=!1;for(b=0;b<c.length;b++)if("line"===c[b].dataSeries.type||"stepLine"===c[b].dataSeries.type||"area"===c[b].dataSeries.type||"stepArea"===c[b].dataSeries.type)if(f=
|
||||
L("markerSize",c[b].dataPoint,c[b].dataSeries)||8,c[b].distance<=f/2){d=!0;break}for(b=0;b<c.length;b++)d&&"line"!==c[b].dataSeries.type&&"stepLine"!==c[b].dataSeries.type&&"area"!==c[b].dataSeries.type&&"stepArea"!==c[b].dataSeries.type||(a?c[b].distance<=a.distance&&(a=c[b]):a=c[b]);return a};A.prototype.getObjectAtXY=function(a,d,b){var c=null;if(b=this.getDataPointAtXY(a,d,b||!1))c=b.dataSeries.dataPointIds[b.dataPointIndex];else if(u)c=La(a,d,this._eventManager.ghostCtx);else for(b=0;b<this.legend.items.length;b++){var f=
|
||||
this.legend.items[b];a>=f.x1&&(a<=f.x2&&d>=f.y1&&d<=f.y2)&&(c=f.id)}return c};A.prototype.getAutoFontSize=function(a,d,b){a/=400;return Math.max(10,Math.round(Math.min(this.width,this.height)*a))};A.prototype.resetOverlayedCanvas=function(){this.overlaidCanvasCtx.clearRect(0,0,this.width,this.height)};A.prototype.clearCanvas=function(){this.ctx.clearRect(0,0,this.width,this.height);this.backgroundColor&&(this.ctx.fillStyle=this.backgroundColor,this.ctx.fillRect(0,0,this.width,this.height))};A.prototype.attachEvent=
|
||||
function(a){this._events.push(a)};A.prototype._touchEventHandler=function(a){if(a.changedTouches&&this.interactivityEnabled){var d=[],b=a.changedTouches,c=b?b[0]:a,f=null;switch(a.type){case "touchstart":case "MSPointerDown":d=["mousemove","mousedown"];this._lastTouchData=xa(c);this._lastTouchData.time=new Date;break;case "touchmove":case "MSPointerMove":d=["mousemove"];break;case "touchend":case "MSPointerUp":d="touchstart"===this._lastTouchEventType||"MSPointerDown"===this._lastTouchEventType?["mouseup",
|
||||
"click"]:["mouseup"];break;default:return}if(!(b&&1<b.length)){f=xa(c);f.time=new Date;try{var g=f.y-this._lastTouchData.y,h=f.time-this._lastTouchData.time;if(15<Math.abs(g)&&(this._lastTouchData.scroll||200>h)){this._lastTouchData.scroll=!0;var l=window.parent||window;l&&l.scrollBy&&l.scrollBy(0,-g)}}catch(k){}this._lastTouchEventType=a.type;if(this._lastTouchData.scroll&&this.zoomEnabled)this.isDrag&&this.resetOverlayedCanvas(),this.isDrag=!1;else for(b=0;b<d.length;b++)f=d[b],g=document.createEvent("MouseEvent"),
|
||||
g.initMouseEvent(f,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),c.target.dispatchEvent(g),a.preventManipulation&&a.preventManipulation(),a.preventDefault&&a.preventDefault()}}};A.prototype._dispatchRangeEvent=function(a,d){var b={chart:this};b.type=a;b.trigger=d;var c=[];this.axisX&&0<this.axisX.length&&c.push("axisX");this.axisX2&&0<this.axisX2.length&&c.push("axisX2");this.axisY&&0<this.axisY.length&&c.push("axisY");this.axisY2&&0<this.axisY2.length&&c.push("axisY2");
|
||||
for(var f=0;f<c.length;f++)if(x(b[c[f]])&&(b[c[f]]=[]),"axisY"===c[f])for(var g=0;g<this.axisY.length;g++)b[c[f]].push({viewportMinimum:this[c[f]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[f]][g].sessionVariables.newViewportMaximum});else if("axisY2"===c[f])for(g=0;g<this.axisY2.length;g++)b[c[f]].push({viewportMinimum:this[c[f]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[f]][g].sessionVariables.newViewportMaximum});else if("axisX"===c[f])for(g=0;g<this.axisX.length;g++)b[c[f]].push({viewportMinimum:this[c[f]][g].sessionVariables.newViewportMinimum,
|
||||
viewportMaximum:this[c[f]][g].sessionVariables.newViewportMaximum});else if("axisX2"===c[f])for(g=0;g<this.axisX2.length;g++)b[c[f]].push({viewportMinimum:this[c[f]][g].sessionVariables.newViewportMinimum,viewportMaximum:this[c[f]][g].sessionVariables.newViewportMaximum});this.dispatchEvent(a,b,this)};A.prototype._mouseEventHandler=function(a){"undefined"===typeof a.target&&a.srcElement&&(a.target=a.srcElement);var d=xa(a),b=a.type,c,f;a.which?f=3==a.which:a.button&&(f=2==a.button);A.capturedEventParam&&
|
||||
(c=A.capturedEventParam,"mouseup"===b&&(A.capturedEventParam=null,c.chart.overlaidCanvas.releaseCapture?c.chart.overlaidCanvas.releaseCapture():document.documentElement.removeEventListener("mouseup",c.chart._mouseEventHandler,!1)),c.hasOwnProperty(b)&&("mouseup"!==b||c.chart.overlaidCanvas.releaseCapture?a.target===c.chart.overlaidCanvas&&c[b].call(c.context,d.x,d.y):a.target!==c.chart.overlaidCanvas&&(c.chart.isDrag=!1)));if(this.interactivityEnabled)if(this._ignoreNextEvent)this._ignoreNextEvent=
|
||||
!1;else if(a.preventManipulation&&a.preventManipulation(),a.preventDefault&&a.preventDefault(),!f){if(!A.capturedEventParam&&this._events){for(var g=0;g<this._events.length;g++)if(this._events[g].hasOwnProperty(b))if(c=this._events[g],f=c.bounds,d.x>=f.x1&&d.x<=f.x2&&d.y>=f.y1&&d.y<=f.y2){c[b].call(c.context,d.x,d.y);"mousedown"===b&&!0===c.capture?(A.capturedEventParam=c,this.overlaidCanvas.setCapture?this.overlaidCanvas.setCapture():document.documentElement.addEventListener("mouseup",this._mouseEventHandler,
|
||||
!1)):"mouseup"===b&&(c.chart.overlaidCanvas.releaseCapture?c.chart.overlaidCanvas.releaseCapture():document.documentElement.removeEventListener("mouseup",this._mouseEventHandler,!1));break}else c=null;a.target.style.cursor=c&&c.cursor?c.cursor:this._defaultCursor}b=this.plotArea;if(d.x<b.x1||d.x>b.x2||d.y<b.y1||d.y>b.y2)this.toolTip&&this.toolTip.enabled?this.toolTip.hide():this.resetOverlayedCanvas();this.isDrag&&this.zoomEnabled||!this._eventManager||this._eventManager.mouseEventHandler(a)}};A.prototype._plotAreaMouseDown=
|
||||
function(a,d){this.isDrag=!0;this.dragStartPoint={x:a,y:d}};A.prototype._plotAreaMouseUp=function(a,d){if(("normal"===this.plotInfo.axisPlacement||"xySwapped"===this.plotInfo.axisPlacement)&&this.isDrag){var b=d-this.dragStartPoint.y,c=a-this.dragStartPoint.x,f=0<=this.zoomType.indexOf("x"),g=0<=this.zoomType.indexOf("y"),h=!1;this.resetOverlayedCanvas();if("xySwapped"===this.plotInfo.axisPlacement)var l=g,g=f,f=l;if(this.panEnabled||this.zoomEnabled){if(this.panEnabled)for(f=g=0;f<this._axes.length;f++)b=
|
||||
this._axes[f],b.logarithmic?b.viewportMinimum<b.minimum?(g=b.minimum/b.viewportMinimum,b.sessionVariables.newViewportMinimum=b.viewportMinimum*g,b.sessionVariables.newViewportMaximum=b.viewportMaximum*g,h=!0):b.viewportMaximum>b.maximum&&(g=b.viewportMaximum/b.maximum,b.sessionVariables.newViewportMinimum=b.viewportMinimum/g,b.sessionVariables.newViewportMaximum=b.viewportMaximum/g,h=!0):b.viewportMinimum<b.minimum?(g=b.minimum-b.viewportMinimum,b.sessionVariables.newViewportMinimum=b.viewportMinimum+
|
||||
g,b.sessionVariables.newViewportMaximum=b.viewportMaximum+g,h=!0):b.viewportMaximum>b.maximum&&(g=b.viewportMaximum-b.maximum,b.sessionVariables.newViewportMinimum=b.viewportMinimum-g,b.sessionVariables.newViewportMaximum=b.viewportMaximum-g,h=!0);else if((!f||2<Math.abs(c))&&(!g||2<Math.abs(b))&&this.zoomEnabled){if(!this.dragStartPoint)return;b=f?this.dragStartPoint.x:this.plotArea.x1;c=g?this.dragStartPoint.y:this.plotArea.y1;f=f?a:this.plotArea.x2;g=g?d:this.plotArea.y2;2<Math.abs(b-f)&&2<Math.abs(c-
|
||||
g)&&this._zoomPanToSelectedRegion(b,c,f,g)&&(h=!0)}h&&(this._ignoreNextEvent=!0,this._dispatchRangeEvent("rangeChanging","zoom"),this.render(),this._dispatchRangeEvent("rangeChanged","zoom"),h&&(this.zoomEnabled&&"none"===this._zoomButton.style.display)&&(ta(this._zoomButton,this._resetButton),T(this,this._zoomButton,"pan"),T(this,this._resetButton,"reset")))}}this.isDrag=!1};A.prototype._plotAreaMouseMove=function(a,d){if(this.isDrag&&"none"!==this.plotInfo.axisPlacement){var b=0,c=0,f=b=null,f=
|
||||
0<=this.zoomType.indexOf("x"),g=0<=this.zoomType.indexOf("y"),h=this;"xySwapped"===this.plotInfo.axisPlacement&&(b=g,g=f,f=b);b=this.dragStartPoint.x-a;c=this.dragStartPoint.y-d;2<Math.abs(b)&&8>Math.abs(b)&&(this.panEnabled||this.zoomEnabled)?this.toolTip.hide():this.panEnabled||this.zoomEnabled||this.toolTip.mouseMoveHandler(a,d);if((!f||2<Math.abs(b)||!g||2<Math.abs(c))&&(this.panEnabled||this.zoomEnabled))if(this.panEnabled)f={x1:f?this.plotArea.x1+b:this.plotArea.x1,y1:g?this.plotArea.y1+c:this.plotArea.y1,
|
||||
x2:f?this.plotArea.x2+b:this.plotArea.x2,y2:g?this.plotArea.y2+c:this.plotArea.y2},clearTimeout(h._panTimerId),h._panTimerId=setTimeout(function(b,c,e,f){return function(){h._zoomPanToSelectedRegion(b,c,e,f,!0)&&(h._dispatchRangeEvent("rangeChanging","pan"),h.render(),h._dispatchRangeEvent("rangeChanged","pan"),h.dragStartPoint.x=a,h.dragStartPoint.y=d)}}(f.x1,f.y1,f.x2,f.y2),0);else if(this.zoomEnabled){this.resetOverlayedCanvas();b=this.overlaidCanvasCtx.globalAlpha;this.overlaidCanvasCtx.fillStyle=
|
||||
"#A89896";var c=f?this.dragStartPoint.x:this.plotArea.x1,l=g?this.dragStartPoint.y:this.plotArea.y1,k=f?a-this.dragStartPoint.x:this.plotArea.x2-this.plotArea.x1,m=g?d-this.dragStartPoint.y:this.plotArea.y2-this.plotArea.y1;this.validateRegion(c,l,f?a:this.plotArea.x2-this.plotArea.x1,g?d:this.plotArea.y2-this.plotArea.y1,"xy"!==this.zoomType).isValid&&(this.resetOverlayedCanvas(),this.overlaidCanvasCtx.fillStyle="#99B2B5");this.overlaidCanvasCtx.globalAlpha=0.7;this.overlaidCanvasCtx.fillRect(c,
|
||||
l,k,m);this.overlaidCanvasCtx.globalAlpha=b}}else this.toolTip.mouseMoveHandler(a,d)};A.prototype._zoomPanToSelectedRegion=function(a,d,b,c,f){a=this.validateRegion(a,d,b,c,f);d=a.axesWithValidRange;b=a.axesRanges;if(a.isValid)for(c=0;c<d.length;c++)f=b[c],d[c].setViewPortRange(f.val1,f.val2);return a.isValid};A.prototype.validateRegion=function(a,d,b,c,f){f=f||!1;for(var g=0<=this.zoomType.indexOf("x"),h=0<=this.zoomType.indexOf("y"),l=!1,k=[],m=[],n=[],p=0;p<this.axisX.length;p++)this.axisX[p]&&
|
||||
g&&m.push(this.axisX[p]);for(p=0;p<this.axisX2.length;p++)this.axisX2[p]&&g&&m.push(this.axisX2[p]);for(p=0;p<this.axisY.length;p++)this.axisY[p]&&h&&m.push(this.axisY[p]);for(p=0;p<this.axisY2.length;p++)this.axisY2[p]&&h&&m.push(this.axisY2[p]);for(g=0;g<m.length;g++){var h=m[g],p=h.convertPixelToValue({x:a,y:d}),e=h.convertPixelToValue({x:b,y:c});if(p>e)var r=e,e=p,p=r;if(isFinite(h.dataInfo.minDiff))if(!(h.logarithmic&&e/p<Math.pow(h.dataInfo.minDiff,3)||!h.logarithmic&&Math.abs(e-p)<3*Math.abs(h.dataInfo.minDiff)||
|
||||
p<h.minimum||e>h.maximum))k.push(h),n.push({val1:p,val2:e}),l=!0;else if(!f){l=!1;break}}return{isValid:l,axesWithValidRange:k,axesRanges:n}};A.prototype.preparePlotArea=function(){var a=this.plotArea;!u&&(0<a.x1||0<a.y1)&&a.ctx.translate(a.x1,a.y1);if((this.axisX[0]||this.axisX2[0])&&(this.axisY[0]||this.axisY2[0])){var d=this.axisX[0]?this.axisX[0].lineCoordinates:this.axisX2[0].lineCoordinates;if(this.axisY&&0<this.axisY.length&&this.axisY[0]){var b=this.axisY[0];a.x1=d.x1<d.x2?d.x1:b.lineCoordinates.x1;
|
||||
a.y1=d.y1<b.lineCoordinates.y1?d.y1:b.lineCoordinates.y1;a.x2=d.x2>b.lineCoordinates.x2?d.x2:b.lineCoordinates.x2;a.y2=d.y2>d.y1?d.y2:b.lineCoordinates.y2;a.width=a.x2-a.x1;a.height=a.y2-a.y1}this.axisY2&&0<this.axisY2.length&&this.axisY2[0]&&(b=this.axisY2[0],a.x1=d.x1<d.x2?d.x1:b.lineCoordinates.x1,a.y1=d.y1<b.lineCoordinates.y1?d.y1:b.lineCoordinates.y1,a.x2=d.x2>b.lineCoordinates.x2?d.x2:b.lineCoordinates.x2,a.y2=d.y2>d.y1?d.y2:b.lineCoordinates.y2,a.width=a.x2-a.x1,a.height=a.y2-a.y1)}else d=
|
||||
this.layoutManager.getFreeSpace(),a.x1=d.x1,a.x2=d.x2,a.y1=d.y1,a.y2=d.y2,a.width=d.width,a.height=d.height;u||(a.canvas.width=a.width,a.canvas.height=a.height,a.canvas.style.left=a.x1+"px",a.canvas.style.top=a.y1+"px",(0<a.x1||0<a.y1)&&a.ctx.translate(-a.x1,-a.y1));a.layoutManager=new ja(a.x1,a.y1,a.x2,a.y2,2)};A.prototype.renderIndexLabels=function(a){var d=a||this.plotArea.ctx,b=this.plotArea,c=0,f=0,g=0,h=0,l=c=h=f=g=0,k=0;for(a=0;a<this._indexLabels.length;a++){var m=this._indexLabels[a],n=m.chartType.toLowerCase(),
|
||||
p,e,l=L("indexLabelFontColor",m.dataPoint,m.dataSeries),k=L("indexLabelFontSize",m.dataPoint,m.dataSeries);p=L("indexLabelFontFamily",m.dataPoint,m.dataSeries);e=L("indexLabelFontStyle",m.dataPoint,m.dataSeries);var h=L("indexLabelFontWeight",m.dataPoint,m.dataSeries),r=L("indexLabelBackgroundColor",m.dataPoint,m.dataSeries),f=L("indexLabelMaxWidth",m.dataPoint,m.dataSeries),g=L("indexLabelWrap",m.dataPoint,m.dataSeries),q=L("indexLabelLineDashType",m.dataPoint,m.dataSeries),s=L("indexLabelLineColor",
|
||||
m.dataPoint,m.dataSeries),v=x(m.dataPoint.indexLabelLineThickness)?x(m.dataSeries.options.indexLabelLineThickness)?0:m.dataSeries.options.indexLabelLineThickness:m.dataPoint.indexLabelLineThickness,c=0<v?Math.min(10,("normal"===this.plotInfo.axisPlacement?this.plotArea.height:this.plotArea.width)<<0):0,w={percent:null,total:null},y=null;if(0<=m.dataSeries.type.indexOf("stacked")||"pie"===m.dataSeries.type||"doughnut"===m.dataSeries.type)w=this.getPercentAndTotal(m.dataSeries,m.dataPoint);if(m.dataSeries.indexLabelFormatter||
|
||||
m.dataPoint.indexLabelFormatter)y={chart:this,dataSeries:m.dataSeries,dataPoint:m.dataPoint,index:m.indexKeyword,total:w.total,percent:w.percent};var t=m.dataPoint.indexLabelFormatter?m.dataPoint.indexLabelFormatter(y):m.dataPoint.indexLabel?this.replaceKeywordsWithValue(m.dataPoint.indexLabel,m.dataPoint,m.dataSeries,null,m.indexKeyword):m.dataSeries.indexLabelFormatter?m.dataSeries.indexLabelFormatter(y):m.dataSeries.indexLabel?this.replaceKeywordsWithValue(m.dataSeries.indexLabel,m.dataPoint,m.dataSeries,
|
||||
null,m.indexKeyword):null;if(null!==t&&""!==t){var w=L("indexLabelPlacement",m.dataPoint,m.dataSeries),y=L("indexLabelOrientation",m.dataPoint,m.dataSeries),D=m.direction,Z=m.dataSeries.axisX,aa=m.dataSeries.axisY,z=!1,r=new W(d,{x:0,y:0,maxWidth:f?f:0.5*this.width,maxHeight:g?5*k:1.5*k,angle:"horizontal"===y?0:-90,text:t,padding:0,backgroundColor:r,horizontalAlign:"left",fontSize:k,fontFamily:p,fontWeight:h,fontColor:l,fontStyle:e,textBaseline:"top"});r.measureText();m.dataSeries.indexLabelMaxWidth=
|
||||
r.maxWidth;if(0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("bubble")||0<=n.indexOf("scatter")){if(m.dataPoint.x<Z.viewportMinimum||m.dataPoint.x>Z.viewportMaximum||m.dataPoint.y<aa.viewportMinimum||m.dataPoint.y>aa.viewportMaximum)continue}else if(0<=n.indexOf("column")){if(m.dataPoint.x<Z.viewportMinimum||m.dataPoint.x>Z.viewportMaximum||m.bounds.y1>b.y2||m.bounds.y2<b.y1)continue}else if(0<=n.indexOf("bar")){if(m.dataPoint.x<Z.viewportMinimum||m.dataPoint.x>Z.viewportMaximum||m.bounds.x1>
|
||||
b.x2||m.bounds.x2<b.x1)continue}else if(m.dataPoint.x<Z.viewportMinimum||m.dataPoint.x>Z.viewportMaximum)continue;f=h=2;"horizontal"===y?(l=r.width,k=r.height):(k=r.width,l=r.height);if("normal"===this.plotInfo.axisPlacement){if(0<=n.indexOf("line")||0<=n.indexOf("area"))w="auto",h=4;else if(0<=n.indexOf("stacked"))"auto"===w&&(w="inside");else if("bubble"===n||"scatter"===n)w="inside";p=m.point.x-l/2;"inside"!==w?(f=b.y1,g=b.y2,0<D?(e=m.point.y-k-h-c,e<f&&(e="auto"===w?Math.max(m.point.y,f)+h+c:
|
||||
f+h+c,z=e+k>m.point.y)):(e=m.point.y+h+c,e>g-k-h-c&&(e="auto"===w?Math.min(m.point.y,g)-k-h-c:g-k-h-c,z=e<m.point.y))):(f=Math.max(m.bounds.y1,b.y1),g=Math.min(m.bounds.y2,b.y2),c=0<=n.indexOf("range")?0<D?Math.max(m.bounds.y1,b.y1)+k/2+h:Math.min(m.bounds.y2,b.y2)-k/2-h:(Math.max(m.bounds.y1,b.y1)+Math.min(m.bounds.y2,b.y2))/2,0<D?(e=Math.max(m.point.y,c)-k/2,e<f&&("bubble"===n||"scatter"===n)&&(e=Math.max(m.point.y-k-h,b.y1+h))):(e=Math.min(m.point.y,c)-k/2,e>g-k-h&&("bubble"===n||"scatter"===n)&&
|
||||
(e=Math.min(m.point.y+h,b.y2-k-h))),e=Math.min(e,g-k))}else 0<=n.indexOf("line")||0<=n.indexOf("area")||0<=n.indexOf("scatter")?(w="auto",f=4):0<=n.indexOf("stacked")?"auto"===w&&(w="inside"):"bubble"===n&&(w="inside"),e=m.point.y-k/2,"inside"!==w?(h=b.x1,g=b.x2,0>D?(p=m.point.x-l-f-c,p<h&&(p="auto"===w?Math.max(m.point.x,h)+f+c:h+f+c,z=p+l>m.point.x)):(p=m.point.x+f+c,p>g-l-f-c&&(p="auto"===w?Math.min(m.point.x,g)-l-f-c:g-l-f-c,z=p<m.point.x))):(h=Math.max(m.bounds.x1,b.x1),Math.min(m.bounds.x2,
|
||||
b.x2),c=0<=n.indexOf("range")?0>D?Math.max(m.bounds.x1,b.x1)+l/2+f:Math.min(m.bounds.x2,b.x2)-l/2-f:(Math.max(m.bounds.x1,b.x1)+Math.min(m.bounds.x2,b.x2))/2,p=0>D?Math.max(m.point.x,c)-l/2:Math.min(m.point.x,c)-l/2,p=Math.max(p,h));"vertical"===y&&(e+=k);r.x=p;r.y=e;r.render(!0);v&&("inside"!==w&&(0>n.indexOf("bar")&&m.point.x>b.x1&&m.point.x<b.x2||!z)&&(0>n.indexOf("column")&&m.point.y>b.y1&&m.point.y<b.y2||!z))&&(d.lineWidth=v,d.strokeStyle=s?s:"gray",d.setLineDash&&d.setLineDash(I(q,v)),d.beginPath(),
|
||||
d.moveTo(m.point.x,m.point.y),0<=n.indexOf("bar")?d.lineTo(p+(0<m.direction?0:l),e+("horizontal"===y?k:-k)/2):0<=n.indexOf("column")?d.lineTo(p+l/2,e+((0<m.direction?k:-k)+("horizontal"===y?k:-k))/2):d.lineTo(p+l/2,e+((e<m.point.y?k:-k)+("horizontal"===y?k:-k))/2),d.stroke())}}d={source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,animationBase:0,startTimePercent:0.7};for(a=0;a<this._indexLabels.length;a++)m=this._indexLabels[a],r=L("indexLabelBackgroundColor",
|
||||
m.dataPoint,m.dataSeries),m.dataSeries.indexLabelBackgroundColor=x(r)?u?"transparent":null:r;return d};A.prototype.renderLine=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;d.save();var c=this.plotArea;d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();for(var c=[],f=null,g=0;g<a.dataSeriesIndexes.length;g++){var h=a.dataSeriesIndexes[g],l=this.data[h];d.lineWidth=l.lineThickness;var k=l.dataPoints,m="solid";if(d.setLineDash){var n=
|
||||
I(l.nullDataLineDashType,l.lineThickness),m=l.lineDashType,p=I(m,l.lineThickness);d.setLineDash(p)}var e=l.id;this._eventManager.objectMap[e]={objectType:"dataSeries",dataSeriesIndex:h};e=G(e);b.strokeStyle=e;b.lineWidth=0<l.lineThickness?Math.max(l.lineThickness,4):0;var e=l._colorSet,r=e=l.lineColor=l.options.lineColor?l.options.lineColor:e[0];d.strokeStyle=e;var q=!0,s=0,v,w;d.beginPath();if(0<k.length){for(var y=!1,s=0;s<k.length;s++)if(v=k[s].x.getTime?k[s].x.getTime():k[s].x,!(v<a.axisX.dataInfo.viewPortMin||
|
||||
v>a.axisX.dataInfo.viewPortMax&&(!l.connectNullData||!y)))if("number"!==typeof k[s].y)0<s&&!(l.connectNullData||y||q)&&(d.stroke(),u&&b.stroke()),y=!0;else{v=a.axisX.convertValueToPixel(v);w=a.axisY.convertValueToPixel(k[s].y);var t=l.dataPointIds[s];this._eventManager.objectMap[t]={id:t,objectType:"dataPoint",dataSeriesIndex:h,dataPointIndex:s,x1:v,y1:w};q||y?(!q&&l.connectNullData?(d.setLineDash&&(l.options.nullDataLineDashType||m===l.lineDashType&&l.lineDashType!==l.nullDataLineDashType)&&(d.stroke(),
|
||||
m=l.nullDataLineDashType,d.setLineDash(n)),d.lineTo(v,w),u&&b.lineTo(v,w)):(d.beginPath(),d.moveTo(v,w),u&&(b.beginPath(),b.moveTo(v,w))),y=q=!1):(d.lineTo(v,w),u&&b.lineTo(v,w),0==s%500&&(d.stroke(),d.beginPath(),d.moveTo(v,w),u&&(b.stroke(),b.beginPath(),b.moveTo(v,w))));s<k.length-1&&(r!==(k[s].lineColor||e)||m!==(k[s].lineDashType||l.lineDashType))&&(d.stroke(),d.beginPath(),d.moveTo(v,w),r=k[s].lineColor||e,d.strokeStyle=r,d.setLineDash&&(k[s].lineDashType?(m=k[s].lineDashType,d.setLineDash(I(m,
|
||||
l.lineThickness))):(m=l.lineDashType,d.setLineDash(p))));if(0<k[s].markerSize||0<l.markerSize){var D=l.getMarkerProperties(s,v,w,d),f=D.color;c.push(D);t=G(t);u&&c.push({x:v,y:w,ctx:b,type:D.type,size:D.size,color:t,borderColor:t,borderThickness:D.borderThickness})}(k[s].indexLabel||l.indexLabel||k[s].indexLabelFormatter||l.indexLabelFormatter)&&this._indexLabels.push({chartType:"line",dataPoint:k[s],dataSeries:l,point:{x:v,y:w},direction:0>k[s].y===a.axisY.reversed?1:-1,color:e})}d.stroke();u&&b.stroke()}}P.drawMarkers(c);
|
||||
l.markerColor=f;d.restore();d.beginPath();u&&b.beginPath();return{source:d,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderStepLine=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=this._eventManager.ghostCtx;d.save();var c=this.plotArea;d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();for(var c=[],f=null,g=0;g<a.dataSeriesIndexes.length;g++){var h=a.dataSeriesIndexes[g],
|
||||
l=this.data[h];d.lineWidth=l.lineThickness;var k=l.dataPoints,m="solid";if(d.setLineDash){var n=I(l.nullDataLineDashType,l.lineThickness),m=l.lineDashType,p=I(m,l.lineThickness);d.setLineDash(p)}var e=l.id;this._eventManager.objectMap[e]={objectType:"dataSeries",dataSeriesIndex:h};e=G(e);b.strokeStyle=e;b.lineWidth=0<l.lineThickness?Math.max(l.lineThickness,4):0;var e=l._colorSet,r=e=l.lineColor=l.options.lineColor?l.options.lineColor:e[0];d.strokeStyle=e;var q=!0,s=0,v,w;d.beginPath();if(0<k.length){for(var y=
|
||||
!1,s=0;s<k.length;s++)if(v=k[s].getTime?k[s].x.getTime():k[s].x,!(v<a.axisX.dataInfo.viewPortMin||v>a.axisX.dataInfo.viewPortMax&&(!l.connectNullData||!y)))if("number"!==typeof k[s].y)0<s&&!(l.connectNullData||y||q)&&(d.stroke(),u&&b.stroke()),y=!0;else{var t=w;v=a.axisX.convertValueToPixel(v);w=a.axisY.convertValueToPixel(k[s].y);var D=l.dataPointIds[s];this._eventManager.objectMap[D]={id:D,objectType:"dataPoint",dataSeriesIndex:h,dataPointIndex:s,x1:v,y1:w};q||y?(!q&&l.connectNullData?(d.setLineDash&&
|
||||
(l.options.nullDataLineDashType||m===l.lineDashType&&l.lineDashType!==l.nullDataLineDashType)&&(d.stroke(),m=l.nullDataLineDashType,d.setLineDash(n)),d.lineTo(v,t),d.lineTo(v,w),u&&(b.lineTo(v,t),b.lineTo(v,w))):(d.beginPath(),d.moveTo(v,w),u&&(b.beginPath(),b.moveTo(v,w))),y=q=!1):(d.lineTo(v,t),u&&b.lineTo(v,t),d.lineTo(v,w),u&&b.lineTo(v,w),0==s%500&&(d.stroke(),d.beginPath(),d.moveTo(v,w),u&&(b.stroke(),b.beginPath(),b.moveTo(v,w))));s<k.length-1&&(r!==(k[s].lineColor||e)||m!==(k[s].lineDashType||
|
||||
l.lineDashType))&&(d.stroke(),d.beginPath(),d.moveTo(v,w),r=k[s].lineColor||e,d.strokeStyle=r,d.setLineDash&&(k[s].lineDashType?(m=k[s].lineDashType,d.setLineDash(I(m,l.lineThickness))):(m=l.lineDashType,d.setLineDash(p))));if(0<k[s].markerSize||0<l.markerSize)t=l.getMarkerProperties(s,v,w,d),f=t.color,c.push(t),D=G(D),u&&c.push({x:v,y:w,ctx:b,type:t.type,size:t.size,color:D,borderColor:D,borderThickness:t.borderThickness});(k[s].indexLabel||l.indexLabel||k[s].indexLabelFormatter||l.indexLabelFormatter)&&
|
||||
this._indexLabels.push({chartType:"stepLine",dataPoint:k[s],dataSeries:l,point:{x:v,y:w},direction:0>k[s].y===a.axisY.reversed?1:-1,color:e})}d.stroke();u&&b.stroke()}}P.drawMarkers(c);l.markerColor=f;d.restore();d.beginPath();u&&b.beginPath();return{source:d,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderSpline=function(a){function d(a){a=ua(a,2);if(0<a.length){b.beginPath();u&&c.beginPath();b.moveTo(a[0].x,a[0].y);a[0].newStrokeStyle&&
|
||||
(b.strokeStyle=a[0].newStrokeStyle);a[0].newLineDashArray&&b.setLineDash(a[0].newLineDashArray);u&&c.moveTo(a[0].x,a[0].y);for(var d=0;d<a.length-3;d+=3)if(b.bezierCurveTo(a[d+1].x,a[d+1].y,a[d+2].x,a[d+2].y,a[d+3].x,a[d+3].y),u&&c.bezierCurveTo(a[d+1].x,a[d+1].y,a[d+2].x,a[d+2].y,a[d+3].x,a[d+3].y),0<d&&0===d%3E3||a[d+3].newStrokeStyle||a[d+3].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(a[d+3].x,a[d+3].y),a[d+3].newStrokeStyle&&(b.strokeStyle=a[d+3].newStrokeStyle),a[d+3].newLineDashArray&&
|
||||
b.setLineDash(a[d+3].newLineDashArray),u&&(c.stroke(),c.beginPath(),c.moveTo(a[d+3].x,a[d+3].y));b.stroke();u&&c.stroke()}}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx;b.save();var f=this.plotArea;b.beginPath();b.rect(f.x1,f.y1,f.width,f.height);b.clip();for(var f=[],g=null,h=0;h<a.dataSeriesIndexes.length;h++){var l=a.dataSeriesIndexes[h],k=this.data[l];b.lineWidth=k.lineThickness;var m=k.dataPoints,n="solid";if(b.setLineDash){var p=
|
||||
I(k.nullDataLineDashType,k.lineThickness),n=k.lineDashType,e=I(n,k.lineThickness);b.setLineDash(e)}var r=k.id;this._eventManager.objectMap[r]={objectType:"dataSeries",dataSeriesIndex:l};r=G(r);c.strokeStyle=r;c.lineWidth=0<k.lineThickness?Math.max(k.lineThickness,4):0;var r=k._colorSet,q=r=k.lineColor=k.options.lineColor?k.options.lineColor:r[0];b.strokeStyle=r;var s=0,v,w,y=[];b.beginPath();if(0<m.length)for(w=!1,s=0;s<m.length;s++)if(v=m[s].getTime?m[s].x.getTime():m[s].x,!(v<a.axisX.dataInfo.viewPortMin||
|
||||
v>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||!w)))if("number"!==typeof m[s].y)0<s&&!w&&(k.connectNullData?b.setLineDash&&(0<y.length&&(k.options.nullDataLineDashType||!m[s-1].lineDashType))&&(y[y.length-1].newLineDashArray=p,n=k.nullDataLineDashType):(d(y),y=[])),w=!0;else{v=a.axisX.convertValueToPixel(v);w=a.axisY.convertValueToPixel(m[s].y);var t=k.dataPointIds[s];this._eventManager.objectMap[t]={id:t,objectType:"dataPoint",dataSeriesIndex:l,dataPointIndex:s,x1:v,y1:w};y[y.length]={x:v,
|
||||
y:w};s<m.length-1&&(q!==(m[s].lineColor||r)||n!==(m[s].lineDashType||k.lineDashType))&&(q=m[s].lineColor||r,y[y.length-1].newStrokeStyle=q,b.setLineDash&&(m[s].lineDashType?(n=m[s].lineDashType,y[y.length-1].newLineDashArray=I(n,k.lineThickness)):(n=k.lineDashType,y[y.length-1].newLineDashArray=e)));if(0<m[s].markerSize||0<k.markerSize){var D=k.getMarkerProperties(s,v,w,b),g=D.color;f.push(D);t=G(t);u&&f.push({x:v,y:w,ctx:c,type:D.type,size:D.size,color:t,borderColor:t,borderThickness:D.borderThickness})}(m[s].indexLabel||
|
||||
k.indexLabel||m[s].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"spline",dataPoint:m[s],dataSeries:k,point:{x:v,y:w},direction:0>m[s].y===a.axisY.reversed?1:-1,color:r});w=!1}d(y)}P.drawMarkers(f);k.markerColor=g;b.restore();b.beginPath();u&&c.beginPath();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};var N=function(a,d,b,c,f,g,h,l,k,m,n,p,e){"undefined"===typeof e&&(e=1);h=h||0;l=l||"black";
|
||||
var r=15<c-d&&15<f-b?8:0.35*Math.min(c-d,f-b);a.beginPath();a.moveTo(d,b);a.save();a.fillStyle=g;a.globalAlpha=e;a.fillRect(d,b,c-d,f-b);a.globalAlpha=1;0<h&&(e=0===h%2?0:0.5,a.beginPath(),a.lineWidth=h,a.strokeStyle=l,a.moveTo(d,b),a.rect(d-e,b-e,c-d+2*e,f-b+2*e),a.stroke());a.restore();!0===k&&(a.save(),a.beginPath(),a.moveTo(d,b),a.lineTo(d+r,b+r),a.lineTo(c-r,b+r),a.lineTo(c,b),a.closePath(),h=a.createLinearGradient((c+d)/2,b+r,(c+d)/2,b),h.addColorStop(0,g),h.addColorStop(1,"rgba(255, 255, 255, .4)"),
|
||||
a.fillStyle=h,a.fill(),a.restore());!0===m&&(a.save(),a.beginPath(),a.moveTo(d,f),a.lineTo(d+r,f-r),a.lineTo(c-r,f-r),a.lineTo(c,f),a.closePath(),h=a.createLinearGradient((c+d)/2,f-r,(c+d)/2,f),h.addColorStop(0,g),h.addColorStop(1,"rgba(255, 255, 255, .4)"),a.fillStyle=h,a.fill(),a.restore());!0===n&&(a.save(),a.beginPath(),a.moveTo(d,b),a.lineTo(d+r,b+r),a.lineTo(d+r,f-r),a.lineTo(d,f),a.closePath(),h=a.createLinearGradient(d+r,(f+b)/2,d,(f+b)/2),h.addColorStop(0,g),h.addColorStop(1,"rgba(255, 255, 255, 0.1)"),
|
||||
a.fillStyle=h,a.fill(),a.restore());!0===p&&(a.save(),a.beginPath(),a.moveTo(c,b),a.lineTo(c-r,b+r),a.lineTo(c-r,f-r),a.lineTo(c,f),h=a.createLinearGradient(c-r,(f+b)/2,c,(f+b)/2),h.addColorStop(0,g),h.addColorStop(1,"rgba(255, 255, 255, 0.1)"),a.fillStyle=h,h.addColorStop(0,g),h.addColorStop(1,"rgba(255, 255, 255, 0.1)"),a.fillStyle=h,a.fill(),a.closePath(),a.restore())};A.prototype.renderColumn=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,
|
||||
c=this.plotArea,f=0,g,h,l,k=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),f=this.dataPointMinWidth=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,m=this.dataPointMaxWidth=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:Math.min(0.15*this.width,0.9*(this.plotArea.width/a.plotType.totalDataSeries))<<0,n=a.axisX.dataInfo.minDiff;isFinite(n)||(n=0.3*Math.abs(a.axisX.range));n=this.dataPointWidth=
|
||||
this.dataPointWidth?this.dataPointWidth:0.9*(c.width*(a.axisX.logarithmic?Math.log(n)/Math.log(a.axisX.range):Math.abs(n)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&f>m&&(f=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,m));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&m<f)&&(m=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,f));n<f&&(n=f);n>m&&(n=m);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,
|
||||
c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(c=0;c<a.dataSeriesIndexes.length;c++){var m=a.dataSeriesIndexes[c],p=this.data[m],e=p.dataPoints;if(0<e.length)for(var r=5<n&&p.bevelEnabled?!0:!1,f=0;f<e.length;f++)if(e[f].getTime?l=e[f].x.getTime():l=e[f].x,!(l<a.axisX.dataInfo.viewPortMin||l>a.axisX.dataInfo.viewPortMax)&&"number"===typeof e[f].y){g=a.axisX.convertValueToPixel(l);h=
|
||||
a.axisY.convertValueToPixel(e[f].y);g=a.axisX.reversed?g+a.plotType.totalDataSeries*n/2-(a.previousDataSeriesCount+c)*n<<0:g-a.plotType.totalDataSeries*n/2+(a.previousDataSeriesCount+c)*n<<0;var q=a.axisX.reversed?g-n<<0:g+n<<0,s;0<=e[f].y?s=k:(s=h,h=k);h>s&&(b=h,h=s,s=b);b=e[f].color?e[f].color:p._colorSet[f%p._colorSet.length];N(d,g,h,q,s,b,0,null,r&&0<=e[f].y,0>e[f].y&&r,!1,!1,p.fillOpacity);b=p.dataPointIds[f];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:f,
|
||||
x1:g,y1:h,x2:q,y2:s};b=G(b);u&&N(this._eventManager.ghostCtx,g,h,q,s,b,0,null,!1,!1,!1,!1);(e[f].indexLabel||p.indexLabel||e[f].indexLabelFormatter||p.indexLabelFormatter)&&this._indexLabels.push({chartType:"column",dataPoint:e[f],dataSeries:p,point:{x:g+(q-g)/2,y:0>e[f].y===a.axisY.reversed?h:s},direction:0>e[f].y===a.axisY.reversed?1:-1,bounds:{x1:g,y1:Math.min(h,s),x2:q,y2:Math.max(h,s)},color:b})}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.min(k,a.axisY.bounds.y2);return{source:d,
|
||||
dest:this.plotArea.ctx,animationCallback:F.yScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderStackedColumn=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=[],g=[],h=[],l=0,k,m=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),l=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,n=this.dataPointMaxWidth?this.dataPointMaxWidth:
|
||||
this.dataPointWidth?this.dataPointWidth:0.15*this.width<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth?this.dataPointWidth:0.9*(c.width*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&l>n&&(l=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,n));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&n<l)&&(n=Math.max(this.dataPointWidth?this.dataPointWidth:
|
||||
-Infinity,l));p<l&&(p=l);p>n&&(p=n);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(n=0;n<a.dataSeriesIndexes.length;n++){var e=a.dataSeriesIndexes[n],r=this.data[e],q=r.dataPoints;if(0<q.length){var s=5<p&&r.bevelEnabled?!0:!1;d.strokeStyle="#4572A7 ";for(l=0;l<q.length;l++)if(b=q[l].x.getTime?q[l].x.getTime():
|
||||
q[l].x,!(b<a.axisX.dataInfo.viewPortMin||b>a.axisX.dataInfo.viewPortMax)&&"number"===typeof q[l].y){var c=a.axisX.convertValueToPixel(b),v=c-a.plotType.plotUnits.length*p/2+a.index*p<<0,w=v+p<<0,y;if(a.axisY.logarithmic)h[b]=q[l].y+(h[b]?h[b]:0),0<h[b]&&(k=a.axisY.convertValueToPixel(h[b]),y=f[b]?f[b]:m,f[b]=k);else if(k=a.axisY.convertValueToPixel(q[l].y),0<=q[l].y){var t=f[b]?f[b]:0;k-=t;y=m-t;f[b]=t+(y-k)}else t=g[b]?g[b]:0,y=k+t,k=m+t,g[b]=t+(y-k);b=q[l].color?q[l].color:r._colorSet[l%r._colorSet.length];
|
||||
N(d,v,k,w,y,b,0,null,s&&0<=q[l].y,0>q[l].y&&s,!1,!1,r.fillOpacity);b=r.dataPointIds[l];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:e,dataPointIndex:l,x1:v,y1:k,x2:w,y2:y};b=G(b);u&&N(this._eventManager.ghostCtx,v,k,w,y,b,0,null,!1,!1,!1,!1);(q[l].indexLabel||r.indexLabel||q[l].indexLabelFormatter||r.indexLabelFormatter)&&this._indexLabels.push({chartType:"stackedColumn",dataPoint:q[l],dataSeries:r,point:{x:c,y:0<=q[l].y?k:y},direction:0>q[l].y===a.axisY.reversed?1:
|
||||
-1,bounds:{x1:v,y1:Math.min(k,y),x2:w,y2:Math.max(k,y)},color:b})}}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.min(m,a.axisY.bounds.y2);return{source:d,dest:this.plotArea.ctx,animationCallback:F.yScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderStackedColumn100=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=[],g=[],h=[],l=0,k,m=a.axisY.convertValueToPixel(a.axisY.logarithmic?
|
||||
a.axisY.viewportMinimum:0),l=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,n=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:0.15*this.width<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth?this.dataPointWidth:0.9*(c.width*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&
|
||||
l>n&&(l=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,n));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&n<l)&&(n=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,l));p<l&&(p=l);p>n&&(p=n);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(n=0;n<a.dataSeriesIndexes.length;n++){var e=
|
||||
a.dataSeriesIndexes[n],r=this.data[e],q=r.dataPoints;if(0<q.length)for(var s=5<p&&r.bevelEnabled?!0:!1,l=0;l<q.length;l++)if(b=q[l].x.getTime?q[l].x.getTime():q[l].x,!(b<a.axisX.dataInfo.viewPortMin||b>a.axisX.dataInfo.viewPortMax)&&"number"===typeof q[l].y){c=a.axisX.convertValueToPixel(b);k=0!==a.dataPointYSums[b]?100*(q[l].y/a.dataPointYSums[b]):0;var v=c-a.plotType.plotUnits.length*p/2+a.index*p<<0,w=v+p<<0,y;if(a.axisY.logarithmic){h[b]=k+(h[b]?h[b]:0);if(0>=h[b])continue;k=a.axisY.convertValueToPixel(h[b]);
|
||||
y=f[b]?f[b]:m;f[b]=k}else if(k=a.axisY.convertValueToPixel(k),0<=q[l].y){var t=f[b]?f[b]:0;k-=t;y=m-t;f[b]=t+(y-k)}else t=g[b]?g[b]:0,y=k+t,k=m+t,g[b]=t+(y-k);b=q[l].color?q[l].color:r._colorSet[l%r._colorSet.length];N(d,v,k,w,y,b,0,null,s&&0<=q[l].y,0>q[l].y&&s,!1,!1,r.fillOpacity);b=r.dataPointIds[l];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:e,dataPointIndex:l,x1:v,y1:k,x2:w,y2:y};b=G(b);u&&N(this._eventManager.ghostCtx,v,k,w,y,b,0,null,!1,!1,!1,!1);(q[l].indexLabel||
|
||||
r.indexLabel||q[l].indexLabelFormatter||r.indexLabelFormatter)&&this._indexLabels.push({chartType:"stackedColumn100",dataPoint:q[l],dataSeries:r,point:{x:c,y:0<=q[l].y?k:y},direction:0>q[l].y===a.axisY.reversed?1:-1,bounds:{x1:v,y1:Math.min(k,y),x2:w,y2:Math.max(k,y)},color:b})}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.min(m,a.axisY.bounds.y2);return{source:d,dest:this.plotArea.ctx,animationCallback:F.yScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderBar=
|
||||
function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=0,g,h,l,k=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),f=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,m=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:Math.min(0.15*this.height,0.9*(this.plotArea.height/a.plotType.totalDataSeries))<<0,n=a.axisX.dataInfo.minDiff;isFinite(n)||
|
||||
(n=0.3*Math.abs(a.axisX.range));n=this.dataPointWidth?this.dataPointWidth:0.9*(c.height*(a.axisX.logarithmic?Math.log(n)/Math.log(a.axisX.range):Math.abs(n)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&f>m&&(f=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,m));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&m<f)&&(m=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,f));n<f&&(n=f);n>m&&(n=m);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();
|
||||
d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(c=0;c<a.dataSeriesIndexes.length;c++){var m=a.dataSeriesIndexes[c],p=this.data[m],e=p.dataPoints;if(0<e.length){var r=5<n&&p.bevelEnabled?!0:!1;d.strokeStyle="#4572A7 ";for(f=0;f<e.length;f++)if(e[f].getTime?l=e[f].x.getTime():l=e[f].x,!(l<a.axisX.dataInfo.viewPortMin||l>a.axisX.dataInfo.viewPortMax)&&"number"===
|
||||
typeof e[f].y){h=a.axisX.convertValueToPixel(l);g=a.axisY.convertValueToPixel(e[f].y);h=a.axisX.reversed?h+a.plotType.totalDataSeries*n/2-(a.previousDataSeriesCount+c)*n<<0:h-a.plotType.totalDataSeries*n/2+(a.previousDataSeriesCount+c)*n<<0;var q=a.axisX.reversed?h-n<<0:h+n<<0,s;0<=e[f].y?s=k:(s=g,g=k);b=e[f].color?e[f].color:p._colorSet[f%p._colorSet.length];N(d,s,h,g,q,b,0,null,r,!1,!1,!1,p.fillOpacity);b=p.dataPointIds[f];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:m,
|
||||
dataPointIndex:f,x1:s,y1:h,x2:g,y2:q};b=G(b);u&&N(this._eventManager.ghostCtx,s,h,g,q,b,0,null,!1,!1,!1,!1);(e[f].indexLabel||p.indexLabel||e[f].indexLabelFormatter||p.indexLabelFormatter)&&this._indexLabels.push({chartType:"bar",dataPoint:e[f],dataSeries:p,point:{x:0<=e[f].y?g:s,y:h+(q-h)/2},direction:0>e[f].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(s,g),y1:h,x2:Math.max(s,g),y2:q},color:b})}}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.max(k,a.axisX.bounds.x2);return{source:d,
|
||||
dest:this.plotArea.ctx,animationCallback:F.xScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderStackedBar=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=[],g=[],h=[],l=0,k,m=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),l=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,n=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?
|
||||
this.dataPointWidth:0.15*this.height<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth?this.dataPointWidth:0.9*(c.height*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&l>n&&(l=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,n));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&n<l)&&(n=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,
|
||||
l));p<l&&(p=l);p>n&&(p=n);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(n=0;n<a.dataSeriesIndexes.length;n++){var e=a.dataSeriesIndexes[n],r=this.data[e],q=r.dataPoints;if(0<q.length){var s=5<p&&r.bevelEnabled?!0:!1;d.strokeStyle="#4572A7 ";for(l=0;l<q.length;l++)if(b=q[l].x.getTime?q[l].x.getTime():
|
||||
q[l].x,!(b<a.axisX.dataInfo.viewPortMin||b>a.axisX.dataInfo.viewPortMax)&&"number"===typeof q[l].y){var c=a.axisX.convertValueToPixel(b),v=c-a.plotType.plotUnits.length*p/2+a.index*p<<0,w=v+p<<0,y;if(a.axisY.logarithmic)h[b]=q[l].y+(h[b]?h[b]:0),0<h[b]&&(y=f[b]?f[b]:m,f[b]=k=a.axisY.convertValueToPixel(h[b]));else if(k=a.axisY.convertValueToPixel(q[l].y),0<=q[l].y){var t=f[b]?f[b]:0;y=m+t;k+=t;f[b]=t+(k-y)}else t=g[b]?g[b]:0,y=k-t,k=m-t,g[b]=t+(k-y);b=q[l].color?q[l].color:r._colorSet[l%r._colorSet.length];
|
||||
N(d,y,v,k,w,b,0,null,s,!1,!1,!1,r.fillOpacity);b=r.dataPointIds[l];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:e,dataPointIndex:l,x1:y,y1:v,x2:k,y2:w};b=G(b);u&&N(this._eventManager.ghostCtx,y,v,k,w,b,0,null,!1,!1,!1,!1);(q[l].indexLabel||r.indexLabel||q[l].indexLabelFormatter||r.indexLabelFormatter)&&this._indexLabels.push({chartType:"stackedBar",dataPoint:q[l],dataSeries:r,point:{x:0<=q[l].y?k:y,y:c},direction:0>q[l].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(y,
|
||||
k),y1:v,x2:Math.max(y,k),y2:w},color:b})}}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.max(m,a.axisX.bounds.x2);return{source:d,dest:this.plotArea.ctx,animationCallback:F.xScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderStackedBar100=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=[],g=[],h=[],l=0,k,m=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:
|
||||
0),l=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1,n=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:0.15*this.height<<0,p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth?this.dataPointWidth:0.9*(c.height*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))/a.plotType.plotUnits.length)<<0;this.dataPointMaxWidth&&l>n&&(l=Math.min(this.dataPointWidth?
|
||||
this.dataPointWidth:Infinity,n));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&n<l)&&(n=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,l));p<l&&(p=l);p>n&&(p=n);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(n=0;n<a.dataSeriesIndexes.length;n++){var e=a.dataSeriesIndexes[n],r=this.data[e],
|
||||
q=r.dataPoints;if(0<q.length){var s=5<p&&r.bevelEnabled?!0:!1;d.strokeStyle="#4572A7 ";for(l=0;l<q.length;l++)if(b=q[l].x.getTime?q[l].x.getTime():q[l].x,!(b<a.axisX.dataInfo.viewPortMin||b>a.axisX.dataInfo.viewPortMax)&&"number"===typeof q[l].y){var c=a.axisX.convertValueToPixel(b),v;v=0!==a.dataPointYSums[b]?100*(q[l].y/a.dataPointYSums[b]):0;var w=c-a.plotType.plotUnits.length*p/2+a.index*p<<0,y=w+p<<0;if(a.axisY.logarithmic){h[b]=v+(h[b]?h[b]:0);if(0>=h[b])continue;v=f[b]?f[b]:m;f[b]=k=a.axisY.convertValueToPixel(h[b])}else if(k=
|
||||
a.axisY.convertValueToPixel(v),0<=q[l].y){var t=f[b]?f[b]:0;v=m+t;k+=t;f[b]=t+(k-v)}else t=g[b]?g[b]:0,v=k-t,k=m-t,g[b]=t+(k-v);b=q[l].color?q[l].color:r._colorSet[l%r._colorSet.length];N(d,v,w,k,y,b,0,null,s,!1,!1,!1,r.fillOpacity);b=r.dataPointIds[l];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:e,dataPointIndex:l,x1:v,y1:w,x2:k,y2:y};b=G(b);u&&N(this._eventManager.ghostCtx,v,w,k,y,b,0,null,!1,!1,!1,!1);(q[l].indexLabel||r.indexLabel||q[l].indexLabelFormatter||r.indexLabelFormatter)&&
|
||||
this._indexLabels.push({chartType:"stackedBar100",dataPoint:q[l],dataSeries:r,point:{x:0<=q[l].y?k:v,y:c},direction:0>q[l].y===a.axisY.reversed?1:-1,bounds:{x1:Math.min(v,k),y1:w,x2:Math.max(v,k),y2:y},color:b})}}}d.restore();u&&this._eventManager.ghostCtx.restore();a=Math.max(m,a.axisX.bounds.x2);return{source:d,dest:this.plotArea.ctx,animationCallback:F.xScaleAnimation,easingFunction:F.easing.easeOutQuart,animationBase:a}}};A.prototype.renderArea=function(a){function d(){t&&(0<n.lineThickness&&
|
||||
b.stroke(),a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?y=w:0>a.axisY.viewportMaximum?y=g.y1:0<a.axisY.viewportMinimum&&(y=f.y2),b.lineTo(q,y),b.lineTo(t.x,y),b.closePath(),b.globalAlpha=n.fillOpacity,b.fill(),b.globalAlpha=1,u&&(c.lineTo(q,y),c.lineTo(t.x,y),c.closePath(),c.fill()),b.beginPath(),b.moveTo(q,s),c.beginPath(),c.moveTo(q,s),t={x:q,y:s})}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,f=a.axisX.lineCoordinates,
|
||||
g=a.axisY.lineCoordinates,h=[],l=null,k=this.plotArea;b.save();u&&c.save();b.beginPath();b.rect(k.x1,k.y1,k.width,k.height);b.clip();u&&(c.beginPath(),c.rect(k.x1,k.y1,k.width,k.height),c.clip());for(k=0;k<a.dataSeriesIndexes.length;k++){var m=a.dataSeriesIndexes[k],n=this.data[m],p=n.dataPoints,h=n.id;this._eventManager.objectMap[h]={objectType:"dataSeries",dataSeriesIndex:m};h=G(h);c.fillStyle=h;var h=[],e=!0,r=0,q,s,v,w=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),
|
||||
y,t=null;if(0<p.length){var D=n._colorSet[r%n._colorSet.length],x=n.lineColor=n.options.lineColor||D,aa=x;b.fillStyle=D;b.strokeStyle=x;b.lineWidth=n.lineThickness;var z="solid";if(b.setLineDash){var A=I(n.nullDataLineDashType,n.lineThickness),z=n.lineDashType,R=I(z,n.lineThickness);b.setLineDash(R)}for(var J=!0;r<p.length;r++)if(v=p[r].x.getTime?p[r].x.getTime():p[r].x,!(v<a.axisX.dataInfo.viewPortMin||v>a.axisX.dataInfo.viewPortMax&&(!n.connectNullData||!J)))if("number"!==typeof p[r].y)n.connectNullData||
|
||||
(J||e)||d(),J=!0;else{q=a.axisX.convertValueToPixel(v);s=a.axisY.convertValueToPixel(p[r].y);e||J?(!e&&n.connectNullData?(b.setLineDash&&(n.options.nullDataLineDashType||z===n.lineDashType&&n.lineDashType!==n.nullDataLineDashType)&&(b.stroke(),z=n.nullDataLineDashType,b.setLineDash(A)),b.lineTo(q,s),u&&c.lineTo(q,s)):(b.beginPath(),b.moveTo(q,s),u&&(c.beginPath(),c.moveTo(q,s)),t={x:q,y:s}),J=e=!1):(b.lineTo(q,s),u&&c.lineTo(q,s),0==r%250&&d());r<p.length-1&&(aa!==(p[r].lineColor||x)||z!==(p[r].lineDashType||
|
||||
n.lineDashType))&&(d(),aa=p[r].lineColor||x,b.strokeStyle=aa,b.setLineDash&&(p[r].lineDashType?(z=p[r].lineDashType,b.setLineDash(I(z,n.lineThickness))):(z=n.lineDashType,b.setLineDash(R))));var H=n.dataPointIds[r];this._eventManager.objectMap[H]={id:H,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:r,x1:q,y1:s};0!==p[r].markerSize&&(0<p[r].markerSize||0<n.markerSize)&&(v=n.getMarkerProperties(r,q,s,b),l=v.color,h.push(v),H=G(H),u&&h.push({x:q,y:s,ctx:c,type:v.type,size:v.size,color:H,borderColor:H,
|
||||
borderThickness:v.borderThickness}));(p[r].indexLabel||n.indexLabel||p[r].indexLabelFormatter||n.indexLabelFormatter)&&this._indexLabels.push({chartType:"area",dataPoint:p[r],dataSeries:n,point:{x:q,y:s},direction:0>p[r].y===a.axisY.reversed?1:-1,color:D})}d();P.drawMarkers(h);n.markerColor=l}}b.restore();u&&this._eventManager.ghostCtx.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderSplineArea=
|
||||
function(a){function d(){var d=ua(y,2);if(0<d.length){if(0<n.lineThickness){b.beginPath();b.moveTo(d[0].x,d[0].y);d[0].newStrokeStyle&&(b.strokeStyle=d[0].newStrokeStyle);d[0].newLineDashArray&&b.setLineDash(d[0].newLineDashArray);for(var e=0;e<d.length-3;e+=3)if(b.bezierCurveTo(d[e+1].x,d[e+1].y,d[e+2].x,d[e+2].y,d[e+3].x,d[e+3].y),u&&c.bezierCurveTo(d[e+1].x,d[e+1].y,d[e+2].x,d[e+2].y,d[e+3].x,d[e+3].y),d[e+3].newStrokeStyle||d[e+3].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(d[e+3].x,d[e+
|
||||
3].y),d[e+3].newStrokeStyle&&(b.strokeStyle=d[e+3].newStrokeStyle),d[e+3].newLineDashArray&&b.setLineDash(d[e+3].newLineDashArray);b.stroke()}b.beginPath();b.moveTo(d[0].x,d[0].y);u&&(c.beginPath(),c.moveTo(d[0].x,d[0].y));for(e=0;e<d.length-3;e+=3)b.bezierCurveTo(d[e+1].x,d[e+1].y,d[e+2].x,d[e+2].y,d[e+3].x,d[e+3].y),u&&c.bezierCurveTo(d[e+1].x,d[e+1].y,d[e+2].x,d[e+2].y,d[e+3].x,d[e+3].y);a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?v=s:0>a.axisY.viewportMaximum?v=
|
||||
g.y1:0<a.axisY.viewportMinimum&&(v=f.y2);w={x:d[0].x,y:d[0].y};b.lineTo(d[d.length-1].x,v);b.lineTo(w.x,v);b.closePath();b.globalAlpha=n.fillOpacity;b.fill();b.globalAlpha=1;u&&(c.lineTo(d[d.length-1].x,v),c.lineTo(w.x,v),c.closePath(),c.fill())}}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,f=a.axisX.lineCoordinates,g=a.axisY.lineCoordinates,h=[],l=null,k=this.plotArea;b.save();u&&c.save();b.beginPath();b.rect(k.x1,k.y1,k.width,
|
||||
k.height);b.clip();u&&(c.beginPath(),c.rect(k.x1,k.y1,k.width,k.height),c.clip());for(k=0;k<a.dataSeriesIndexes.length;k++){var m=a.dataSeriesIndexes[k],n=this.data[m],p=n.dataPoints,h=n.id;this._eventManager.objectMap[h]={objectType:"dataSeries",dataSeriesIndex:m};h=G(h);c.fillStyle=h;var h=[],e=0,r,q,s=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),v,w=null,y=[];if(0<p.length){var t=n._colorSet[e%n._colorSet.length],D=n.lineColor=n.options.lineColor||t,x=D;b.fillStyle=
|
||||
t;b.strokeStyle=D;b.lineWidth=n.lineThickness;var z="solid";if(b.setLineDash){var A=I(n.nullDataLineDashType,n.lineThickness),z=n.lineDashType,B=I(z,n.lineThickness);b.setLineDash(B)}for(q=!1;e<p.length;e++)if(r=p[e].x.getTime?p[e].x.getTime():p[e].x,!(r<a.axisX.dataInfo.viewPortMin||r>a.axisX.dataInfo.viewPortMax&&(!n.connectNullData||!q)))if("number"!==typeof p[e].y)0<e&&!q&&(n.connectNullData?b.setLineDash&&(0<y.length&&(n.options.nullDataLineDashType||!p[e-1].lineDashType))&&(y[y.length-1].newLineDashArray=
|
||||
A,z=n.nullDataLineDashType):(d(),y=[])),q=!0;else{r=a.axisX.convertValueToPixel(r);q=a.axisY.convertValueToPixel(p[e].y);var R=n.dataPointIds[e];this._eventManager.objectMap[R]={id:R,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:e,x1:r,y1:q};y[y.length]={x:r,y:q};e<p.length-1&&(x!==(p[e].lineColor||D)||z!==(p[e].lineDashType||n.lineDashType))&&(x=p[e].lineColor||D,y[y.length-1].newStrokeStyle=x,b.setLineDash&&(p[e].lineDashType?(z=p[e].lineDashType,y[y.length-1].newLineDashArray=I(z,n.lineThickness)):
|
||||
(z=n.lineDashType,y[y.length-1].newLineDashArray=B)));if(0!==p[e].markerSize&&(0<p[e].markerSize||0<n.markerSize)){var J=n.getMarkerProperties(e,r,q,b),l=J.color;h.push(J);R=G(R);u&&h.push({x:r,y:q,ctx:c,type:J.type,size:J.size,color:R,borderColor:R,borderThickness:J.borderThickness})}(p[e].indexLabel||n.indexLabel||p[e].indexLabelFormatter||n.indexLabelFormatter)&&this._indexLabels.push({chartType:"splineArea",dataPoint:p[e],dataSeries:n,point:{x:r,y:q},direction:0>p[e].y===a.axisY.reversed?1:-1,
|
||||
color:t});q=!1}d();P.drawMarkers(h);n.markerColor=l}}b.restore();u&&this._eventManager.ghostCtx.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderStepArea=function(a){function d(){t&&(0<n.lineThickness&&b.stroke(),a.axisY.logarithmic||0>=a.axisY.viewportMinimum&&0<=a.axisY.viewportMaximum?y=w:0>a.axisY.viewportMaximum?y=g.y1:0<a.axisY.viewportMinimum&&(y=f.y2),b.lineTo(q,y),b.lineTo(t.x,y),b.closePath(),
|
||||
b.globalAlpha=n.fillOpacity,b.fill(),b.globalAlpha=1,u&&(c.lineTo(q,y),c.lineTo(t.x,y),c.closePath(),c.fill()),b.beginPath(),b.moveTo(q,s),c.beginPath(),c.moveTo(q,s),t={x:q,y:s})}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,f=a.axisX.lineCoordinates,g=a.axisY.lineCoordinates,h=[],l=null,k=this.plotArea;b.save();u&&c.save();b.beginPath();b.rect(k.x1,k.y1,k.width,k.height);b.clip();u&&(c.beginPath(),c.rect(k.x1,k.y1,k.width,k.height),
|
||||
c.clip());for(k=0;k<a.dataSeriesIndexes.length;k++){var m=a.dataSeriesIndexes[k],n=this.data[m],p=n.dataPoints,h=n.id;this._eventManager.objectMap[h]={objectType:"dataSeries",dataSeriesIndex:m};h=G(h);c.fillStyle=h;var h=[],e=!0,r=0,q,s,v,w=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),y,t=null,D=!1;if(0<p.length){var x=n._colorSet[r%n._colorSet.length],z=n.lineColor=n.options.lineColor||x,A=z;b.fillStyle=x;b.strokeStyle=z;b.lineWidth=n.lineThickness;var B="solid";if(b.setLineDash){var R=
|
||||
I(n.nullDataLineDashType,n.lineThickness),B=n.lineDashType,J=I(B,n.lineThickness);b.setLineDash(J)}for(;r<p.length;r++)if(v=p[r].x.getTime?p[r].x.getTime():p[r].x,!(v<a.axisX.dataInfo.viewPortMin||v>a.axisX.dataInfo.viewPortMax&&(!n.connectNullData||!D))){var H=s;"number"!==typeof p[r].y?(n.connectNullData||(D||e)||d(),D=!0):(q=a.axisX.convertValueToPixel(v),s=a.axisY.convertValueToPixel(p[r].y),e||D?(!e&&n.connectNullData?(b.setLineDash&&(n.options.nullDataLineDashType||B===n.lineDashType&&n.lineDashType!==
|
||||
n.nullDataLineDashType)&&(b.stroke(),B=n.nullDataLineDashType,b.setLineDash(R)),b.lineTo(q,H),b.lineTo(q,s),u&&(c.lineTo(q,H),c.lineTo(q,s))):(b.beginPath(),b.moveTo(q,s),u&&(c.beginPath(),c.moveTo(q,s)),t={x:q,y:s}),D=e=!1):(b.lineTo(q,H),u&&c.lineTo(q,H),b.lineTo(q,s),u&&c.lineTo(q,s),0==r%250&&d()),r<p.length-1&&(A!==(p[r].lineColor||z)||B!==(p[r].lineDashType||n.lineDashType))&&(d(),A=p[r].lineColor||z,b.strokeStyle=A,b.setLineDash&&(p[r].lineDashType?(B=p[r].lineDashType,b.setLineDash(I(B,n.lineThickness))):
|
||||
(B=n.lineDashType,b.setLineDash(J)))),H=n.dataPointIds[r],this._eventManager.objectMap[H]={id:H,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:r,x1:q,y1:s},0!==p[r].markerSize&&(0<p[r].markerSize||0<n.markerSize)&&(v=n.getMarkerProperties(r,q,s,b),l=v.color,h.push(v),H=G(H),u&&h.push({x:q,y:s,ctx:c,type:v.type,size:v.size,color:H,borderColor:H,borderThickness:v.borderThickness})),(p[r].indexLabel||n.indexLabel||p[r].indexLabelFormatter||n.indexLabelFormatter)&&this._indexLabels.push({chartType:"stepArea",
|
||||
dataPoint:p[r],dataSeries:n,point:{x:q,y:s},direction:0>p[r].y===a.axisY.reversed?1:-1,color:x}))}d();P.drawMarkers(h);n.markerColor=l}}b.restore();u&&this._eventManager.ghostCtx.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderStackedArea=function(a){function d(){if(!(1>k.length)){for(0<t.lineThickness&&b.stroke();0<k.length;){var a=k.pop();b.lineTo(a.x,a.y);u&&v.lineTo(a.x,a.y)}b.closePath();b.globalAlpha=
|
||||
t.fillOpacity;b.fill();b.globalAlpha=1;b.beginPath();u&&(v.closePath(),v.fill(),v.beginPath());k=[]}}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=null,f=[],g=null,h=this.plotArea,l=[],k=[],m=[],n=[],p=0,e,r,q,s=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),v=this._eventManager.ghostCtx;u&&v.beginPath();b.save();u&&v.save();b.beginPath();b.rect(h.x1,h.y1,h.width,h.height);b.clip();u&&(v.beginPath(),v.rect(h.x1,h.y1,h.width,h.height),
|
||||
v.clip());for(var w=[],h=0;h<a.dataSeriesIndexes.length;h++){var y=a.dataSeriesIndexes[h],t=this.data[y],D=t.dataPoints;t.dataPointIndexes=[];for(p=0;p<D.length;p++)y=D[p].x.getTime?D[p].x.getTime():D[p].x,t.dataPointIndexes[y]=p,w[y]||(m.push(y),w[y]=!0);m.sort(ya)}for(h=0;h<a.dataSeriesIndexes.length;h++){y=a.dataSeriesIndexes[h];t=this.data[y];D=t.dataPoints;w=!0;k=[];p=t.id;this._eventManager.objectMap[p]={objectType:"dataSeries",dataSeriesIndex:y};p=G(p);v.fillStyle=p;if(0<m.length){var c=t._colorSet[0],
|
||||
x=t.lineColor=t.options.lineColor||c,z=x;b.fillStyle=c;b.strokeStyle=x;b.lineWidth=t.lineThickness;var A="solid";if(b.setLineDash){var B=I(t.nullDataLineDashType,t.lineThickness),A=t.lineDashType,R=I(A,t.lineThickness);b.setLineDash(R)}for(var J=!0,p=0;p<m.length;p++){q=m[p];var H=null,H=0<=t.dataPointIndexes[q]?D[t.dataPointIndexes[q]]:{x:q,y:null};if(!(q<a.axisX.dataInfo.viewPortMin||q>a.axisX.dataInfo.viewPortMax&&(!t.connectNullData||!J)))if("number"!==typeof H.y)t.connectNullData||(J||w)||d(),
|
||||
J=!0;else{e=a.axisX.convertValueToPixel(q);var ea=l[q]?l[q]:0;if(a.axisY.logarithmic){n[q]=H.y+(n[q]?n[q]:0);if(0>=n[q])continue;r=a.axisY.convertValueToPixel(n[q])}else r=a.axisY.convertValueToPixel(H.y),r-=ea;k.push({x:e,y:s-ea});l[q]=s-r;w||J?(!w&&t.connectNullData?(b.setLineDash&&(t.options.nullDataLineDashType||A===t.lineDashType&&t.lineDashType!==t.nullDataLineDashType)&&(b.stroke(),A=t.nullDataLineDashType,b.setLineDash(B)),b.lineTo(e,r),u&&v.lineTo(e,r)):(b.beginPath(),b.moveTo(e,r),u&&(v.beginPath(),
|
||||
v.moveTo(e,r))),J=w=!1):(b.lineTo(e,r),u&&v.lineTo(e,r),0==p%250&&(d(),b.moveTo(e,r),u&&v.moveTo(e,r),k.push({x:e,y:s-ea})));p<D.length-1&&(z!==(D[p].lineColor||x)||A!==(D[p].lineDashType||t.lineDashType))&&(d(),b.beginPath(),b.moveTo(e,r),k.push({x:e,y:s-ea}),z=D[p].lineColor||x,b.strokeStyle=z,b.setLineDash&&(D[p].lineDashType?(A=D[p].lineDashType,b.setLineDash(I(A,t.lineThickness))):(A=t.lineDashType,b.setLineDash(R))));if(0<=t.dataPointIndexes[q]){var fa=t.dataPointIds[t.dataPointIndexes[q]];
|
||||
this._eventManager.objectMap[fa]={id:fa,objectType:"dataPoint",dataSeriesIndex:y,dataPointIndex:t.dataPointIndexes[q],x1:e,y1:r}}0<=t.dataPointIndexes[q]&&0!==H.markerSize&&(0<H.markerSize||0<t.markerSize)&&(q=t.getMarkerProperties(t.dataPointIndexes[q],e,r,b),g=q.color,f.push(q),markerColor=G(fa),u&&f.push({x:e,y:r,ctx:v,type:q.type,size:q.size,color:markerColor,borderColor:markerColor,borderThickness:q.borderThickness}));(H.indexLabel||t.indexLabel||H.indexLabelFormatter||t.indexLabelFormatter)&&
|
||||
this._indexLabels.push({chartType:"stackedArea",dataPoint:H,dataSeries:t,point:{x:e,y:r},direction:0>D[p].y===a.axisY.reversed?1:-1,color:c})}}d();b.moveTo(e,r);u&&v.moveTo(e,r)}delete t.dataPointIndexes;t.markerColor=g}P.drawMarkers(f);b.restore();u&&v.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderStackedArea100=function(a){function d(){for(0<t.lineThickness&&b.stroke();0<k.length;){var a=k.pop();
|
||||
b.lineTo(a.x,a.y);u&&v.lineTo(a.x,a.y)}b.closePath();b.globalAlpha=t.fillOpacity;b.fill();b.globalAlpha=1;b.beginPath();u&&(v.closePath(),v.fill(),v.beginPath());k=[]}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=null,f=this.plotArea,g=[],h=null,l=[],k=[],m=[],n=[],p=0,e,r,q,s=a.axisY.convertValueToPixel(a.axisY.logarithmic?a.axisY.viewportMinimum:0),v=this._eventManager.ghostCtx;b.save();u&&v.save();b.beginPath();b.rect(f.x1,f.y1,f.width,f.height);b.clip();
|
||||
u&&(v.beginPath(),v.rect(f.x1,f.y1,f.width,f.height),v.clip());for(var w=[],f=0;f<a.dataSeriesIndexes.length;f++){var y=a.dataSeriesIndexes[f],t=this.data[y],x=t.dataPoints;t.dataPointIndexes=[];for(p=0;p<x.length;p++)y=x[p].x.getTime?x[p].x.getTime():x[p].x,t.dataPointIndexes[y]=p,w[y]||(m.push(y),w[y]=!0);m.sort(ya)}for(f=0;f<a.dataSeriesIndexes.length;f++){y=a.dataSeriesIndexes[f];t=this.data[y];x=t.dataPoints;w=!0;c=t.id;this._eventManager.objectMap[c]={objectType:"dataSeries",dataSeriesIndex:y};
|
||||
c=G(c);v.fillStyle=c;k=[];if(0<m.length){var c=t._colorSet[p%t._colorSet.length],z=t.lineColor=t.options.lineColor||c,A=z;b.fillStyle=c;b.strokeStyle=z;b.lineWidth=t.lineThickness;var B="solid";if(b.setLineDash){var E=I(t.nullDataLineDashType,t.lineThickness),B=t.lineDashType,R=I(B,t.lineThickness);b.setLineDash(R)}for(var J=!0,p=0;p<m.length;p++){q=m[p];var H=null,H=0<=t.dataPointIndexes[q]?x[t.dataPointIndexes[q]]:{x:q,y:null};if(!(q<a.axisX.dataInfo.viewPortMin||q>a.axisX.dataInfo.viewPortMax&&
|
||||
(!t.connectNullData||!J)))if("number"!==typeof H.y)t.connectNullData||(J||w)||d(),J=!0;else{var ea;ea=0!==a.dataPointYSums[q]?100*(H.y/a.dataPointYSums[q]):0;e=a.axisX.convertValueToPixel(q);var fa=l[q]?l[q]:0;if(a.axisY.logarithmic){n[q]=ea+(n[q]?n[q]:0);if(0>=n[q])continue;r=a.axisY.convertValueToPixel(n[q])}else r=a.axisY.convertValueToPixel(ea),r-=fa;k.push({x:e,y:s-fa});l[q]=s-r;w||J?(!w&&t.connectNullData?(b.setLineDash&&(t.options.nullDataLineDashType||B===t.lineDashType&&t.lineDashType!==
|
||||
t.nullDataLineDashType)&&(b.stroke(),B=t.nullDataLineDashType,b.setLineDash(E)),b.lineTo(e,r),u&&v.lineTo(e,r)):(b.beginPath(),b.moveTo(e,r),u&&(v.beginPath(),v.moveTo(e,r))),J=w=!1):(b.lineTo(e,r),u&&v.lineTo(e,r),0==p%250&&(d(),b.moveTo(e,r),u&&v.moveTo(e,r),k.push({x:e,y:s-fa})));p<x.length-1&&(A!==(x[p].lineColor||z)||B!==(x[p].lineDashType||t.lineDashType))&&(d(),b.beginPath(),b.moveTo(e,r),k.push({x:e,y:s-fa}),A=x[p].lineColor||z,b.strokeStyle=A,b.setLineDash&&(x[p].lineDashType?(B=x[p].lineDashType,
|
||||
b.setLineDash(I(B,t.lineThickness))):(B=t.lineDashType,b.setLineDash(R))));if(0<=t.dataPointIndexes[q]){var Fa=t.dataPointIds[t.dataPointIndexes[q]];this._eventManager.objectMap[Fa]={id:Fa,objectType:"dataPoint",dataSeriesIndex:y,dataPointIndex:t.dataPointIndexes[q],x1:e,y1:r}}0<=t.dataPointIndexes[q]&&0!==H.markerSize&&(0<H.markerSize||0<t.markerSize)&&(q=t.getMarkerProperties(p,e,r,b),h=q.color,g.push(q),markerColor=G(Fa),u&&g.push({x:e,y:r,ctx:v,type:q.type,size:q.size,color:markerColor,borderColor:markerColor,
|
||||
borderThickness:q.borderThickness}));(H.indexLabel||t.indexLabel||H.indexLabelFormatter||t.indexLabelFormatter)&&this._indexLabels.push({chartType:"stackedArea100",dataPoint:H,dataSeries:t,point:{x:e,y:r},direction:0>x[p].y===a.axisY.reversed?1:-1,color:c})}}d();b.moveTo(e,r);u&&v.moveTo(e,r)}delete t.dataPointIndexes;t.markerColor=h}P.drawMarkers(g);b.restore();u&&v.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};
|
||||
A.prototype.renderBubble=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=this.plotArea,c=0,f,g;d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(b.x1,b.y1,b.width,b.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(b.x1,b.y1,b.width,b.height),this._eventManager.ghostCtx.clip());for(var h=-Infinity,l=Infinity,k=0;k<a.dataSeriesIndexes.length;k++)for(var m=a.dataSeriesIndexes[k],n=this.data[m],
|
||||
p=n.dataPoints,e=0,c=0;c<p.length;c++)f=p[c].getTime?f=p[c].x.getTime():f=p[c].x,f<a.axisX.dataInfo.viewPortMin||f>a.axisX.dataInfo.viewPortMax||"undefined"===typeof p[c].z||(e=p[c].z,e>h&&(h=e),e<l&&(l=e));for(var r=25*Math.PI,b=Math.max(Math.pow(0.25*Math.min(b.height,b.width)/2,2)*Math.PI,r),k=0;k<a.dataSeriesIndexes.length;k++)if(m=a.dataSeriesIndexes[k],n=this.data[m],p=n.dataPoints,0<p.length)for(d.strokeStyle="#4572A7 ",c=0;c<p.length;c++)if(f=p[c].getTime?f=p[c].x.getTime():f=p[c].x,!(f<a.axisX.dataInfo.viewPortMin||
|
||||
f>a.axisX.dataInfo.viewPortMax)&&"number"===typeof p[c].y){f=a.axisX.convertValueToPixel(f);g=a.axisY.convertValueToPixel(p[c].y);var e=p[c].z,q=2*Math.max(Math.sqrt((h===l?b/2:r+(b-r)/(h-l)*(e-l))/Math.PI)<<0,1),e=n.getMarkerProperties(c,d);e.size=q;d.globalAlpha=n.fillOpacity;P.drawMarker(f,g,d,e.type,e.size,e.color,e.borderColor,e.borderThickness);d.globalAlpha=1;var s=n.dataPointIds[c];this._eventManager.objectMap[s]={id:s,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:c,x1:f,y1:g,size:q};
|
||||
q=G(s);u&&P.drawMarker(f,g,this._eventManager.ghostCtx,e.type,e.size,q,q,e.borderThickness);(p[c].indexLabel||n.indexLabel||p[c].indexLabelFormatter||n.indexLabelFormatter)&&this._indexLabels.push({chartType:"bubble",dataPoint:p[c],dataSeries:n,point:{x:f,y:g},direction:1,bounds:{x1:f-e.size/2,y1:g-e.size/2,x2:f+e.size/2,y2:g+e.size/2},color:null})}d.restore();u&&this._eventManager.ghostCtx.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,
|
||||
animationBase:0}}};A.prototype.renderScatter=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=this.plotArea,c=0,f,g;d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(b.x1,b.y1,b.width,b.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(b.x1,b.y1,b.width,b.height),this._eventManager.ghostCtx.clip());for(var h=0;h<a.dataSeriesIndexes.length;h++){var l=a.dataSeriesIndexes[h],k=this.data[l],
|
||||
m=k.dataPoints;if(0<m.length){d.strokeStyle="#4572A7 ";Math.pow(0.3*Math.min(b.height,b.width)/2,2);for(var n=0,p=0,c=0;c<m.length;c++)if(f=m[c].getTime?f=m[c].x.getTime():f=m[c].x,!(f<a.axisX.dataInfo.viewPortMin||f>a.axisX.dataInfo.viewPortMax)&&"number"===typeof m[c].y){f=a.axisX.convertValueToPixel(f);g=a.axisY.convertValueToPixel(m[c].y);var e=k.getMarkerProperties(c,f,g,d);d.globalAlpha=k.fillOpacity;P.drawMarker(e.x,e.y,e.ctx,e.type,e.size,e.color,e.borderColor,e.borderThickness);d.globalAlpha=
|
||||
1;Math.sqrt((n-f)*(n-f)+(p-g)*(p-g))<Math.min(e.size,5)&&m.length>Math.min(this.plotArea.width,this.plotArea.height)||(n=k.dataPointIds[c],this._eventManager.objectMap[n]={id:n,objectType:"dataPoint",dataSeriesIndex:l,dataPointIndex:c,x1:f,y1:g},n=G(n),u&&P.drawMarker(e.x,e.y,this._eventManager.ghostCtx,e.type,e.size,n,n,e.borderThickness),(m[c].indexLabel||k.indexLabel||m[c].indexLabelFormatter||k.indexLabelFormatter)&&this._indexLabels.push({chartType:"scatter",dataPoint:m[c],dataSeries:k,point:{x:f,
|
||||
y:g},direction:1,bounds:{x1:f-e.size/2,y1:g-e.size/2,x2:f+e.size/2,y2:g+e.size/2},color:null}),n=f,p=g)}}}d.restore();u&&this._eventManager.ghostCtx.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,animationBase:0}}};A.prototype.renderCandlestick=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx,b=this._eventManager.ghostCtx;if(!(0>=a.dataSeriesIndexes.length)){var c=null,c=this.plotArea,f=0,g,h,l,k,m,n,f=this.dataPointMinWidth?
|
||||
this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1;g=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:0.015*this.width;var p=a.axisX.dataInfo.minDiff;isFinite(p)||(p=0.3*Math.abs(a.axisX.range));p=this.dataPointWidth?this.dataPointWidth:0.7*c.width*(a.axisX.logarithmic?Math.log(p)/Math.log(a.axisX.range):Math.abs(p)/Math.abs(a.axisX.range))<<0;this.dataPointMaxWidth&&f>g&&(f=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,g));!this.dataPointMaxWidth&&
|
||||
(this.dataPointMinWidth&&g<f)&&(g=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,f));p<f&&(p=f);p>g&&(p=g);d.save();u&&b.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(b.beginPath(),b.rect(c.x1,c.y1,c.width,c.height),b.clip());for(var e=0;e<a.dataSeriesIndexes.length;e++){var r=a.dataSeriesIndexes[e],q=this.data[r],s=q.dataPoints;if(0<s.length)for(var v=5<p&&q.bevelEnabled?!0:!1,f=0;f<s.length;f++)if(s[f].getTime?n=s[f].x.getTime():n=s[f].x,!(n<a.axisX.dataInfo.viewPortMin||
|
||||
n>a.axisX.dataInfo.viewPortMax)&&null!==s[f].y&&s[f].y.length&&"number"===typeof s[f].y[0]&&"number"===typeof s[f].y[1]&&"number"===typeof s[f].y[2]&&"number"===typeof s[f].y[3]){g=a.axisX.convertValueToPixel(n);h=a.axisY.convertValueToPixel(s[f].y[0]);l=a.axisY.convertValueToPixel(s[f].y[1]);k=a.axisY.convertValueToPixel(s[f].y[2]);m=a.axisY.convertValueToPixel(s[f].y[3]);var w=g-p/2<<0,y=w+p<<0,c=s[f].color?s[f].color:q._colorSet[0],t=Math.round(Math.max(1,0.15*p)),x=0===t%2?0:0.5,z=q.dataPointIds[f];
|
||||
this._eventManager.objectMap[z]={id:z,objectType:"dataPoint",dataSeriesIndex:r,dataPointIndex:f,x1:w,y1:h,x2:y,y2:l,x3:g,y3:k,x4:g,y4:m,borderThickness:t,color:c};d.strokeStyle=c;d.beginPath();d.lineWidth=t;b.lineWidth=Math.max(t,4);"candlestick"===q.type?(d.moveTo(g-x,l),d.lineTo(g-x,Math.min(h,m)),d.stroke(),d.moveTo(g-x,Math.max(h,m)),d.lineTo(g-x,k),d.stroke(),N(d,w,Math.min(h,m),y,Math.max(h,m),s[f].y[0]<=s[f].y[3]?q.risingColor:c,t,c,v,v,!1,!1,q.fillOpacity),u&&(c=G(z),b.strokeStyle=c,b.moveTo(g-
|
||||
x,l),b.lineTo(g-x,Math.min(h,m)),b.stroke(),b.moveTo(g-x,Math.max(h,m)),b.lineTo(g-x,k),b.stroke(),N(b,w,Math.min(h,m),y,Math.max(h,m),c,0,null,!1,!1,!1,!1))):"ohlc"===q.type&&(d.moveTo(g-x,l),d.lineTo(g-x,k),d.stroke(),d.beginPath(),d.moveTo(g,h),d.lineTo(w,h),d.stroke(),d.beginPath(),d.moveTo(g,m),d.lineTo(y,m),d.stroke(),u&&(c=G(z),b.strokeStyle=c,b.moveTo(g-x,l),b.lineTo(g-x,k),b.stroke(),b.beginPath(),b.moveTo(g,h),b.lineTo(w,h),b.stroke(),b.beginPath(),b.moveTo(g,m),b.lineTo(y,m),b.stroke()));
|
||||
(s[f].indexLabel||q.indexLabel||s[f].indexLabelFormatter||q.indexLabelFormatter)&&this._indexLabels.push({chartType:q.type,dataPoint:s[f],dataSeries:q,point:{x:w+(y-w)/2,y:a.axisY.reversed?k:l},direction:1,bounds:{x1:w,y1:Math.min(l,k),x2:y,y2:Math.max(l,k)},color:c})}}d.restore();u&&b.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,animationBase:0}}};A.prototype.renderRangeColumn=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;
|
||||
if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=0,g,h,f=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1;g=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:0.03*this.width;var l=a.axisX.dataInfo.minDiff;isFinite(l)||(l=0.3*Math.abs(a.axisX.range));l=this.dataPointWidth?this.dataPointWidth:0.9*(c.width*(a.axisX.logarithmic?Math.log(l)/Math.log(a.axisX.range):Math.abs(l)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<
|
||||
0;this.dataPointMaxWidth&&f>g&&(f=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,g));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&g<f)&&(g=Math.max(this.dataPointWidth?this.dataPointWidth:-Infinity,f));l<f&&(l=f);l>g&&(l=g);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(var k=0;k<a.dataSeriesIndexes.length;k++){var m=
|
||||
a.dataSeriesIndexes[k],n=this.data[m],p=n.dataPoints;if(0<p.length)for(var e=5<l&&n.bevelEnabled?!0:!1,f=0;f<p.length;f++)if(p[f].getTime?h=p[f].x.getTime():h=p[f].x,!(h<a.axisX.dataInfo.viewPortMin||h>a.axisX.dataInfo.viewPortMax)&&null!==p[f].y&&p[f].y.length&&"number"===typeof p[f].y[0]&&"number"===typeof p[f].y[1]){b=a.axisX.convertValueToPixel(h);c=a.axisY.convertValueToPixel(p[f].y[0]);g=a.axisY.convertValueToPixel(p[f].y[1]);var r=a.axisX.reversed?b+a.plotType.totalDataSeries*l/2-(a.previousDataSeriesCount+
|
||||
k)*l<<0:b-a.plotType.totalDataSeries*l/2+(a.previousDataSeriesCount+k)*l<<0,q=a.axisX.reversed?r-l<<0:r+l<<0,b=p[f].color?p[f].color:n._colorSet[f%n._colorSet.length];if(c>g){var s=c,c=g;g=s}s=n.dataPointIds[f];this._eventManager.objectMap[s]={id:s,objectType:"dataPoint",dataSeriesIndex:m,dataPointIndex:f,x1:r,y1:c,x2:q,y2:g};N(d,r,c,q,g,b,0,b,e,e,!1,!1,n.fillOpacity);b=G(s);u&&N(this._eventManager.ghostCtx,r,c,q,g,b,0,null,!1,!1,!1,!1);if(p[f].indexLabel||n.indexLabel||p[f].indexLabelFormatter||
|
||||
n.indexLabelFormatter)this._indexLabels.push({chartType:"rangeColumn",dataPoint:p[f],dataSeries:n,indexKeyword:0,point:{x:r+(q-r)/2,y:p[f].y[1]>=p[f].y[0]?g:c},direction:p[f].y[1]>=p[f].y[0]?-1:1,bounds:{x1:r,y1:Math.min(c,g),x2:q,y2:Math.max(c,g)},color:b}),this._indexLabels.push({chartType:"rangeColumn",dataPoint:p[f],dataSeries:n,indexKeyword:1,point:{x:r+(q-r)/2,y:p[f].y[1]>=p[f].y[0]?c:g},direction:p[f].y[1]>=p[f].y[0]?1:-1,bounds:{x1:r,y1:Math.min(c,g),x2:q,y2:Math.max(c,g)},color:b})}}d.restore();
|
||||
u&&this._eventManager.ghostCtx.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,animationBase:0}}};A.prototype.renderRangeBar=function(a){var d=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var b=null,c=this.plotArea,f=0,g,h,l,f=this.dataPointMinWidth?this.dataPointMinWidth:this.dataPointWidth?this.dataPointWidth:1;g=this.dataPointMaxWidth?this.dataPointMaxWidth:this.dataPointWidth?this.dataPointWidth:
|
||||
Math.min(0.15*this.height,0.9*(this.plotArea.height/a.plotType.totalDataSeries))<<0;var k=a.axisX.dataInfo.minDiff;isFinite(k)||(k=0.3*Math.abs(a.axisX.range));k=this.dataPointWidth?this.dataPointWidth:0.9*(c.height*(a.axisX.logarithmic?Math.log(k)/Math.log(a.axisX.range):Math.abs(k)/Math.abs(a.axisX.range))/a.plotType.totalDataSeries)<<0;this.dataPointMaxWidth&&f>g&&(f=Math.min(this.dataPointWidth?this.dataPointWidth:Infinity,g));!this.dataPointMaxWidth&&(this.dataPointMinWidth&&g<f)&&(g=Math.max(this.dataPointWidth?
|
||||
this.dataPointWidth:-Infinity,f));k<f&&(k=f);k>g&&(k=g);d.save();u&&this._eventManager.ghostCtx.save();d.beginPath();d.rect(c.x1,c.y1,c.width,c.height);d.clip();u&&(this._eventManager.ghostCtx.beginPath(),this._eventManager.ghostCtx.rect(c.x1,c.y1,c.width,c.height),this._eventManager.ghostCtx.clip());for(var m=0;m<a.dataSeriesIndexes.length;m++){var n=a.dataSeriesIndexes[m],p=this.data[n],e=p.dataPoints;if(0<e.length){var r=5<k&&p.bevelEnabled?!0:!1;d.strokeStyle="#4572A7 ";for(f=0;f<e.length;f++)if(e[f].getTime?
|
||||
l=e[f].x.getTime():l=e[f].x,!(l<a.axisX.dataInfo.viewPortMin||l>a.axisX.dataInfo.viewPortMax)&&null!==e[f].y&&e[f].y.length&&"number"===typeof e[f].y[0]&&"number"===typeof e[f].y[1]){c=a.axisY.convertValueToPixel(e[f].y[0]);g=a.axisY.convertValueToPixel(e[f].y[1]);h=a.axisX.convertValueToPixel(l);h=a.axisX.reversed?h+a.plotType.totalDataSeries*k/2-(a.previousDataSeriesCount+m)*k<<0:h-a.plotType.totalDataSeries*k/2+(a.previousDataSeriesCount+m)*k<<0;var q=a.axisX.reversed?h-k<<0:h+k<<0;c>g&&(b=c,c=
|
||||
g,g=b);b=e[f].color?e[f].color:p._colorSet[f%p._colorSet.length];N(d,c,h,g,q,b,0,null,r,!1,!1,!1,p.fillOpacity);b=p.dataPointIds[f];this._eventManager.objectMap[b]={id:b,objectType:"dataPoint",dataSeriesIndex:n,dataPointIndex:f,x1:c,y1:h,x2:g,y2:q};b=G(b);u&&N(this._eventManager.ghostCtx,c,h,g,q,b,0,null,!1,!1,!1,!1);if(e[f].indexLabel||p.indexLabel||e[f].indexLabelFormatter||p.indexLabelFormatter)this._indexLabels.push({chartType:"rangeBar",dataPoint:e[f],dataSeries:p,indexKeyword:0,point:{x:e[f].y[1]>=
|
||||
e[f].y[0]?c:g,y:h+(q-h)/2},direction:e[f].y[1]>=e[f].y[0]?-1:1,bounds:{x1:Math.min(c,g),y1:h,x2:Math.max(c,g),y2:q},color:b}),this._indexLabels.push({chartType:"rangeBar",dataPoint:e[f],dataSeries:p,indexKeyword:1,point:{x:e[f].y[1]>=e[f].y[0]?g:c,y:h+(q-h)/2},direction:e[f].y[1]>=e[f].y[0]?1:-1,bounds:{x1:Math.min(c,g),y1:h,x2:Math.max(c,g),y2:q},color:b})}}}d.restore();u&&this._eventManager.ghostCtx.restore();return{source:d,dest:this.plotArea.ctx,animationCallback:F.fadeInAnimation,easingFunction:F.easing.easeInQuad,
|
||||
animationBase:0}}};A.prototype.renderRangeArea=function(a){function d(){if(w){var a=null;0<m.lineThickness&&b.stroke();for(var d=l.length-1;0<=d;d--)a=l[d],b.lineTo(a.x,a.y),c.lineTo(a.x,a.y);b.closePath();b.globalAlpha=m.fillOpacity;b.fill();b.globalAlpha=1;c.fill();if(0<m.lineThickness){b.beginPath();b.moveTo(a.x,a.y);for(d=0;d<l.length;d++)a=l[d],b.lineTo(a.x,a.y);b.stroke()}b.beginPath();b.moveTo(r,q);c.beginPath();c.moveTo(r,q);w={x:r,y:q};l=[];l.push({x:r,y:s})}}var b=a.targetCanvasCtx||this.plotArea.ctx;
|
||||
if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,f=[],g=null,h=this.plotArea;b.save();u&&c.save();b.beginPath();b.rect(h.x1,h.y1,h.width,h.height);b.clip();u&&(c.beginPath(),c.rect(h.x1,h.y1,h.width,h.height),c.clip());for(h=0;h<a.dataSeriesIndexes.length;h++){var l=[],k=a.dataSeriesIndexes[h],m=this.data[k],n=m.dataPoints,f=m.id;this._eventManager.objectMap[f]={objectType:"dataSeries",dataSeriesIndex:k};f=G(f);c.fillStyle=f;var f=[],p=!0,e=0,r,q,s,v,w=null;if(0<n.length){var y=
|
||||
m._colorSet[e%m._colorSet.length],t=m.lineColor=m.options.lineColor||y,x=t;b.fillStyle=y;b.strokeStyle=t;b.lineWidth=m.lineThickness;var z="solid";if(b.setLineDash){var A=I(m.nullDataLineDashType,m.lineThickness),z=m.lineDashType,B=I(z,m.lineThickness);b.setLineDash(B)}for(var E=!0;e<n.length;e++)if(v=n[e].x.getTime?n[e].x.getTime():n[e].x,!(v<a.axisX.dataInfo.viewPortMin||v>a.axisX.dataInfo.viewPortMax&&(!m.connectNullData||!E)))if(null!==n[e].y&&n[e].y.length&&"number"===typeof n[e].y[0]&&"number"===
|
||||
typeof n[e].y[1]){r=a.axisX.convertValueToPixel(v);q=a.axisY.convertValueToPixel(n[e].y[0]);s=a.axisY.convertValueToPixel(n[e].y[1]);p||E?(m.connectNullData&&!p?(b.setLineDash&&(m.options.nullDataLineDashType||z===m.lineDashType&&m.lineDashType!==m.nullDataLineDashType)&&(l[l.length-1].newLineDashArray=B,z=m.nullDataLineDashType,b.setLineDash(A)),b.lineTo(r,q),u&&c.lineTo(r,q),l.push({x:r,y:s})):(b.beginPath(),b.moveTo(r,q),w={x:r,y:q},l=[],l.push({x:r,y:s}),u&&(c.beginPath(),c.moveTo(r,q))),E=p=
|
||||
!1):(b.lineTo(r,q),l.push({x:r,y:s}),u&&c.lineTo(r,q),0==e%250&&d());v=m.dataPointIds[e];this._eventManager.objectMap[v]={id:v,objectType:"dataPoint",dataSeriesIndex:k,dataPointIndex:e,x1:r,y1:q,y2:s};e<n.length-1&&(x!==(n[e].lineColor||t)||z!==(n[e].lineDashType||m.lineDashType))&&(d(),x=n[e].lineColor||t,l[l.length-1].newStrokeStyle=x,b.strokeStyle=x,b.setLineDash&&(n[e].lineDashType?(z=n[e].lineDashType,l[l.length-1].newLineDashArray=I(z,m.lineThickness),b.setLineDash(l[l.length-1].newLineDashArray)):
|
||||
(z=m.lineDashType,l[l.length-1].newLineDashArray=B,b.setLineDash(B))));if(0!==n[e].markerSize&&(0<n[e].markerSize||0<m.markerSize)){var R=m.getMarkerProperties(e,r,s,b);f.push(R);var J=G(v);u&&f.push({x:r,y:s,ctx:c,type:R.type,size:R.size,color:J,borderColor:J,borderThickness:R.borderThickness});R=m.getMarkerProperties(e,r,q,b);g=R.color;f.push(R);J=G(v);u&&f.push({x:r,y:q,ctx:c,type:R.type,size:R.size,color:J,borderColor:J,borderThickness:R.borderThickness})}if(n[e].indexLabel||m.indexLabel||n[e].indexLabelFormatter||
|
||||
m.indexLabelFormatter)this._indexLabels.push({chartType:"rangeArea",dataPoint:n[e],dataSeries:m,indexKeyword:0,point:{x:r,y:q},direction:n[e].y[0]>n[e].y[1]===a.axisY.reversed?-1:1,color:y}),this._indexLabels.push({chartType:"rangeArea",dataPoint:n[e],dataSeries:m,indexKeyword:1,point:{x:r,y:s},direction:n[e].y[0]>n[e].y[1]===a.axisY.reversed?1:-1,color:y})}else E||p||d(),E=!0;d();P.drawMarkers(f);m.markerColor=g}}b.restore();u&&this._eventManager.ghostCtx.restore();return{source:b,dest:this.plotArea.ctx,
|
||||
animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};A.prototype.renderRangeSplineArea=function(a){function d(a,d){var e=ua(q,2);if(0<e.length){if(0<k.lineThickness){b.strokeStyle=d;b.setLineDash&&b.setLineDash(a);b.beginPath();b.moveTo(e[0].x,e[0].y);for(var f=0;f<e.length-3;f+=3){if(e[f].newStrokeStyle||e[f].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(e[f].x,e[f].y),e[f].newStrokeStyle&&(b.strokeStyle=e[f].newStrokeStyle),e[f].newLineDashArray&&b.setLineDash(e[f].newLineDashArray);
|
||||
b.bezierCurveTo(e[f+1].x,e[f+1].y,e[f+2].x,e[f+2].y,e[f+3].x,e[f+3].y)}b.stroke()}b.beginPath();b.moveTo(e[0].x,e[0].y);u&&(c.beginPath(),c.moveTo(e[0].x,e[0].y));for(f=0;f<e.length-3;f+=3)b.bezierCurveTo(e[f+1].x,e[f+1].y,e[f+2].x,e[f+2].y,e[f+3].x,e[f+3].y),u&&c.bezierCurveTo(e[f+1].x,e[f+1].y,e[f+2].x,e[f+2].y,e[f+3].x,e[f+3].y);e=ua(s,2);b.lineTo(s[s.length-1].x,s[s.length-1].y);for(f=e.length-1;2<f;f-=3)b.bezierCurveTo(e[f-1].x,e[f-1].y,e[f-2].x,e[f-2].y,e[f-3].x,e[f-3].y),u&&c.bezierCurveTo(e[f-
|
||||
1].x,e[f-1].y,e[f-2].x,e[f-2].y,e[f-3].x,e[f-3].y);b.closePath();b.globalAlpha=k.fillOpacity;b.fill();u&&(c.closePath(),c.fill());b.globalAlpha=1;if(0<k.lineThickness){b.strokeStyle=d;b.setLineDash&&b.setLineDash(a);b.beginPath();b.moveTo(e[0].x,e[0].y);for(var g=f=0;f<e.length-3;f+=3,g++){if(q[g].newStrokeStyle||q[g].newLineDashArray)b.stroke(),b.beginPath(),b.moveTo(e[f].x,e[f].y),q[g].newStrokeStyle&&(b.strokeStyle=q[g].newStrokeStyle),q[g].newLineDashArray&&b.setLineDash(q[g].newLineDashArray);
|
||||
b.bezierCurveTo(e[f+1].x,e[f+1].y,e[f+2].x,e[f+2].y,e[f+3].x,e[f+3].y)}b.stroke()}b.beginPath()}}var b=a.targetCanvasCtx||this.plotArea.ctx;if(!(0>=a.dataSeriesIndexes.length)){var c=this._eventManager.ghostCtx,f=[],g=null,h=this.plotArea;b.save();u&&c.save();b.beginPath();b.rect(h.x1,h.y1,h.width,h.height);b.clip();u&&(c.beginPath(),c.rect(h.x1,h.y1,h.width,h.height),c.clip());for(h=0;h<a.dataSeriesIndexes.length;h++){var l=a.dataSeriesIndexes[h],k=this.data[l],m=k.dataPoints,f=k.id;this._eventManager.objectMap[f]=
|
||||
{objectType:"dataSeries",dataSeriesIndex:l};f=G(f);c.fillStyle=f;var f=[],n=0,p,e,r,q=[],s=[];if(0<m.length){var v=k._colorSet[n%k._colorSet.length],w=k.lineColor=k.options.lineColor||v,y=w;b.fillStyle=v;b.lineWidth=k.lineThickness;var t="solid",x;if(b.setLineDash){var z=I(k.nullDataLineDashType,k.lineThickness),t=k.lineDashType;x=I(t,k.lineThickness)}for(e=!1;n<m.length;n++)if(p=m[n].x.getTime?m[n].x.getTime():m[n].x,!(p<a.axisX.dataInfo.viewPortMin||p>a.axisX.dataInfo.viewPortMax&&(!k.connectNullData||
|
||||
!e)))if(null!==m[n].y&&m[n].y.length&&"number"===typeof m[n].y[0]&&"number"===typeof m[n].y[1]){p=a.axisX.convertValueToPixel(p);e=a.axisY.convertValueToPixel(m[n].y[0]);r=a.axisY.convertValueToPixel(m[n].y[1]);var A=k.dataPointIds[n];this._eventManager.objectMap[A]={id:A,objectType:"dataPoint",dataSeriesIndex:l,dataPointIndex:n,x1:p,y1:e,y2:r};q[q.length]={x:p,y:e};s[s.length]={x:p,y:r};n<m.length-1&&(y!==(m[n].lineColor||w)||t!==(m[n].lineDashType||k.lineDashType))&&(y=m[n].lineColor||w,q[q.length-
|
||||
1].newStrokeStyle=y,b.setLineDash&&(m[n].lineDashType?(t=m[n].lineDashType,q[q.length-1].newLineDashArray=I(t,k.lineThickness)):(t=k.lineDashType,q[q.length-1].newLineDashArray=x)));if(0!==m[n].markerSize&&(0<m[n].markerSize||0<k.markerSize)){var B=k.getMarkerProperties(n,p,e,b),g=B.color;f.push(B);var E=G(A);u&&f.push({x:p,y:e,ctx:c,type:B.type,size:B.size,color:E,borderColor:E,borderThickness:B.borderThickness});B=k.getMarkerProperties(n,p,r,b);f.push(B);E=G(A);u&&f.push({x:p,y:r,ctx:c,type:B.type,
|
||||
size:B.size,color:E,borderColor:E,borderThickness:B.borderThickness})}if(m[n].indexLabel||k.indexLabel||m[n].indexLabelFormatter||k.indexLabelFormatter)this._indexLabels.push({chartType:"splineArea",dataPoint:m[n],dataSeries:k,indexKeyword:0,point:{x:p,y:e},direction:m[n].y[0]<=m[n].y[1]?-1:1,color:v}),this._indexLabels.push({chartType:"splineArea",dataPoint:m[n],dataSeries:k,indexKeyword:1,point:{x:p,y:r},direction:m[n].y[0]<=m[n].y[1]?1:-1,color:v});e=!1}else 0<n&&!e&&(k.connectNullData?b.setLineDash&&
|
||||
(0<q.length&&(k.options.nullDataLineDashType||!m[n-1].lineDashType))&&(q[q.length-1].newLineDashArray=z,t=k.nullDataLineDashType):(d(x,w),q=[],s=[])),e=!0;d(x,w);P.drawMarkers(f);k.markerColor=g}}b.restore();u&&this._eventManager.ghostCtx.restore();return{source:b,dest:this.plotArea.ctx,animationCallback:F.xClipAnimation,easingFunction:F.easing.linear,animationBase:0}}};var Ga=function(a,d,b,c,f,g,h,l,k){if(!(0>b)){"undefined"===typeof l&&(l=1);if(!u){var m=Number((h%(2*Math.PI)).toFixed(8));Number((g%
|
||||
(2*Math.PI)).toFixed(8))===m&&(h-=1E-4)}a.save();a.globalAlpha=l;"pie"===f?(a.beginPath(),a.moveTo(d.x,d.y),a.arc(d.x,d.y,b,g,h,!1),a.fillStyle=c,a.strokeStyle="white",a.lineWidth=2,a.closePath(),a.fill()):"doughnut"===f&&(a.beginPath(),a.arc(d.x,d.y,b,g,h,!1),0<=k&&a.arc(d.x,d.y,k*b,h,g,!0),a.closePath(),a.fillStyle=c,a.strokeStyle="white",a.lineWidth=2,a.fill());a.globalAlpha=1;a.restore()}};A.prototype.renderPie=function(a){function d(){if(m&&n){for(var a=0,b=0,c=0,d=0,f=0;f<n.length;f++){var g=
|
||||
n[f],h=m.dataPointIds[f],l={id:h,objectType:"dataPoint",dataPointIndex:f,dataSeriesIndex:0};r.push(l);var p={percent:null,total:null},q=null,p=k.getPercentAndTotal(m,g);if(m.indexLabelFormatter||g.indexLabelFormatter)q={chart:k.options,dataSeries:m,dataPoint:g,total:p.total,percent:p.percent};p=g.indexLabelFormatter?g.indexLabelFormatter(q):g.indexLabel?k.replaceKeywordsWithValue(g.indexLabel,g,m,f):m.indexLabelFormatter?m.indexLabelFormatter(q):m.indexLabel?k.replaceKeywordsWithValue(m.indexLabel,
|
||||
g,m,f):g.label?g.label:"";k._eventManager.objectMap[h]=l;l.center={x:t.x,y:t.y};l.y=g.y;l.radius=B;l.percentInnerRadius=F;l.indexLabelText=p;l.indexLabelPlacement=m.indexLabelPlacement;l.indexLabelLineColor=g.indexLabelLineColor?g.indexLabelLineColor:m.options.indexLabelLineColor?m.options.indexLabelLineColor:g.color?g.color:m._colorSet[f%m._colorSet.length];l.indexLabelLineThickness=x(g.indexLabelLineThickness)?m.indexLabelLineThickness:g.indexLabelLineThickness;l.indexLabelLineDashType=g.indexLabelLineDashType?
|
||||
g.indexLabelLineDashType:m.indexLabelLineDashType;l.indexLabelFontColor=g.indexLabelFontColor?g.indexLabelFontColor:m.indexLabelFontColor;l.indexLabelFontStyle=g.indexLabelFontStyle?g.indexLabelFontStyle:m.indexLabelFontStyle;l.indexLabelFontWeight=g.indexLabelFontWeight?g.indexLabelFontWeight:m.indexLabelFontWeight;l.indexLabelFontSize=g.indexLabelFontSize?g.indexLabelFontSize:m.indexLabelFontSize;l.indexLabelFontFamily=g.indexLabelFontFamily?g.indexLabelFontFamily:m.indexLabelFontFamily;l.indexLabelBackgroundColor=
|
||||
g.indexLabelBackgroundColor?g.indexLabelBackgroundColor:m.options.indexLabelBackgroundColor?m.options.indexLabelBackgroundColor:m.indexLabelBackgroundColor;l.indexLabelMaxWidth=g.indexLabelMaxWidth?g.indexLabelMaxWidth:m.indexLabelMaxWidth?m.indexLabelMaxWidth:0.33*e.width;l.indexLabelWrap="undefined"!==typeof g.indexLabelWrap?g.indexLabelWrap:m.indexLabelWrap;l.startAngle=0===f?m.startAngle?m.startAngle/180*Math.PI:0:r[f-1].endAngle;l.startAngle=(l.startAngle+2*Math.PI)%(2*Math.PI);l.endAngle=l.startAngle+
|
||||
2*Math.PI/u*Math.abs(g.y);g=(l.endAngle+l.startAngle)/2;g=(g+2*Math.PI)%(2*Math.PI);l.midAngle=g;if(l.midAngle>Math.PI/2-w&&l.midAngle<Math.PI/2+w){if(0===a||r[c].midAngle>l.midAngle)c=f;a++}else if(l.midAngle>3*Math.PI/2-w&&l.midAngle<3*Math.PI/2+w){if(0===b||r[d].midAngle>l.midAngle)d=f;b++}l.hemisphere=g>Math.PI/2&&g<=3*Math.PI/2?"left":"right";l.indexLabelTextBlock=new W(k.plotArea.ctx,{fontSize:l.indexLabelFontSize,fontFamily:l.indexLabelFontFamily,fontColor:l.indexLabelFontColor,fontStyle:l.indexLabelFontStyle,
|
||||
fontWeight:l.indexLabelFontWeight,horizontalAlign:"left",backgroundColor:l.indexLabelBackgroundColor,maxWidth:l.indexLabelMaxWidth,maxHeight:l.indexLabelWrap?5*l.indexLabelFontSize:1.5*l.indexLabelFontSize,text:l.indexLabelText,padding:0,textBaseline:"top"});l.indexLabelTextBlock.measureText()}h=g=0;p=!1;for(f=0;f<n.length;f++)l=r[(c+f)%n.length],1<a&&(l.midAngle>Math.PI/2-w&&l.midAngle<Math.PI/2+w)&&(g<=a/2&&!p?(l.hemisphere="right",g++):(l.hemisphere="left",p=!0));p=!1;for(f=0;f<n.length;f++)l=
|
||||
r[(d+f)%n.length],1<b&&(l.midAngle>3*Math.PI/2-w&&l.midAngle<3*Math.PI/2+w)&&(h<=b/2&&!p?(l.hemisphere="left",h++):(l.hemisphere="right",p=!0))}}function b(a){var b=k.plotArea.ctx;b.clearRect(e.x1,e.y1,e.width,e.height);b.fillStyle=k.backgroundColor;b.fillRect(e.x1,e.y1,e.width,e.height);for(b=0;b<n.length;b++){var c=r[b].startAngle,d=r[b].endAngle;if(d>c){var f=0.07*B*Math.cos(r[b].midAngle),g=0.07*B*Math.sin(r[b].midAngle),l=!1;if(n[b].exploded){if(1E-9<Math.abs(r[b].center.x-(t.x+f))||1E-9<Math.abs(r[b].center.y-
|
||||
(t.y+g)))r[b].center.x=t.x+f*a,r[b].center.y=t.y+g*a,l=!0}else if(0<Math.abs(r[b].center.x-t.x)||0<Math.abs(r[b].center.y-t.y))r[b].center.x=t.x+f*(1-a),r[b].center.y=t.y+g*(1-a),l=!0;l&&(f={},f.dataSeries=m,f.dataPoint=m.dataPoints[b],f.index=b,k.toolTip.highlightObjects([f]));Ga(k.plotArea.ctx,r[b].center,r[b].radius,n[b].color?n[b].color:m._colorSet[b%m._colorSet.length],m.type,c,d,m.fillOpacity,r[b].percentInnerRadius)}}a=k.plotArea.ctx;a.save();a.fillStyle="black";a.strokeStyle="grey";a.textBaseline=
|
||||
"middle";a.lineJoin="round";for(b=b=0;b<n.length;b++)c=r[b],c.indexLabelText&&(c.indexLabelTextBlock.y-=c.indexLabelTextBlock.height/2,d=0,d="left"===c.hemisphere?"inside"!==m.indexLabelPlacement?-(c.indexLabelTextBlock.width+p):-c.indexLabelTextBlock.width/2:"inside"!==m.indexLabelPlacement?p:-c.indexLabelTextBlock.width/2,c.indexLabelTextBlock.x+=d,c.indexLabelTextBlock.render(!0),c.indexLabelTextBlock.x-=d,c.indexLabelTextBlock.y+=c.indexLabelTextBlock.height/2,"inside"!==c.indexLabelPlacement&&
|
||||
0<c.indexLabelLineThickness&&(d=c.center.x+B*Math.cos(c.midAngle),f=c.center.y+B*Math.sin(c.midAngle),a.strokeStyle=c.indexLabelLineColor,a.lineWidth=c.indexLabelLineThickness,a.setLineDash&&a.setLineDash(I(c.indexLabelLineDashType,c.indexLabelLineThickness)),a.beginPath(),a.moveTo(d,f),a.lineTo(c.indexLabelTextBlock.x,c.indexLabelTextBlock.y),a.lineTo(c.indexLabelTextBlock.x+("left"===c.hemisphere?-p:p),c.indexLabelTextBlock.y),a.stroke()),a.lineJoin="miter");a.save()}function c(a,b){var c=0,c=a.indexLabelTextBlock.y-
|
||||
a.indexLabelTextBlock.height/2,d=a.indexLabelTextBlock.y+a.indexLabelTextBlock.height/2,e=b.indexLabelTextBlock.y-b.indexLabelTextBlock.height/2,f=b.indexLabelTextBlock.y+b.indexLabelTextBlock.height/2;return c=b.indexLabelTextBlock.y>a.indexLabelTextBlock.y?e-d:c-f}function f(a){for(var b=null,d=1;d<n.length;d++)if(b=(a+d+r.length)%r.length,r[b].hemisphere!==r[a].hemisphere){b=null;break}else if(r[b].indexLabelText&&b!==a&&(0>c(r[b],r[a])||("right"===r[a].hemisphere?r[b].indexLabelTextBlock.y>=r[a].indexLabelTextBlock.y:
|
||||
r[b].indexLabelTextBlock.y<=r[a].indexLabelTextBlock.y)))break;else b=null;return b}function g(a,b,d){d=(d||0)+1;if(1E3<d)return 0;b=b||0;var e=0,k=t.y-1*s,l=t.y+1*s;if(0<=a&&a<n.length){var h=r[a];if(0>b&&h.indexLabelTextBlock.y<k||0<b&&h.indexLabelTextBlock.y>l)return 0;var p=0,m=0,m=p=p=0;0>b?h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2>k&&h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2+b<k&&(b=-(k-(h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2+b))):h.indexLabelTextBlock.y+
|
||||
h.indexLabelTextBlock.height/2<k&&h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2+b>l&&(b=h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2+b-l);b=h.indexLabelTextBlock.y+b;k=0;k="right"===h.hemisphere?t.x+Math.sqrt(Math.pow(s,2)-Math.pow(b-t.y,2)):t.x-Math.sqrt(Math.pow(s,2)-Math.pow(b-t.y,2));m=t.x+B*Math.cos(h.midAngle);p=t.y+B*Math.sin(h.midAngle);p=Math.sqrt(Math.pow(k-m,2)+Math.pow(b-p,2));m=Math.acos(B/s);p=Math.acos((s*s+B*B-p*p)/(2*B*s));b=p<m?b-h.indexLabelTextBlock.y:0;k=null;
|
||||
for(l=1;l<n.length;l++)if(k=(a-l+r.length)%r.length,r[k].hemisphere!==r[a].hemisphere){k=null;break}else if(r[k].indexLabelText&&r[k].hemisphere===r[a].hemisphere&&k!==a&&(0>c(r[k],r[a])||("right"===r[a].hemisphere?r[k].indexLabelTextBlock.y<=r[a].indexLabelTextBlock.y:r[k].indexLabelTextBlock.y>=r[a].indexLabelTextBlock.y)))break;else k=null;m=k;p=f(a);l=k=0;0>b?(l="right"===h.hemisphere?m:p,e=b,null!==l&&(m=-b,b=h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2-(r[l].indexLabelTextBlock.y+
|
||||
r[l].indexLabelTextBlock.height/2),b-m<q&&(k=-m,l=g(l,k,d+1),+l.toFixed(y)>+k.toFixed(y)&&(e=b>q?-(b-q):-(m-(l-k)))))):0<b&&(l="right"===h.hemisphere?p:m,e=b,null!==l&&(m=b,b=r[l].indexLabelTextBlock.y-r[l].indexLabelTextBlock.height/2-(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2),b-m<q&&(k=m,l=g(l,k,d+1),+l.toFixed(y)<+k.toFixed(y)&&(e=b>q?b-q:m-(k-l)))));e&&(d=h.indexLabelTextBlock.y+e,b=0,b="right"===h.hemisphere?t.x+Math.sqrt(Math.pow(s,2)-Math.pow(d-t.y,2)):t.x-Math.sqrt(Math.pow(s,
|
||||
2)-Math.pow(d-t.y,2)),h.midAngle>Math.PI/2-w&&h.midAngle<Math.PI/2+w?(k=(a-1+r.length)%r.length,k=r[k],a=r[(a+1+r.length)%r.length],"left"===h.hemisphere&&"right"===k.hemisphere&&b>k.indexLabelTextBlock.x?b=k.indexLabelTextBlock.x-15:"right"===h.hemisphere&&("left"===a.hemisphere&&b<a.indexLabelTextBlock.x)&&(b=a.indexLabelTextBlock.x+15)):h.midAngle>3*Math.PI/2-w&&h.midAngle<3*Math.PI/2+w&&(k=(a-1+r.length)%r.length,k=r[k],a=r[(a+1+r.length)%r.length],"right"===h.hemisphere&&"left"===k.hemisphere&&
|
||||
b<k.indexLabelTextBlock.x?b=k.indexLabelTextBlock.x+15:"left"===h.hemisphere&&("right"===a.hemisphere&&b>a.indexLabelTextBlock.x)&&(b=a.indexLabelTextBlock.x-15)),h.indexLabelTextBlock.y=d,h.indexLabelTextBlock.x=b,h.indexLabelAngle=Math.atan2(h.indexLabelTextBlock.y-t.y,h.indexLabelTextBlock.x-t.x))}return e}function h(){var a=k.plotArea.ctx;a.fillStyle="grey";a.strokeStyle="grey";a.font="16px Arial";a.textBaseline="middle";for(var b=a=0,d=0,l=!0,b=0;10>b&&(1>b||0<d);b++){if(m.radius||!m.radius&&
|
||||
"undefined"!==typeof m.innerRadius&&null!==m.innerRadius&&B-d<=E)l=!1;l&&(B-=d);d=0;if("inside"!==m.indexLabelPlacement){s=B*v;for(a=0;a<n.length;a++){var h=r[a];h.indexLabelTextBlock.x=t.x+s*Math.cos(h.midAngle);h.indexLabelTextBlock.y=t.y+s*Math.sin(h.midAngle);h.indexLabelAngle=h.midAngle;h.radius=B;h.percentInnerRadius=F}for(var w,u,a=0;a<n.length;a++){var h=r[a],x=f(a);if(null!==x){w=r[a];u=r[x];var z=0,z=c(w,u)-q;if(0>z){for(var A=u=0,D=0;D<n.length;D++)D!==a&&r[D].hemisphere===h.hemisphere&&
|
||||
(r[D].indexLabelTextBlock.y<h.indexLabelTextBlock.y?u++:A++);u=z/(u+A||1)*A;var A=-1*(z-u),C=D=0;"right"===h.hemisphere?(D=g(a,u),A=-1*(z-D),C=g(x,A),+C.toFixed(y)<+A.toFixed(y)&&+D.toFixed(y)<=+u.toFixed(y)&&g(a,-(A-C))):(D=g(x,u),A=-1*(z-D),C=g(a,A),+C.toFixed(y)<+A.toFixed(y)&&+D.toFixed(y)<=+u.toFixed(y)&&g(x,-(A-C)))}}}}else for(a=0;a<n.length;a++)h=r[a],s="pie"===m.type?0.7*B:0.8*B,x=t.x+s*Math.cos(h.midAngle),u=t.y+s*Math.sin(h.midAngle),h.indexLabelTextBlock.x=x,h.indexLabelTextBlock.y=u;
|
||||
for(a=0;a<n.length;a++)if(h=r[a],x=h.indexLabelTextBlock.measureText(),0!==x.height&&0!==x.width)x=x=0,"right"===h.hemisphere?(x=e.x2-(h.indexLabelTextBlock.x+h.indexLabelTextBlock.width+p),x*=-1):x=e.x1-(h.indexLabelTextBlock.x-h.indexLabelTextBlock.width-p),0<x&&(!l&&h.indexLabelText&&(u="right"===h.hemisphere?e.x2-h.indexLabelTextBlock.x:h.indexLabelTextBlock.x-e.x1,0.3*h.indexLabelTextBlock.maxWidth>u?h.indexLabelText="":h.indexLabelTextBlock.maxWidth=0.85*u,0.3*h.indexLabelTextBlock.maxWidth<
|
||||
u&&(h.indexLabelTextBlock.x-="right"===h.hemisphere?2:-2)),Math.abs(h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2-t.y)<B||Math.abs(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2-t.y)<B)&&(x/=Math.abs(Math.cos(h.indexLabelAngle)),9<x&&(x*=0.3),x>d&&(d=x)),x=x=0,0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?(x=e.y2-(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2+5),x*=-1):x=e.y1-(h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2-5),0<x&&(!l&&h.indexLabelText&&(u=0<h.indexLabelAngle&&
|
||||
h.indexLabelAngle<Math.PI?-1:1,0===g(a,x*u)&&g(a,2*u)),Math.abs(h.indexLabelTextBlock.x-t.x)<B&&(x/=Math.abs(Math.sin(h.indexLabelAngle)),9<x&&(x*=0.3),x>d&&(d=x)));var G=function(a,b,c){for(var d=[],e=0;d.push(r[b]),b!==c;b=(b+1+n.length)%n.length);d.sort(function(a,b){return a.y-b.y});for(b=0;b<d.length;b++)if(c=d[b],e<0.7*a)e+=c.indexLabelTextBlock.height,c.indexLabelTextBlock.text="",c.indexLabelText="",c.indexLabelTextBlock.measureText();else break};(function(){for(var a=-1,b=-1,d=0,e=!1,g=0;g<
|
||||
n.length;g++)if(e=!1,w=r[g],w.indexLabelText){var h=f(g);if(null!==h){var k=r[h];z=0;z=c(w,k);var l;if(l=0>z){l=w.indexLabelTextBlock.x;var m=w.indexLabelTextBlock.y-w.indexLabelTextBlock.height/2,q=w.indexLabelTextBlock.y+w.indexLabelTextBlock.height/2,s=k.indexLabelTextBlock.y-k.indexLabelTextBlock.height/2,t=k.indexLabelTextBlock.x+k.indexLabelTextBlock.width,v=k.indexLabelTextBlock.y+k.indexLabelTextBlock.height/2;l=w.indexLabelTextBlock.x+w.indexLabelTextBlock.width<k.indexLabelTextBlock.x-p||
|
||||
l>t+p||m>v+p||q<s-p?!1:!0}l?(0>a&&(a=g),h!==a&&(b=h,d+=-z),0===g%Math.max(n.length/10,3)&&(e=!0)):e=!0;e&&(0<d&&0<=a&&0<=b)&&(G(d,a,b),b=a=-1,d=0)}}0<d&&G(d,a,b)})()}}function l(){k.plotArea.layoutManager.reset();k.title&&(k.title.dockInsidePlotArea||"center"===k.title.horizontalAlign&&"center"===k.title.verticalAlign)&&k.title.render();if(k.subtitles)for(var a=0;a<k.subtitles.length;a++){var b=k.subtitles[a];(b.dockInsidePlotArea||"center"===b.horizontalAlign&&"center"===b.verticalAlign)&&b.render()}k.legend&&
|
||||
(k.legend.dockInsidePlotArea||"center"===k.legend.horizontalAlign&&"center"===k.legend.verticalAlign)&&k.legend.render();z.fNg&&z.fNg(k)}var k=this;if(!(0>=a.dataSeriesIndexes.length)){var m=this.data[a.dataSeriesIndexes[0]],n=m.dataPoints,p=10,e=this.plotArea,r=[],q=2,s,v=1.3,w=20/180*Math.PI,y=6,t={x:(e.x2+e.x1)/2,y:(e.y2+e.y1)/2},u=0;a=!1;for(var A=0;A<n.length;A++)u+=Math.abs(n[A].y),!a&&("undefined"!==typeof n[A].indexLabel&&null!==n[A].indexLabel&&0<n[A].indexLabel.toString().length)&&(a=!0),
|
||||
!a&&("undefined"!==typeof n[A].label&&null!==n[A].label&&0<n[A].label.toString().length)&&(a=!0);if(0!==u){a=a||"undefined"!==typeof m.indexLabel&&null!==m.indexLabel&&0<m.indexLabel.toString().length;var B="inside"!==m.indexLabelPlacement&&a?0.75*Math.min(e.width,e.height)/2:0.92*Math.min(e.width,e.height)/2;m.radius&&(B=Na(m.radius,B));var E="undefined"!==typeof m.innerRadius&&null!==m.innerRadius?Na(m.innerRadius,B):0.7*B;m.radius=B;"doughnut"===m.type&&(m.innerRadius=E);var F=Math.min(E/B,(B-
|
||||
1)/B);this.pieDoughnutClickHandler=function(a){k.isAnimating||!x(a.dataSeries.explodeOnClick)&&!a.dataSeries.explodeOnClick||(a=a.dataPoint,a.exploded=a.exploded?!1:!0,1<this.dataPoints.length&&k._animator.animate(0,500,function(a){b(a);l()}))};d();h();h();h();h();this.disableToolTip=!0;this._animator.animate(0,this.animatedRender?this.animationDuration:0,function(a){var b=k.plotArea.ctx;b.clearRect(e.x1,e.y1,e.width,e.height);b.fillStyle=k.backgroundColor;b.fillRect(e.x1,e.y1,e.width,e.height);a=
|
||||
r[0].startAngle+2*Math.PI*a;for(b=0;b<n.length;b++){var c=0===b?r[b].startAngle:d,d=c+(r[b].endAngle-r[b].startAngle),f=!1;d>a&&(d=a,f=!0);var g=n[b].color?n[b].color:m._colorSet[b%m._colorSet.length];d>c&&Ga(k.plotArea.ctx,r[b].center,r[b].radius,g,m.type,c,d,m.fillOpacity,r[b].percentInnerRadius);if(f)break}l()},function(){k.disableToolTip=!1;k._animator.animate(0,k.animatedRender?500:0,function(a){b(a);l()})})}}};A.prototype.animationRequestId=null;A.prototype.requestAnimFrame=function(){return window.requestAnimationFrame||
|
||||
window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)}}();A.prototype.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;A.prototype.set=function(a,d,b){b="undefined"===typeof b?!0:b;"options"===a?(this.options=d,
|
||||
b&&this.render()):A.base.set.call(this,a,d,b)};A.prototype.exportChart=function(a){a="undefined"===typeof a?{}:a;var d=a.format?a.format:"png",b=a.fileName?a.fileName:this.exportFileName;if(a.toDataURL)return this.canvas.toDataURL("image/"+d);Ba(this.canvas,d,b)};A.prototype.print=function(){var a=this.exportChart({toDataURL:!0}),d=document.createElement("iframe");d.setAttribute("class","canvasjs-chart-print-frame");d.setAttribute("style","position:absolute; width:100%; border: 0px; margin: 0px 0px 0px 0px; padding 0px 0px 0px 0px;");
|
||||
d.style.height=this.height+"px";this._canvasJSContainer.appendChild(d);var b=this,c=d.contentWindow||d.contentDocument.document||d.contentDocument;c.document.open();c.document.write('<!DOCTYPE HTML>\n<html><body style="margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;"><img src="'+a+'"/><body/></html>');c.document.close();setTimeout(function(){c.focus();c.print();setTimeout(function(){b._canvasJSContainer.removeChild(d)},1E3)},500)};ja.prototype.registerSpace=function(a,d){"top"===a?this._topOccupied+=
|
||||
d.height:"bottom"===a?this._bottomOccupied+=d.height:"left"===a?this._leftOccupied+=d.width:"right"===a&&(this._rightOccupied+=d.width)};ja.prototype.unRegisterSpace=function(a,d){"top"===a?this._topOccupied-=d.height:"bottom"===a?this._bottomOccupied-=d.height:"left"===a?this._leftOccupied-=d.width:"right"===a&&(this._rightOccupied-=d.width)};ja.prototype.getFreeSpace=function(){return{x1:this._x1+this._leftOccupied,y1:this._y1+this._topOccupied,x2:this._x2-this._rightOccupied,y2:this._y2-this._bottomOccupied,
|
||||
width:this._x2-this._x1-this._rightOccupied-this._leftOccupied,height:this._y2-this._y1-this._bottomOccupied-this._topOccupied}};ja.prototype.reset=function(){this._rightOccupied=this._leftOccupied=this._bottomOccupied=this._topOccupied=this._padding};U(W,M);W.prototype.render=function(a){a&&this.ctx.save();var d=this.ctx.font;this.ctx.textBaseline=this.textBaseline;var b=0;this._isDirty&&this.measureText(this.ctx);this.ctx.translate(this.x,this.y+b);"middle"===this.textBaseline&&(b=-this._lineHeight/
|
||||
2);this.ctx.font=this._getFontString();this.ctx.rotate(Math.PI/180*this.angle);var c=0,f=this.padding,g=null;(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&this.ctx.roundRect(0,b,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);this.ctx.fillStyle=this.fontColor;for(b=0;b<this._wrappedText.lines.length;b++)g=this._wrappedText.lines[b],"right"===this.horizontalAlign?c=this.width-g.width-this.padding:"left"===this.horizontalAlign?
|
||||
c=this.padding:"center"===this.horizontalAlign&&(c=(this.width-2*this.padding)/2-g.width/2+this.padding),this.ctx.fillText(g.text,c,f),f+=g.height;this.ctx.font=d;a&&this.ctx.restore()};W.prototype.setText=function(a){this.text=a;this._isDirty=!0;this._wrappedText=null};W.prototype.measureText=function(){this._lineHeight=Ja(this.fontFamily,this.fontSize,this.fontWeight);if(null===this.maxWidth)throw"Please set maxWidth and height for TextBlock";this._wrapText(this.ctx);this._isDirty=!1;return{width:this.width,
|
||||
height:this.height}};W.prototype._getLineWithWidth=function(a,d,b){a=String(a);if(!a)return{text:"",width:0};var c=b=0,f=a.length-1,g=Infinity;for(this.ctx.font=this._getFontString();c<=f;){var g=Math.floor((c+f)/2),h=a.substr(0,g+1);b=this.ctx.measureText(h).width;if(b<d)c=g+1;else if(b>d)f=g-1;else break}b>d&&1<h.length&&(h=h.substr(0,h.length-1),b=this.ctx.measureText(h).width);d=!0;if(h.length===a.length||" "===a[h.length])d=!1;d&&(a=h.split(" "),1<a.length&&a.pop(),h=a.join(" "),b=this.ctx.measureText(h).width);
|
||||
return{text:h,width:b}};W.prototype._wrapText=function(){var a=new String(ka(String(this.text))),d=[],b=this.ctx.font,c=0,f=0;for(this.ctx.font=this._getFontString();0<a.length;){var g=this.maxHeight-2*this.padding,h=this._getLineWithWidth(a,this.maxWidth-2*this.padding,!1);h.height=this._lineHeight;d.push(h);var l=f,f=Math.max(f,h.width),c=c+h.height,a=ka(a.slice(h.text.length,a.length));g&&c>g&&(h=d.pop(),c-=h.height,f=l)}this._wrappedText={lines:d,width:f,height:c};this.width=f+2*this.padding;
|
||||
this.height=c+2*this.padding;this.ctx.font=b};W.prototype._getFontString=function(){var a;a=""+(this.fontStyle?this.fontStyle+" ":"");a+=this.fontWeight?this.fontWeight+" ":"";a+=this.fontSize?this.fontSize+"px ":"";var d=this.fontFamily?this.fontFamily+"":"";!u&&d&&(d=d.split(",")[0],"'"!==d[0]&&'"'!==d[0]&&(d="'"+d+"'"));return a+=d};U(ma,M);ma.prototype.render=function(){if(this.text){var a=this.dockInsidePlotArea?this.chart.plotArea:this.chart,d=a.layoutManager.getFreeSpace(),b=d.x1,c=d.y1,f=
|
||||
0,g=0,h=this.chart._menuButton&&this.chart.exportEnabled&&"top"===this.verticalAlign?22:0,l,k;"top"===this.verticalAlign||"bottom"===this.verticalAlign?(null===this.maxWidth&&(this.maxWidth=d.width-4-h*("center"===this.horizontalAlign?2:1)),g=0.5*d.height-this.margin-2,f=0):"center"===this.verticalAlign&&("left"===this.horizontalAlign||"right"===this.horizontalAlign?(null===this.maxWidth&&(this.maxWidth=d.height-4),g=0.5*d.width-this.margin-2):"center"===this.horizontalAlign&&(null===this.maxWidth&&
|
||||
(this.maxWidth=d.width-4),g=0.5*d.height-4));this.wrap||(g=Math.min(g,Math.max(1.5*this.fontSize,this.fontSize+2.5*this.padding)));var g=new W(this.ctx,{fontSize:this.fontSize,fontFamily:this.fontFamily,fontColor:this.fontColor,fontStyle:this.fontStyle,fontWeight:this.fontWeight,horizontalAlign:this.horizontalAlign,verticalAlign:this.verticalAlign,borderColor:this.borderColor,borderThickness:this.borderThickness,backgroundColor:this.backgroundColor,maxWidth:this.maxWidth,maxHeight:g,cornerRadius:this.cornerRadius,
|
||||
text:this.text,padding:this.padding,textBaseline:"top"}),m=g.measureText();"top"===this.verticalAlign||"bottom"===this.verticalAlign?("top"===this.verticalAlign?(c=d.y1+2,k="top"):"bottom"===this.verticalAlign&&(c=d.y2-2-m.height,k="bottom"),"left"===this.horizontalAlign?b=d.x1+2:"center"===this.horizontalAlign?b=d.x1+d.width/2-m.width/2:"right"===this.horizontalAlign&&(b=d.x2-2-m.width-h),l=this.horizontalAlign,this.width=m.width,this.height=m.height):"center"===this.verticalAlign&&("left"===this.horizontalAlign?
|
||||
(b=d.x1+2,c=d.y2-2-(this.maxWidth/2-m.width/2),f=-90,k="left",this.width=m.height,this.height=m.width):"right"===this.horizontalAlign?(b=d.x2-2,c=d.y1+2+(this.maxWidth/2-m.width/2),f=90,k="right",this.width=m.height,this.height=m.width):"center"===this.horizontalAlign&&(c=a.y1+(a.height/2-m.height/2),b=a.x1+(a.width/2-m.width/2),k="center",this.width=m.width,this.height=m.height),l="center");g.x=b;g.y=c;g.angle=f;g.horizontalAlign=l;g.render(!0);a.layoutManager.registerSpace(k,{width:this.width+("left"===
|
||||
k||"right"===k?this.margin+2:0),height:this.height+("top"===k||"bottom"===k?this.margin+2:0)});this.bounds={x1:b,y1:c,x2:b+this.width,y2:c+this.height};this.ctx.textBaseline="top"}};U(va,M);va.prototype.render=ma.prototype.render;U(wa,M);wa.prototype.render=function(){var a=this.dockInsidePlotArea?this.chart.plotArea:this.chart,d=a.layoutManager.getFreeSpace(),b=null,c=0,f=0,g=0,h=0,l=this.markerMargin=this.chart.options.legend&&!x(this.chart.options.legend.markerMargin)?this.chart.options.legend.markerMargin:
|
||||
0.3*this.fontSize;this.height=0;var k=[],m=[];"top"===this.verticalAlign||"bottom"===this.verticalAlign?(this.orientation="horizontal",b=this.verticalAlign,g=this.maxWidth=null!==this.maxWidth?this.maxWidth:d.width,h=this.maxHeight=null!==this.maxHeight?this.maxHeight:0.5*d.height):"center"===this.verticalAlign&&(this.orientation="vertical",b=this.horizontalAlign,g=this.maxWidth=null!==this.maxWidth?this.maxWidth:0.5*d.width,h=this.maxHeight=null!==this.maxHeight?this.maxHeight:d.height);for(var n=
|
||||
0;n<this.dataSeries.length;n++){var p=this.dataSeries[n];if("pie"!==p.type&&"doughnut"!==p.type&&"funnel"!==p.type){var e=p.legendMarkerType=p.legendMarkerType?p.legendMarkerType:"line"!==p.type&&"stepLine"!==p.type&&"spline"!==p.type&&"scatter"!==p.type&&"bubble"!==p.type||!p.markerType?$.getDefaultLegendMarker(p.type):p.markerType,r=p.legendText?p.legendText:this.itemTextFormatter?this.itemTextFormatter({chart:this.chart,legend:this.options,dataSeries:p,dataPoint:null}):p.name,q=p.legendMarkerColor=
|
||||
p.legendMarkerColor?p.legendMarkerColor:p.markerColor?p.markerColor:p._colorSet[0],s=p.markerSize||"line"!==p.type&&"stepLine"!==p.type&&"spline"!==p.type?0.75*this.lineHeight:0,v=p.legendMarkerBorderColor?p.legendMarkerBorderColor:p.markerBorderColor,w=p.legendMarkerBorderThickness?p.legendMarkerBorderThickness:p.markerBorderThickness?Math.max(1,Math.round(0.2*s)):0,r=this.chart.replaceKeywordsWithValue(r,p.dataPoints[0],p,n),e={markerType:e,markerColor:q,text:r,textBlock:null,chartType:p.type,markerSize:s,
|
||||
lineColor:p._colorSet[0],dataSeriesIndex:p.index,dataPointIndex:null,markerBorderColor:v,markerBorderThickness:w};k.push(e)}else for(var u=0;u<p.dataPoints.length;u++){var t=p.dataPoints[u],e=t.legendMarkerType?t.legendMarkerType:p.legendMarkerType?p.legendMarkerType:$.getDefaultLegendMarker(p.type),r=t.legendText?t.legendText:p.legendText?p.legendText:this.itemTextFormatter?this.itemTextFormatter({chart:this.chart,legend:this.options,dataSeries:p,dataPoint:t}):t.name?t.name:"DataPoint: "+(u+1),q=
|
||||
t.legendMarkerColor?t.legendMarkerColor:p.legendMarkerColor?p.legendMarkerColor:t.color?t.color:p.color?p.color:p._colorSet[u%p._colorSet.length],s=0.75*this.lineHeight,v=t.legendMarkerBorderColor?t.legendMarkerBorderColor:p.legendMarkerBorderColor?p.legendMarkerBorderColor:t.markerBorderColor?t.markerBorderColor:p.markerBorderColor,w=t.legendMarkerBorderThickness?t.legendMarkerBorderThickness:p.legendMarkerBorderThickness?p.legendMarkerBorderThickness:t.markerBorderThickness||p.markerBorderThickness?
|
||||
Math.max(1,Math.round(0.2*s)):0,r=this.chart.replaceKeywordsWithValue(r,t,p,u),e={markerType:e,markerColor:q,text:r,textBlock:null,chartType:p.type,markerSize:s,dataSeriesIndex:n,dataPointIndex:u,markerBorderColor:v,markerBorderThickness:w};(t.showInLegend||p.showInLegend&&!1!==t.showInLegend)&&k.push(e)}}!0===this.reversed&&k.reverse();if(0<k.length){p=null;q=u=r=t=0;r=null!==this.itemWidth?null!==this.itemMaxWidth?Math.min(this.itemWidth,this.itemMaxWidth,g):this.itemMaxWidth=Math.min(this.itemWidth,
|
||||
g):null!==this.itemMaxWidth?Math.min(this.itemMaxWidth,g):this.itemMaxWidth=g;s=0===s?0.75*this.lineHeight:s;r-=s+l;for(n=0;n<k.length;n++){e=k[n];if("line"===e.chartType||"spline"===e.chartType||"stepLine"===e.chartType)r-=2*0.1*this.lineHeight;if(!(0>=h||"undefined"===typeof h||0>=r||"undefined"===typeof r)){if("horizontal"===this.orientation){e.textBlock=new W(this.ctx,{x:0,y:0,maxWidth:r,maxHeight:this.itemWrap?h:this.lineHeight,angle:0,text:e.text,horizontalAlign:"left",fontSize:this.fontSize,
|
||||
fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"});e.textBlock.measureText();null!==this.itemWidth&&(e.textBlock.width=this.itemWidth-(s+l+("line"===e.chartType||"spline"===e.chartType||"stepLine"===e.chartType?2*0.1*this.lineHeight:0)));if(!p||p.width+Math.round(e.textBlock.width+s+l+(0===p.width?0:this.horizontalSpacing)+("line"===e.chartType||"spline"===e.chartType||"stepLine"===e.chartType?2*0.1*this.lineHeight:0))>g)p=
|
||||
{items:[],width:0},m.push(p),this.height+=u,u=0;u=Math.max(u,e.textBlock.height)}else e.textBlock=new W(this.ctx,{x:0,y:0,maxWidth:r,maxHeight:!0===this.itemWrap?h:1.5*this.fontSize,angle:0,text:e.text,horizontalAlign:"left",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"}),e.textBlock.measureText(),null!==this.itemWidth&&(e.textBlock.width=this.itemWidth-(s+l+("line"===e.chartType||"spline"===e.chartType||
|
||||
"stepLine"===e.chartType?2*0.1*this.lineHeight:0))),this.height<h-this.lineHeight?(p={items:[],width:0},m.push(p)):(p=m[t],t=(t+1)%m.length),this.height+=e.textBlock.height;e.textBlock.x=p.width;e.textBlock.y=0;p.width+=Math.round(e.textBlock.width+s+l+(0===p.width?0:this.horizontalSpacing)+("line"===e.chartType||"spline"===e.chartType||"stepLine"===e.chartType?2*0.1*this.lineHeight:0));p.items.push(e);this.width=Math.max(p.width,this.width);q=e.textBlock.width+(s+l+("line"===e.chartType||"spline"===
|
||||
e.chartType||"stepLine"===e.chartType?2*0.1*this.lineHeight:0))}}this.itemWidth=q;this.height=!1===this.itemWrap?m.length*this.lineHeight:this.height+u;this.height=Math.min(h,this.height);this.width=Math.min(g,this.width)}"top"===this.verticalAlign?(f="left"===this.horizontalAlign?d.x1:"right"===this.horizontalAlign?d.x2-this.width:d.x1+d.width/2-this.width/2,c=d.y1):"center"===this.verticalAlign?(f="left"===this.horizontalAlign?d.x1:"right"===this.horizontalAlign?d.x2-this.width:d.x1+d.width/2-this.width/
|
||||
2,c=d.y1+d.height/2-this.height/2):"bottom"===this.verticalAlign&&(f="left"===this.horizontalAlign?d.x1:"right"===this.horizontalAlign?d.x2-this.width:d.x1+d.width/2-this.width/2,c=d.y2-this.height);this.items=k;for(n=0;n<this.items.length;n++)e=k[n],e.id=++this.chart._eventManager.lastObjectId,this.chart._eventManager.objectMap[e.id]={id:e.id,objectType:"legendItem",legendItemIndex:n,dataSeriesIndex:e.dataSeriesIndex,dataPointIndex:e.dataPointIndex};(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&
|
||||
this.ctx.roundRect(f,c,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);for(n=d=0;n<m.length;n++){p=m[n];for(t=u=0;t<p.items.length;t++){e=p.items[t];q=e.textBlock.x+f+(0===t?0.2*s:this.horizontalSpacing);v=c+d;r=q;this.chart.data[e.dataSeriesIndex].visible||(this.ctx.globalAlpha=0.5);this.ctx.save();this.ctx.beginPath();this.ctx.rect(f,c,g,Math.max(h-h%this.lineHeight,0));this.ctx.clip();if("line"===e.chartType||"stepLine"===e.chartType||"spline"===
|
||||
e.chartType)this.ctx.strokeStyle=e.lineColor,this.ctx.lineWidth=Math.ceil(this.lineHeight/8),this.ctx.beginPath(),this.ctx.moveTo(q-0.1*this.lineHeight,v+this.lineHeight/2),this.ctx.lineTo(q+0.85*this.lineHeight,v+this.lineHeight/2),this.ctx.stroke(),r-=0.1*this.lineHeight;P.drawMarker(q+s/2,v+this.lineHeight/2,this.ctx,e.markerType,e.markerSize,e.markerColor,e.markerBorderColor,e.markerBorderThickness);e.textBlock.x=q+l+s;if("line"===e.chartType||"stepLine"===e.chartType||"spline"===e.chartType)e.textBlock.x+=
|
||||
0.1*this.lineHeight;e.textBlock.y=Math.round(v+this.lineHeight/2);e.textBlock.render(!0);this.ctx.restore();u=0<t?Math.max(u,e.textBlock.height):e.textBlock.height;this.chart.data[e.dataSeriesIndex].visible||(this.ctx.globalAlpha=1);q=G(e.id);this.ghostCtx.fillStyle=q;this.ghostCtx.beginPath();this.ghostCtx.fillRect(r,e.textBlock.y-this.lineHeight/2,e.textBlock.x+e.textBlock.width-r,e.textBlock.height);e.x1=this.chart._eventManager.objectMap[e.id].x1=r;e.y1=this.chart._eventManager.objectMap[e.id].y1=
|
||||
e.textBlock.y-this.lineHeight/2;e.x2=this.chart._eventManager.objectMap[e.id].x2=e.textBlock.x+e.textBlock.width;e.y2=this.chart._eventManager.objectMap[e.id].y2=e.textBlock.y+e.textBlock.height-this.lineHeight/2}d+=u}0<k.length&&a.layoutManager.registerSpace(b,{width:this.width+2+2,height:this.height+5+5});this.bounds={x1:f,y1:c,x2:f+this.width,y2:c+this.height}};U(Ca,M);Ca.prototype.render=function(){var a=this.chart.layoutManager.getFreeSpace();this.ctx.fillStyle="red";this.ctx.fillRect(a.x1,a.y1,
|
||||
a.x2,a.y2)};U($,M);$.prototype.getDefaultAxisPlacement=function(){var a=this.type;if("column"===a||"line"===a||"stepLine"===a||"spline"===a||"area"===a||"stepArea"===a||"splineArea"===a||"stackedColumn"===a||"stackedLine"===a||"bubble"===a||"scatter"===a||"stackedArea"===a||"stackedColumn100"===a||"stackedLine100"===a||"stackedArea100"===a||"candlestick"===a||"ohlc"===a||"rangeColumn"===a||"rangeArea"===a||"rangeSplineArea"===a)return"normal";if("bar"===a||"stackedBar"===a||"stackedBar100"===a||"rangeBar"===
|
||||
a)return"xySwapped";if("pie"===a||"doughnut"===a||"funnel"===a)return"none";window.console.log("Unknown Chart Type: "+a);return null};$.getDefaultLegendMarker=function(a){if("column"===a||"stackedColumn"===a||"stackedLine"===a||"bar"===a||"stackedBar"===a||"stackedBar100"===a||"bubble"===a||"scatter"===a||"stackedColumn100"===a||"stackedLine100"===a||"stepArea"===a||"candlestick"===a||"ohlc"===a||"rangeColumn"===a||"rangeBar"===a||"rangeArea"===a||"rangeSplineArea"===a)return"square";if("line"===
|
||||
a||"stepLine"===a||"spline"===a||"pie"===a||"doughnut"===a||"funnel"===a)return"circle";if("area"===a||"splineArea"===a||"stackedArea"===a||"stackedArea100"===a)return"triangle";window.console.log("Unknown Chart Type: "+a);return null};$.prototype.getDataPointAtX=function(a,d){if(!this.dataPoints||0===this.dataPoints.length)return null;var b={dataPoint:null,distance:Infinity,index:NaN},c=null,f=0,g=0,h=1,l=Infinity,k=0,m=0,n=0;"none"!==this.chart.plotInfo.axisPlacement&&(this.axisX.logarithmic?(n=
|
||||
Math.log(this.dataPoints[this.dataPoints.length-1].x/this.dataPoints[0].x),n=1<n?Math.min(Math.max((this.dataPoints.length-1)/n*Math.log(a/this.dataPoints[0].x)>>0,0),this.dataPoints.length):0):(n=this.dataPoints[this.dataPoints.length-1].x-this.dataPoints[0].x,n=0<n?Math.min(Math.max((this.dataPoints.length-1)/n*(a-this.dataPoints[0].x)>>0,0),this.dataPoints.length):0));for(;;){g=0<h?n+f:n-f;if(0<=g&&g<this.dataPoints.length){var c=this.dataPoints[g],p=this.axisX.logarithmic?c.x>a?c.x/a:a/c.x:Math.abs(c.x-
|
||||
a);p<b.distance&&(b.dataPoint=c,b.distance=p,b.index=g);c=p;c<=l?l=c:0<h?k++:m++;if(1E3<k&&1E3<m)break}else if(0>n-f&&n+f>=this.dataPoints.length)break;-1===h?(f++,h=1):h=-1}return d||b.dataPoint.x!==a?d&&null!==b.dataPoint?b:null:b};$.prototype.getDataPointAtXY=function(a,d,b){if(!this.dataPoints||0===this.dataPoints.length||a<this.chart.plotArea.x1||a>this.chart.plotArea.x2||d<this.chart.plotArea.y1||d>this.chart.plotArea.y2)return null;b=b||!1;var c=[],f=0,g=0,h=1,l=!1,k=Infinity,m=0,n=0,p=0;"none"!==
|
||||
this.chart.plotInfo.axisPlacement&&(p=(this.chart.axisX[0]?this.chart.axisX[0]:this.chart.axisX2[0]).getXValueAt({x:a,y:d}),this.axisX.logarithmic?(g=Math.log(this.dataPoints[this.dataPoints.length-1].x/this.dataPoints[0].x),p=1<g?Math.min(Math.max((this.dataPoints.length-1)/g*Math.log(p/this.dataPoints[0].x)>>0,0),this.dataPoints.length):0):(g=this.dataPoints[this.dataPoints.length-1].x-this.dataPoints[0].x,p=0<g?Math.min(Math.max((this.dataPoints.length-1)/g*(p-this.dataPoints[0].x)>>0,0),this.dataPoints.length):
|
||||
0));for(;;){g=0<h?p+f:p-f;if(0<=g&&g<this.dataPoints.length){var e=this.chart._eventManager.objectMap[this.dataPointIds[g]],r=this.dataPoints[g],q=null;if(e){switch(this.type){case "column":case "stackedColumn":case "stackedColumn100":case "bar":case "stackedBar":case "stackedBar100":case "rangeColumn":case "rangeBar":a>=e.x1&&(a<=e.x2&&d>=e.y1&&d<=e.y2)&&(c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(e.x1-a),Math.abs(e.x2-a),Math.abs(e.y1-d),Math.abs(e.y2-d))}),
|
||||
l=!0);break;case "line":case "stepLine":case "spline":case "area":case "stepArea":case "stackedArea":case "stackedArea100":case "splineArea":case "scatter":var s=L("markerSize",r,this)||4,v=b?20:s,q=Math.sqrt(Math.pow(e.x1-a,2)+Math.pow(e.y1-d,2));q<=v&&c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:q});g=Math.abs(e.x1-a);g<=k?k=g:0<h?m++:n++;q<=s/2&&(l=!0);break;case "rangeArea":case "rangeSplineArea":s=L("markerSize",r,this)||4;v=b?20:s;q=Math.min(Math.sqrt(Math.pow(e.x1-a,2)+Math.pow(e.y1-
|
||||
d,2)),Math.sqrt(Math.pow(e.x1-a,2)+Math.pow(e.y2-d,2)));q<=v&&c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:q});g=Math.abs(e.x1-a);g<=k?k=g:0<h?m++:n++;q<=s/2&&(l=!0);break;case "bubble":s=e.size;q=Math.sqrt(Math.pow(e.x1-a,2)+Math.pow(e.y1-d,2));q<=s/2&&(c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:q}),l=!0);break;case "pie":case "doughnut":s=e.center;v="doughnut"===this.type?e.percentInnerRadius*e.radius:0;q=Math.sqrt(Math.pow(s.x-a,2)+Math.pow(s.y-d,2));q<e.radius&&
|
||||
q>v&&(q=Math.atan2(d-s.y,a-s.x),0>q&&(q+=2*Math.PI),q=Number(((180*(q/Math.PI)%360+360)%360).toFixed(12)),s=Number(((180*(e.startAngle/Math.PI)%360+360)%360).toFixed(12)),v=Number(((180*(e.endAngle/Math.PI)%360+360)%360).toFixed(12)),0===v&&1<e.endAngle&&(v=360),s>=v&&0!==r.y&&(v+=360,q<s&&(q+=360)),q>s&&q<v&&(c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:0}),l=!0));break;case "candlestick":if(a>=e.x1-e.borderThickness/2&&a<=e.x2+e.borderThickness/2&&d>=e.y2-e.borderThickness/2&&d<=
|
||||
e.y3+e.borderThickness/2||Math.abs(e.x2-a+e.x1-a)<e.borderThickness&&d>=e.y1&&d<=e.y4)c.push({dataPoint:r,dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(e.x1-a),Math.abs(e.x2-a),Math.abs(e.y2-d),Math.abs(e.y3-d))}),l=!0;break;case "ohlc":if(Math.abs(e.x2-a+e.x1-a)<e.borderThickness&&d>=e.y2&&d<=e.y3||a>=e.x1&&a<=(e.x2+e.x1)/2&&d>=e.y1-e.borderThickness/2&&d<=e.y1+e.borderThickness/2||a>=(e.x1+e.x2)/2&&a<=e.x2&&d>=e.y4-e.borderThickness/2&&d<=e.y4+e.borderThickness/2)c.push({dataPoint:r,
|
||||
dataPointIndex:g,dataSeries:this,distance:Math.min(Math.abs(e.x1-a),Math.abs(e.x2-a),Math.abs(e.y2-d),Math.abs(e.y3-d))}),l=!0}if(l||1E3<m&&1E3<n)break}}else if(0>p-f&&p+f>=this.dataPoints.length)break;-1===h?(f++,h=1):h=-1}a=null;for(d=0;d<c.length;d++)a?c[d].distance<=a.distance&&(a=c[d]):a=c[d];return a};$.prototype.getMarkerProperties=function(a,d,b,c){var f=this.dataPoints;return{x:d,y:b,ctx:c,type:f[a].markerType?f[a].markerType:this.markerType,size:f[a].markerSize?f[a].markerSize:this.markerSize,
|
||||
color:f[a].markerColor?f[a].markerColor:this.markerColor?this.markerColor:f[a].color?f[a].color:this.color?this.color:this._colorSet[a%this._colorSet.length],borderColor:f[a].markerBorderColor?f[a].markerBorderColor:this.markerBorderColor?this.markerBorderColor:null,borderThickness:f[a].markerBorderThickness?f[a].markerBorderThickness:this.markerBorderThickness?this.markerBorderThickness:null}};U(B,M);B.prototype.createExtraLabelsForLog=function(a){a=(a||0)+1;if(!(5<a)){var d=this.logLabelValues[0]||
|
||||
this.intervalStartPosition;if(Math.log(this.range)/Math.log(d/this.viewportMinimum)<this.noTicks-1){for(var b=B.getNiceNumber((d-this.viewportMinimum)/Math.min(Math.max(2,this.noTicks-this.logLabelValues.length),3),!0),c=Math.ceil(this.viewportMinimum/b)*b;c<d;c+=b)c<this.viewportMinimum||this.logLabelValues.push(c);this.logLabelValues.sort(ya);this.createExtraLabelsForLog(a)}}};B.prototype.createLabels=function(){var a,d,b=0,c=0,f,g=0,h=0,c=0,l=this.interval,k=0,m,n=0.6*this.chart.height,b=!1;if(this.dataSeries&&
|
||||
0<this.dataSeries.length)for(c=0;c<this.dataSeries.length;c++)"dateTime"===this.dataSeries[c].xValueType&&(b=!0);if("axisX"===this.type&&b&&!this.logarithmic)for(this.intervalStartPosition=this.getLabelStartPoint(new Date(this.viewportMinimum),this.intervalType,this.interval),f=Ha(new Date(this.viewportMaximum),this.interval,this.intervalType),b=this.intervalStartPosition;b<f;Ha(b,l,this.intervalType))a=b.getTime(),a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:b,
|
||||
label:this.labels[b]?this.labels[b]:null}):"axisX"===this.type&&this.labels[a]?this.labels[a]:Ea(b,this.valueFormatString,this.chart._cultureInfo),a=new W(this.ctx,{x:0,y:0,maxWidth:g,backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,horizontalAlign:"left",fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,
|
||||
fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:"middle"}),this._labels.push({position:b.getTime(),textBlock:a,effectiveHeight:null});else{f=this.viewportMaximum;if(this.labels){a=Math.ceil(l);for(var l=Math.ceil(this.intervalStartPosition),p=!1,b=l;b<this.viewportMaximum;b+=a)if(this.labels[b])p=!0;else{p=!1;break}p&&(this.interval=a,this.intervalStartPosition=l)}if(this.logarithmic&&!this.equidistantInterval){this.logLabelValues||(this.logLabelValues=[],this.createExtraLabelsForLog());
|
||||
for(var e=0;e<this.logLabelValues.length;e++)b=this.logLabelValues[e],b<this.viewportMinimum||(a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:b,label:this.labels[b]?this.labels[b]:null}):"axisX"===this.type&&this.labels[b]?this.labels[b]:da(b,this.valueFormatString,this.chart._cultureInfo),a=new W(this.ctx,{x:0,y:0,maxWidth:g,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,
|
||||
borderThickness:this.labelBorderThickness,cornerRadius:this.labelCornerRadius,horizontalAlign:"left",fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:"middle",borderThickness:0}),this._labels.push({position:b,textBlock:a,effectiveHeight:null}))}for(b=this.intervalStartPosition;b<=f;b=parseFloat((this.logarithmic&&this.equidistantInterval?b*Math.pow(this.logarithmBase,this.interval):
|
||||
b+this.interval).toFixed(14)))a=this.labelFormatter?this.labelFormatter({chart:this.chart,axis:this.options,value:b,label:this.labels[b]?this.labels[b]:null}):"axisX"===this.type&&this.labels[b]?this.labels[b]:da(b,this.valueFormatString,this.chart._cultureInfo),a=new W(this.ctx,{x:0,y:0,maxWidth:g,maxHeight:h,angle:this.labelAngle,text:this.prefix+a+this.suffix,horizontalAlign:"left",backgroundColor:this.labelBackgroundColor,borderColor:this.labelBorderColor,borderThickness:this.labelBorderThickness,
|
||||
cornerRadius:this.labelCornerRadius,fontSize:this.labelFontSize,fontFamily:this.labelFontFamily,fontWeight:this.labelFontWeight,fontColor:this.labelFontColor,fontStyle:this.labelFontStyle,textBaseline:"middle"}),this._labels.push({position:b,textBlock:a,effectiveHeight:null})}if("bottom"===this._position||"top"===this._position)k=this.logarithmic&&!this.equidistantInterval&&2<=this._labels.length?this.lineCoordinates.width*Math.log(Math.min(this._labels[this._labels.length-1].position/this._labels[this._labels.length-
|
||||
2].position,this._labels[1].position/this._labels[0].position))/Math.log(this.range):this.lineCoordinates.width/(this.logarithmic&&this.equidistantInterval?Math.log(this.range)/Math.log(this.logarithmBase):Math.abs(this.range))*E[this.intervalType+"Duration"]*this.interval,g="undefined"===typeof this.options.labelMaxWidth?0.5*this.chart.width>>0:this.options.labelMaxWidth,this.chart.panEnabled||(h="undefined"===typeof this.options.labelWrap||this.labelWrap?0.8*this.chart.height>>0:1.5*this.labelFontSize);
|
||||
else if("left"===this._position||"right"===this._position)k=this.logarithmic&&!this.equidistantInterval&&2<=this._labels.length?this.lineCoordinates.height*Math.log(Math.min(this._labels[this._labels.length-1].position/this._labels[this._labels.length-2].position,this._labels[1].position/this._labels[0].position))/Math.log(this.range):this.lineCoordinates.height/(this.logarithmic&&this.equidistantInterval?Math.log(this.range)/Math.log(this.logarithmBase):Math.abs(this.range))*E[this.intervalType+
|
||||
"Duration"]*this.interval,this.chart.panEnabled||(g="undefined"===typeof this.options.labelMaxWidth?0.3*this.chart.width>>0:this.options.labelMaxWidth),h="undefined"===typeof this.options.labelWrap||this.labelWrap?0.3*this.chart.height>>0:1.5*this.labelFontSize;for(c=0;c<this._labels.length;c++){a=this._labels[c].textBlock;a.maxWidth=g;a.maxHeight=h;var r=a.measureText();m=r.height}f=[];p=l=0;if(this.labelAutoFit||this.options.labelAutoFit)if(x(this.labelAngle)||(this.labelAngle=(this.labelAngle%
|
||||
360+360)%360,90<this.labelAngle&&270>this.labelAngle?this.labelAngle-=180:270<=this.labelAngle&&360>=this.labelAngle&&(this.labelAngle-=360)),"bottom"===this._position||"top"===this._position)if(g=0.9*k>>0,p=0,!this.chart.panEnabled&&1<=this._labels.length){this.sessionVariables.labelFontSize=this.labelFontSize;this.sessionVariables.labelMaxWidth=g;this.sessionVariables.labelMaxHeight=h;this.sessionVariables.labelAngle=this.labelAngle;this.sessionVariables.labelWrap=this.labelWrap;for(b=0;b<this._labels.length;b++){a=
|
||||
this._labels[b].textBlock;for(var q,s=a.text.split(" "),c=0;c<s.length;c++)e=s[c],this.ctx.font=a.fontStyle+" "+a.fontWeight+" "+a.fontSize+"px "+a.fontFamily,e=this.ctx.measureText(e),e.width>p&&(q=b,p=e.width)}b=0;for(b=this.intervalStartPosition<this.viewportMinimum?1:0;b<this._labels.length;b++)if(a=this._labels[b].textBlock,r=a.measureText(),b<this._labels.length-1&&(e=b+1,d=this._labels[e].textBlock,d=d.measureText()),f.push(a.height),this.sessionVariables.labelMaxHeight=Math.max.apply(Math,
|
||||
f),Math.cos(Math.PI/180*Math.abs(this.labelAngle)),Math.sin(Math.PI/180*Math.abs(this.labelAngle)),c=g*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(h-a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)),x(this.options.labelAngle)&&isNaN(this.options.labelAngle)&&0!==this.options.labelAngle)if(this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:Math.min((c-g*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/Math.sin(Math.PI/180*Math.abs(this.labelAngle)),c),s=(n-(m+a.fontSize/2)*
|
||||
Math.cos(Math.PI/180*Math.abs(-25)))/Math.sin(Math.PI/180*Math.abs(-25)),!x(this.options.labelWrap))this.labelWrap?x(this.options.labelMaxWidth)?(this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,p),s),this.sessionVariables.labelWrap=this.labelWrap,r.width+d.width>>0>2*g&&(this.sessionVariables.labelAngle=-25)):(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelAngle=this.sessionVariables.labelMaxWidth>g?
|
||||
-25:this.sessionVariables.labelAngle):x(this.options.labelMaxWidth)?(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelMaxWidth=g,r.width+d.width>>0>2*g&&(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=s)):(this.sessionVariables.labelAngle=this.sessionVariables.labelMaxWidth>g?-25:this.sessionVariables.labelAngle,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=
|
||||
h,this.sessionVariables.labelWrap=this.labelWrap);else{if(x(this.options.labelWrap))if(!x(this.options.labelMaxWidth))this.options.labelMaxWidth<g?(this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=c):(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth,this.sessionVariables.labelMaxHeight=h);else if(!x(d))if(c=r.width+d.width>>0,e=this.labelFontSize,p<g)c-2*g>l&&(l=c-2*g,c>=2*g&&c<2.2*g?(this.sessionVariables.labelMaxWidth=
|
||||
g,x(this.options.labelFontSize)&&12<e&&(e=Math.floor(12/13*e),a.measureText()),this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?e:this.options.labelFontSize,this.sessionVariables.labelAngle=this.labelAngle):c>=2.2*g&&c<2.8*g?(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=s,this.sessionVariables.labelFontSize=e):c>=2.8*g&&c<3.2*g?(this.sessionVariables.labelMaxWidth=Math.max(g,p),this.sessionVariables.labelWrap=!0,x(this.options.labelFontSize)&&12<this.labelFontSize&&
|
||||
(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?e:this.options.labelFontSize,this.sessionVariables.labelAngle=this.labelAngle):c>=3.2*g&&c<3.6*g?(this.sessionVariables.labelAngle=-25,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelMaxWidth=s,this.sessionVariables.labelFontSize=this.labelFontSize):c>3.6*g&&c<5*g?(x(this.options.labelFontSize)&&12<e&&(e=Math.floor(12/13*e),a.measureText()),this.sessionVariables.labelFontSize=
|
||||
x(this.options.labelFontSize)?e:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=s):c>5*g&&(this.sessionVariables.labelWrap=!0,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelFontSize=e,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelAngle=this.labelAngle));else if(q===b&&(0===q&&p+this._labels[q+1].textBlock.measureText().width-2*g>l||q===this._labels.length-1&&p+this._labels[q-
|
||||
1].textBlock.measureText().width-2*g>l||0<q&&q<this._labels.length-1&&p+this._labels[q+1].textBlock.measureText().width-2*g>l&&p+this._labels[q-1].textBlock.measureText().width-2*g>l))l=0===q?p+this._labels[q+1].textBlock.measureText().width-2*g:p+this._labels[q-1].textBlock.measureText().width-2*g,this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?e:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelAngle=-25,this.sessionVariables.labelMaxWidth=
|
||||
s;else if(0===l)for(this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?e:this.options.labelFontSize,this.sessionVariables.labelWrap=!0,c=0;c<this._labels.length;c++)a=this._labels[c].textBlock,a.maxWidth=this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,p),s),r=a.measureText(),c<this._labels.length-1&&(e=c+1,d=this._labels[e].textBlock,d.maxWidth=this.sessionVariables.labelMaxWidth=Math.min(Math.max(g,p),s),d=d.measureText(),r.width+d.width>>0>2*g&&(this.sessionVariables.labelAngle=
|
||||
-25))}else(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:Math.min((c-g*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/Math.sin(Math.PI/180*Math.abs(this.labelAngle)),c),s=0!=this.labelAngle?(n-(m+a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)))/Math.sin(Math.PI/180*Math.abs(this.labelAngle)):g,this.sessionVariables.labelMaxHeight=h=this.labelWrap?(n-s*Math.sin(Math.PI/180*Math.abs(this.labelAngle)))/Math.cos(Math.PI/180*
|
||||
Math.abs(this.labelAngle)):1.5*this.labelFontSize,x(this.options.labelWrap))?x(this.options.labelWrap)&&(this.labelWrap&&!x(this.options.labelMaxWidth)?(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:s,this.sessionVariables.labelMaxHeight=h):(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxWidth=s,this.sessionVariables.labelMaxHeight=c<0.9*k?0.9*k:c,this.sessionVariables.labelWrap=
|
||||
this.labelWrap)):(this.options.labelWrap?(this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:s):(x(this.options.labelMaxWidth),this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:s,this.sessionVariables.labelWrap=this.labelWrap),this.sessionVariables.labelMaxHeight=h);for(c=0;c<this._labels.length;c++)a=this._labels[c].textBlock,a.maxWidth=this.labelMaxWidth=this.sessionVariables.labelMaxWidth,
|
||||
a.fontSize=this.sessionVariables.labelFontSize,a.angle=this.labelAngle=this.sessionVariables.labelAngle,a.wrap=this.labelWrap=this.sessionVariables.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText()}else for(b=0;b<this._labels.length;b++)a=this._labels[b].textBlock,a.maxWidth=this.labelMaxWidth=x(this.options.labelMaxWidth)?this.sessionVariables.labelMaxWidth:this.options.labelMaxWidth,a.fontSize=this.labelFontSize=x(this.options.labelFontSize)?this.sessionVariables.labelFontSize:
|
||||
this.options.labelFontSize,a.angle=this.labelAngle=x(this.options.labelAngle)?this.sessionVariables.labelAngle:this.labelAngle,a.wrap=this.labelWrap=x(this.options.labelWrap)?this.sessionVariables.labelWrap:this.options.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText();else if("left"===this._position||"right"===this._position)if(g=x(this.options.labelMaxWidth)?0.3*this.chart.width>>0:this.options.labelMaxWidth,h="undefined"===typeof this.options.labelWrap||this.labelWrap?
|
||||
0.3*this.chart.height>>0:1.5*this.labelFontSize,!this.chart.panEnabled&&1<=this._labels.length){this.sessionVariables.labelFontSize=this.labelFontSize;this.sessionVariables.labelMaxWidth=g;this.sessionVariables.labelMaxHeight=h;this.sessionVariables.labelAngle=x(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle;this.sessionVariables.labelWrap=this.labelWrap;for(b=0;b<this._labels.length;b++)(a=this._labels[b].textBlock,r=a.measureText(),b<this._labels.length-1&&(e=b+1,d=this._labels[e].textBlock,
|
||||
d=d.measureText()),f.push(a.height),this.sessionVariables.labelMaxHeight=Math.max.apply(Math,f),c=g*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(h-a.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)),Math.cos(Math.PI/180*Math.abs(this.labelAngle)),Math.sin(Math.PI/180*Math.abs(this.labelAngle)),x(this.options.labelAngle)&&isNaN(this.options.labelAngle)&&0!==this.options.labelAngle)?x(this.options.labelWrap)?x(this.options.labelWrap)&&(x(this.options.labelMaxWidth)?x(d)||(k=r.height+d.height>>
|
||||
0,k-2*h>p&&(p=k-2*h,k>=2*h&&k<2.4*h?(x(this.options.labelFontSize)&&12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize):k>=2.4*h&&k<2.8*h?(this.sessionVariables.labelMaxHeight=c,this.sessionVariables.labelFontSize=this.labelFontSize,this.sessionVariables.labelWrap=!0):k>=2.8*h&&k<3.2*h?(this.sessionVariables.labelMaxHeight=
|
||||
h,this.sessionVariables.labelWrap=!0,x(this.options.labelFontSize)&&12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelAngle=x(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle):k>=3.2*h&&k<3.6*h?(this.sessionVariables.labelMaxHeight=c,this.sessionVariables.labelWrap=!0,this.sessionVariables.labelFontSize=
|
||||
this.labelFontSize):k>3.6*h&&k<10*h?(x(this.options.labelFontSize)&&12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelAngle=x(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle):k>10*h&&k<50*h&&(x(this.options.labelFontSize)&&
|
||||
12<this.labelFontSize&&(this.labelFontSize=Math.floor(12/13*this.labelFontSize),a.measureText()),this.sessionVariables.labelFontSize=x(this.options.labelFontSize)?this.labelFontSize:this.options.labelFontSize,this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelMaxWidth=g,this.sessionVariables.labelAngle=x(this.sessionVariables.labelAngle)?0:this.sessionVariables.labelAngle))):(this.sessionVariables.labelMaxHeight=h,this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:
|
||||
this.sessionVariables.labelMaxWidth)):(this.sessionVariables.labelMaxWidth=this.labelWrap?this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth:this.labelMaxWidth?this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth:g,this.sessionVariables.labelMaxHeight=h):(this.sessionVariables.labelAngle=this.labelAngle,this.sessionVariables.labelMaxWidth=0===this.labelAngle?g:Math.min((c-h*Math.sin(Math.PI/180*Math.abs(this.labelAngle)))/
|
||||
Math.cos(Math.PI/180*Math.abs(this.labelAngle)),h),x(this.options.labelWrap))?x(this.options.labelWrap)&&(this.labelWrap&&!x(this.options.labelMaxWidth)?(this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth>this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth,this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxHeight=c):(this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:g,this.sessionVariables.labelMaxHeight=
|
||||
0===this.labelAngle?h:c,x(this.options.labelMaxWidth)&&(this.sessionVariables.labelAngle=this.labelAngle))):this.options.labelWrap?(this.sessionVariables.labelMaxHeight=0===this.labelAngle?h:c,this.sessionVariables.labelWrap=this.labelWrap,this.sessionVariables.labelMaxWidth=g):(this.sessionVariables.labelMaxHeight=h,x(this.options.labelMaxWidth),this.sessionVariables.labelMaxWidth=this.options.labelMaxWidth?this.options.labelMaxWidth:this.sessionVariables.labelMaxWidth,this.sessionVariables.labelWrap=
|
||||
this.labelWrap);for(c=0;c<this._labels.length;c++)a=this._labels[c].textBlock,a.maxWidth=this.labelMaxWidth=this.sessionVariables.labelMaxWidth,a.fontSize=this.labelFontSize=this.sessionVariables.labelFontSize,a.angle=this.labelAngle=this.sessionVariables.labelAngle,a.wrap=this.labelWrap=this.sessionVariables.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText()}else for(b=0;b<this._labels.length;b++)a=this._labels[b].textBlock,a.maxWidth=this.labelMaxWidth=x(this.options.labelMaxWidth)?
|
||||
this.sessionVariables.labelMaxWidth:this.options.labelMaxWidth,a.fontSize=this.labelFontSize=x(this.options.labelFontSize)?this.sessionVariables.labelFontSize:this.options.labelFontSize,a.angle=this.labelAngle=x(this.options.labelAngle)?this.sessionVariables.labelAngle:this.labelAngle,a.wrap=this.labelWrap=x(this.options.labelWrap)?this.sessionVariables.labelWrap:this.options.labelWrap,a.maxHeight=this.sessionVariables.labelMaxHeight,a.measureText();for(b=0;b<this.stripLines.length;b++){var g=this.stripLines[b],
|
||||
v;if("outside"===g.labelPlacement){h=this.sessionVariables.labelMaxWidth;if("bottom"===this._position||"top"===this._position)v="undefined"===typeof g.options.labelWrap?this.sessionVariables.labelMaxHeight:g.labelWrap?0.8*this.chart.height>>0:1.5*this.labelFontSize;if("left"===this._position||"right"===this._position)v="undefined"===typeof g.options.labelWrap?this.sessionVariables.labelMaxHeight:g.labelWrap?0.8*this.chart.width>>0:1.5*this.labelFontSize;d=x(g.options.labelBackgroundColor)?"#EEEEEE":
|
||||
g.options.labelBackgroundColor}else h="bottom"===this._position||"top"===this._position?0.9*this.chart.width>>0:0.9*this.chart.height>>0,v="undefined"===typeof g.options.labelWrap||g.labelWrap?"bottom"===this._position||"top"===this._position?0.8*this.chart.width>>0:0.8*this.chart.height>>0:1.5*this.labelFontSize,d=x(g.options.labelBackgroundColor)?x(g.startValue)&&0!==g.startValue?u?"transparent":null:"#EEEEEE":g.options.labelBackgroundColor;a=new W(this.ctx,{x:0,y:0,backgroundColor:d,borderColor:g.labelBorderColor,
|
||||
borderThickness:g.labelBorderThickness,cornerRadius:g.labelCornerRadius,maxWidth:g.options.labelMaxWidth?g.options.labelMaxWidth:h,maxHeight:v,angle:this.labelAngle,text:g.labelFormatter?g.labelFormatter({chart:this.chart,axis:this,stripLine:g}):g.label,horizontalAlign:"left",fontSize:"outside"===g.labelPlacement?g.options.labelFontSize?g.options.labelFontSize:this.labelFontSize:g.labelFontSize,fontFamily:"outside"===g.labelPlacement?g.options.labelFontFamily?g.options.labelFontFamily:this.labelFontFamily:
|
||||
g.labelFontFamily,fontWeight:"outside"===g.labelPlacement?g.options.fontWeight?g.options.fontWeight:this.fontWeight:g.fontWeight,fontColor:g.options.labelFontColor||g.color,fontStyle:"outside"===g.labelPlacement?g.options.fontStyle?g.options.fontStyle:this.fontWeight:g.fontStyle,textBaseline:"middle"});this._stripLineLabels.push({position:g.value,textBlock:a,effectiveHeight:null,stripLine:g})}};B.prototype.createLabelsAndCalculateWidth=function(){var a=0,d=0;this._labels=[];this._stripLineLabels=
|
||||
[];if("left"===this._position||"right"===this._position){this.createLabels();for(d=0;d<this._labels.length;d++){var b=this._labels[d].textBlock,c=b.measureText(),f=0,f=0===this.labelAngle?c.width:c.width*Math.cos(Math.PI/180*Math.abs(this.labelAngle))+(c.height-b.fontSize/2)*Math.sin(Math.PI/180*Math.abs(this.labelAngle));a<f&&(a=f);this._labels[d].effectiveWidth=f}for(d=0;d<this._stripLineLabels.length;d++)"outside"===this._stripLineLabels[d].stripLine.labelPlacement&&(this._stripLineLabels[d].stripLine.value>
|
||||
this.viewportMinimum&&this._stripLineLabels[d].stripLine.value<this.viewportMaximum)&&(b=this._stripLineLabels[d].textBlock,c=b.measureText(),f=0===this.labelAngle?c.width:c.width*Math.cos(Math.PI/180*Math.abs(this.labelAngle))+(c.height-b.fontSize/2)*Math.sin(Math.PI/180*Math.abs(this.labelAngle)),a<f&&(a=f),this._stripLineLabels[d].effectiveWidth=f)}return(this.title?this._titleTextBlock.measureText().height+2:0)+a+this.tickLength+5};B.prototype.createLabelsAndCalculateHeight=function(){var a=0;
|
||||
this._labels=[];this._stripLineLabels=[];var d,b=0;this.createLabels();if("bottom"===this._position||"top"===this._position){for(b=0;b<this._labels.length;b++){d=this._labels[b].textBlock;var c=d.measureText(),f=0,f=0===this.labelAngle?c.height:c.width*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(c.height-d.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle));a<f&&(a=f);this._labels[b].effectiveHeight=f}for(b=0;b<this._stripLineLabels.length;b++)"outside"===this._stripLineLabels[b].stripLine.labelPlacement&&
|
||||
(d=this._stripLineLabels[b].textBlock,c=d.measureText(),f=0===this.labelAngle?c.height:c.width*Math.sin(Math.PI/180*Math.abs(this.labelAngle))+(c.height-d.fontSize/2)*Math.cos(Math.PI/180*Math.abs(this.labelAngle)),a<f&&(a=f),this._stripLineLabels[b].effectiveHeight=f)}return(this.title?this._titleTextBlock.measureText().height+2:0)+a+this.tickLength+5};B.setLayoutAndRender=function(a,d,b,c,f,g){var h,l,k,m,n=a[0]?a[0].chart:d[0].chart,p=n.ctx;if(a&&0<a.length)for(var e=0;e<a.length;e++)a[e]&&a[e].calculateAxisParameters();
|
||||
if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].calculateAxisParameters();if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].calculateAxisParameters();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].calculateAxisParameters();var r=0,q=0,s=0,v=0,w=0,u=0,t=0,z,A,B=l=0,E,F,G,J;E=F=G=J=!1;if(a&&0<a.length)for(e=0;e<a.length;e++)a[e]&&a[e].title&&(a[e]._titleTextBlock=new W(a[e].ctx,{text:a[e].title,horizontalAlign:"center",fontSize:a[e].titleFontSize,fontFamily:a[e].titleFontFamily,fontWeight:a[e].titleFontWeight,
|
||||
fontColor:a[e].titleFontColor,fontStyle:a[e].titleFontStyle,borderColor:a[e].titleBorderColor,borderThickness:a[e].titleBorderThickness,backgroundColor:a[e].titleBackgroundColor,cornerRadius:a[e].titleCornerRadius,textBaseline:"top"}));if(d&&0<d.length)for(e=0;e<d.length;e++)d[e]&&d[e].title&&(d[e]._titleTextBlock=new W(d[e].ctx,{text:d[e].title,horizontalAlign:"center",fontSize:d[e].titleFontSize,fontFamily:d[e].titleFontFamily,fontWeight:d[e].titleFontWeight,fontColor:d[e].titleFontColor,fontStyle:d[e].titleFontStyle,
|
||||
borderColor:d[e].titleBorderColor,borderThickness:d[e].titleBorderThickness,backgroundColor:d[e].titleBackgroundColor,cornerRadius:d[e].titleCornerRadius,textBaseline:"top"}));if(b&&0<b.length)for(e=0;e<b.length;e++)b[e]&&b[e].title&&(b[e]._titleTextBlock=new W(b[e].ctx,{text:b[e].title,horizontalAlign:"center",fontSize:b[e].titleFontSize,fontFamily:b[e].titleFontFamily,fontWeight:b[e].titleFontWeight,fontColor:b[e].titleFontColor,fontStyle:b[e].titleFontStyle,borderColor:b[e].titleBorderColor,borderThickness:b[e].titleBorderThickness,
|
||||
backgroundColor:b[e].titleBackgroundColor,cornerRadius:b[e].titleCornerRadius,textBaseline:"top"}));if(c&&0<c.length)for(e=0;e<c.length;e++)c[e]&&c[e].title&&(c[e]._titleTextBlock=new W(c[e].ctx,{text:c[e].title,horizontalAlign:"center",fontSize:c[e].titleFontSize,fontFamily:c[e].titleFontFamily,fontWeight:c[e].titleFontWeight,fontColor:c[e].titleFontColor,fontStyle:c[e].titleFontStyle,borderColor:c[e].titleBorderColor,borderThickness:c[e].titleBorderThickness,backgroundColor:c[e].titleBackgroundColor,
|
||||
cornerRadius:c[e].titleCornerRadius,textBaseline:"top"}));if("normal"===f){var v=[],w=[],u=[],t=[],H=[],I=[],M=[],K=[];if(a&&0<a.length)for(e=0;e<a.length;e++)a[e]&&a[e].title&&(a[e]._titleTextBlock.maxWidth=a[e].titleMaxWidth||g.width,a[e]._titleTextBlock.maxHeight=a[e].titleWrap?0.8*g.height:1.5*a[e].titleFontSize,a[e]._titleTextBlock.angle=0);if(d&&0<d.length)for(e=0;e<d[e].length;e++)d[e]&&d[e].title&&(d[e]._titleTextBlock.maxWidth=d[e].titleMaxWidth||g.width,d[e]._titleTextBlock.maxHeight=d[e].titleWrap?
|
||||
0.8*g.height:1.5*d[e].titleFontSize,d[e]._titleTextBlock.angle=0);if(b&&0<b.length)for(e=0;e<b.length;e++)b[e]&&b[e].title&&(b[e]._titleTextBlock.maxWidth=b[e].titleMaxWidth||g.height,b[e]._titleTextBlock.maxHeight=b[e].titleWrap?0.8*g.width:1.5*b[e].titleFontSize,b[e]._titleTextBlock.angle=-90);if(c&&0<c.length)for(e=0;e<c.length;e++)c[e]&&c[e].title&&(c[e]._titleTextBlock.maxWidth=c[e].titleMaxWidth||g.height,c[e]._titleTextBlock.maxHeight=c[e].titleWrap?0.8*g.width:1.5*c[e].titleFontSize,c[e]._titleTextBlock.angle=
|
||||
90);for(;4>r;){var N=0,Q=0,P=0,O=0,L=f=0,C=0,S=0,X=0,V=0,U=0,T=0;if(b&&0<b.length)for(u=[],e=U=0;e<b.length;e++)u.push(Math.ceil(b[e]?b[e].createLabelsAndCalculateWidth():0)),U+=u[e],C+=b[e]?b[e].margin:0;else u.push(Math.ceil(b[0]?b[0].createLabelsAndCalculateWidth():0));M.push(u);if(c&&0<c.length)for(t=[],e=T=0;e<c.length;e++)t.push(Math.ceil(c[e]?c[e].createLabelsAndCalculateWidth():0)),T+=t[e],S+=c[e]?c[e].margin:0;else t.push(Math.ceil(c[0]?c[0].createLabelsAndCalculateWidth():0));K.push(t);
|
||||
h=Math.round(g.x1+U+C);k=Math.round(g.x2-T-S>n.width-10?n.width-10:g.x2-T-S);if(a&&0<a.length)for(v=[],e=X=0;e<a.length;e++)a[e]&&(a[e].lineCoordinates={}),a[e].lineCoordinates.width=Math.abs(k-h),a[e].title&&(a[e]._titleTextBlock.maxWidth=0<a[e].titleMaxWidth&&a[e].titleMaxWidth<a[e].lineCoordinates.width?a[e].titleMaxWidth:a[e].lineCoordinates.width),v.push(Math.ceil(a[e]?a[e].createLabelsAndCalculateHeight():0)),X+=v[e],f+=a[e]?a[e].margin:0;else v.push(Math.ceil(a[0]?a[0].createLabelsAndCalculateHeight():
|
||||
0));H.push(v);if(d&&0<d.length)for(w=[],e=V=0;e<d.length;e++)d[e]&&(d[e].lineCoordinates={}),d[e].lineCoordinates.width=Math.abs(k-h),d[e].title&&(d[e]._titleTextBlock.maxWidth=0<d[e].titleMaxWidth&&d[e].titleMaxWidth<d[e].lineCoordinates.width?d[e].titleMaxWidth:d[e].lineCoordinates.width),w.push(Math.ceil(d[e]?d[e].createLabelsAndCalculateHeight():0)),V+=w[e],L+=d[e]?d[e].margin:0;else w.push(Math.ceil(d[0]?d[0].createLabelsAndCalculateHeight():0));I.push(w);if(a&&0<a.length)for(e=0;e<a.length;e++)a[e]&&
|
||||
(a[e].lineCoordinates.x1=h,a[e].lineCoordinates.x2=Math.round(g.x2-T-S>n.width-10?n.width-10:g.x2-T-S),a[e]._labels&&1<a[e]._labels.length&&(l=m=0,m=a[e]._labels[1],l="dateTime"===a[e].chart.plotInfo.axisXValueType?a[e]._labels[a[e]._labels.length-2]:a[e]._labels[a[e]._labels.length-1],q=m.textBlock.width*Math.cos(Math.PI/180*Math.abs(m.textBlock.angle))+(m.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(m.textBlock.angle)),s=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+
|
||||
(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle))),a[e]&&(a[e].labelAutoFit&&!x(z)&&!x(A))&&(l=0,0<a[e].labelAngle?A+s>k&&(l+=0<a[e].labelAngle?A+s-k-T:0):0>a[e].labelAngle?z-q<h&&z-q<a[e].viewportMinimum&&(B=h-(C+a[e].tickLength+u+z-q+a[e].labelFontSize/2)):0===a[e].labelAngle&&(A+s>k&&(l=A+s/2-k-T),z-q<h&&z-q<a[e].viewportMinimum&&(B=h-C-a[e].tickLength-u-z+q/2)),a[e].viewportMaximum===a[e].maximum&&a[e].viewportMinimum===a[e].minimum&&0<a[e].labelAngle&&
|
||||
0<l?k-=l:a[e].viewportMaximum===a[e].maximum&&a[e].viewportMinimum===a[e].minimum&&0>a[e].labelAngle&&0<B?h+=B:a[e].viewportMaximum===a[e].maximum&&a[e].viewportMinimum===a[e].minimum&&0===a[e].labelAngle&&(0<B&&(h+=B),0<l&&(k-=l))),n.panEnabled?X=n.sessionVariables.axisX.height:n.sessionVariables.axisX.height=X,l=Math.round(g.y2-X-f+N),m=Math.round(g.y2),a[e].lineCoordinates.x2=k,a[e].lineCoordinates.width=k-h,a[e].lineCoordinates.y1=l,a[e].lineCoordinates.y2=l,a[e].bounds={x1:h,y1:l,x2:k,y2:m-(X+
|
||||
f-v[e]-N),width:k-h,height:m-l}),N+=v[e]+a[e].margin;if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].lineCoordinates.x1=Math.round(g.x1+U+C),d[e].lineCoordinates.x2=Math.round(g.x2-T-S>n.width-10?n.width-10:g.x2-T-S),d[e].lineCoordinates.width=Math.abs(k-h),d[e]._labels&&1<d[e]._labels.length&&(m=d[e]._labels[1],l="dateTime"===d[e].chart.plotInfo.axisXValueType?d[e]._labels[d[e]._labels.length-2]:d[e]._labels[d[e]._labels.length-1],q=m.textBlock.width*Math.cos(Math.PI/180*Math.abs(m.textBlock.angle))+
|
||||
(m.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(m.textBlock.angle)),s=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle))),n.panEnabled?V=n.sessionVariables.axisX2.height:n.sessionVariables.axisX2.height=V,l=Math.round(g.y1),m=Math.round(g.y2+d[e].margin),d[e].lineCoordinates.y1=l+V+L-Q,d[e].lineCoordinates.y2=l,d[e].bounds={x1:h,y1:l+(V+L-w[e]-Q),x2:k,y2:m,width:k-
|
||||
h,height:m-l},Q+=w[e]+d[e].margin;if(b&&0<b.length)for(e=0;e<b.length;e++)C=10,b[e]&&(h=Math.round(a[0]?a[0].lineCoordinates.x1:d[0].lineCoordinates.x1),C=b[e]._labels&&0<b[e]._labels.length?b[e]._labels[b[e]._labels.length-1].textBlock.height/2:10,l=Math.round(g.y1+V+L<Math.max(C,10)?Math.max(C,10):g.y1+V+L),k=Math.round(a[0]?a[0].lineCoordinates.x1:d[0].lineCoordinates.x1),C=0<a.length?0:b[e]._labels[0].textBlock.height/2,m=Math.round(g.y2-X-f-C),b[e].lineCoordinates={x1:k-P,y1:l,x2:k-P,y2:m,height:Math.abs(m-
|
||||
l)},b[e].bounds={x1:h-(u[e]+P),y1:l,x2:k,y2:m,width:k-h,height:m-l},b[e].title&&(b[e]._titleTextBlock.maxWidth=0<b[e].titleMaxWidth&&b[e].titleMaxWidth<b[e].lineCoordinates.height?b[e].titleMaxWidth:b[e].lineCoordinates.height),P+=u[e]+b[e].margin);if(c&&0<c.length)for(e=0;e<c.length;e++)c[e]&&(h=Math.round(a[0]?a[0].lineCoordinates.x2:d[0].lineCoordinates.x2),k=Math.round(h),C=c[e]._labels&&0<c[e]._labels.length?c[e]._labels[c[e]._labels.length-1].textBlock.height/2:0,l=Math.round(g.y1+V+L<Math.max(C,
|
||||
10)?Math.max(C,10):g.y1+V+L),C=0<a.length?0:c[e]._labels[0].textBlock.height/2,m=Math.round(g.y2-(X+f+C)),c[e].lineCoordinates={x1:h+O,y1:l,x2:h+O,y2:m,height:Math.abs(m-l)},c[e].bounds={x1:h,y1:l,x2:k+(t[e]+O),y2:m,width:k-h,height:m-l},c[e].title&&(c[e]._titleTextBlock.maxWidth=0<c[e].titleMaxWidth&&c[e].titleMaxWidth<c[e].lineCoordinates.height?c[e].titleMaxWidth:c[e].lineCoordinates.height),O+=t[e]+c[e].margin);if(a&&0<a.length)for(e=0;e<a.length;e++)a[e]&&(a[e].calculateValueToPixelConversionParameters(),
|
||||
a[e]._labels&&1<a[e]._labels.length&&(z=(a[e].logarithmic?Math.log(a[e]._labels[1].position/a[e].viewportMinimum)/a[e].conversionParameters.lnLogarithmBase:a[e]._labels[1].position-a[e].viewportMinimum)*Math.abs(a[e].conversionParameters.pixelPerUnit)+a[e].lineCoordinates.x1,A="dateTime"===a[e].chart.plotInfo.axisXValueType?(a[e].logarithmic?Math.log(a[e]._labels[a[e]._labels.length-2].position/a[e].viewportMinimum)/a[e].conversionParameters.lnLogarithmBase:a[e]._labels[a[e]._labels.length-2].position-
|
||||
a[e].viewportMinimum)*Math.abs(a[e].conversionParameters.pixelPerUnit)+a[e].lineCoordinates.x1:(a[e].logarithmic?Math.log(a[e]._labels[a[e]._labels.length-1].position/a[e].viewportMinimum)/a[e].conversionParameters.lnLogarithmBase:a[e]._labels[a[e]._labels.length-1].position-a[e].viewportMinimum)*Math.abs(a[e].conversionParameters.pixelPerUnit)+a[e].lineCoordinates.x1));if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].calculateValueToPixelConversionParameters(),d[e]._labels&&1<d[e]._labels.length&&(z=
|
||||
(d[e].logarithmic?Math.log(d[e]._labels[1].position/d[e].viewportMinimum)/d[e].conversionParameters.lnLogarithmBase:d[e]._labels[1].position-d[e].viewportMinimum)*Math.abs(d[e].conversionParameters.pixelPerUnit)+d[e].lineCoordinates.x1,A="dateTime"===d[e].chart.plotInfo.axisXValueType?(d[e].logarithmic?Math.log(d[e]._labels[d[e]._labels.length-2].position/d[e].viewportMinimum)/d[e].conversionParameters.lnLogarithmBase:d[e]._labels[d[e]._labels.length-2].position-d[e].viewportMinimum)*Math.abs(d[e].conversionParameters.pixelPerUnit)+
|
||||
d[e].lineCoordinates.x1:(d[e].logarithmic?Math.log(d[e]._labels[d[e]._labels.length-1].position/d[e].viewportMinimum)/d[e].conversionParameters.lnLogarithmBase:d[e]._labels[d[e]._labels.length-1].position-d[e].viewportMinimum)*Math.abs(d[e].conversionParameters.pixelPerUnit)+d[e].lineCoordinates.x1);if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].calculateValueToPixelConversionParameters();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].calculateValueToPixelConversionParameters();if(0<r){if(a&&0<a.length)for(e=
|
||||
0;e<a.length;e++)E=H[r-1][e]===H[r][e]?!0:!1;else E=!0;if(d&&0<d.length)for(e=0;e<d.length;e++)F=I[r-1][e]===I[r][e]?!0:!1;else F=!0;if(b&&0<b.length)for(e=0;e<b.length;e++)G=M[r-1][e]===M[r][e]?!0:!1;else G=!0;if(c&&0<c.length)for(e=0;e<c.length;e++)J=K[r-1][e]===K[r][e]?!0:!1;else J=!0}if(E&&F&&G&&J)break;r++}p.save();p.beginPath();a[0]&&p.rect(5,a[0].bounds.y1,a[0].chart.width-10,a[0].bounds.height);d[0]&&p.rect(5,d[d.length-1].bounds.y1,d[0].chart.width-10,d[0].bounds.height);p.clip();if(a&&0<
|
||||
a.length)for(e=0;e<a.length;e++)a[e].renderLabelsTicksAndTitle();if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderLabelsTicksAndTitle();p.restore();if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderLabelsTicksAndTitle();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderLabelsTicksAndTitle()}else{z=[];A=[];B=[];q=[];s=[];H=[];I=[];M=[];if(a&&0<a.length)for(e=0;e<a.length;e++)a[e]&&a[e].title&&(a[e]._titleTextBlock.maxWidth=a[e].titleMaxWidth||g.width,a[e]._titleTextBlock.maxHeight=a[e].titleWrap?
|
||||
0.8*g.height:1.5*a[e].titleFontSize,a[e]._titleTextBlock.angle=-90);if(d&&0<d.length)for(e=0;e<d.length;e++)d[e]&&d[e].title&&(d[e]._titleTextBlock.maxWidth=d[e].titleMaxWidth||g.width,d[e]._titleTextBlock.maxHeight=d[e].titleWrap?0.8*g.height:1.5*d[e].titleFontSize,d[e]._titleTextBlock.angle=90);if(b&&0<b.length)for(e=0;e<b.length;e++)b[e]&&b[e].title&&(b[e]._titleTextBlock.maxWidth=b[e].titleMaxWidth||g.width,b[e]._titleTextBlock.maxHeight=b[e].titleWrap?0.8*g.height:1.5*b[e].titleFontSize,b[e]._titleTextBlock.angle=
|
||||
0);if(c&&0<c.length)for(e=0;e<c.length;e++)c[e]&&c[e].title&&(c[e]._titleTextBlock.maxWidth=c[e].titleMaxWidth||g.width,c[e]._titleTextBlock.maxHeight=c[e].titleWrap?0.8*g.height:1.5*c[e].titleFontSize,c[e]._titleTextBlock.angle=0);for(;4>r;){V=X=U=O=S=C=L=f=P=K=Q=N=0;if(a&&0<a.length)for(B=[],e=X=0;e<a.length;e++)B.push(Math.ceil(a[e]?a[e].createLabelsAndCalculateWidth():0)),X+=B[e],f+=a[e]?a[e].margin:0;else B.push(Math.ceil(a[0]?a[0].createLabelsAndCalculateWidth():0));I.push(B);if(d&&0<d.length)for(q=
|
||||
[],e=V=0;e<d.length;e++)q.push(Math.ceil(d[e]?d[e].createLabelsAndCalculateWidth():0)),V+=q[e],L+=d[e]?d[e].margin:0;else q.push(Math.ceil(d[0]?d[0].createLabelsAndCalculateWidth():0));M.push(q);if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].lineCoordinates={},h=Math.round(g.x1+X+f),k=Math.round(g.x2-V-L>n.width-10?n.width-10:g.x2-V-L),b[e].labelAutoFit&&!x(v)&&(0<!a.length&&(h=0>b[e].labelAngle?Math.max(h,v):0===b[e].labelAngle?Math.max(h,v/2):h),0<!d.length&&(k=0<b[e].labelAngle?k-w/2:0===b[e].labelAngle?
|
||||
k-w/2:k)),b[e].lineCoordinates.x1=h,b[e].lineCoordinates.x2=k,b[e].lineCoordinates.width=Math.abs(k-h),b[e].title&&(b[e]._titleTextBlock.maxWidth=0<b[e].titleMaxWidth&&b[e].titleMaxWidth<b[e].lineCoordinates.width?b[e].titleMaxWidth:b[e].lineCoordinates.width);if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].lineCoordinates={},h=Math.round(g.x1+X+f),k=Math.round(g.x2-V-L>c[e].chart.width-10?c[e].chart.width-10:g.x2-V-L),c[e]&&c[e].labelAutoFit&&!x(u)&&(0<!a.length&&(h=0<c[e].labelAngle?Math.max(h,u):
|
||||
0===c[e].labelAngle?Math.max(h,u/2):h),0<!d.length&&(k-=t/2)),c[e].lineCoordinates.x1=h,c[e].lineCoordinates.x2=k,c[e].lineCoordinates.width=Math.abs(k-h),c[e].title&&(c[e]._titleTextBlock.maxWidth=0<c[e].titleMaxWidth&&c[e].titleMaxWidth<c[e].lineCoordinates.width?c[e].titleMaxWidth:c[e].lineCoordinates.width);if(b&&0<b.length)for(z=[],e=O=0;e<b.length;e++)z.push(Math.ceil(b[e]?b[e].createLabelsAndCalculateHeight():0)),O+=z[e]+b[e].margin,C+=b[e].margin;else z.push(Math.ceil(b[0]?b[0].createLabelsAndCalculateHeight():
|
||||
0));s.push(z);if(c&&0<c.length)for(A=[],e=U=0;e<c.length;e++)A.push(Math.ceil(c[e]?c[e].createLabelsAndCalculateHeight():0)),U+=A[e],S+=c[e].margin;else A.push(Math.ceil(c[0]?c[0].createLabelsAndCalculateHeight():0));H.push(A);if(b&&0<b.length)for(e=0;e<b.length;e++)0<b[e]._labels.length&&(m=b[e]._labels[0],l=b[e]._labels[b[e]._labels.length-1],v=m.textBlock.width*Math.cos(Math.PI/180*Math.abs(m.textBlock.angle))+(m.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(m.textBlock.angle)),
|
||||
w=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle)));if(c&&0<c.length)for(e=0;e<c.length;e++)c[e]&&0<c[e]._labels.length&&(m=c[e]._labels[0],l=c[e]._labels[c[e]._labels.length-1],u=m.textBlock.width*Math.cos(Math.PI/180*Math.abs(m.textBlock.angle))+(m.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(m.textBlock.angle)),t=l.textBlock.width*Math.cos(Math.PI/180*Math.abs(l.textBlock.angle))+
|
||||
(l.textBlock.height-l.textBlock.fontSize/2)*Math.sin(Math.PI/180*Math.abs(l.textBlock.angle)));if(n.panEnabled)for(e=0;e<b.length;e++)z[e]=n.sessionVariables.axisY.height;else for(e=0;e<b.length;e++)n.sessionVariables.axisY.height=z[e];if(b&&0<b.length)for(e=b.length-1;0<=e;e--)l=Math.round(g.y2),m=Math.round(g.y2>b[e].chart.height-10?b[e].chart.height-10:g.y2),b[e].lineCoordinates.y1=l-(z[e]+b[e].margin+N),b[e].lineCoordinates.y2=l-(z[e]+b[e].margin+N),b[e].bounds={x1:h,y1:l-(z[e]+N+b[e].margin),
|
||||
x2:k,y2:m-(N+b[e].margin),width:k-h,height:z[e]},b[e].title&&(b[e]._titleTextBlock.maxWidth=0<b[e].titleMaxWidth&&b[e].titleMaxWidth<b[e].lineCoordinates.width?b[e].titleMaxWidth:b[e].lineCoordinates.width),N+=z[e]+b[e].margin;if(c&&0<c.length)for(e=c.length-1;0<=e;e--)c[e]&&(l=Math.round(g.y1),m=Math.round(g.y1+(A[e]+c[e].margin+Q)),c[e].lineCoordinates.y1=m,c[e].lineCoordinates.y2=m,c[e].bounds={x1:h,y1:l+(c[e].margin+Q),x2:k,y2:m,width:k-h,height:U},c[e].title&&(c[e]._titleTextBlock.maxWidth=0<
|
||||
c[e].titleMaxWidth&&c[e].titleMaxWidth<c[e].lineCoordinates.width?c[e].titleMaxWidth:c[e].lineCoordinates.width),Q+=A[e]+c[e].margin);if(a&&0<a.length)for(e=0;e<a.length;e++){C=a[e]._labels&&0<a[e]._labels.length?a[e]._labels[0].textBlock.fontSize/2:0;h=Math.round(g.x1+f);l=c&&0<c.length?Math.round(c[0]?c[0].lineCoordinates.y2:g.y1<Math.max(C,10)?Math.max(C,10):g.y1):g.y1<Math.max(C,10)?Math.max(C,10):g.y1;k=Math.round(g.x1+X+f);m=b&&0<b.length?Math.round(b[0]?b[0].lineCoordinates.y1:g.y2-O>n.height-
|
||||
Math.max(C,10)?n.height-Math.max(C,10):g.y2-O):g.y2>n.height-Math.max(C,10)?n.height-Math.max(C,10):g.y2;if(b&&0<b.length)for(C=0;C<b.length;C++)b[C]&&b[C].labelAutoFit&&(k=0>b[C].labelAngle?Math.max(k,v):0===b[C].labelAngle?Math.max(k,v/2):k,h=0>b[C].labelAngle||0===b[C].labelAngle?k-X:h);if(c&&0<c.length)for(C=0;C<c.length;C++)c[C]&&c[C].labelAutoFit&&(k=c[C].lineCoordinates.x1,h=k-X);a[e].lineCoordinates={x1:k-K,y1:l,x2:k-K,y2:m,height:Math.abs(m-l)};a[e].bounds={x1:k-(B[e]+K),y1:l,x2:k,y2:m,width:k-
|
||||
h,height:m-l};a[e].title&&(a[e]._titleTextBlock.maxWidth=0<a[e].titleMaxWidth&&a[e].titleMaxWidth<a[e].lineCoordinates.height?a[e].titleMaxWidth:a[e].lineCoordinates.height);a[e].calculateValueToPixelConversionParameters();K+=B[e]+a[e].margin}if(d&&0<d.length)for(e=0;e<d.length;e++){C=d[e]._labels&&0<d[e]._labels.length?d[e]._labels[0].textBlock.fontSize/2:0;h=Math.round(g.x1-f);l=c&&0<c.length?Math.round(c[0]?c[0].lineCoordinates.y2:g.y1<Math.max(C,10)?Math.max(C,10):g.y1):g.y1<Math.max(C,10)?Math.max(C,
|
||||
10):g.y1;k=Math.round(g.x2-V-L);m=b&&0<b.length?Math.round(b[0]?b[0].lineCoordinates.y1:g.y2-O>n.height-Math.max(C,10)?n.height-Math.max(C,10):g.y2-O):g.y2>n.height-Math.max(C,10)?n.height-Math.max(C,10):g.y2;if(b&&0<b.length)for(C=0;C<b.length;C++)b[C]&&b[C].labelAutoFit&&(k=0>b[C].labelAngle?Math.max(k,v):0===b[e].labelAngle?Math.max(k,v/2):k,h=0>b[C].labelAngle||0===b[C].labelAngle?k-V:h);if(c&&0<c.length)for(C=0;C<c.length;C++)c[C]&&c[C].labelAutoFit&&(k=c[C].lineCoordinates.x2,h=k-V);d[e].lineCoordinates=
|
||||
{x1:k+P,y1:l,x2:k+P,y2:m,height:Math.abs(m-l)};d[e].bounds={x1:h,y1:l,x2:k,y2:m,width:k-h,height:m-l};d[e].title&&(d[e]._titleTextBlock.maxWidth=0<d[e].titleMaxWidth&&d[e].titleMaxWidth<d[e].lineCoordinates.height?d[e].titleMaxWidth:d[e].lineCoordinates.height);d[e].calculateValueToPixelConversionParameters();P+=q[e]+d[e].margin}if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].calculateValueToPixelConversionParameters();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].calculateValueToPixelConversionParameters();
|
||||
if(0<r){if(a&&0<a.length)for(e=0;e<a.length;e++)E=I[r-1][e]===I[r][e]?!0:!1;else E=!0;if(d&&0<d.length)for(e=0;e<d.length;e++)F=M[r-1][e]===M[r][e]?!0:!1;else F=!0;if(b&&0<b.length)for(e=0;e<b.length;e++)G=s[r-1][e]===s[r][e]?!0:!1;else G=!0;if(c&&0<c.length)for(e=0;e<c.length;e++)J=H[r-1][e]===H[r][e]?!0:!1;else J=!0}if(E&&F&&G&&J)break;r++}if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderLabelsTicksAndTitle();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderLabelsTicksAndTitle();if(a&&0<a.length)for(e=
|
||||
0;e<a.length;e++)a[e].renderLabelsTicksAndTitle();if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderLabelsTicksAndTitle()}n.preparePlotArea();g=n.plotArea;p.save();p.beginPath();p.rect(g.x1,g.y1,Math.abs(g.x2-g.x1),Math.abs(g.y2-g.y1));p.clip();if(a&&0<a.length)for(e=0;e<a.length;e++)a[e].renderStripLinesOfThicknessType("value");if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderStripLinesOfThicknessType("value");if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderStripLinesOfThicknessType("value");
|
||||
if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderStripLinesOfThicknessType("value");if(a&&0<a.length)for(e=0;e<a.length;e++)a[e].renderInterlacedColors();if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderInterlacedColors();if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderInterlacedColors();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderInterlacedColors();p.restore();if(a&&0<a.length)for(e=0;e<a.length;e++)a[e].renderGrid();if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderGrid();if(b&&0<
|
||||
b.length)for(e=0;e<b.length;e++)b[e].renderGrid();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderGrid();if(a&&0<a.length)for(e=0;e<a.length;e++)a[e].renderAxisLine();if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderAxisLine();if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderAxisLine();if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderAxisLine();if(a&&0<a.length)for(e=0;e<a.length;e++)a[e].renderStripLinesOfThicknessType("pixel");if(d&&0<d.length)for(e=0;e<d.length;e++)d[e].renderStripLinesOfThicknessType("pixel");
|
||||
if(b&&0<b.length)for(e=0;e<b.length;e++)b[e].renderStripLinesOfThicknessType("pixel");if(c&&0<c.length)for(e=0;e<c.length;e++)c[e].renderStripLinesOfThicknessType("pixel")};B.prototype.renderLabelsTicksAndTitle=function(){var a=!1,d=0,b=0,c=1,f=0;0!==this.labelAngle&&360!==this.labelAngle&&(c=1.2);if("undefined"===typeof this.options.interval){if("bottom"===this._position||"top"===this._position)if(this.logarithmic&&!this.equidistantInterval&&this.labelAutoFit){for(var d=[],c=0!==this.labelAngle&&
|
||||
360!==this.labelAngle?1:1.2,g,h=this.viewportMaximum,l=this.lineCoordinates.width/Math.log(this.range),k=this._labels.length-1;0<=k;k--){n=this._labels[k];if(n.position<this.viewportMinimum)break;n.position>this.viewportMaximum||!(k===this._labels.length-1||g<Math.log(h/n.position)*l/c)||(d.push(n),h=n.position,g=n.textBlock.width*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+n.textBlock.height*Math.abs(Math.sin(Math.PI/180*this.labelAngle)))}this._labels=d}else{for(k=0;k<this._labels.length;k++)n=
|
||||
this._labels[k],n.position<this.viewportMinimum||(n=n.textBlock.width*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+n.textBlock.height*Math.abs(Math.sin(Math.PI/180*this.labelAngle)),d+=n);d>this.lineCoordinates.width*c&&this.labelAutoFit&&(a=!0)}if("left"===this._position||"right"===this._position)if(this.logarithmic&&!this.equidistantInterval&&this.labelAutoFit){for(var d=[],m,h=this.viewportMaximum,l=this.lineCoordinates.height/Math.log(this.range),k=this._labels.length-1;0<=k;k--){n=this._labels[k];
|
||||
if(n.position<this.viewportMinimum)break;n.position>this.viewportMaximum||!(k===this._labels.length-1||m<Math.log(h/n.position)*l)||(d.push(n),h=n.position,m=n.textBlock.height*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+n.textBlock.width*Math.abs(Math.sin(Math.PI/180*this.labelAngle)))}this._labels=d}else{for(k=0;k<this._labels.length;k++)n=this._labels[k],n.position<this.viewportMinimum||(n=n.textBlock.height*Math.abs(Math.cos(Math.PI/180*this.labelAngle))+n.textBlock.width*Math.abs(Math.sin(Math.PI/
|
||||
180*this.labelAngle)),b+=n);b>this.lineCoordinates.height*c&&this.labelAutoFit&&(a=!0)}}if("bottom"===this._position){for(var n,k=0;k<this._labels.length;k++)n=this._labels[k],n.position<this.viewportMinimum||n.position>this.viewportMaximum||(b=this.getPixelCoordinatesOnAxis(n.position),a&&0!==f++%2&&this.labelAutoFit||(this.tickThickness&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0,this.ctx.beginPath(),this.ctx.moveTo(c,
|
||||
b.y<<0),this.ctx.lineTo(c,b.y+this.tickLength<<0),this.ctx.stroke()),0===n.textBlock.angle?(b.x-=n.textBlock.width/2,b.y+=this.tickLength+n.textBlock.fontSize/2):(b.x-=0>this.labelAngle?n.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,b.y+=this.tickLength+Math.abs(0>this.labelAngle?n.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-5:5)),n.textBlock.x=b.x,n.textBlock.y=b.y,n.textBlock.render(!0)));this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+
|
||||
this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y2-this._titleTextBlock.height-3,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("top"===this._position){for(k=0;k<this._labels.length;k++)n=this._labels[k],n.position<this.viewportMinimum||n.position>this.viewportMaximum||(b=this.getPixelCoordinatesOnAxis(n.position),a&&0!==f++%2&&this.labelAutoFit||(this.tickThickness&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=
|
||||
this.tickColor,c=1===this.ctx.lineWidth%2?(b.x<<0)+0.5:b.x<<0,this.ctx.beginPath(),this.ctx.moveTo(c,b.y<<0),this.ctx.lineTo(c,b.y-this.tickLength<<0),this.ctx.stroke()),0===n.textBlock.angle?(b.x-=n.textBlock.width/2,b.y-=this.tickLength+n.textBlock.height/2):(b.x+=(n.textBlock.height-this.tickLength-this.labelFontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-(0<this.labelAngle?n.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0),b.y-=this.tickLength+(n.textBlock.height/2*Math.cos(Math.PI/
|
||||
180*this.labelAngle)+(0<this.labelAngle?n.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):0))),n.textBlock.x=b.x,n.textBlock.y=b.y,n.textBlock.render(!0)));this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.lineCoordinates.x1+this.lineCoordinates.width/2-this._titleTextBlock.width/2,this._titleTextBlock.y=this.bounds.y1+1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("left"===this._position){for(k=0;k<this._labels.length;k++)n=
|
||||
this._labels[k],n.position<this.viewportMinimum||n.position>this.viewportMaximum||(b=this.getPixelCoordinatesOnAxis(n.position),a&&0!==f++%2&&this.labelAutoFit||(this.tickThickness&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<0,c),this.ctx.lineTo(b.x-this.tickLength<<0,c),this.ctx.stroke()),0===this.labelAngle?(n.textBlock.y=b.y,n.textBlock.x=b.x-n.textBlock.width*Math.cos(Math.PI/
|
||||
180*this.labelAngle)-this.tickLength-5):(n.textBlock.y=b.y-n.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),n.textBlock.x=0<this.labelAngle?b.x-n.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:b.x-n.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(n.textBlock.height-n.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)-this.tickLength),n.textBlock.render(!0)));this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x1+1,this._titleTextBlock.y=
|
||||
this.lineCoordinates.height/2+this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}else if("right"===this._position){for(k=0;k<this._labels.length;k++)n=this._labels[k],n.position<this.viewportMinimum||n.position>this.viewportMaximum||(b=this.getPixelCoordinatesOnAxis(n.position),a&&0!==f++%2&&this.labelAutoFit||(this.tickThickness&&(this.ctx.lineWidth=this.tickThickness,this.ctx.strokeStyle=this.tickColor,c=1===this.ctx.lineWidth%
|
||||
2?(b.y<<0)+0.5:b.y<<0,this.ctx.beginPath(),this.ctx.moveTo(b.x<<0,c),this.ctx.lineTo(b.x+this.tickLength<<0,c),this.ctx.stroke()),0===this.labelAngle?(n.textBlock.y=b.y,n.textBlock.x=b.x+this.tickLength+5):(n.textBlock.y=0>this.labelAngle?b.y:b.y-(n.textBlock.height-n.textBlock.fontSize/2-5)*Math.cos(Math.PI/180*this.labelAngle),n.textBlock.x=0<this.labelAngle?b.x+(n.textBlock.height-n.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)+this.tickLength:b.x+this.tickLength+5),n.textBlock.render(!0)));
|
||||
this.title&&(this._titleTextBlock.measureText(),this._titleTextBlock.x=this.bounds.x2-1,this._titleTextBlock.y=this.lineCoordinates.height/2-this._titleTextBlock.width/2+this.lineCoordinates.y1,this.titleMaxWidth=this._titleTextBlock.maxWidth,this._titleTextBlock.render(!0))}};B.prototype.renderInterlacedColors=function(){var a=this.chart.plotArea.ctx,d,b,c=this.chart.plotArea,f=0;d=!0;if(("bottom"===this._position||"top"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,
|
||||
f=0;f<this._labels.length;f++)d?(d=this.getPixelCoordinatesOnAxis(this._labels[f].position),b=f+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[f+1].position),a.fillRect(Math.min(b.x,d.x),c.y1,Math.abs(b.x-d.x),Math.abs(c.y1-c.y2)),d=!1):d=!0;else if(("left"===this._position||"right"===this._position)&&this.interlacedColor)for(a.fillStyle=this.interlacedColor,f=0;f<this._labels.length;f++)d?(b=this.getPixelCoordinatesOnAxis(this._labels[f].position),
|
||||
d=f+1>this._labels.length-1?this.getPixelCoordinatesOnAxis(this.viewportMaximum):this.getPixelCoordinatesOnAxis(this._labels[f+1].position),a.fillRect(c.x1,Math.min(b.y,d.y),Math.abs(c.x1-c.x2),Math.abs(d.y-b.y)),d=!1):d=!0;a.beginPath()};B.prototype.renderStripLinesOfThicknessType=function(a){if(this.stripLines&&0<this.stripLines.length&&a){for(var d=this,b,c=0,f=0,g=!1,h=!1,l=[],k=[],h=!1,c=0;c<this.stripLines.length;c++){var m=this.stripLines[c];m._thicknessType===a&&("pixel"===a&&(m.value<this.viewportMinimum||
|
||||
m.value>this.viewportMaximum||x(m.value)||isNaN(this.range))||l.push(m))}for(c=0;c<this._stripLineLabels.length;c++)if(m=this.stripLines[c],b=this._stripLineLabels[c],!(b.position<this.viewportMinimum||b.position>this.viewportMaximum||isNaN(this.range))){a=this.getPixelCoordinatesOnAxis(b.position);if("outside"===b.stripLine.labelPlacement)if(m&&(this.ctx.strokeStyle=m.color,"pixel"===m._thicknessType&&(this.ctx.lineWidth=m.thickness)),"bottom"===this._position){var n=1===this.ctx.lineWidth%2?(a.x<<
|
||||
0)+0.5:a.x<<0;this.ctx.beginPath();this.ctx.moveTo(n,a.y<<0);this.ctx.lineTo(n,a.y+this.tickLength<<0);this.ctx.stroke();0===this.labelAngle?(a.x-=b.textBlock.width/2,a.y+=this.tickLength+b.textBlock.fontSize/2):(a.x-=0>this.labelAngle?b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0,a.y+=this.tickLength+Math.abs(0>this.labelAngle?b.textBlock.width*Math.sin(Math.PI/180*this.labelAngle)-5:5))}else"top"===this._position?(n=1===this.ctx.lineWidth%2?(a.x<<0)+0.5:a.x<<0,this.ctx.beginPath(),this.ctx.moveTo(n,
|
||||
a.y<<0),this.ctx.lineTo(n,a.y-this.tickLength<<0),this.ctx.stroke(),0===this.labelAngle?(a.x-=b.textBlock.width/2,a.y-=this.tickLength+b.textBlock.height):(a.x+=(b.textBlock.height-this.tickLength-this.labelFontSize/2)*Math.sin(Math.PI/180*this.labelAngle)-(0<this.labelAngle?b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle):0),a.y-=this.tickLength+(b.textBlock.height*Math.cos(Math.PI/180*this.labelAngle)+(0<this.labelAngle?b.textBlock.width*Math.sin(Math.PI/180*this.labelAngle):0)))):"left"===
|
||||
this._position?(n=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,this.ctx.beginPath(),this.ctx.moveTo(a.x<<0,n),this.ctx.lineTo(a.x-this.tickLength<<0,n),this.ctx.stroke(),0===this.labelAngle?a.x=a.x-b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:(a.y-=b.textBlock.width*Math.sin(Math.PI/180*this.labelAngle),a.x=0<this.labelAngle?a.x-b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)-this.tickLength-5:a.x-b.textBlock.width*Math.cos(Math.PI/180*this.labelAngle)+(b.textBlock.height-
|
||||
b.textBlock.fontSize/2-5)*Math.sin(Math.PI/180*this.labelAngle)-this.tickLength)):"right"===this._position&&(n=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,this.ctx.beginPath(),this.ctx.moveTo(a.x<<0,n),this.ctx.lineTo(a.x+this.tickLength<<0,n),this.ctx.stroke(),0===this.labelAngle?a.x=a.x+this.tickLength+5:(a.y=0>this.labelAngle?a.y:a.y-(b.textBlock.height-b.textBlock.fontSize/2-5)*Math.cos(Math.PI/180*this.labelAngle),a.x=0<this.labelAngle?a.x+(b.textBlock.height-b.textBlock.fontSize/2-5)*Math.sin(Math.PI/
|
||||
180*this.labelAngle)+this.tickLength:a.x+this.tickLength+5));else b.textBlock.angle=-90,"bottom"===this._position?(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.height-3,b.textBlock.measureText(),a.x-b.textBlock.height>this.chart.plotArea.x1?x(m.startValue)?a.x-=b.textBlock.height-b.textBlock.fontSize/2:a.x-=b.textBlock.height/2-b.textBlock.fontSize/2+3:(b.textBlock.angle=90,x(m.startValue)?a.x+=b.textBlock.height-b.textBlock.fontSize/
|
||||
2:a.x+=b.textBlock.height/2-b.textBlock.fontSize/2+3),a.y=-90===b.textBlock.angle?"near"===b.stripLine.labelAlign?this.chart.plotArea.y2-3:"center"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1+b.textBlock.width)/2:this.chart.plotArea.y1+b.textBlock.width+3:"near"===b.stripLine.labelAlign?this.chart.plotArea.y2-b.textBlock.width-3:"center"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1-b.textBlock.width)/2:this.chart.plotArea.y1+3):"top"===this._position?
|
||||
(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.height-3,b.textBlock.measureText(),a.x-b.textBlock.height>this.chart.plotArea.x1?x(m.startValue)?a.x-=b.textBlock.height-b.textBlock.fontSize/2:a.x-=b.textBlock.height/2-b.textBlock.fontSize/2+3:(b.textBlock.angle=90,x(m.startValue)?a.x+=b.textBlock.height-b.textBlock.fontSize/2:a.x+=b.textBlock.height/2-b.textBlock.fontSize/2+3),a.y=-90===b.textBlock.angle?"near"===b.stripLine.labelAlign?
|
||||
this.chart.plotArea.y1+b.textBlock.width+3:"center"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1+b.textBlock.width)/2:this.chart.plotArea.y2-3:"near"===b.stripLine.labelAlign?this.chart.plotArea.y1+3:"center"===b.stripLine.labelAlign?(this.chart.plotArea.y2+this.chart.plotArea.y1-b.textBlock.width)/2:this.chart.plotArea.y2-b.textBlock.width-3):"left"===this._position?(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:
|
||||
this.chart.plotArea.width-3,b.textBlock.angle=0,b.textBlock.measureText(),a.y-b.textBlock.height>this.chart.plotArea.y1?x(m.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize+3:a.y-b.textBlock.height<this.chart.plotArea.y2?a.y+=b.textBlock.fontSize/2+3:x(m.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize+3,a.x="near"===b.stripLine.labelAlign?this.chart.plotArea.x1+3:"center"===b.stripLine.labelAlign?
|
||||
(this.chart.plotArea.x2+this.chart.plotArea.x1)/2-b.textBlock.width/2:this.chart.plotArea.x2-b.textBlock.width-3):"right"===this._position&&(b.textBlock.maxWidth=this.options.stripLines[c].labelMaxWidth?this.options.stripLines[c].labelMaxWidth:this.chart.plotArea.width-3,b.textBlock.angle=0,b.textBlock.measureText(),a.y-+b.textBlock.height>this.chart.plotArea.y1?x(m.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize/2-3:a.y-b.textBlock.height<
|
||||
this.chart.plotArea.y2?a.y+=b.textBlock.fontSize/2+3:x(m.startValue)?a.y-=b.textBlock.height-b.textBlock.fontSize/2:a.y-=b.textBlock.height/2-b.textBlock.fontSize/2+3,a.x="near"===b.stripLine.labelAlign?this.chart.plotArea.x2-b.textBlock.width-3:"center"===b.stripLine.labelAlign?(this.chart.plotArea.x2+this.chart.plotArea.x1)/2-b.textBlock.width/2:this.chart.plotArea.x1+3);b.textBlock.x=a.x;b.textBlock.y=a.y;k.push(b)}if(!h){h=!1;this.ctx.save();this.ctx.beginPath();this.ctx.rect(this.chart.plotArea.x1,
|
||||
this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.ctx.clip();for(c=0;c<l.length;c++)m=l[c],m.showOnTop?g||(g=!0,this.chart.addEventListener("dataAnimationIterationEnd",function(){this.ctx.save();this.ctx.beginPath();this.ctx.rect(this.chart.plotArea.x1,this.chart.plotArea.y1,this.chart.plotArea.width,this.chart.plotArea.height);this.ctx.clip();for(f=0;f<l.length;f++)m=l[f],m.showOnTop&&m.render();this.ctx.restore()},m)):m.render();for(c=0;c<k.length;c++)b=k[c],b.stripLine.showOnTop?
|
||||
h||(h=!0,this.chart.addEventListener("dataAnimationIterationEnd",function(){for(f=0;f<k.length;f++)b=k[f],"inside"===b.stripLine.labelPlacement&&b.stripLine.showOnTop&&(d.ctx.save(),d.ctx.beginPath(),d.ctx.rect(d.chart.plotArea.x1,d.chart.plotArea.y1,d.chart.plotArea.width,d.chart.plotArea.height),d.ctx.clip(),b.textBlock.render(!0),d.ctx.restore())},b.textBlock)):"inside"===b.stripLine.labelPlacement&&b.textBlock.render(!0);this.ctx.restore();h=!0}if(h)for(h=!1,c=0;c<k.length;c++)b=k[c],b.stripLine.showOnTop?
|
||||
h||(h=!0,this.chart.addEventListener("dataAnimationIterationEnd",function(){for(f=0;f<k.length;f++)b=k[f],"outside"===b.stripLine.labelPlacement&&b.stripLine.showOnTop&&b.textBlock.render(!0)},b.textBlock)):"outside"===b.stripLine.labelPlacement&&b.textBlock.render(!0)}};B.prototype.renderGrid=function(){if(this.gridThickness&&0<this.gridThickness){var a=this.chart.ctx;a.save();var d,b=this.chart.plotArea;a.lineWidth=this.gridThickness;a.strokeStyle=this.gridColor;a.setLineDash&&a.setLineDash(I(this.gridDashType,
|
||||
this.gridThickness));if("bottom"===this._position||"top"===this._position)for(c=0;c<this._labels.length;c++)this._labels[c].position<this.viewportMinimum||this._labels[c].position>this.viewportMaximum||(a.beginPath(),d=this.getPixelCoordinatesOnAxis(this._labels[c].position),d=1===a.lineWidth%2?(d.x<<0)+0.5:d.x<<0,a.moveTo(d,b.y1<<0),a.lineTo(d,b.y2<<0),a.stroke());else if("left"===this._position||"right"===this._position)for(var c=0;c<this._labels.length;c++)this._labels[c].position<this.viewportMinimum||
|
||||
this._labels[c].position>this.viewportMaximum||(a.beginPath(),d=this.getPixelCoordinatesOnAxis(this._labels[c].position),d=1===a.lineWidth%2?(d.y<<0)+0.5:d.y<<0,a.moveTo(b.x1<<0,d),a.lineTo(b.x2<<0,d),a.stroke());a.restore()}};B.prototype.renderAxisLine=function(){var a=this.chart.ctx;a.save();if("bottom"===this._position||"top"===this._position){if(this.lineThickness){a.lineWidth=this.lineThickness;a.strokeStyle=this.lineColor?this.lineColor:"black";a.setLineDash&&a.setLineDash(I(this.lineDashType,
|
||||
this.lineThickness));var d=1===this.lineThickness%2?(this.lineCoordinates.y1<<0)+0.5:this.lineCoordinates.y1<<0;a.beginPath();a.moveTo(this.lineCoordinates.x1,d);a.lineTo(this.lineCoordinates.x2,d);a.stroke()}}else"left"!==this._position&&"right"!==this._position||!this.lineThickness||(a.lineWidth=this.lineThickness,a.strokeStyle=this.lineColor,a.setLineDash&&a.setLineDash(I(this.lineDashType,this.lineThickness)),d=1===this.lineThickness%2?(this.lineCoordinates.x1<<0)+0.5:this.lineCoordinates.x1<<
|
||||
0,a.beginPath(),a.moveTo(d,this.lineCoordinates.y1),a.lineTo(d,this.lineCoordinates.y2),a.stroke());a.restore()};B.prototype.getPixelCoordinatesOnAxis=function(a){var d={};if("bottom"===this._position||"top"===this._position)d.x=this.convertValueToPixel(a),d.y=this.lineCoordinates.y1;if("left"===this._position||"right"===this._position)d.y=this.convertValueToPixel(a),d.x=this.lineCoordinates.x2;return d};B.prototype.convertPixelToValue=function(a){if("undefined"===typeof a)return null;var d=0,d=0,
|
||||
d="number"===typeof a?a:"left"===this._position||"right"===this._position?a.y:a.x;return d=this.logarithmic?Math.pow(this.logarithmBase,(d-this.conversionParameters.reference)/this.conversionParameters.pixelPerUnit)*this.viewportMinimum:this.conversionParameters.minimum+(d-this.conversionParameters.reference)/this.conversionParameters.pixelPerUnit};B.prototype.convertValueToPixel=function(a){return this.logarithmic?this.conversionParameters.reference+this.conversionParameters.pixelPerUnit*Math.log(a/
|
||||
this.conversionParameters.minimum)/this.conversionParameters.lnLogarithmBase+0.5<<0:this.conversionParameters.reference+this.conversionParameters.pixelPerUnit*(a-this.conversionParameters.minimum)+0.5<<0};B.prototype.setViewPortRange=function(a,d){this.sessionVariables.newViewportMinimum=this.viewportMinimum=Math.min(a,d);this.sessionVariables.newViewportMaximum=this.viewportMaximum=Math.max(a,d)};B.prototype.getXValueAt=function(a){if(!a)return null;var d=null;"left"===this._position?d=this.convertPixelToValue(a.y):
|
||||
"bottom"===this._position&&(d=this.convertPixelToValue(a.x));return d};B.prototype.calculateValueToPixelConversionParameters=function(a){a={pixelPerUnit:null,minimum:null,reference:null};var d=this.lineCoordinates.width,b=this.lineCoordinates.height;a.minimum=this.viewportMinimum;if("bottom"===this._position||"top"===this._position)this.logarithmic?(a.lnLogarithmBase=Math.log(this.logarithmBase),a.pixelPerUnit=(this.reversed?-1:1)*d*a.lnLogarithmBase/Math.log(Math.abs(this.range))):a.pixelPerUnit=
|
||||
(this.reversed?-1:1)*d/Math.abs(this.range),a.reference=this.reversed?this.lineCoordinates.x2:this.lineCoordinates.x1;if("left"===this._position||"right"===this._position)this.logarithmic?(a.lnLogarithmBase=Math.log(this.logarithmBase),a.pixelPerUnit=(this.reversed?1:-1)*b*a.lnLogarithmBase/Math.log(Math.abs(this.range))):a.pixelPerUnit=(this.reversed?1:-1)*b/Math.abs(this.range),a.reference=this.reversed?this.lineCoordinates.y1:this.lineCoordinates.y2;this.conversionParameters=a};B.prototype.calculateAxisParameters=
|
||||
function(){if(this.logarithmic)this.calculateLogarithamicAxisParameters();else{var a=this.chart.layoutManager.getFreeSpace(),d=!1,b=!1;"bottom"===this._position||"top"===this._position?(this.maxWidth=a.width,this.maxHeight=a.height):(this.maxWidth=a.height,this.maxHeight=a.width);var a="axisX"===this.type?"xySwapped"===this.chart.plotInfo.axisPlacement?62:70:"xySwapped"===this.chart.plotInfo.axisPlacement?50:40,c=4;"axisX"===this.type&&(c=600>this.maxWidth?8:6);var a=Math.max(c,Math.floor(this.maxWidth/
|
||||
a)),f,g,h,c=0;if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=this.minimum;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=this.maximum;if("axisX"===this.type){if(this.dataSeries&&0<this.dataSeries.length)for(f=0;f<this.dataSeries.length;f++)"dateTime"===this.dataSeries[f].xValueType&&(b=!0);f=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin;g=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax;
|
||||
0===g-f&&(c="undefined"===typeof this.options.interval?0.4:this.options.interval,g+=c,f-=c);Infinity!==this.dataInfo.minDiff?h=this.dataInfo.minDiff:1<g-f?h=0.5*Math.abs(g-f):(h=1,b&&(d=!0))}else"axisY"===this.type&&(f=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,g=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax,isFinite(f)||isFinite(g)?isFinite(f)?isFinite(g)||(g=f):f=g:(g="undefined"===typeof this.options.interval?-Infinity:this.options.interval,
|
||||
f=0),0===f&&0===g?(g+=9,f=0):0===g-f?(c=Math.min(Math.abs(0.01*Math.abs(g)),5),g+=c,f-=c):f>g?(c=Math.min(Math.abs(0.01*Math.abs(g-f)),5),0<=g?f=g-c:g=f+c):(c=Math.min(Math.abs(0.01*Math.abs(g-f)),0.05),0!==g&&(g+=c),0!==f&&(f-=c)),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-f?0.5*Math.abs(g-f):1,this.includeZero&&(null===this.viewportMinimum||isNaN(this.viewportMinimum))&&0<f&&(f=0),this.includeZero&&(null===this.viewportMaximum||isNaN(this.viewportMaximum))&&0>g&&(g=0));c=(isNaN(this.viewportMaximum)||
|
||||
null===this.viewportMaximum?g:this.viewportMaximum)-(isNaN(this.viewportMinimum)||null===this.viewportMinimum?f:this.viewportMinimum);if("axisX"===this.type&&b){this.intervalType||(c/1<=a?(this.interval=1,this.intervalType="millisecond"):c/2<=a?(this.interval=2,this.intervalType="millisecond"):c/5<=a?(this.interval=5,this.intervalType="millisecond"):c/10<=a?(this.interval=10,this.intervalType="millisecond"):c/20<=a?(this.interval=20,this.intervalType="millisecond"):c/50<=a?(this.interval=50,this.intervalType=
|
||||
"millisecond"):c/100<=a?(this.interval=100,this.intervalType="millisecond"):c/200<=a?(this.interval=200,this.intervalType="millisecond"):c/250<=a?(this.interval=250,this.intervalType="millisecond"):c/300<=a?(this.interval=300,this.intervalType="millisecond"):c/400<=a?(this.interval=400,this.intervalType="millisecond"):c/500<=a?(this.interval=500,this.intervalType="millisecond"):c/(1*E.secondDuration)<=a?(this.interval=1,this.intervalType="second"):c/(2*E.secondDuration)<=a?(this.interval=2,this.intervalType=
|
||||
"second"):c/(5*E.secondDuration)<=a?(this.interval=5,this.intervalType="second"):c/(10*E.secondDuration)<=a?(this.interval=10,this.intervalType="second"):c/(15*E.secondDuration)<=a?(this.interval=15,this.intervalType="second"):c/(20*E.secondDuration)<=a?(this.interval=20,this.intervalType="second"):c/(30*E.secondDuration)<=a?(this.interval=30,this.intervalType="second"):c/(1*E.minuteDuration)<=a?(this.interval=1,this.intervalType="minute"):c/(2*E.minuteDuration)<=a?(this.interval=2,this.intervalType=
|
||||
"minute"):c/(5*E.minuteDuration)<=a?(this.interval=5,this.intervalType="minute"):c/(10*E.minuteDuration)<=a?(this.interval=10,this.intervalType="minute"):c/(15*E.minuteDuration)<=a?(this.interval=15,this.intervalType="minute"):c/(20*E.minuteDuration)<=a?(this.interval=20,this.intervalType="minute"):c/(30*E.minuteDuration)<=a?(this.interval=30,this.intervalType="minute"):c/(1*E.hourDuration)<=a?(this.interval=1,this.intervalType="hour"):c/(2*E.hourDuration)<=a?(this.interval=2,this.intervalType="hour"):
|
||||
c/(3*E.hourDuration)<=a?(this.interval=3,this.intervalType="hour"):c/(6*E.hourDuration)<=a?(this.interval=6,this.intervalType="hour"):c/(1*E.dayDuration)<=a?(this.interval=1,this.intervalType="day"):c/(2*E.dayDuration)<=a?(this.interval=2,this.intervalType="day"):c/(4*E.dayDuration)<=a?(this.interval=4,this.intervalType="day"):c/(1*E.weekDuration)<=a?(this.interval=1,this.intervalType="week"):c/(2*E.weekDuration)<=a?(this.interval=2,this.intervalType="week"):c/(3*E.weekDuration)<=a?(this.interval=
|
||||
3,this.intervalType="week"):c/(1*E.monthDuration)<=a?(this.interval=1,this.intervalType="month"):c/(2*E.monthDuration)<=a?(this.interval=2,this.intervalType="month"):c/(3*E.monthDuration)<=a?(this.interval=3,this.intervalType="month"):c/(6*E.monthDuration)<=a?(this.interval=6,this.intervalType="month"):(this.interval=c/(1*E.yearDuration)<=a?1:c/(2*E.yearDuration)<=a?2:c/(4*E.yearDuration)<=a?4:Math.floor(B.getNiceNumber(c/(a-1),!0)/E.yearDuration),this.intervalType="year"));if(null===this.viewportMinimum||
|
||||
isNaN(this.viewportMinimum))this.viewportMinimum=f-h/2;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=g+h/2;d?this.autoValueFormatString="MMM DD YYYY HH:mm":"year"===this.intervalType?this.autoValueFormatString="YYYY":"month"===this.intervalType?this.autoValueFormatString="MMM YYYY":"week"===this.intervalType?this.autoValueFormatString="MMM DD YYYY":"day"===this.intervalType?this.autoValueFormatString="MMM DD YYYY":"hour"===this.intervalType?this.autoValueFormatString=
|
||||
"hh:mm TT":"minute"===this.intervalType?this.autoValueFormatString="hh:mm TT":"second"===this.intervalType?this.autoValueFormatString="hh:mm:ss TT":"millisecond"===this.intervalType&&(this.autoValueFormatString="fff'ms'");this.valueFormatString||(this.valueFormatString=this.autoValueFormatString)}else{this.intervalType="number";c=B.getNiceNumber(c,!1);this.interval=this.options&&0<this.options.interval?this.options.interval:B.getNiceNumber(c/(a-1),!0);if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=
|
||||
"axisX"===this.type?f-h/2:Math.floor(f/this.interval)*this.interval;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum="axisX"===this.type?g+h/2:Math.ceil(g/this.interval)*this.interval;0===this.viewportMaximum&&0===this.viewportMinimum&&(0===this.options.viewportMinimum?this.viewportMaximum+=10:0===this.options.viewportMaximum&&(this.viewportMinimum-=10),this.options&&"undefined"===typeof this.options.interval&&(this.interval=B.getNiceNumber((this.viewportMaximum-this.viewportMinimum)/
|
||||
(a-1),!0)))}if(null===this.minimum||null===this.maximum)if("axisX"===this.type?(f=null!==this.minimum?this.minimum:this.dataInfo.min,g=null!==this.maximum?this.maximum:this.dataInfo.max,0===g-f&&(c="undefined"===typeof this.options.interval?0.4:this.options.interval,g+=c,f-=c),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-f?0.5*Math.abs(g-f):1):"axisY"===this.type&&(f=null!==this.minimum?this.minimum:this.dataInfo.min,g=null!==this.maximum?this.maximum:this.dataInfo.max,isFinite(f)||
|
||||
isFinite(g)?0===f&&0===g?(g+=9,f=0):0===g-f?(c=Math.min(Math.abs(0.01*Math.abs(g)),5),g+=c,f-=c):f>g?(c=Math.min(Math.abs(0.01*Math.abs(g-f)),5),0<=g?f=g-c:g=f+c):(c=Math.min(Math.abs(0.01*Math.abs(g-f)),0.05),0!==g&&(g+=c),0!==f&&(f-=c)):(g="undefined"===typeof this.options.interval?-Infinity:this.options.interval,f=0),h=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:1<g-f?0.5*Math.abs(g-f):1,this.includeZero&&(null===this.minimum||isNaN(this.minimum))&&0<f&&(f=0),this.includeZero&&(null===
|
||||
this.maximum||isNaN(this.maximum))&&0>g&&(g=0)),"axisX"===this.type&&b){if(null===this.minimum||isNaN(this.minimum))this.minimum=f-h/2;if(null===this.maximum||isNaN(this.maximum))this.maximum=g+h/2}else this.intervalType="number",null===this.minimum&&(this.minimum="axisX"===this.type?f-h/2:Math.floor(f/this.interval)*this.interval,this.minimum=Math.min(this.minimum,null===this.sessionVariables.viewportMinimum||isNaN(this.sessionVariables.viewportMinimum)?Infinity:this.sessionVariables.viewportMinimum)),
|
||||
null===this.maximum&&(this.maximum="axisX"===this.type?g+h/2:Math.ceil(g/this.interval)*this.interval,this.maximum=Math.max(this.maximum,null===this.sessionVariables.viewportMaximum||isNaN(this.sessionVariables.viewportMaximum)?-Infinity:this.sessionVariables.viewportMaximum)),0===this.maximum&&0===this.minimum&&(0===this.options.minimum?this.maximum+=10:0===this.options.maximum&&(this.minimum-=10));this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum);this.viewportMaximum=Math.min(this.viewportMaximum,
|
||||
this.maximum);this.range=this.viewportMaximum-this.viewportMinimum;this.intervalStartPosition="axisX"===this.type&&b?this.getLabelStartPoint(new Date(this.viewportMinimum),this.intervalType,this.interval):Math.floor((this.viewportMinimum+0.2*this.interval)/this.interval)*this.interval;if(!this.valueFormatString&&(this.valueFormatString="#,##0.##",1>this.range)){d=Math.floor(Math.abs(Math.log(this.range)/Math.LN10))+2;if(isNaN(d)||!isFinite(d))d=2;if(2<d)for(b=0;b<d-2;b++)this.valueFormatString+="#"}}};
|
||||
B.prototype.calculateLogarithamicAxisParameters=function(){var a=this.chart.layoutManager.getFreeSpace(),d=Math.log(this.logarithmBase),b;"bottom"===this._position||"top"===this._position?(this.maxWidth=a.width,this.maxHeight=a.height):(this.maxWidth=a.height,this.maxHeight=a.width);var a="axisX"===this.type?500>this.maxWidth?7:Math.max(7,Math.floor(this.maxWidth/100)):Math.max(Math.floor(this.maxWidth/50),3),c,f,g,h;h=1;if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum=
|
||||
this.minimum;if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum=this.maximum;"axisX"===this.type?(c=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,f=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax,1===f/c&&(h=Math.pow(this.logarithmBase,"undefined"===typeof this.options.interval?0.4:this.options.interval),f*=h,c/=h),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:f/c>this.logarithmBase?f/c*Math.pow(this.logarithmBase,
|
||||
0.5):this.logarithmBase):"axisY"===this.type&&(c=null!==this.viewportMinimum?this.viewportMinimum:this.dataInfo.viewPortMin,f=null!==this.viewportMaximum?this.viewportMaximum:this.dataInfo.viewPortMax,0>=c&&!isFinite(f)?(f="undefined"===typeof this.options.interval?0:this.options.interval,c=1):0>=c?c=f:isFinite(f)||(f=c),1===c&&1===f?(f*=this.logarithmBase-1/this.logarithmBase,c=1):1===f/c?(h=Math.min(f*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,5)),f*=h,c/=h):c>f?(h=Math.min(c/
|
||||
f*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,5)),1<=f?c=f/h:f=c*h):(h=Math.min(f/c*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,0.04)),1!==f&&(f*=h),1!==c&&(c/=h)),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:f/c>this.logarithmBase?f/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase,this.includeZero&&(null===this.viewportMinimum||isNaN(this.viewportMinimum))&&1<c&&(c=1),this.includeZero&&(null===this.viewportMaximum||isNaN(this.viewportMaximum))&&
|
||||
1>f&&(f=1));h=(isNaN(this.viewportMaximum)||null===this.viewportMaximum?f:this.viewportMaximum)/(isNaN(this.viewportMinimum)||null===this.viewportMinimum?c:this.viewportMinimum);linearRange=(isNaN(this.viewportMaximum)||null===this.viewportMaximum?f:this.viewportMaximum)-(isNaN(this.viewportMinimum)||null===this.viewportMinimum?c:this.viewportMinimum);this.intervalType="number";h=Math.pow(this.logarithmBase,B.getNiceNumber(Math.abs(Math.log(h)/d),!1));this.options&&0<this.options.interval?this.interval=
|
||||
this.options.interval:(this.interval=B.getNiceExponent(Math.log(h)/d/(a-1),!0),b=B.getNiceNumber(linearRange/(a-1),!0));if(null===this.viewportMinimum||isNaN(this.viewportMinimum))this.viewportMinimum="axisX"===this.type?c/Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.floor(Math.log(c)/d/this.interval));if(null===this.viewportMaximum||isNaN(this.viewportMaximum))this.viewportMaximum="axisX"===this.type?f*Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.ceil(Math.log(f)/d/
|
||||
this.interval));1===this.viewportMaximum&&1===this.viewportMinimum&&(1===this.options.viewportMinimum?this.viewportMaximum*=this.logarithmBase-1/this.logarithmBase:1===this.options.viewportMaximum&&(this.viewportMinimum/=this.logarithmBase-1/this.logarithmBase),this.options&&"undefined"===typeof this.options.interval&&(this.interval=B.getNiceExponent(Math.ceil(Math.log(h)/d)/(a-1)),b=B.getNiceNumber((this.viewportMaximum-this.viewportMinimum)/(a-1),!0)));if(null===this.minimum||null===this.maximum)"axisX"===
|
||||
this.type?(c=null!==this.minimum?this.minimum:this.dataInfo.min,f=null!==this.maximum?this.maximum:this.dataInfo.max,1===f/c&&(h=Math.pow(this.logarithmBase,"undefined"===typeof this.options.interval?0.4:this.options.interval),f*=h,c/=h),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:f/c>this.logarithmBase?f/c*Math.pow(this.logarithmBase,0.5):this.logarithmBase):"axisY"===this.type&&(c=null!==this.minimum?this.minimum:this.dataInfo.min,f=null!==this.maximum?this.maximum:this.dataInfo.max,
|
||||
isFinite(c)||isFinite(f)?1===c&&1===f?(f*=this.logarithmBase,c/=this.logarithmBase):1===f/c?(h=Math.pow(this.logarithmBase,this.interval),f*=h,c/=h):c>f?(h=Math.min(0.01*(c/f),5),1<=f?c=f/h:f=c*h):(h=Math.min(f/c*Math.pow(this.logarithmBase,0.01),Math.pow(this.logarithmBase,0.04)),1!==f&&(f*=h),1!==c&&(c/=h)):(f="undefined"===typeof this.options.interval?0:this.options.interval,c=1),g=Infinity!==this.dataInfo.minDiff?this.dataInfo.minDiff:f/c>this.logarithmBase?f/c*Math.pow(this.logarithmBase,0.5):
|
||||
this.logarithmBase,this.includeZero&&(null===this.minimum||isNaN(this.minimum))&&1<c&&(c=1),this.includeZero&&(null===this.maximum||isNaN(this.maximum))&&1>f&&(f=1)),this.intervalType="number",null===this.minimum&&(this.minimum="axisX"===this.type?c/Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.floor(Math.log(c)/d/this.interval)),this.minimum=Math.min(this.minimum,null===this.sessionVariables.viewportMinimum||isNaN(this.sessionVariables.viewportMinimum)?"undefined"===typeof this.sessionVariables.newViewportMinimum?
|
||||
Infinity:this.sessionVariables.newViewportMinimum:this.sessionVariables.viewportMinimum)),null===this.maximum&&(this.maximum="axisX"===this.type?f*Math.sqrt(g):Math.pow(this.logarithmBase,this.interval*Math.ceil(Math.log(f)/d/this.interval)),this.maximum=Math.max(this.maximum,null===this.sessionVariables.viewportMaximum||isNaN(this.sessionVariables.viewportMaximum)?"undefined"===typeof this.sessionVariables.newViewportMaximum?0:this.sessionVariables.newViewportMaximum:this.sessionVariables.viewportMaximum)),
|
||||
1===this.maximum&&1===this.minimum&&(1===this.options.minimum?this.maximum*=this.logarithmBase-1/this.logarithmBase:1===this.options.maximum&&(this.minimum/=this.logarithmBase-1/this.logarithmBase));this.viewportMinimum=Math.max(this.viewportMinimum,this.minimum);this.viewportMaximum=Math.min(this.viewportMaximum,this.maximum);this.viewportMinimum>this.viewportMaximum&&(!this.options.viewportMinimum&&!this.options.minimum||this.options.viewportMaximum||this.options.maximum?this.options.viewportMinimum||
|
||||
this.options.minimum||!this.options.viewportMaximum&&!this.options.maximum||(this.viewportMinimum=this.minimum=(this.options.viewportMaximum||this.options.maximum)/Math.pow(this.logarithmBase,2*Math.ceil(this.interval))):this.viewportMaximum=this.maximum=this.options.viewportMinimum||this.options.minimum);c=Math.pow(this.logarithmBase,Math.floor(Math.log(this.viewportMinimum)/(d*this.interval)+0.2)*this.interval);this.range=this.viewportMaximum/this.viewportMinimum;this.noTicks=a;if(!this.options.interval&&
|
||||
this.range<Math.pow(this.logarithmBase,8>this.viewportMaximum||3>a?2:3)){for(d=Math.floor(this.viewportMinimum/b+0.5)*b;d<this.viewportMinimum;)d+=b;this.equidistantInterval=!1;this.intervalStartPosition=d;this.interval=b}else this.options.interval||(b=Math.ceil(this.interval),this.range>this.interval&&(this.interval=b,c=Math.pow(this.logarithmBase,Math.floor(Math.log(this.viewportMinimum)/(d*this.interval)+0.2)*this.interval))),this.equidistantInterval=!0,this.intervalStartPosition=c;if(!this.valueFormatString&&
|
||||
(this.valueFormatString="#,##0.##",1>this.viewportMinimum)){d=Math.floor(Math.abs(Math.log(this.viewportMinimum)/Math.LN10))+2;if(isNaN(d)||!isFinite(d))d=2;if(2<d)for(b=0;b<d-2;b++)this.valueFormatString+="#"}};B.getNiceExponent=function(a,d){var b=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,b),c=0>b?1>=c?1:5>=c?5:10:Math.max(Math.floor(c),1);return Number((c*Math.pow(10,b)).toFixed(20))};B.getNiceNumber=function(a,d){var b=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,b);return Number(((d?
|
||||
1.5>c?1:3>c?2:7>c?5:10:1>=c?1:2>=c?2:5>=c?5:10)*Math.pow(10,b)).toFixed(20))};B.prototype.getLabelStartPoint=function(){var a=E[this.intervalType+"Duration"]*this.interval,a=new Date(Math.floor(this.viewportMinimum/a)*a);if("millisecond"!==this.intervalType)if("second"===this.intervalType)0<a.getMilliseconds()&&(a.setSeconds(a.getSeconds()+1),a.setMilliseconds(0));else if("minute"===this.intervalType){if(0<a.getSeconds()||0<a.getMilliseconds())a.setMinutes(a.getMinutes()+1),a.setSeconds(0),a.setMilliseconds(0)}else if("hour"===
|
||||
this.intervalType){if(0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setHours(a.getHours()+1),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if("day"===this.intervalType){if(0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setDate(a.getDate()+1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if("week"===this.intervalType){if(0<a.getDay()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setDate(a.getDate()+
|
||||
(7-a.getDay())),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else if("month"===this.intervalType){if(1<a.getDate()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())a.setMonth(a.getMonth()+1),a.setDate(1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)}else"year"===this.intervalType&&(0<a.getMonth()||1<a.getDate()||0<a.getHours()||0<a.getMinutes()||0<a.getSeconds()||0<a.getMilliseconds())&&(a.setFullYear(a.getFullYear()+1),a.setMonth(0),
|
||||
a.setDate(1),a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0));return a};U(na,M);na.prototype.createUserOptions=function(a){if("undefined"!==typeof a||this.options._isPlaceholder){var d=0;this.parent.options._isPlaceholder&&this.parent.createUserOptions();this.options._isPlaceholder||(qa(this.parent.stripLines),d=this.parent.options.stripLines.indexOf(this.options));this.options="undefined"===typeof a?{}:a;this.parent.options.stripLines[d]=this.options}};na.prototype.render=function(){this.ctx.save();
|
||||
var a=this.parent.getPixelCoordinatesOnAxis(this.value),d=Math.abs("pixel"===this._thicknessType?this.thickness:this.parent.conversionParameters.pixelPerUnit*this.thickness);if(0<d){var b=null===this.opacity?1:this.opacity;this.ctx.strokeStyle=this.color;this.ctx.beginPath();var c=this.ctx.globalAlpha;this.ctx.globalAlpha=b;G(this.id);var f,g,h,l;this.ctx.lineWidth=d;this.ctx.setLineDash&&this.ctx.setLineDash(I(this.lineDashType,d));if("bottom"===this.parent._position||"top"===this.parent._position)f=
|
||||
g=1===this.ctx.lineWidth%2?(a.x<<0)+0.5:a.x<<0,h=this.chart.plotArea.y1,l=this.chart.plotArea.y2,this.bounds={x1:f-d/2,y1:h,x2:g+d/2,y2:l};else if("left"===this.parent._position||"right"===this.parent._position)h=l=1===this.ctx.lineWidth%2?(a.y<<0)+0.5:a.y<<0,f=this.chart.plotArea.x1,g=this.chart.plotArea.x2,this.bounds={x1:f,y1:h-d/2,x2:g,y2:l+d/2};this.ctx.moveTo(f,h);this.ctx.lineTo(g,l);this.ctx.stroke();this.ctx.globalAlpha=c}this.ctx.restore()};U(S,M);S.prototype._initialize=function(){if(this.enabled){this.container=
|
||||
document.createElement("div");this.container.setAttribute("class","canvasjs-chart-tooltip");this.container.style.position="absolute";this.container.style.height="auto";this.container.style.boxShadow="1px 1px 2px 2px rgba(0,0,0,0.1)";this.container.style.zIndex="1000";this.container.style.display="none";var a;a='<div style=" width: auto;height: auto;min-width: 50px;';a+="line-height: auto;";a+="margin: 0px 0px 0px 0px;";a+="padding: 5px;";a+="font-family: Calibri, Arial, Georgia, serif;";a+="font-weight: normal;";
|
||||
a+="font-style: "+(u?"italic;":"normal;");a+="font-size: 14px;";a+="color: #000000;";a+="text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);";a+="text-align: left;";a+="border: 2px solid gray;";a+=u?"background: rgba(255,255,255,.9);":"background: rgb(255,255,255);";a+="text-indent: 0px;";a+="white-space: nowrap;";a+="border-radius: 5px;";a+="-moz-user-select:none;";a+="-khtml-user-select: none;";a+="-webkit-user-select: none;";a+="-ms-user-select: none;";a+="user-select: none;";u||(a+="filter: alpha(opacity = 90);",
|
||||
a+="filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color='#666666');");a+='} "> Sample Tooltip</div>';this.container.innerHTML=a;this.contentDiv=this.container.firstChild;this.container.style.borderRadius=this.contentDiv.style.borderRadius;this.chart._canvasJSContainer.appendChild(this.container)}};S.prototype.mouseMoveHandler=function(a,d){this._lastUpdated&&40>(new Date).getTime()-this._lastUpdated||(this._lastUpdated=(new Date).getTime(),this._updateToolTip(a,d))};
|
||||
S.prototype._updateToolTip=function(a,d,b){b="undefined"===typeof b?!0:b;this.container||this._initialize();this.enabled||this.hide();if(!this.chart.disableToolTip){if("undefined"===typeof a||"undefined"===typeof d){if(isNaN(this._prevX)||isNaN(this._prevY))return;a=this._prevX;d=this._prevY}else this._prevX=a,this._prevY=d;var c=null,f=null,g=[],h=0;if(this.shared&&this.enabled&&"none"!==this.chart.plotInfo.axisPlacement){if("xySwapped"===this.chart.plotInfo.axisPlacement){f=[];if(this.chart.axisX)for(var l=
|
||||
0;l<this.chart.axisX.length;l++){for(var h=this.chart.axisX[l].convertPixelToValue({y:d}),k=null,c=0;c<this.chart.axisX[l].dataSeries.length;c++)(k=this.chart.axisX[l].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX[l].dataSeries[c],null!==k.dataPoint.y&&f.push(k));k=null}if(this.chart.axisX2)for(l=0;l<this.chart.axisX2.length;l++){h=this.chart.axisX2[l].convertPixelToValue({y:d});k=null;for(c=0;c<this.chart.axisX2[l].dataSeries.length;c++)(k=this.chart.axisX2[l].dataSeries[c].getDataPointAtX(h,
|
||||
b))&&0<=k.index&&(k.dataSeries=this.chart.axisX2[l].dataSeries[c],null!==k.dataPoint.y&&f.push(k));k=null}}else{f=[];if(this.chart.axisX)for(l=0;l<this.chart.axisX.length;l++)for(h=this.chart.axisX[l].convertPixelToValue({x:a}),k=null,c=0;c<this.chart.axisX[l].dataSeries.length;c++)(k=this.chart.axisX[l].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX[l].dataSeries[c],null!==k.dataPoint.y&&f.push(k));if(this.chart.axisX2)for(l=0;l<this.chart.axisX2.length;l++)for(h=
|
||||
this.chart.axisX2[l].convertPixelToValue({x:a}),k=null,c=0;c<this.chart.axisX2[l].dataSeries.length;c++)(k=this.chart.axisX2[l].dataSeries[c].getDataPointAtX(h,b))&&0<=k.index&&(k.dataSeries=this.chart.axisX2[l].dataSeries[c],null!==k.dataPoint.y&&f.push(k))}if(0===f.length)return;f.sort(function(a,b){return a.distance-b.distance});b=f[0];for(c=0;c<f.length;c++)f[c].dataPoint.x.valueOf()===b.dataPoint.x.valueOf()&&g.push(f[c]);f=null}else{if(k=this.chart.getDataPointAtXY(a,d,b))this.currentDataPointIndex=
|
||||
k.dataPointIndex,this.currentSeriesIndex=k.dataSeries.index;else if(u)if(k=La(a,d,this.chart._eventManager.ghostCtx),0<k&&"undefined"!==typeof this.chart._eventManager.objectMap[k]){k=this.chart._eventManager.objectMap[k];if("legendItem"===k.objectType)return;this.currentSeriesIndex=k.dataSeriesIndex;this.currentDataPointIndex=0<=k.dataPointIndex?k.dataPointIndex:-1}else this.currentDataPointIndex=-1;else this.currentDataPointIndex=-1;if(0<=this.currentSeriesIndex){f=this.chart.data[this.currentSeriesIndex];
|
||||
k={};if(0<=this.currentDataPointIndex)c=f.dataPoints[this.currentDataPointIndex],k.dataSeries=f,k.dataPoint=c,k.index=this.currentDataPointIndex,k.distance=Math.abs(c.x-h);else{if(!this.enabled||"line"!==f.type&&"stepLine"!==f.type&&"spline"!==f.type&&"area"!==f.type&&"stepArea"!==f.type&&"splineArea"!==f.type&&"stackedArea"!==f.type&&"stackedArea100"!==f.type&&"rangeArea"!==f.type&&"rangeSplineArea"!==f.type&&"candlestick"!==f.type&&"ohlc"!==f.type)return;h=f.axisX.convertPixelToValue({x:a});k=f.getDataPointAtX(h,
|
||||
b);k.dataSeries=f;this.currentDataPointIndex=k.index;c=k.dataPoint}if(!x(k.dataPoint.y))if(k.dataSeries.axisY)if(0<k.dataPoint.y.length){for(c=b=0;c<k.dataPoint.y.length;c++)k.dataPoint.y[c]<k.dataSeries.axisY.viewportMinimum?b--:k.dataPoint.y[c]>k.dataSeries.axisY.viewportMaximum&&b++;b<k.dataPoint.y.length&&b>-k.dataPoint.y.length&&g.push(k)}else"column"===f.type||"bar"===f.type?0>k.dataPoint.y?0>k.dataSeries.axisY.viewportMinimum&&k.dataSeries.axisY.viewportMaximum>=k.dataPoint.y&&g.push(k):k.dataSeries.axisY.viewportMinimum<=
|
||||
k.dataPoint.y&&0<=k.dataSeries.axisY.viewportMaximum&&g.push(k):"bubble"===f.type?(b=this.chart._eventManager.objectMap[f.dataPointIds[k.index]].size/2,k.dataPoint.y>=k.dataSeries.axisY.viewportMinimum-b&&k.dataPoint.y<=k.dataSeries.axisY.viewportMaximum+b&&g.push(k)):(0<=k.dataSeries.type.indexOf("100")||"stackedColumn"===f.type||"stackedBar"===f.type||k.dataPoint.y>=k.dataSeries.axisY.viewportMinimum&&k.dataPoint.y<=k.dataSeries.axisY.viewportMaximum)&&g.push(k);else g.push(k)}}if(0<g.length&&(this.highlightObjects(g),
|
||||
this.enabled))if(b="",b=this.getToolTipInnerHTML({entries:g}),null!==b){this.contentDiv.innerHTML=b;this.contentDiv.innerHTML=b;b=!1;"none"===this.container.style.display&&(b=!0,this.container.style.display="block");try{this.contentDiv.style.background=this.backgroundColor?this.backgroundColor:u?"rgba(255,255,255,.9)":"rgb(255,255,255)",this.borderColor=this.contentDiv.style.borderRightColor=this.contentDiv.style.borderLeftColor=this.contentDiv.style.borderColor=this.options.borderColor?this.options.borderColor:
|
||||
g[0].dataPoint.color?g[0].dataPoint.color:g[0].dataSeries.color?g[0].dataSeries.color:g[0].dataSeries._colorSet[g[0].index%g[0].dataSeries._colorSet.length],this.contentDiv.style.borderWidth=this.borderThickness||0===this.borderThickness?this.borderThickness+"px":"2px",this.contentDiv.style.borderRadius=this.cornerRadius||0===this.cornerRadius?this.cornerRadius+"px":"5px",this.container.style.borderRadius=this.contentDiv.style.borderRadius,this.contentDiv.style.fontSize=this.fontSize||0===this.fontSize?
|
||||
this.fontSize+"px":"14px",this.contentDiv.style.color=this.fontColor?this.fontColor:"#000000",this.contentDiv.style.fontFamily=this.fontFamily?this.fontFamily:"Calibri, Arial, Georgia, serif;",this.contentDiv.style.fontWeight=this.fontWeight?this.fontWeight:"normal",this.contentDiv.style.fontStyle=this.fontStyle?this.fontStyle:u?"italic":"normal"}catch(m){}"pie"===g[0].dataSeries.type||"doughnut"===g[0].dataSeries.type||"funnel"===g[0].dataSeries.type||"bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||
|
||||
"stackedBar"===g[0].dataSeries.type||"stackedBar100"===g[0].dataSeries.type?a=a-10-this.container.clientWidth:(a=g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x)-this.container.clientWidth<<0,a-=10);0>a&&(a+=this.container.clientWidth+20);a+this.container.clientWidth>Math.max(this.chart.container.clientWidth,this.chart.width)&&(a=Math.max(0,Math.max(this.chart.container.clientWidth,this.chart.width)-this.container.clientWidth));a+="px";d=1!==g.length||this.shared||"line"!==g[0].dataSeries.type&&
|
||||
"stepLine"!==g[0].dataSeries.type&&"spline"!==g[0].dataSeries.type&&"area"!==g[0].dataSeries.type&&"stepArea"!==g[0].dataSeries.type&&"splineArea"!==g[0].dataSeries.type?"bar"===g[0].dataSeries.type||"rangeBar"===g[0].dataSeries.type||"stackedBar"===g[0].dataSeries.type||"stackedBar100"===g[0].dataSeries.type?g[0].dataSeries.axisX.convertValueToPixel(g[0].dataPoint.x):d:g[0].dataSeries.axisY.convertValueToPixel(g[0].dataPoint.y);d=-d+10;0<d+this.container.clientHeight+5&&(d-=d+this.container.clientHeight+
|
||||
5-0);this.container.style.left=a;this.container.style.bottom=d+"px";!this.animationEnabled||b?this.disableAnimation():this.enableAnimation()}else this.hide(!1)}};S.prototype.highlightObjects=function(a){var d=this.chart.overlaidCanvasCtx;this.chart.resetOverlayedCanvas();d.clearRect(0,0,this.chart.width,this.chart.height);d.save();var b=this.chart.plotArea,c=0;d.beginPath();d.rect(b.x1,b.y1,b.x2-b.x1,b.y2-b.y1);d.clip();for(b=0;b<a.length;b++){var f=a[b];if((f=this.chart._eventManager.objectMap[f.dataSeries.dataPointIds[f.index]])&&
|
||||
f.objectType&&"dataPoint"===f.objectType){var c=this.chart.data[f.dataSeriesIndex],g=c.dataPoints[f.dataPointIndex],h=f.dataPointIndex;!1===g.highlightEnabled||!0!==c.highlightEnabled&&!0!==g.highlightEnabled||("line"===c.type||"stepLine"===c.type||"spline"===c.type||"scatter"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type?(g=c.getMarkerProperties(h,f.x1,f.y1,this.chart.overlaidCanvasCtx),
|
||||
g.size=Math.max(1.5*g.size<<0,10),g.borderColor=g.borderColor||"#FFFFFF",g.borderThickness=g.borderThickness||Math.ceil(0.1*g.size),P.drawMarkers([g]),"undefined"!==typeof f.y2&&(g=c.getMarkerProperties(h,f.x1,f.y2,this.chart.overlaidCanvasCtx),g.size=Math.max(1.5*g.size<<0,10),g.borderColor=g.borderColor||"#FFFFFF",g.borderThickness=g.borderThickness||Math.ceil(0.1*g.size),P.drawMarkers([g]))):"bubble"===c.type?(g=c.getMarkerProperties(h,f.x1,f.y1,this.chart.overlaidCanvasCtx),g.size=f.size,g.color=
|
||||
"white",g.borderColor="white",d.globalAlpha=0.3,P.drawMarkers([g]),d.globalAlpha=1):"column"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"bar"===c.type||"rangeBar"===c.type||"stackedBar"===c.type||"stackedBar100"===c.type||"rangeColumn"===c.type?N(d,f.x1,f.y1,f.x2,f.y2,"white",0,null,!1,!1,!1,!1,0.3):"pie"===c.type||"doughnut"===c.type?Ga(d,f.center,f.radius,"white",c.type,f.startAngle,f.endAngle,0.3,f.percentInnerRadius):"candlestick"===c.type?(d.globalAlpha=1,d.strokeStyle=
|
||||
f.color,d.lineWidth=2*f.borderThickness,c=0===d.lineWidth%2?0:0.5,d.beginPath(),d.moveTo(f.x3-c,Math.min(f.y2,f.y3)),d.lineTo(f.x3-c,Math.min(f.y1,f.y4)),d.stroke(),d.beginPath(),d.moveTo(f.x3-c,Math.max(f.y1,f.y4)),d.lineTo(f.x3-c,Math.max(f.y2,f.y3)),d.stroke(),N(d,f.x1,Math.min(f.y1,f.y4),f.x2,Math.max(f.y1,f.y4),"transparent",2*f.borderThickness,f.color,!1,!1,!1,!1),d.globalAlpha=1):"ohlc"===c.type&&(d.globalAlpha=1,d.strokeStyle=f.color,d.lineWidth=2*f.borderThickness,c=0===d.lineWidth%2?0:0.5,
|
||||
d.beginPath(),d.moveTo(f.x3-c,f.y2),d.lineTo(f.x3-c,f.y3),d.stroke(),d.beginPath(),d.moveTo(f.x3,f.y1),d.lineTo(f.x1,f.y1),d.stroke(),d.beginPath(),d.moveTo(f.x3,f.y4),d.lineTo(f.x2,f.y4),d.stroke(),d.globalAlpha=1))}}d.restore();d.globalAlpha=1;d.beginPath()};S.prototype.getToolTipInnerHTML=function(a){var d=a.entries,b=null,c=null,f=null,g=0;a="";for(var h=!0,l=0;l<d.length;l++)if(d[l].dataSeries.toolTipContent||d[l].dataPoint.toolTipContent){h=!1;break}if(h&&(this.content&&"function"===typeof this.content||
|
||||
this.contentFormatter))d={chart:this.chart,toolTip:this.options,entries:d},b=this.contentFormatter?this.contentFormatter(d):this.content(d);else if(this.shared&&"none"!==this.chart.plotInfo.axisPlacement){for(var k=null,m="",l=0;l<d.length;l++)if(c=d[l].dataSeries,f=d[l].dataPoint,g=d[l].index,a="",0===l&&(h&&!this.content)&&(this.chart.axisX&&0<this.chart.axisX.length?m+="undefined"!==typeof this.chart.axisX[0].labels[f.x]?this.chart.axisX[0].labels[f.x]:"{x}":this.chart.axisX2&&0<this.chart.axisX2.length&&
|
||||
(m+="undefined"!==typeof this.chart.axisX2[0].labels[f.x]?this.chart.axisX2[0].labels[f.x]:"{x}"),m+="</br>",m=this.chart.replaceKeywordsWithValue(m,f,c,g)),null!==f.toolTipContent&&("undefined"!==typeof f.toolTipContent||null!==c.options.toolTipContent)){if("line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"stackedBar"===
|
||||
c.type||"stackedBar100"===c.type||"stackedArea"===c.type||"stackedArea100"===c.type)this.chart.axisX&&1<this.chart.axisX.length&&(a+=k!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),a+=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>{name}:</span> {y}",k=c.axisXIndex;else if("bubble"===c.type)this.chart.axisX&&
|
||||
1<this.chart.axisX.length&&(a+=k!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),a+=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>{name}:</span> {y}, {z}";else if("rangeColumn"===c.type||"rangeBar"===c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type)this.chart.axisX&&1<this.chart.axisX.length&&
|
||||
(a+=k!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":""),a+=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>{name}:</span> {y[0]}, {y[1]}";else if("candlestick"===c.type||"ohlc"===c.type)this.chart.axisX&&1<this.chart.axisX.length&&(a+=k!=c.axisXIndex?c.axisX.title?c.axisX.title+"<br/>":"X:{axisXIndex}<br/>":
|
||||
""),a+=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>{name}:</span><br/>Open: {y[0]}<br/>High: {y[1]}<br/>Low: {y[2]}<br/>Close: {y[3]}";null===b&&(b="");!0===this.reversed?(b=this.chart.replaceKeywordsWithValue(a,f,c,g)+b,l<d.length-1&&(b="</br>"+b)):(b+=this.chart.replaceKeywordsWithValue(a,
|
||||
f,c,g),l<d.length-1&&(b+="</br>"));c.toolTipContent=a}null!==b&&(b=m+b)}else{c=d[0].dataSeries;f=d[0].dataPoint;g=d[0].index;if(null===f.toolTipContent||"undefined"===typeof f.toolTipContent&&null===c.options.toolTipContent)return null;if("line"===c.type||"stepLine"===c.type||"spline"===c.type||"area"===c.type||"stepArea"===c.type||"splineArea"===c.type||"column"===c.type||"bar"===c.type||"scatter"===c.type||"stackedColumn"===c.type||"stackedColumn100"===c.type||"stackedBar"===c.type||"stackedBar100"===
|
||||
c.type||"stackedArea"===c.type||"stackedArea100"===c.type)a=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>"+(f.label?"{label}":"{x}")+":</span> {y}";else if("bubble"===c.type)a=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?
|
||||
"":"'color:{color};'")+"\"'>"+(f.label?"{label}":"{x}")+":</span> {y}, {z}";else if("pie"===c.type||"doughnut"===c.type||"funnel"===c.type)a=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>"+(f.name?"{name}:</span> ":f.label?"{label}:</span> ":"</span>")+"{y}";else if("rangeColumn"===c.type||"rangeBar"===
|
||||
c.type||"rangeArea"===c.type||"rangeSplineArea"===c.type)a=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>"+(f.label?"{label}":"{x}")+" :</span> {y[0]}, {y[1]}";else if("candlestick"===c.type||"ohlc"===c.type)a=f.toolTipContent?f.toolTipContent:c.toolTipContent?c.toolTipContent:this.content&&"function"!==typeof this.content?this.content:
|
||||
"<span style='\""+(this.options.fontColor?"":"'color:{color};'")+"\"'>"+(f.label?"{label}":"{x}")+"</span><br/>Open: {y[0]}<br/>High: {y[1]}<br/>Low: {y[2]}<br/>Close: {y[3]}";null===b&&(b="");b+=this.chart.replaceKeywordsWithValue(a,f,c,g)}this.content=a;return b};S.prototype.enableAnimation=function(){this.container.style.WebkitTransition||(this.container.style.WebkitTransition="left .2s ease-out, bottom .2s ease-out",this.container.style.MozTransition=
|
||||
"left .2s ease-out, bottom .2s ease-out",this.container.style.MsTransition="left .2s ease-out, bottom .2s ease-out",this.container.style.transition="left .2s ease-out, bottom .2s ease-out")};S.prototype.disableAnimation=function(){this.container.style.WebkitTransition&&(this.container.style.WebkitTransition="",this.container.style.MozTransition="",this.container.style.MsTransition="",this.container.style.transition="")};S.prototype.hide=function(a){this.container&&(this.container.style.display="none",
|
||||
this.currentSeriesIndex=-1,this._prevY=this._prevX=NaN,("undefined"===typeof a||a)&&this.chart.resetOverlayedCanvas())};S.prototype.show=function(a,d,b){this._updateToolTip(a,d,"undefined"===typeof b?!1:b)};A.prototype.getPercentAndTotal=function(a,d){var b=null,c=null,f=null;if(0<=a.type.indexOf("stacked"))c=0,b=d.x.getTime?d.x.getTime():d.x,b in a.plotUnit.yTotals&&(c=a.plotUnit.yTotals[b],f=isNaN(d.y)?0:0===c?0:100*(d.y/c));else if("pie"===a.type||"doughnut"===a.type){for(i=c=0;i<a.dataPoints.length;i++)isNaN(a.dataPoints[i].y)||
|
||||
(c+=a.dataPoints[i].y);f=isNaN(d.y)?0:100*(d.y/c)}return{percent:f,total:c}};A.prototype.replaceKeywordsWithValue=function(a,d,b,c,f){var g=this;f="undefined"===typeof f?0:f;if((0<=b.type.indexOf("stacked")||"pie"===b.type||"doughnut"===b.type)&&(0<=a.indexOf("#percent")||0<=a.indexOf("#total"))){var h="#percent",l="#total",k=this.getPercentAndTotal(b,d),l=isNaN(k.total)?l:k.total,h=isNaN(k.percent)?h:k.percent;do{k="";if(b.percentFormatString)k=b.percentFormatString;else{var k="#,##0.",m=Math.max(Math.ceil(Math.log(1/
|
||||
Math.abs(h))/Math.LN10),2);if(isNaN(m)||!isFinite(m))m=2;for(var n=0;n<m;n++)k+="#";b.percentFormatString=k}a=a.replace("#percent",da(h,k,g._cultureInfo));a=a.replace("#total",da(l,b.yValueFormatString?b.yValueFormatString:"#,##0.########",g._cultureInfo))}while(0<=a.indexOf("#percent")||0<=a.indexOf("#total"))}return a.replace(/\{.*?\}|"[^"]*"|'[^']*'/g,function(a){if('"'===a[0]&&'"'===a[a.length-1]||"'"===a[0]&&"'"===a[a.length-1])return a.slice(1,a.length-1);a=ka(a.slice(1,a.length-1));a=a.replace("#index",
|
||||
f);var e=null;try{var h=a.match(/(.*?)\s*\[\s*(.*?)\s*\]/);h&&0<h.length&&(e=ka(h[2]),a=ka(h[1]))}catch(k){}h=null;if("color"===a)return d.color?d.color:b.color?b.color:b._colorSet[c%b._colorSet.length];if(d.hasOwnProperty(a))h=d;else if(b.hasOwnProperty(a))h=b;else return"";h=h[a];null!==e&&(h=h[e]);if("x"===a)if("dateTime"===g.plotInfo.axisXValueType||"dateTime"===b.xValueType||d.x&&d.x.getTime){if(g.plotInfo.plotTypes[0].plotUnits[0].axisX&&!g.plotInfo.plotTypes[0].plotUnits[0].axisX.logarithmic)return Ea(h,
|
||||
d.xValueFormatString?d.xValueFormatString:b.xValueFormatString?b.xValueFormatString:b.xValueFormatString=g.axisX&&g.axisX.autoValueFormatString?g.axisX.autoValueFormatString:"DD MMM YY",g._cultureInfo)}else return da(h,d.xValueFormatString?d.xValueFormatString:b.xValueFormatString?b.xValueFormatString:b.xValueFormatString="#,##0.########",g._cultureInfo);else return"y"===a?da(h,d.yValueFormatString?d.yValueFormatString:b.yValueFormatString?b.yValueFormatString:b.yValueFormatString="#,##0.########",
|
||||
g._cultureInfo):"z"===a?da(h,d.zValueFormatString?d.zValueFormatString:b.zValueFormatString?b.zValueFormatString:b.zValueFormatString="#,##0.########",g._cultureInfo):h})};la.prototype.reset=function(){this.lastObjectId=0;this.objectMap=[];this.rectangularRegionEventSubscriptions=[];this.previousDataPointEventObject=null;this.eventObjects=[];u&&(this.ghostCtx.clearRect(0,0,this.chart.width,this.chart.height),this.ghostCtx.beginPath())};la.prototype.getNewObjectTrackingId=function(){return++this.lastObjectId};
|
||||
la.prototype.mouseEventHandler=function(a){if("mousemove"===a.type||"click"===a.type){var d=[],b=xa(a),c=null;if((c=this.chart.getObjectAtXY(b.x,b.y,!1))&&"undefined"!==typeof this.objectMap[c])if(c=this.objectMap[c],"dataPoint"===c.objectType){var f=this.chart.data[c.dataSeriesIndex],g=f.dataPoints[c.dataPointIndex],h=c.dataPointIndex;c.eventParameter={x:b.x,y:b.y,dataPoint:g,dataSeries:f.options,dataPointIndex:h,dataSeriesIndex:f.index,chart:this.chart};c.eventContext={context:g,userContext:g,mouseover:"mouseover",
|
||||
mousemove:"mousemove",mouseout:"mouseout",click:"click"};d.push(c);c=this.objectMap[f.id];c.eventParameter={x:b.x,y:b.y,dataPoint:g,dataSeries:f.options,dataPointIndex:h,dataSeriesIndex:f.index,chart:this.chart};c.eventContext={context:f,userContext:f.options,mouseover:"mouseover",mousemove:"mousemove",mouseout:"mouseout",click:"click"};d.push(this.objectMap[f.id])}else"legendItem"===c.objectType&&(f=this.chart.data[c.dataSeriesIndex],g=null!==c.dataPointIndex?f.dataPoints[c.dataPointIndex]:null,
|
||||
c.eventParameter={x:b.x,y:b.y,dataSeries:f.options,dataPoint:g,dataPointIndex:c.dataPointIndex,dataSeriesIndex:c.dataSeriesIndex,chart:this.chart},c.eventContext={context:this.chart.legend,userContext:this.chart.legend.options,mouseover:"itemmouseover",mousemove:"itemmousemove",mouseout:"itemmouseout",click:"itemclick"},d.push(c));f=[];for(b=0;b<this.mouseoveredObjectMaps.length;b++){g=!0;for(c=0;c<d.length;c++)if(d[c].id===this.mouseoveredObjectMaps[b].id){g=!1;break}g?this.fireEvent(this.mouseoveredObjectMaps[b],
|
||||
"mouseout",a):f.push(this.mouseoveredObjectMaps[b])}this.mouseoveredObjectMaps=f;for(b=0;b<d.length;b++){f=!1;for(c=0;c<this.mouseoveredObjectMaps.length;c++)if(d[b].id===this.mouseoveredObjectMaps[c].id){f=!0;break}f||(this.fireEvent(d[b],"mouseover",a),this.mouseoveredObjectMaps.push(d[b]));"click"===a.type?this.fireEvent(d[b],"click",a):"mousemove"===a.type&&this.fireEvent(d[b],"mousemove",a)}}};la.prototype.fireEvent=function(a,d,b){if(a&&d){var c=a.eventParameter,f=a.eventContext,g=a.eventContext.userContext;
|
||||
g&&(f&&g[f[d]])&&g[f[d]].call(g,c);"mouseout"!==d?g.cursor&&g.cursor!==b.target.style.cursor&&(b.target.style.cursor=g.cursor):(b.target.style.cursor=this.chart._defaultCursor,delete a.eventParameter,delete a.eventContext);"click"===d&&("dataPoint"===a.objectType&&this.chart.pieDoughnutClickHandler)&&this.chart.pieDoughnutClickHandler.call(this.chart.data[a.dataSeriesIndex],c)}};U(oa,M);Da.prototype.animate=function(a,d,b,c,f){var g=this;this.chart.isAnimating=!0;f=f||F.easing.linear;b&&this.animations.push({startTime:(new Date).getTime()+
|
||||
(a?a:0),duration:d,animationCallback:b,onComplete:c});for(a=[];0<this.animations.length;)if(d=this.animations.shift(),b=(new Date).getTime(),c=0,d.startTime<=b&&(c=f(Math.min(b-d.startTime,d.duration),0,1,d.duration),c=Math.min(c,1),isNaN(c)||!isFinite(c))&&(c=1),1>c&&a.push(d),d.animationCallback(c),1<=c&&d.onComplete)d.onComplete();this.animations=a;0<this.animations.length?this.animationRequestId=this.chart.requestAnimFrame.call(window,function(){g.animate.call(g)}):this.chart.isAnimating=!1};
|
||||
Da.prototype.cancelAllAnimations=function(){this.animations=[];this.animationRequestId&&this.chart.cancelRequestAnimFrame.call(window,this.animationRequestId);this.animationRequestId=null;this.chart.isAnimating=!1};var F={yScaleAnimation:function(a,d){if(0!==a){var b=d.dest,c=d.source.canvas,f=d.animationBase;b.drawImage(c,0,0,c.width,c.height,0,f-f*a,b.canvas.width/Q,a*b.canvas.height/Q)}},xScaleAnimation:function(a,d){if(0!==a){var b=d.dest,c=d.source.canvas,f=d.animationBase;b.drawImage(c,0,0,
|
||||
c.width,c.height,f-f*a,0,a*b.canvas.width/Q,b.canvas.height/Q)}},xClipAnimation:function(a,d){if(0!==a){var b=d.dest,c=d.source.canvas;b.save();0<a&&b.drawImage(c,0,0,c.width*a,c.height,0,0,c.width*a/Q,c.height/Q);b.restore()}},fadeInAnimation:function(a,d){if(0!==a){var b=d.dest,c=d.source.canvas;b.save();b.globalAlpha=a;b.drawImage(c,0,0,c.width,c.height,0,0,b.canvas.width/Q,b.canvas.height/Q);b.restore()}},easing:{linear:function(a,d,b,c){return b*a/c+d},easeOutQuad:function(a,d,b,c){return-b*
|
||||
(a/=c)*(a-2)+d},easeOutQuart:function(a,d,b,c){return-b*((a=a/c-1)*a*a*a-1)+d},easeInQuad:function(a,d,b,c){return b*(a/=c)*a+d},easeInQuart:function(a,d,b,c){return b*(a/=c)*a*a*a+d}}},P={drawMarker:function(a,d,b,c,f,g,h,l){if(b){var k=1;b.fillStyle=g?g:"#000000";b.strokeStyle=h?h:"#000000";b.lineWidth=l?l:0;"circle"===c?(b.moveTo(a,d),b.beginPath(),b.arc(a,d,f/2,0,2*Math.PI,!1),g&&b.fill(),l&&(h?b.stroke():(k=b.globalAlpha,b.globalAlpha=0.15,b.strokeStyle="black",b.stroke(),b.globalAlpha=k))):
|
||||
"square"===c?(b.beginPath(),b.rect(a-f/2,d-f/2,f,f),g&&b.fill(),l&&(h?b.stroke():(k=b.globalAlpha,b.globalAlpha=0.15,b.strokeStyle="black",b.stroke(),b.globalAlpha=k))):"triangle"===c?(b.beginPath(),b.moveTo(a-f/2,d+f/2),b.lineTo(a+f/2,d+f/2),b.lineTo(a,d-f/2),b.closePath(),g&&b.fill(),l&&(h?b.stroke():(k=b.globalAlpha,b.globalAlpha=0.15,b.strokeStyle="black",b.stroke(),b.globalAlpha=k)),b.beginPath()):"cross"===c&&(b.strokeStyle=g,b.lineWidth=f/4,b.beginPath(),b.moveTo(a-f/2,d-f/2),b.lineTo(a+f/
|
||||
2,d+f/2),b.stroke(),b.moveTo(a+f/2,d-f/2),b.lineTo(a-f/2,d+f/2),b.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var b=a[d];P.drawMarker(b.x,b.y,b.ctx,b.type,b.size,b.color,b.borderColor,b.borderThickness)}}},Oa={Chart:A,addColorSet:function(a,d){ha[a]=d},addCultureInfo:function(a,d){pa[a]=d},formatNumber:function(a,d,b){b=b||"en";if(pa[b])return da(a,d||"#,##0.##",new oa(b));throw"Unknown Culture Name";},formatDate:function(a,d,b){b=b||"en";if(pa[b])return Ea(a,d||"DD MMM YYYY",
|
||||
new oa(b));throw"Unknown Culture Name";}};Oa.Chart.version="v1.9.8 GA";window.CanvasJS=Oa})();
|
||||
/*
|
||||
excanvas is used to support IE678 which do not implement HTML5 Canvas Element. You can safely remove the following excanvas code if you don't need to support older browsers.
|
||||
|
||||
Copyright 2006 Google Inc. https://code.google.com/p/explorercanvas/
|
||||
Licensed under the Apache License, Version 2.0
|
||||
*/
|
||||
document.createElement("canvas").getContext||function(){function V(){return this.context_||(this.context_=new C(this))}function W(a,b,c){var g=M.call(arguments,2);return function(){return a.apply(b,g.concat(M.call(arguments)))}}function N(a){return String(a).replace(/&/g,"&").replace(/"/g,""")}function O(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");
|
||||
a.styleSheets.ex_canvas_||(a=a.createStyleSheet(),a.owningElement.id="ex_canvas_",a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}")}function X(a){var b=a.srcElement;switch(a.propertyName){case "width":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+"px";b.firstChild.style.width=b.clientWidth+"px";break;case "height":b.getContext().clearRect(),b.style.height=b.attributes.height.nodeValue+"px",b.firstChild.style.height=b.clientHeight+
|
||||
"px"}}function Y(a){a=a.srcElement;a.firstChild&&(a.firstChild.style.width=a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px")}function D(){return[[1,0,0],[0,1,0],[0,0,1]]}function t(a,b){for(var c=D(),g=0;3>g;g++)for(var e=0;3>e;e++){for(var f=0,d=0;3>d;d++)f+=a[g][d]*b[d][e];c[g][e]=f}return c}function P(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=
|
||||
a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function Q(a){var b=a.indexOf("(",3),c=a.indexOf(")",b+1),b=a.substring(b+1,c).split(",");if(4!=b.length||"a"!=a.charAt(3))b[3]=1;return b}function E(a,b,c){return Math.min(c,Math.max(b,a))}function F(a,b,c){0>c&&c++;1<c&&c--;return 1>6*c?a+6*(b-a)*c:
|
||||
1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function G(a){if(a in H)return H[a];var b,c=1;a=String(a);if("#"==a.charAt(0))b=a;else if(/^rgb/.test(a)){c=Q(a);b="#";for(var g,e=0;3>e;e++)g=-1!=c[e].indexOf("%")?Math.floor(255*(parseFloat(c[e])/100)):+c[e],b+=v[E(g,0,255)];c=+c[3]}else if(/^hsl/.test(a)){e=c=Q(a);b=parseFloat(e[0])/360%360;0>b&&b++;g=E(parseFloat(e[1])/100,0,1);e=E(parseFloat(e[2])/100,0,1);if(0==g)g=e=b=e;else{var f=0.5>e?e*(1+g):e+g-e*g,d=2*e-f;g=F(d,f,b+1/3);e=F(d,f,b);b=F(d,f,b-1/3)}b="#"+
|
||||
v[Math.floor(255*g)]+v[Math.floor(255*e)]+v[Math.floor(255*b)];c=c[3]}else b=Z[a]||a;return H[a]={color:b,alpha:c}}function C(a){this.m_=D();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=1*q;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=a;var b="width:"+a.clientWidth+"px;height:"+a.clientHeight+"px;overflow:hidden;position:absolute",
|
||||
c=a.ownerDocument.createElement("div");c.style.cssText=b;a.appendChild(c);b=c.cloneNode(!1);b.style.backgroundColor="red";b.style.filter="alpha(opacity=0)";a.appendChild(b);this.element_=c;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function R(a,b,c,g){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:c.x,cp2y:c.y,x:g.x,y:g.y});a.currentX_=g.x;a.currentY_=g.y}function S(a,b){var c=G(a.strokeStyle),g=c.color,c=c.alpha*a.globalAlpha,e=a.lineScale_*a.lineWidth;1>e&&(c*=e);b.push("<g_vml_:stroke",
|
||||
' opacity="',c,'"',' joinstyle="',a.lineJoin,'"',' miterlimit="',a.miterLimit,'"',' endcap="',$[a.lineCap]||"square",'"',' weight="',e,'px"',' color="',g,'" />')}function T(a,b,c,g){var e=a.fillStyle,f=a.arcScaleX_,d=a.arcScaleY_,k=g.x-c.x,n=g.y-c.y;if(e instanceof w){var h=0,l=g=0,u=0,m=1;if("gradient"==e.type_){h=e.x1_/f;c=e.y1_/d;var p=s(a,e.x0_/f,e.y0_/d),h=s(a,h,c),h=180*Math.atan2(h.x-p.x,h.y-p.y)/Math.PI;0>h&&(h+=360);1E-6>h&&(h=0)}else p=s(a,e.x0_,e.y0_),g=(p.x-c.x)/k,l=(p.y-c.y)/n,k/=f*q,
|
||||
n/=d*q,m=x.max(k,n),u=2*e.r0_/m,m=2*e.r1_/m-u;f=e.colors_;f.sort(function(a,b){return a.offset-b.offset});d=f.length;p=f[0].color;c=f[d-1].color;k=f[0].alpha*a.globalAlpha;a=f[d-1].alpha*a.globalAlpha;for(var n=[],r=0;r<d;r++){var t=f[r];n.push(t.offset*m+u+" "+t.color)}b.push('<g_vml_:fill type="',e.type_,'"',' method="none" focus="100%"',' color="',p,'"',' color2="',c,'"',' colors="',n.join(","),'"',' opacity="',a,'"',' g_o_:opacity2="',k,'"',' angle="',h,'"',' focusposition="',g,",",l,'" />')}else e instanceof
|
||||
I?k&&n&&b.push("<g_vml_:fill",' position="',-c.x/k*f*f,",",-c.y/n*d*d,'"',' type="tile"',' src="',e.src_,'" />'):(e=G(a.fillStyle),b.push('<g_vml_:fill color="',e.color,'" opacity="',e.alpha*a.globalAlpha,'" />'))}function s(a,b,c){a=a.m_;return{x:q*(b*a[0][0]+c*a[1][0]+a[2][0])-r,y:q*(b*a[0][1]+c*a[1][1]+a[2][1])-r}}function z(a,b,c){isFinite(b[0][0])&&(isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1]))&&(a.m_=b,c&&(a.lineScale_=aa(ba(b[0][0]*b[1][1]-b[0][1]*
|
||||
b[1][0]))))}function w(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function I(a,b){if(!a||1!=a.nodeType||"IMG"!=a.tagName)throw new A("TYPE_MISMATCH_ERR");if("complete"!=a.readyState)throw new A("INVALID_STATE_ERR");switch(b){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=b;break;default:throw new A("SYNTAX_ERR");}this.src_=a.src;this.width_=a.width;this.height_=a.height}
|
||||
function A(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var x=Math,k=x.round,J=x.sin,K=x.cos,ba=x.abs,aa=x.sqrt,q=10,r=q/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var M=Array.prototype.slice;O(document);var U={init:function(a){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",W(this.init_,this,a))},init_:function(a){a=a.getElementsByTagName("canvas");for(var b=0;b<a.length;b++)this.initElement(a[b])},initElement:function(a){if(!a.getContext){a.getContext=
|
||||
V;O(a.ownerDocument);a.innerHTML="";a.attachEvent("onpropertychange",X);a.attachEvent("onresize",Y);var b=a.attributes;b.width&&b.width.specified?a.style.width=b.width.nodeValue+"px":a.width=a.clientWidth;b.height&&b.height.specified?a.style.height=b.height.nodeValue+"px":a.height=a.clientHeight}return a}};U.init();for(var v=[],d=0;16>d;d++)for(var B=0;16>B;B++)v[16*d+B]=d.toString(16)+B.toString(16);var Z={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",
|
||||
bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",
|
||||
darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",
|
||||
ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",
|
||||
mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",
|
||||
peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},
|
||||
H={},L={},$={butt:"flat",round:"round"},d=C.prototype;d.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null);this.element_.innerHTML=""};d.beginPath=function(){this.currentPath_=[]};d.moveTo=function(a,b){var c=s(this,a,b);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.lineTo=function(a,b){var c=s(this,a,b);this.currentPath_.push({type:"lineTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.bezierCurveTo=
|
||||
function(a,b,c,g,e,f){e=s(this,e,f);a=s(this,a,b);c=s(this,c,g);R(this,a,c,e)};d.quadraticCurveTo=function(a,b,c,g){a=s(this,a,b);c=s(this,c,g);g={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};R(this,g,{x:g.x+(c.x-this.currentX_)/3,y:g.y+(c.y-this.currentY_)/3},c)};d.arc=function(a,b,c,g,e,f){c*=q;var d=f?"at":"wa",k=a+K(g)*c-r,n=b+J(g)*c-r;g=a+K(e)*c-r;e=b+J(e)*c-r;k!=g||f||(k+=0.125);a=s(this,a,b);k=s(this,k,n);g=s(this,g,e);this.currentPath_.push({type:d,
|
||||
x:a.x,y:a.y,radius:c,xStart:k.x,yStart:k.y,xEnd:g.x,yEnd:g.y})};d.rect=function(a,b,c,g){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath()};d.strokeRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath();this.stroke();this.currentPath_=e};d.fillRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+
|
||||
c,b+g);this.lineTo(a,b+g);this.closePath();this.fill();this.currentPath_=e};d.createLinearGradient=function(a,b,c,g){var e=new w("gradient");e.x0_=a;e.y0_=b;e.x1_=c;e.y1_=g;return e};d.createRadialGradient=function(a,b,c,g,e,f){var d=new w("gradientradial");d.x0_=a;d.y0_=b;d.r0_=c;d.x1_=g;d.y1_=e;d.r1_=f;return d};d.drawImage=function(a,b){var c,g,e,d,r,y,n,h;e=a.runtimeStyle.width;d=a.runtimeStyle.height;a.runtimeStyle.width="auto";a.runtimeStyle.height="auto";var l=a.width,u=a.height;a.runtimeStyle.width=
|
||||
e;a.runtimeStyle.height=d;if(3==arguments.length)c=arguments[1],g=arguments[2],r=y=0,n=e=l,h=d=u;else if(5==arguments.length)c=arguments[1],g=arguments[2],e=arguments[3],d=arguments[4],r=y=0,n=l,h=u;else if(9==arguments.length)r=arguments[1],y=arguments[2],n=arguments[3],h=arguments[4],c=arguments[5],g=arguments[6],e=arguments[7],d=arguments[8];else throw Error("Invalid number of arguments");var m=s(this,c,g),p=[];p.push(" <g_vml_:group",' coordsize="',10*q,",",10*q,'"',' coordorigin="0,0"',' style="width:',
|
||||
10,"px;height:",10,"px;position:absolute;");if(1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var t=[];t.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",k(m.x/q),",","Dy=",k(m.y/q),"");var v=s(this,c+e,g),w=s(this,c,g+d);c=s(this,c+e,g+d);m.x=x.max(m.x,v.x,w.x,c.x);m.y=x.max(m.y,v.y,w.y,c.y);p.push("padding:0 ",k(m.x/q),"px ",k(m.y/q),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",t.join(""),", sizingmethod='clip');")}else p.push("top:",
|
||||
k(m.y/q),"px;left:",k(m.x/q),"px;");p.push(' ">','<g_vml_:image src="',a.src,'"',' style="width:',q*e,"px;"," height:",q*d,'px"',' cropleft="',r/l,'"',' croptop="',y/u,'"',' cropright="',(l-r-n)/l,'"',' cropbottom="',(u-y-h)/u,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",p.join(""))};d.stroke=function(a){var b=[];b.push("<g_vml_:shape",' filled="',!!a,'"',' style="position:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0,0"',' coordsize="',10*q,",",10*q,'"',
|
||||
' stroked="',!a,'"',' path="');for(var c={x:null,y:null},d={x:null,y:null},e=0;e<this.currentPath_.length;e++){var f=this.currentPath_[e];switch(f.type){case "moveTo":b.push(" m ",k(f.x),",",k(f.y));break;case "lineTo":b.push(" l ",k(f.x),",",k(f.y));break;case "close":b.push(" x ");f=null;break;case "bezierCurveTo":b.push(" c ",k(f.cp1x),",",k(f.cp1y),",",k(f.cp2x),",",k(f.cp2y),",",k(f.x),",",k(f.y));break;case "at":case "wa":b.push(" ",f.type," ",k(f.x-this.arcScaleX_*f.radius),",",k(f.y-this.arcScaleY_*
|
||||
f.radius)," ",k(f.x+this.arcScaleX_*f.radius),",",k(f.y+this.arcScaleY_*f.radius)," ",k(f.xStart),",",k(f.yStart)," ",k(f.xEnd),",",k(f.yEnd))}if(f){if(null==c.x||f.x<c.x)c.x=f.x;if(null==d.x||f.x>d.x)d.x=f.x;if(null==c.y||f.y<c.y)c.y=f.y;if(null==d.y||f.y>d.y)d.y=f.y}}b.push(' ">');a?T(this,b,c,d):S(this,b);b.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",b.join(""))};d.fill=function(){this.stroke(!0)};d.closePath=function(){this.currentPath_.push({type:"close"})};d.save=function(){var a=
|
||||
{};P(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=t(D(),this.m_)};d.restore=function(){this.aStack_.length&&(P(this.aStack_.pop(),this),this.m_=this.mStack_.pop())};d.translate=function(a,b){z(this,t([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};d.rotate=function(a){var b=K(a);a=J(a);z(this,t([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};d.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;z(this,t([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};d.transform=function(a,b,c,d,e,f){z(this,t([[a,
|
||||
b,0],[c,d,0],[e,f,1]],this.m_),!0)};d.setTransform=function(a,b,c,d,e,f){z(this,[[a,b,0],[c,d,0],[e,f,1]],!0)};d.drawText_=function(a,b,c,d,e){var f=this.m_;d=0;var r=1E3,t=0,n=[],h;h=this.font;if(L[h])h=L[h];else{var l=document.createElement("div").style;try{l.font=h}catch(u){}h=L[h]={style:l.fontStyle||"normal",variant:l.fontVariant||"normal",weight:l.fontWeight||"normal",size:l.fontSize||10,family:l.fontFamily||"sans-serif"}}var l=h,m=this.element_;h={};for(var p in l)h[p]=l[p];p=parseFloat(m.currentStyle.fontSize);
|
||||
m=parseFloat(l.size);"number"==typeof l.size?h.size=l.size:-1!=l.size.indexOf("px")?h.size=m:-1!=l.size.indexOf("em")?h.size=p*m:-1!=l.size.indexOf("%")?h.size=p/100*m:-1!=l.size.indexOf("pt")?h.size=m/0.75:h.size=p;h.size*=0.981;p=h.style+" "+h.variant+" "+h.weight+" "+h.size+"px "+h.family;m=this.element_.currentStyle;l=this.textAlign.toLowerCase();switch(l){case "left":case "center":case "right":break;case "end":l="ltr"==m.direction?"right":"left";break;case "start":l="rtl"==m.direction?"right":
|
||||
"left";break;default:l="left"}switch(this.textBaseline){case "hanging":case "top":t=h.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":t=-h.size/2.25}switch(l){case "right":d=1E3;r=0.05;break;case "center":d=r=500}b=s(this,b+0,c+t);n.push('<g_vml_:line from="',-d,' 0" to="',r,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!e,'" stroked="',!!e,'" style="position:absolute;width:1px;height:1px;">');e?S(this,n):T(this,n,{x:-d,y:0},
|
||||
{x:r,y:h.size});e=f[0][0].toFixed(3)+","+f[1][0].toFixed(3)+","+f[0][1].toFixed(3)+","+f[1][1].toFixed(3)+",0,0";b=k(b.x/q)+","+k(b.y/q);n.push('<g_vml_:skew on="t" matrix="',e,'" ',' offset="',b,'" origin="',d,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',N(a),'" style="v-text-align:',l,";font:",N(p),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",n.join(""))};d.fillText=function(a,b,c,d){this.drawText_(a,b,c,d,!1)};d.strokeText=function(a,
|
||||
b,c,d){this.drawText_(a,b,c,d,!0)};d.measureText=function(a){this.textMeasureEl_||(this.element_.insertAdjacentHTML("beforeEnd",'<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>'),this.textMeasureEl_=this.element_.lastChild);var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};d.clip=function(){};
|
||||
d.arcTo=function(){};d.createPattern=function(a,b){return new I(a,b)};w.prototype.addColorStop=function(a,b){b=G(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};d=A.prototype=Error();d.INDEX_SIZE_ERR=1;d.DOMSTRING_SIZE_ERR=2;d.HIERARCHY_REQUEST_ERR=3;d.WRONG_DOCUMENT_ERR=4;d.INVALID_CHARACTER_ERR=5;d.NO_DATA_ALLOWED_ERR=6;d.NO_MODIFICATION_ALLOWED_ERR=7;d.NOT_FOUND_ERR=8;d.NOT_SUPPORTED_ERR=9;d.INUSE_ATTRIBUTE_ERR=10;d.INVALID_STATE_ERR=11;d.SYNTAX_ERR=12;d.INVALID_MODIFICATION_ERR=
|
||||
13;d.NAMESPACE_ERR=14;d.INVALID_ACCESS_ERR=15;d.VALIDATION_ERR=16;d.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=U;CanvasRenderingContext2D=C;CanvasGradient=w;CanvasPattern=I;DOMException=A}();
|
||||
278
js/chartTest.js
Normal file
278
js/chartTest.js
Normal file
File diff suppressed because one or more lines are too long
73
js/chartTest2.js
Normal file
73
js/chartTest2.js
Normal file
File diff suppressed because one or more lines are too long
158
js/charts_TEMP.js
Normal file
158
js/charts_TEMP.js
Normal file
@@ -0,0 +1,158 @@
|
||||
var OL3040JSON = []; var OW3040JSON = []; var IL3040JSON = []; var IW3040JSON = []; var R123040JSON = []; var R343040JSON = []; var Rau3040JSON = [];
|
||||
var OL3030JSON = []; var OW3030JSON = []; var IL3030JSON = []; var IW3030JSON = []; var R123030JSON = []; var R343030JSON = []; var Rau3030JSON = [];
|
||||
var OL2121JSON = []; var OW2121JSON = []; var IL2121JSON = []; var IW2121JSON = []; var R122121JSON = []; var R342121JSON = []; var Rau2121JSON = [];
|
||||
var OL2121CJSON = []; var OW2121CJSON = []; var IL2121CJSON = []; var IW2121CJSON = []; var R122121CJSON = []; var R342121CJSON = []; var Rau2121CJSON = [];
|
||||
|
||||
var rows = [];
|
||||
|
||||
function dispChart(binder, values, bezeichnerArr, lblText){
|
||||
setTimeout(function () {
|
||||
chart = c3.generate({
|
||||
bindto: binder,
|
||||
data: { json: values, keys: { x: 'code', value: bezeichnerArr } },
|
||||
axis: {
|
||||
x: { type: 'category', label: { text: lblText, position: "inner-center" } },
|
||||
y: { tick: { format: d3.format(".2f") } },
|
||||
y2: {inner: true },
|
||||
color: { pattern: ['violet', 'yellow', 'red', 'green', 'blue'] }
|
||||
}
|
||||
});
|
||||
}, 250);
|
||||
}
|
||||
|
||||
|
||||
$("body").off("click", "#btnChart1");
|
||||
$("body").off("click", "#btnChart2");
|
||||
$("body").off("click", "#btnChart3");
|
||||
$("body").off("click", "#btnChart4");
|
||||
$("body").off("click", "#btnChart5");
|
||||
$("body").off("click", "#btnChart6");
|
||||
$("body").off("click", "#btnChart7");
|
||||
|
||||
|
||||
$("body").on("click", "#btnChart1", function(e){
|
||||
dispChart("#chart", OL3040JSON, ['OL1', 'OL2', 'min', 'nom', 'max'], "Outer Length");
|
||||
dispChart("#chart2", OW3040JSON, ['OW1', 'OW2', 'min', 'nom', 'max'], "Outer Width");
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnChart2", function(e){
|
||||
dispChart("#chart", IL3040JSON, ['OL1', 'OL2', 'min', 'nom', 'max'], "Inner Length");
|
||||
dispChart("#chart2", IW3040JSON, ['OW1', 'OW2', 'min', 'nom', 'max'], "Inner Width");
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnChart3", function(e){ /* FOO */ });
|
||||
$("body").on("click", "#btnChart4", function(e){ /* FOO */ });
|
||||
$("body").on("click", "#btnChart5", function(e){ /* FOO */ });
|
||||
$("body").on("click", "#btnChart6", function(e){ /* FOO */ });
|
||||
|
||||
|
||||
$("body").off("click", "#btnChart7");
|
||||
$("body").on("click", "#btnChart7", function(e){
|
||||
|
||||
rows = [];
|
||||
OL3040JSON = []; OW3040JSON = []; IL3040JSON = []; IW3040JSON = []; R123040JSON = []; R343040JSON = []; Rau3040JSON = [];
|
||||
OL3030JSON = []; OW3030JSON = []; IL3030JSON = []; IW3030JSON = []; R123030JSON = []; R343030JSON = []; Rau3030JSON = [];
|
||||
OL2121JSON = []; OW2121JSON = []; IL2121JSON = []; IW2121JSON = []; R122121JSON = []; R342121JSON = []; Rau2121JSON = [];
|
||||
OL2121CJSON = []; OW2121CJSON = []; IL2121CJSON = []; IW2121CJSON = []; R122121CJSON = []; R342121CJSON = []; Rau2121CJSON = [];
|
||||
|
||||
var actType = $('#selTmpTyp')[0].value;
|
||||
|
||||
var objMesswerte = HTMLTable2Array(actType);
|
||||
|
||||
foo(objMesswerte);
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
function foo(messwerte, actType){
|
||||
|
||||
OL3040JSON = []; OW3040JSON = []; IL3040JSON = []; IW3040JSON = []; R123040JSON = []; R343040JSON = []; Rau3040JSON = [];
|
||||
OL3030JSON = []; OW3030JSON = []; IL3030JSON = []; IW3030JSON = []; R123030JSON = []; R343030JSON = []; Rau3030JSON = [];
|
||||
OL2121JSON = []; OW2121JSON = []; IL2121JSON = []; IW2121JSON = []; R122121JSON = []; R342121JSON = []; Rau2121JSON = [];
|
||||
OL2121CJSON = []; OW2121CJSON = []; IL2121CJSON = []; IW2121CJSON = []; R122121CJSON = []; R342121CJSON = []; Rau2121CJSON = [];
|
||||
|
||||
switch ( actType ){
|
||||
case "3040":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL3040JSON.push({ code: toolpart, OL1: Number(item.OL1), OL2: Number(item.OL2), min: 429.40, nom: 429.50, max: 429.60 });
|
||||
OW3040JSON.push({ code: toolpart, OW1: Number(item.OW1), OW2: Number(item.OW2), min: 310.50, nom: 310.60, max: 310.70 });
|
||||
IL3040JSON.push({ code: toolpart, IL1: Number(item.IL1), IL2: Number(item.IL2), min: 421.98, nom: 422.18, max: 422.38 });
|
||||
IW3040JSON.push({ code: toolpart, IW1: Number(item.IW1), IW2: Number(item.IW2), min: 303.08, nom: 303.28, max: 303.48 });
|
||||
});
|
||||
break;
|
||||
case "3030":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL3030JSON.push({ code: toolpart, OL1: Number(item.OL1), OL2: Number(item.OL2), min: 323.20, nom: 323.40, max: 323.60 });
|
||||
OW3030JSON.push({ code: toolpart, OW1: Number(item.OW1), OW2: Number(item.OW2), min: 323.20, nom: 323.40, max: 323.60 });
|
||||
IL3030JSON.push({ code: toolpart, IL1: Number(item.IL1), IL2: Number(item.IL2), min: 315.48, nom: 315.68, max: 315.88 });
|
||||
IW3030JSON.push({ code: toolpart, IW1: Number(item.IW1), IW2: Number(item.IW2), min: 315.48, nom: 315.68, max: 315.88 });
|
||||
});
|
||||
break;
|
||||
case "2121":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL2121JSON.push({ code: toolpart, OL: Number(item.OL), min: 222.00, nom: 222.10, max: 222.20 });
|
||||
OW2121JSON.push({ code: toolpart, OW: Number(item.OW), min: 222.00, nom: 222.10, max: 222.20 });
|
||||
IL2121JSON.push({ code: toolpart, IL: Number(item.IL), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
IW2121JSON.push({ code: toolpart, IW: Number(item.IW), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
});
|
||||
break;
|
||||
case "2121C":
|
||||
$.each(messwerte, function(i, item) {
|
||||
partNr = item.TXLCode.substring(item.TXLCode.length -4); toolNr = item.TXLCode.substring(3,5); toolpart = toolNr + "-" + partNr;
|
||||
OL2121CJSON.push({ code: toolpart, OL: Number(item.OL), min: 217.60, nom: 217.70, max: 217.80 });
|
||||
OW2121CJSON.push({ code: toolpart, OW: Number(item.OW), min: 217.60, nom: 217.70, max: 217.80 });
|
||||
IL2121CJSON.push({ code: toolpart, IL: Number(item.IL), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
IW2121CJSON.push({ code: toolpart, IW: Number(item.IW), min: 213.78, nom: 213.98, max: 214.18 });
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function HTMLTable2Array(type) {
|
||||
if ( type === "3040" || type === "3030" ) {
|
||||
$('#tbodyMesswerte tr').each(function(i, n){
|
||||
var $row = $(n);
|
||||
rows.push({
|
||||
TXLCode: $row.find('td:eq(0)').text().trim(),
|
||||
OL1: $row.find('td:eq(1)').text().trim(),
|
||||
OL2: $row.find('td:eq(2)').text().trim(),
|
||||
OW1: $row.find('td:eq(3)').text().trim(),
|
||||
OW2: $row.find('td:eq(4)').text().trim(),
|
||||
IL1: $row.find('td:eq(5)').text().trim(),
|
||||
IL2: $row.find('td:eq(6)').text().trim(),
|
||||
IW1: $row.find('td:eq(7)').text().trim(),
|
||||
IW2: $row.find('td:eq(8)').text().trim(),
|
||||
R1: $row.find('td:eq(9)').text().trim(),
|
||||
R2: $row.find('td:eq(10)').text().trim(),
|
||||
R3: $row.find('td:eq(11)').text().trim(),
|
||||
R4: $row.find('td:eq(12)').text().trim()
|
||||
});
|
||||
});
|
||||
} else if ( type === "2121" || type === "2121C" ) {
|
||||
$('#tbodyMesswerte tr').each(function(i, n){
|
||||
var $row = $(n);
|
||||
rows.push({
|
||||
TXLCode: $row.find('td:eq(0)').text().trim(),
|
||||
OL: $row.find('td:eq(1)').text().trim(),
|
||||
OW: $row.find('td:eq(2)').text().trim(),
|
||||
IL: $row.find('td:eq(3)').text().trim(),
|
||||
IW: $row.find('td:eq(4)').text().trim(),
|
||||
R1: $row.find('td:eq(5)').text().trim(),
|
||||
R2: $row.find('td:eq(6)').text().trim(),
|
||||
R3: $row.find('td:eq(7)').text().trim(),
|
||||
R4: $row.find('td:eq(8)').text().trim()
|
||||
});
|
||||
});
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
|
||||
18
js/converter.js
Normal file
18
js/converter.js
Normal file
@@ -0,0 +1,18 @@
|
||||
$(document).ready(function () {
|
||||
$("body").off("click", "#btnGet2121");
|
||||
|
||||
|
||||
|
||||
$("body").on("click", "#btnGet2121", function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
256
js/converter2.js
Normal file
256
js/converter2.js
Normal file
@@ -0,0 +1,256 @@
|
||||
$(document).ready(function () {
|
||||
$("body").off("click", "#btnToArray");
|
||||
$("body").off("click", "#btnConvert");
|
||||
$("body").off("click", "#btnCSV");
|
||||
|
||||
|
||||
|
||||
var rows = [];
|
||||
|
||||
$("body").on("click", "#btnToArray", function() {
|
||||
console.time("tableReadToArray");
|
||||
console.log(rows.length + "Bauteile:\n" + HTMLTable2Array());
|
||||
console.timeEnd("tableReadToArray");
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnConvert", function() {
|
||||
allRowsConverten();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnCSV", function() {
|
||||
toCSV();
|
||||
});
|
||||
|
||||
function HTMLTable2Array() {
|
||||
$('table tr').each(function(i, n){
|
||||
var $row = $(n);
|
||||
rows.push({
|
||||
TXLCode: $row.find('td:eq(0)').text().trim(),
|
||||
OL1: $row.find('td:eq(1)').text().trim(),
|
||||
OL2: $row.find('td:eq(2)').text().trim(),
|
||||
OW1: $row.find('td:eq(3)').text().trim(),
|
||||
OW2: $row.find('td:eq(4)').text().trim(),
|
||||
R11: $row.find('td:eq(5)').text().trim(),
|
||||
R12: $row.find('td:eq(6)').text().trim(),
|
||||
R13: $row.find('td:eq(7)').text().trim(),
|
||||
R21: $row.find('td:eq(8)').text().trim(),
|
||||
R22: $row.find('td:eq(9)').text().trim(),
|
||||
R23: $row.find('td:eq(10)').text().trim(),
|
||||
R31: $row.find('td:eq(11)').text().trim(),
|
||||
R32: $row.find('td:eq(12)').text().trim(),
|
||||
R33: $row.find('td:eq(13)').text().trim(),
|
||||
R41: $row.find('td:eq(14)').text().trim(),
|
||||
R42: $row.find('td:eq(15)').text().trim(),
|
||||
R43: $row.find('td:eq(16)').text().trim(),
|
||||
LW: $row.find('td:eq(17)').text().trim(),
|
||||
CW: $row.find('td:eq(18)').text().trim(),
|
||||
MessDate: $row.find('td:eq(19)').text().trim(),
|
||||
RauDate: $row.find('td:eq(20)').text().trim(),
|
||||
InfoMessComm: $row.find('td:eq(21)').text().trim(),
|
||||
InfoRauComm: $row.find('td:eq(22)').text().trim(),
|
||||
Lieferbox: $row.find('td:eq(23)').text().trim()
|
||||
});
|
||||
});
|
||||
return JSON.stringify(rows);
|
||||
}
|
||||
|
||||
|
||||
function allRowsConverten() {
|
||||
var raureCnt = 0;
|
||||
var rauOneCnt = 0;
|
||||
var rauxlsCnt = 0;
|
||||
var rauOtherCnt = 0;
|
||||
|
||||
var mesOtherCnt = 0;
|
||||
var mesOneCnt = 0;
|
||||
var mesXlsOrMM = 0;
|
||||
|
||||
var rauHandArr = [];
|
||||
var mesHandArr =[];
|
||||
|
||||
var insertRec = 0;
|
||||
var updateRec = 0;
|
||||
var INSUP = 0;
|
||||
var KEININSUP = 0;
|
||||
var sql = [];
|
||||
var handSql = [];
|
||||
|
||||
$.each(rows, function(i,e){
|
||||
|
||||
var mesErr = false;
|
||||
var rauErr = false;
|
||||
var raudate = e["RauDate"];
|
||||
var messdate = e["MessDate"];
|
||||
|
||||
if ( raudate.startsWith("RE: ") ) {
|
||||
rauTime = raudate.match(/\d{2}\:\d{2}\:\d{2}/g);
|
||||
rauDate = raudate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["RauDate"] = reverseDate(rauDate[0]) + " " + rauTime[0];
|
||||
raureCnt++;
|
||||
} else if ( raudate.match(/\b\d{2}\.\d{2}\.\d{4}/g) ) {
|
||||
rauDate = raudate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["RauDate"] = reverseDate(rauDate[0]) + " 23:59:59";
|
||||
|
||||
rauxlsCnt++;
|
||||
} else if ( raudate == "1" ) {
|
||||
e["RauDate"] = "1979-04-18 20:16:00";
|
||||
rauOneCnt++;
|
||||
} else {
|
||||
rauHandArr.push({
|
||||
txlcode: e["TXLCode"],
|
||||
raudate: e["RauDate"]
|
||||
});
|
||||
rauOtherCnt++;
|
||||
rauErr = true;
|
||||
}
|
||||
|
||||
if ( Number(messdate) == 1 ) {
|
||||
e["MessDate"] = "1979-04-18 20:16:00";
|
||||
mesOneCnt++;
|
||||
} else if ( messdate.match(/(Z:\\|Z:K|Vora|TME2).*/g) ) {
|
||||
mesTime = messdate.match(/\d{2}\:\d{2}\:\d{2}/g);
|
||||
mesDate = messdate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["MessDate"] = reverseDate(mesDate[0]) + " " + mesTime[0];
|
||||
mesXlsOrMM++;
|
||||
} else {
|
||||
mesHandArr.push({
|
||||
txlcode: e["TXLCode"],
|
||||
messdate: e["MessDate"]
|
||||
});
|
||||
mesOtherCnt++;
|
||||
mesErr = true;
|
||||
}
|
||||
|
||||
if ( rauErr || mesErr ) {
|
||||
handSql.push(`INSERT INTO Bauteile ( TXLCode, Messdatum, Rauheitsdatum, Lieferbox, OL1, OL2, OW1, OW2, R11, R12, R13, R21, R22, R23, R31, R32, R33, R41, R42, R43, CW, LW, MessComm, RauComm ) VALUES ( "${e['TXLCode']}", "${e['MessDate']}", "${e['RauDate']}", ${e['Lieferbox']}, ${e['OL1']}, ${e['OL2']}, ${e['OW1']}, ${e['OW2']}, ${e['R11']}, ${e['R12']}, ${e['R13']}, ${e['R21']}, ${e['R22']}, ${e['R23']}, ${e['R31']}, ${e['R32']}, ${e['R33']}, ${e['R41']}, ${e['R42']}, ${e['R43']}, ${e['LW']}, ${e['CW']}, "${e['InfoMessComm']}", "${e['InfoRauComm']}") ON DUPLICATE KEY UPDATE TXLCode = "${e['TXLCode']}", Messdatum = "${e['MessDate']}", Rauheitsdatum = "${e['RauDate']}", Lieferbox = "${e['Lieferbox']}", OL1 = ${e['OL1']}, OL2 = ${e['OL2']}, OW1 = ${e['OW1']}, OW2 = ${e['OW2']}, R11 = ${e['R11']}, R12 = ${e['R12']}, R13 = ${e['R13']}, R21 = ${e['R21']}, R22 = ${e['R22']}, R23 = ${e['R23']}, R31 = ${e['R31']}, R32 = ${e['R32']}, R33 = ${e['R33']}, R41 = ${e['R41']}, R42 = ${e['R42']}, R43 = ${e['R43']}, CW = ${e['LW']}, LW = ${e['CW']}, MessComm = "${e['InfoMessComm']}", RauComm = "${e['InfoRauComm']}";`);
|
||||
KEININSUP++;
|
||||
} else {
|
||||
sql.push(`INSERT INTO Bauteile ( TXLCode, Messdatum, Rauheitsdatum, Lieferbox, OL1, OL2, OW1, OW2, R11, R12, R13, R21, R22, R23, R31, R32, R33, R41, R42, R43, CW, LW, MessComm, RauComm ) VALUES ( "${e['TXLCode']}", "${e['MessDate']}", "${e['RauDate']}", ${e['Lieferbox']}, ${e['OL1']}, ${e['OL2']}, ${e['OW1']}, ${e['OW2']}, ${e['R11']}, ${e['R12']}, ${e['R13']}, ${e['R21']}, ${e['R22']}, ${e['R23']}, ${e['R31']}, ${e['R32']}, ${e['R33']}, ${e['R41']}, ${e['R42']}, ${e['R43']}, ${e['LW']}, ${e['CW']}, "${e['InfoMessComm']}", "${e['InfoRauComm']}") ON DUPLICATE KEY UPDATE TXLCode = "${e['TXLCode']}", Messdatum = "${e['MessDate']}", Rauheitsdatum = "${e['RauDate']}", Lieferbox = "${e['Lieferbox']}", OL1 = ${e['OL1']}, OL2 = ${e['OL2']}, OW1 = ${e['OW1']}, OW2 = ${e['OW2']}, R11 = ${e['R11']}, R12 = ${e['R12']}, R13 = ${e['R13']}, R21 = ${e['R21']}, R22 = ${e['R22']}, R23 = ${e['R23']}, R31 = ${e['R31']}, R32 = ${e['R32']}, R33 = ${e['R33']}, R41 = ${e['R41']}, R42 = ${e['R42']}, R43 = ${e['R43']}, CW = ${e['LW']}, LW = ${e['CW']}, MessComm = "${e['InfoMessComm']}", RauComm = "${e['InfoRauComm']}";`);
|
||||
INSUP++;
|
||||
}
|
||||
});
|
||||
|
||||
var sfsd = sql.join("\n");
|
||||
window.open(encodeURI("data:text/csv;charset=utf-8," + sfsd));
|
||||
|
||||
console.log("Upd: " + INSUP);
|
||||
console.log("Err: " + KEININSUP);
|
||||
// console.log(JSON.stringify(rauHandArr));
|
||||
// console.log(JSON.stringify(mesHandArr));
|
||||
|
||||
$('#jsonDiv').text(JSON.stringify(sql));
|
||||
}
|
||||
|
||||
function toCSV() {
|
||||
var raureCnt = 0;
|
||||
var rauOneCnt = 0;
|
||||
var rauxlsCnt = 0;
|
||||
var rauOtherCnt = 0;
|
||||
|
||||
var mesOtherCnt = 0;
|
||||
var mesOneCnt = 0;
|
||||
var mesXlsOrMM = 0;
|
||||
|
||||
var rauHandArr = [];
|
||||
var mesHandArr =[];
|
||||
|
||||
var insertRec = 0;
|
||||
var updateRec = 0;
|
||||
var INSUP = 0;
|
||||
var KEININSUP = 0;
|
||||
var csv = [];
|
||||
var handCsv = [];
|
||||
|
||||
$.each(rows, function(i,e){
|
||||
|
||||
var mesErr = false;
|
||||
var rauErr = false;
|
||||
var raudate = e["RauDate"];
|
||||
var messdate = e["MessDate"];
|
||||
|
||||
if ( raudate.startsWith("RE: ") ) {
|
||||
rauTime = raudate.match(/\d{2}\:\d{2}\:\d{2}/g);
|
||||
rauDate = raudate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["RauDate"] = reverseDate(rauDate[0]) + " " + rauTime[0];
|
||||
raureCnt++;
|
||||
} else if ( raudate.match(/\b\d{2}\.\d{2}\.\d{4}/g) ) {
|
||||
rauDate = raudate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["RauDate"] = reverseDate(rauDate[0]) + " 23:59:59";
|
||||
|
||||
rauxlsCnt++;
|
||||
} else if ( raudate == "1" ) {
|
||||
e["RauDate"] = "1979-04-18 20:16:00";
|
||||
rauOneCnt++;
|
||||
} else {
|
||||
rauHandArr.push({
|
||||
txlcode: e["TXLCode"],
|
||||
raudate: e["RauDate"]
|
||||
});
|
||||
rauOtherCnt++;
|
||||
rauErr = true;
|
||||
}
|
||||
|
||||
if ( Number(messdate) == 1 ) {
|
||||
e["MessDate"] = "1979-04-18 20:16:00";
|
||||
mesOneCnt++;
|
||||
} else if ( messdate.match(/(Z:\\|Z:K|Vora|TME2).*/g) ) {
|
||||
mesTime = messdate.match(/\d{2}\:\d{2}\:\d{2}/g);
|
||||
mesDate = messdate.match(/\d{2}\.\d{2}\.\d{4}/g);
|
||||
e["MessDate"] = reverseDate(mesDate[0]) + " " + mesTime[0];
|
||||
mesXlsOrMM++;
|
||||
} else {
|
||||
mesHandArr.push({
|
||||
txlcode: e["TXLCode"],
|
||||
messdate: e["MessDate"]
|
||||
});
|
||||
mesOtherCnt++;
|
||||
mesErr = true;
|
||||
}
|
||||
|
||||
if ( rauErr || mesErr ) {
|
||||
//handSql.push(`INSERT INTO Bauteile ( TXLCode, Messdatum, Rauheitsdatum, Lieferbox, OL1, OL2, OW1, OW2, R11, R12, R13, R21, R22, R23, R31, R32, R33, R41, R42, R43, CW, LW, MessComm, RauComm ) VALUES ( "${e['TXLCode']}", "${e['MessDate']}", "${e['RauDate']}", "${e['Lieferbox']}", ${e['OL1']}, ${e['OL2']}, ${e['OW1']}, ${e['OW2']}, ${e['R11']}, ${e['R12']}, ${e['R13']}, ${e['R21']}, ${e['R22']}, ${e['R23']}, ${e['R31']}, ${e['R32']}, ${e['R33']}, ${e['R41']}, ${e['R42']}, ${e['R43']}, ${e['LW']}, ${e['CW']}, "${e['InfoMessComm']}", "${e['InfoRauComm']}") ON DUPLICATE KEY UPDATE TXLCode = "${e['TXLCode']}", Messdatum = "${e['MessDate']}", Rauheitsdatum = "${e['RauDate"']}", Lieferbox = "${e['Lieferbox']}", OL1 = ${e['OL1']}, OL2 = ${e['OL2']}, OW1 = ${e['OW1']}, OW2 = ${e['OW2']}, R11 = ${e['R11']}, R12 = ${e['R12']}, R13 = ${e['R13']}, R21 = ${e['R21']}, R22 = ${e['R22']}, R23 = ${e['R23']}, R31 = ${e['R31']}, R32 = ${e['R32']}, R33 = ${e['R33']}, R41 = ${e['R41']}, R42 = ${e['R42']}, R43 = ${e['R43']}, CW = ${e['LW']}, LW = ${e['CW']}, MessComm = "${e['InfoMessComm']}", RauComm = "${e['InfoRauComm']}";`);
|
||||
handCsv.push(`"${e['TXLCode']}"; "${e['MessDate']}"; "${e['RauDate']}"; "${e['Lieferbox']}"; ${e['OL1']}; ${e['OL2']}; ${e['OW1']}; ${e['OW2']}; ${e['R11']}; ${e['R12']}; ${e['R13']}; ${e['R21']}; ${e['R22']}; ${e['R23']}; ${e['R31']}; ${e['R32']}; ${e['R33']}; ${e['R41']}; ${e['R42']}; ${e['R43']}; ${e['LW']}; ${e['CW']}; "${e['InfoMessComm']}"; "${e['InfoRauComm']}"`);
|
||||
KEININSUP++;
|
||||
} else {
|
||||
//sql.push(`INSERT INTO Bauteile ( TXLCode, Messdatum, Rauheitsdatum, Lieferbox, OL1, OL2, OW1, OW2, R11, R12, R13, R21, R22, R23, R31, R32, R33, R41, R42, R43, CW, LW, MessComm, RauComm ) VALUES ( "${e['TXLCode']}", "${e['MessDate']}", "${e['RauDate']}", "${e['Lieferbox']}", ${e['OL1']}, ${e['OL2']}, ${e['OW1']}, ${e['OW2']}, ${e['R11']}, ${e['R12']}, ${e['R13']}, ${e['R21']}, ${e['R22']}, ${e['R23']}, ${e['R31']}, ${e['R32']}, ${e['R33']}, ${e['R41']}, ${e['R42']}, ${e['R43']}, ${e['LW']}, ${e['CW']}, "${e['InfoMessComm']}", "${e['InfoRauComm']}") ON DUPLICATE KEY UPDATE TXLCode = "${e['TXLCode']}", Messdatum = "${e['MessDate']}", Rauheitsdatum = "${e['RauDate"']}", Lieferbox = "${e['Lieferbox']}", OL1 = ${e['OL1']}, OL2 = ${e['OL2']}, OW1 = ${e['OW1']}, OW2 = ${e['OW2']}, R11 = ${e['R11']}, R12 = ${e['R12']}, R13 = ${e['R13']}, R21 = ${e['R21']}, R22 = ${e['R22']}, R23 = ${e['R23']}, R31 = ${e['R31']}, R32 = ${e['R32']}, R33 = ${e['R33']}, R41 = ${e['R41']}, R42 = ${e['R42']}, R43 = ${e['R43']}, CW = ${e['LW']}, LW = ${e['CW']}, MessComm = "${e['InfoMessComm']}", RauComm = "${e['InfoRauComm']}";`);
|
||||
csv.push(`"${e['TXLCode']}"; "${e['MessDate']}"; "${e['RauDate']}"; "${e['Lieferbox']}"; ${e['OL1']}; ${e['OL2']}; ${e['OW1']}; ${e['OW2']}; ${e['R11']}; ${e['R12']}; ${e['R13']}; ${e['R21']}; ${e['R22']}; ${e['R23']}; ${e['R31']}; ${e['R32']}; ${e['R33']}; ${e['R41']}; ${e['R42']}; ${e['R43']}; ${e['LW']}; ${e['CW']}; "${e['InfoMessComm']}"; "${e['InfoRauComm']}"`);
|
||||
INSUP++;
|
||||
}
|
||||
});
|
||||
|
||||
var sfsd = csv.join("\n");
|
||||
window.open(encodeURI("data:text/csv;charset=utf-8," + sfsd));
|
||||
|
||||
console.log("Upd: " + INSUP);
|
||||
console.log("Err: " + KEININSUP);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getBauteilStatusNew(txlcode) {
|
||||
|
||||
myJSON = { func: "getBauteilStatusNew", TXLCode: txlcode };
|
||||
myRowID = $.ajax({
|
||||
url: "DBSachen.php",
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return myRowID.responseText;
|
||||
}
|
||||
|
||||
|
||||
// http://stackoverflow.com/a/37151380/5690568
|
||||
function reverseDate(str) {
|
||||
|
||||
var strArray = str.split(".");
|
||||
strArray.reverse();
|
||||
|
||||
var strReverse = strArray.join("-");
|
||||
|
||||
return strReverse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
8
js/d3.min.js
vendored
Normal file
8
js/d3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9554
js/d3.v3.js
vendored
Normal file
9554
js/d3.v3.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
411
js/dbsachen.js
Normal file
411
js/dbsachen.js
Normal file
@@ -0,0 +1,411 @@
|
||||
|
||||
let DBSACHEN = "php/DBSachen.php";
|
||||
var DB = new Object();
|
||||
|
||||
// region externe funktionen/methoden
|
||||
|
||||
// nur schauen, ob das bauteil schon in der Tabelle um zu entscheiden
|
||||
// on ein INSERT oder ein UPDATE gefahren werden muss
|
||||
DB.getBauteilStatusNew = function(txlcode) {
|
||||
|
||||
myJSON = { func: "getBauteilStatusNew", TXLCode: txlcode };
|
||||
bauteilSchonInDBJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return bauteilSchonInDBJSON.responseText;
|
||||
|
||||
}
|
||||
|
||||
/** GETBAUTEILSTATUS
|
||||
* erwartet TXLCode
|
||||
* gibt -1, 0, 1 oder 2 zurueck
|
||||
*
|
||||
* -1 - undefinierter Fehler
|
||||
* 0 - Bauteil in DB und ohne Messwerte
|
||||
* 1 - Bauteil in DB und schon gemessen
|
||||
* 2 - Bauteil nicht in DB vorhanden
|
||||
*
|
||||
**/
|
||||
DB.getBauteilStatus = function(txlcode) {
|
||||
data = getMesswertStatusJSON(txlcode);
|
||||
try{
|
||||
arr = JSON.parse(data.responseText);
|
||||
if ( arr[0] === "n" && arr[1] === "u" && arr[2] === "l" && arr[3] === "l" ) {
|
||||
if ( DEBUGmany ) { console.log("dbsachen.js: Bauteilstatus von " + txlcode + ": 2 (n. in DB)"); }
|
||||
return 2;
|
||||
} else if ( arr[0] === "0" && arr[1] === "0" && arr[2] === "0" && arr[3] === "0" ) {
|
||||
if ( DEBUGmany ) { console.log("dbsachen.js: Bauteilstatus von " + txlcode + ": 0 (in DB ohne Messwerte)"); }
|
||||
return 0;
|
||||
} else {
|
||||
if ( DEBUGmany ) { console.log("dbsachen.js: Bauteilstatus von " + txlcode + ": 1 (schon gemessen)"); }
|
||||
return 1;
|
||||
}
|
||||
} catch(e) {
|
||||
console.log("dbsachen.js: Fehler in Funktion getBauteilStatus:\n" + e.name + "\n" + e.message);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/** Aktualisiere die Bauteile mit der zugeordneten Nummer der Lieferbox
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
DB.updateBauteilLieferbox = function(dataArr) {
|
||||
myJSON = {
|
||||
func: "updateBauteilLieferbox",
|
||||
newBoxNr: dataArr[0],
|
||||
part1: dataArr[1],
|
||||
part2: dataArr[2],
|
||||
part3: dataArr[3],
|
||||
part4: dataArr[4],
|
||||
part5: dataArr[5],
|
||||
part6: dataArr[6],
|
||||
part7: dataArr[7],
|
||||
part8: dataArr[8],
|
||||
part9: dataArr[9]
|
||||
};
|
||||
responseJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return responseJSON.responseText;
|
||||
}
|
||||
|
||||
/** LADE LETZTE BELADUNG
|
||||
* holt die TXLCodes und SchottOrderNummern aus der DB,
|
||||
* erhoeht die TXLCodes um 1 und traegt die neuen TXLCodes
|
||||
* und SONs in die einzelnen felder ein
|
||||
*
|
||||
*/
|
||||
DB.loadLetzteBeladung = function(ofenname) {
|
||||
myJSON = { func: "letzteBeladung", ofenname: ofenname };
|
||||
letzteBeladungJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return letzteBeladungJSON.responseText;
|
||||
}
|
||||
|
||||
DB.getBauteile = function(bauteiltyp) {
|
||||
myJSON = { func: "getBauteile", bauteiltyp: bauteiltyp };
|
||||
bauteileJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return bauteileJSON.responseText;
|
||||
}
|
||||
|
||||
DB.getLastBoxNr = function(flavor) {
|
||||
myJSON = { func: "getLastBoxNr", flavor: flavor };
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
DB.getBauteilLieferbox = function(txlcode) {
|
||||
myJSON = { func: "getBauteilLieferbox", TXLCode: txlcode };
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
DB.getBoxinhalte = function(flavor) {
|
||||
myJSON = { func: "getBoxinhalte", flavor: flavor };
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
DB.getAllBoxNr = function(flavor) {
|
||||
myJSON = { func: "getAllBoxNr", flavor: flavor };
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
DB.getBoxMesswerte = function(flavor, boxNr) {
|
||||
myJSON = {
|
||||
func: "getBoxMesswerte",
|
||||
flavor: flavor,
|
||||
boxNr: boxNr
|
||||
};
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
DB.getSingleBoxinhalt = function(flavor, boxNr) {
|
||||
myJSON = {
|
||||
func: "getSingleBoxinhalt",
|
||||
flavor: flavor,
|
||||
boxNr: boxNr
|
||||
};
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
DB.getOldBauteile = function(flavor, limit, startFrom) {
|
||||
myJSON = {
|
||||
func: "getAllOldBauteile",
|
||||
flavor: flavor,
|
||||
limit: limit,
|
||||
startFrom: startFrom
|
||||
};
|
||||
JSONres = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return JSONres.responseText;
|
||||
}
|
||||
|
||||
|
||||
DB.insertBox = function(myJSON) {
|
||||
insertBoxJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
console.log("DB.insertbox:insertBoxJSON: " + insertBoxJSON);
|
||||
return insertBoxJSON.responseText;
|
||||
|
||||
}
|
||||
|
||||
/** BELADUNG EINTRAGEN
|
||||
* erwartet ein assoz. Array/Object, welches dann in ein JSON gewandelt
|
||||
* und an DBSachen.php weiter gereicht wird, welches dann die eintraege
|
||||
* validiert und in die DB eintraegt
|
||||
**/
|
||||
DB.insertBeladung = function(myJSON) {
|
||||
$.post(DBSACHEN, {
|
||||
json: JSON.stringify(myJSON)
|
||||
},
|
||||
function(data, status) {
|
||||
if (status == "success") {
|
||||
console.log("returned data: " + data);
|
||||
if ( data.substring(0, 15) === "Execute failed:") {
|
||||
swal("Fehler", "Der MySQL-Server meldete einen Fehler:\n" + data, "error");
|
||||
} else if ( $.isNumeric(data) ) {
|
||||
swal("Fertig", "Beladung mit " + data + " Teilen wurde eingetragen.", "success");
|
||||
}
|
||||
} else {
|
||||
swal("Fehler", "Fehler beim eintragen der Beladung. Status: " + status + "\nFunc dbsachen.js->insertBeladung", "error");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
DB.updateMesswerteGeneric = function(messwertJSON){
|
||||
response = $.ajax(
|
||||
{
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(messwertJSON)},
|
||||
async: false,
|
||||
method: "POST"
|
||||
}
|
||||
);
|
||||
return response;
|
||||
}
|
||||
|
||||
DB.sendJSONGeneric = function(myJSON){
|
||||
response = $.ajax(
|
||||
{
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON)},
|
||||
async: false,
|
||||
method: "POST"
|
||||
}
|
||||
);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/** BELADUNG EINTRAGEN
|
||||
* sammelt alle eintraege des belade-formumars und gibt sie
|
||||
* an DBSachen.php weiter, welches dann die eintraege validiert und
|
||||
* in die DB eintraegt
|
||||
**/
|
||||
DB.insertBeladungKF480 = function () {
|
||||
/* TODO:
|
||||
* debug-ausgaben zu showErrorMSG()
|
||||
*/
|
||||
var fehlendeSON = 0;
|
||||
var fehlerhafteCodes = 0;
|
||||
var eingetrageneTeile = 0;
|
||||
myJSON = new Object();
|
||||
myJSON = $('form').serializeObject();
|
||||
if (myJSON.tbE01KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE01KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON01KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE02KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE02KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON02KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE03KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE03KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON03KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE04KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE04KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON04KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE05KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE05KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON05KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE06KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE06KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON06KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE07KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE07KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON07KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE08KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE08KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON08KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE09KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE09KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON09KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE10KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE10KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON10KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE11KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE11KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON11KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE12KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE12KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON12KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE13KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE13KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON13KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE14KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE14KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON14KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE15KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE15KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON15KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE16KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE16KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON16KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE17KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE17KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON17KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE18KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE18KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON18KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE19KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE19KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON19KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE20KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE20KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON20KF480 === "") { fehlendeSON += 1; } }
|
||||
if (eingetrageneTeile === 0) { alert("Eine Leerfahrt?"); }
|
||||
if (fehlendeSON > 0) { alert("Fehlende Schott-Order-Nummern - bitte bereinigen"); }
|
||||
if (fehlerhafteCodes > 0) { alert("Falscher Code - bitte bereinigen"); }
|
||||
if ( DEBUG ) { console.log(
|
||||
"teile:" + eingetrageneTeile + "\n" +
|
||||
"fehlSON:" + fehlendeSON + "\n" +
|
||||
"fehlCodes:" + fehlerhafteCodes
|
||||
);
|
||||
}
|
||||
|
||||
if (fehlendeSON === 0 && fehlerhafteCodes === 0 && eingetrageneTeile > 0) {
|
||||
$.post(DBSACHEN, {
|
||||
json: JSON.stringify(myJSON)
|
||||
},
|
||||
function(data, status) {
|
||||
if (status == "success") {
|
||||
if ( DEBUGmany ) { console.log("returned data: " + data.substring(0, 15)); }
|
||||
if ( data.substring(0, 15) === "Execute failed:") {
|
||||
showErrorModal("MySQL-Fehler", "Es trat ein Fehler beim SQL-Query auf:\n" + data, "");
|
||||
} else if ( $.isNumeric(data) ) {
|
||||
showErrorModal("Eingetragen", "Beladung mit " + data + " Teilen wurde eingetragen.", "");
|
||||
}
|
||||
} else {
|
||||
showErrorModal("Fehler", "Fehler beim Eintragen der Beladung. Status:" + status, "");
|
||||
}
|
||||
});
|
||||
if ( DEBUG ) { console.log(JSON.stringify(myJSON)); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
DB.insertBeladungKF80 = function () {
|
||||
/* TODO:
|
||||
* debug-ausgaben zu showErrorMSG()
|
||||
*/
|
||||
var fehlendeSON = 0;
|
||||
var fehlerhafteCodes = 0;
|
||||
var eingetrageneTeile = 0;
|
||||
myJSON = new Object();
|
||||
myJSON = $('form').serializeObject();
|
||||
if (myJSON.tbE01KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE01KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON01KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE02KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE02KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON02KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE03KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE03KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON03KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE04KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE04KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON04KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE05KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE05KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON05KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE06KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE06KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON06KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE07KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE07KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON07KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE08KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE08KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON08KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE09KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE09KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON09KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE10KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE10KF80) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON10KF80 === "") { fehlendeSON += 1; } }
|
||||
/*
|
||||
if (myJSON.tbE11KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE11KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON11KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE12KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE12KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON12KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE13KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE13KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON13KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE14KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE14KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON14KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE15KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE15KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON15KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE16KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE16KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON16KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE17KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE17KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON17KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE18KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE18KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON18KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE19KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE19KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON19KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE20KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE20KF480) > 0) { fehlerhafteCodes += 1; } if (myJSON.SON20KF480 === "") { fehlendeSON += 1; } }
|
||||
*/
|
||||
if (eingetrageneTeile === 0) { showErrorModal("Netter Versuch", "Eine Leerfahrt?", "eine Beladung ohne Bauteile kann nicht eingetragen werden"); }
|
||||
if (fehlendeSON > 0) { showErrorModal("Da wurde was vergessen", "Fehlende Schott-Order-Nummern - bitte bereinigen", "Wir müssen doch die Teile zurückverfolgen können ... auch wenn's nervt."); }
|
||||
if (fehlerhafteCodes > 0) { showErrorModal("Tippfehler?", "Falscher Code - bitte bereinigen", "Da hat sich wohl ein falscher Trixell-Code eingschlichen. Schau nochmal drüber."); }
|
||||
console.log(
|
||||
"teile:" + eingetrageneTeile + "\n" +
|
||||
"fehlSON:" + fehlendeSON + "\n" +
|
||||
"fehlCodes:" + fehlerhafteCodes
|
||||
);
|
||||
if (fehlendeSON === 0 && fehlerhafteCodes === 0 && eingetrageneTeile > 0) {
|
||||
$.post(DBSACHEN, {
|
||||
json: JSON.stringify(myJSON)
|
||||
},
|
||||
function(data, status) {
|
||||
if (status == "success") {
|
||||
console.log("returned data: " + data.substring(0, 15));
|
||||
if ( data.substring(0, 15) === "Execute failed:") {
|
||||
showErrorModal("MySQL-Fehler", "<b>Es trat ein Fehler beim SQL-Query auf:</b>\n" + data, "Mögliche Fehler wären: \n(1062) Duplicate entry: Doppeltes Bauteil");
|
||||
} else if ( $.isNumeric(data) ) {
|
||||
showErrorModal("Eingetragen", "Beladung mit " + data + " Teilen wurde eingetragen.", "");
|
||||
}
|
||||
} else {
|
||||
showErrorModal("Fehler", "Fehler beim Eintragen der Beladung. Status:" + status, "");
|
||||
}
|
||||
});
|
||||
if ( DEBUG ) { console.log(JSON.stringify(myJSON)); }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// end region externe funktionen/methoden
|
||||
|
||||
|
||||
// region interne Funktionen
|
||||
|
||||
|
||||
|
||||
function getMesswertStatusJSON(txlcode) {
|
||||
var myJSON = {
|
||||
"func" : "getMesswertStatus",
|
||||
"TXLCode" : txlcode
|
||||
};
|
||||
response = $.ajax(
|
||||
{
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON)},
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
// end region
|
||||
372
js/deckblatt_creator.js
Normal file
372
js/deckblatt_creator.js
Normal file
File diff suppressed because one or more lines are too long
47
js/function_getMesswertStatusJSON.js
Normal file
47
js/function_getMesswertStatusJSON.js
Normal file
@@ -0,0 +1,47 @@
|
||||
function getMesswertStatusJSON(tmptype) {
|
||||
var myJSON = {
|
||||
"func" : "getBauteilArchiv",
|
||||
"flavor" : tmptype
|
||||
};
|
||||
response = $.ajax(
|
||||
{
|
||||
url: "/php/DBSachen.php",
|
||||
data: { json: JSON.stringify(myJSON)},
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
return response.responseText;
|
||||
}
|
||||
|
||||
var arr = JSON.parse(getMesswertStatusJSON("2121"));
|
||||
|
||||
console.log(arr.length);
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
|
||||
tr= $('<tr/>');
|
||||
tr.append("<td> -- </td>"); // tr.append("<td>" + arr[i].TXLCode + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R33 ,2) + "</td>"); // Tool
|
||||
tr.append("<td>" + helper.pad(arr[i].R43 ,2) + "</td>"); // Part
|
||||
tr.append("<td>" + helper.pad(arr[i].OL1 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].OL2 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].OW1 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].OW2 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R11 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R12 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R13 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R21 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R22 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R23 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R31 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R32 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R33 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(arr[i].R41 ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(Number(arr[i].R42) ,2) + "</td>");
|
||||
tr.append("<td>" + helper.pad(Number(arr[i].R43) ,2) + "</td>");
|
||||
|
||||
$('#tblMessarchiv').append(tr);
|
||||
|
||||
}
|
||||
|
||||
|
||||
149
js/helper.js
Normal file
149
js/helper.js
Normal file
@@ -0,0 +1,149 @@
|
||||
// Main configuration
|
||||
|
||||
|
||||
var helper = new Object();
|
||||
|
||||
/**
|
||||
* Convert Tool-Rev-Part to Trixell-Code
|
||||
* @param {String} flav
|
||||
* @param {Number} tool
|
||||
* @param {Number} rev
|
||||
* @param {Number} part
|
||||
* @return {String} TXLCode
|
||||
*/
|
||||
|
||||
helper.trp2TXLCode = function(flav, tool, rev, part) {
|
||||
var nTool = pad(tool, 2);
|
||||
var nRev = pad(rev, 2);
|
||||
var nPart = pad(part, 4);
|
||||
var nType = "XXX";
|
||||
|
||||
if (flav == "3040") {
|
||||
nType = "GW1"
|
||||
} else if (flav === "3030") {
|
||||
nType = "GX1"
|
||||
} else if (flav === "2121") {
|
||||
nType = "GA1"
|
||||
} else if (flav === "2121C") {
|
||||
nType = "GC1"
|
||||
}
|
||||
|
||||
return nType + nTool + nRev + nPart;
|
||||
}
|
||||
|
||||
/** GET NEXT PART NUMBER
|
||||
* Gibt den TXLCode für das nächste Bauteil aus
|
||||
* erwartet konformen TXLCode
|
||||
* gibt einen um 1 inkrementierten TXLCode aus
|
||||
*
|
||||
**/
|
||||
helper.getNextPart = function(TXLCode) {
|
||||
var typecode = TXLCode.substring(0, 3);
|
||||
var toolrev = TXLCode.substring(3, 7);
|
||||
var part = TXLCode.substring(7, 11);
|
||||
var npart = pad(parseInt(part) + 1, 4); // helper.js->pad()
|
||||
return typecode + toolrev + npart;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* returns:
|
||||
* 0 = sieht valide aus
|
||||
* 1 = nicht 11 Zeichen lang
|
||||
* 2 = falscher Produktcode
|
||||
* 3 = falsches Zeichen in Tool
|
||||
* 4 = falsches Zeichen in Rev
|
||||
* 5 = falsches Zeichen in Part
|
||||
* 6 = leer / nichts übergeben
|
||||
**/
|
||||
helper.looksLikeTXLCode = function(TXLCode) {
|
||||
if (typeof TXLCode != 'undefined'){
|
||||
if (TXLCode.length == 11) {
|
||||
var typecode = TXLCode.substring(0, 3);
|
||||
var tool = TXLCode.substring(3, 5);
|
||||
var rev = TXLCode.substring(5, 7);
|
||||
var part = TXLCode.substring(7, 11);
|
||||
var toolok, revok, partok, typecodeok = false;
|
||||
if (typecode == "GW1" || typecode == "GA1" || typecode == "GX1" || typecode == "GC1") { typecodeok = true; } else { typecodeok = false; }
|
||||
if ($.isNumeric(tool)) { toolok = true; } else { toolok = false; }
|
||||
if ($.isNumeric(rev)) { revok = true; } else { revok = false; }
|
||||
if ($.isNumeric(part)) { partok = true; } else { partok = false; }
|
||||
if (typecodeok && toolok && revok && partok) { return 0; }
|
||||
else {
|
||||
if (!typecodeok) { return 2; }
|
||||
if (!toolok) { return 3; }
|
||||
if (!revok) { return 4; }
|
||||
if (!partok) { return 5; }
|
||||
}
|
||||
} else { return 1; }
|
||||
} else { return 6; }
|
||||
}
|
||||
|
||||
|
||||
/** erstellt einen TXLCode aus Tool-Rev-Part-Notation */
|
||||
helper.getTXLCode = function(type, tool, rev, part) {
|
||||
var nTool = pad(tool, 2);
|
||||
var nRev = pad(rev, 2);
|
||||
var nPart = pad(part, 4);
|
||||
var nType = "XXX";
|
||||
|
||||
if (type == "3040") {
|
||||
nType = "GW1"
|
||||
} else if (type === "3030") {
|
||||
nType = "GX1"
|
||||
} else if (type === "2121") {
|
||||
nType = "GA1"
|
||||
} else if (type === "2121C") {
|
||||
nType = "GC1"
|
||||
}
|
||||
|
||||
return nType + nTool + nRev + nPart;
|
||||
}
|
||||
|
||||
helper.getToolRevPart = function(txlcode){
|
||||
var tool = txlcode.substring(3, 5);
|
||||
var rev = txlcode.substring(5, 7);
|
||||
var part = txlcode.substring(7);
|
||||
return tool + "-" + rev + "-" + part
|
||||
}
|
||||
|
||||
helper.pad = function(str, max){
|
||||
str = str.toString();
|
||||
return str.length < max ? pad("0" + str, max) : str;
|
||||
|
||||
}
|
||||
|
||||
function pad(str, max) {
|
||||
str = str.toString();
|
||||
return str.length < max ? pad("0" + str, max) : str;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* erwartet referenz auf das formular
|
||||
*
|
||||
* Wandelt Formulardaten in ein Objekt um damit es im weiteren verlauf
|
||||
* in ein JSON-String gewandelt werden kann, was das PHP-Skript dann
|
||||
* verarbeitet
|
||||
*
|
||||
* gibt ein Objekt zurueck
|
||||
*
|
||||
* jsfiddle.net/sxGtM/3/
|
||||
* http://stackoverflow.com/questions/1184624/convert-form-data-to-javascript-object-with-jquery
|
||||
**/
|
||||
$.fn.serializeObject = function(){
|
||||
var o = {};
|
||||
var a = this.serializeArray();
|
||||
$.each(a, function() {
|
||||
if (o[this.name] !== undefined) {
|
||||
if (!o[this.name].push) {
|
||||
o[this.name] = [o[this.name]];
|
||||
}
|
||||
o[this.name].push(this.value || '');
|
||||
} else {
|
||||
o[this.name] = this.value || '';
|
||||
}
|
||||
});
|
||||
return o;
|
||||
}
|
||||
|
||||
926
js/impromptu.js
Normal file
926
js/impromptu.js
Normal file
@@ -0,0 +1,926 @@
|
||||
/*! jQuery-Impromptu - v6.2.2 - 2015-11-14
|
||||
* http://trentrichardson.com/Impromptu
|
||||
* Copyright (c) 2015 Trent Richardson; Licensed MIT */
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else {
|
||||
factory(root.jQuery);
|
||||
}
|
||||
}(this, function($) {
|
||||
'use strict';
|
||||
|
||||
// ########################################################################
|
||||
// Base object
|
||||
// ########################################################################
|
||||
|
||||
/**
|
||||
* Imp - Impromptu object - passing no params will not open, only return the instance
|
||||
* @param message String/Object - String of html or Object of states
|
||||
* @param options Object - Options to set the prompt
|
||||
* @return Imp - the instance of this Impromptu object
|
||||
*/
|
||||
var Imp = function(message, options){
|
||||
var t = this;
|
||||
t.id = Imp.count++;
|
||||
|
||||
Imp.lifo.push(t);
|
||||
|
||||
if(message){
|
||||
t.open(message, options);
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
// ########################################################################
|
||||
// static properties and methods
|
||||
// ########################################################################
|
||||
|
||||
/**
|
||||
* defaults - the default options
|
||||
*/
|
||||
Imp.defaults = {
|
||||
prefix:'jqi',
|
||||
classes: {
|
||||
box: '',
|
||||
fade: '',
|
||||
prompt: '',
|
||||
form: '',
|
||||
close: '',
|
||||
title: '',
|
||||
message: '',
|
||||
buttons: '',
|
||||
button: '',
|
||||
defaultButton: ''
|
||||
},
|
||||
title: '',
|
||||
closeText: '×',
|
||||
buttons: {
|
||||
Ok: true
|
||||
},
|
||||
buttonTimeout: 1000,
|
||||
loaded: function(e){},
|
||||
submit: function(e,v,m,f){},
|
||||
close: function(e,v,m,f){},
|
||||
statechanging: function(e, from, to){},
|
||||
statechanged: function(e, to){},
|
||||
opacity: 0.6,
|
||||
zIndex: 999,
|
||||
overlayspeed: 'slow',
|
||||
promptspeed: 'fast',
|
||||
show: 'fadeIn',
|
||||
hide: 'fadeOut',
|
||||
focus: 0,
|
||||
defaultButton: 0,
|
||||
useiframe: false,
|
||||
top: '15%',
|
||||
position: {
|
||||
container: null,
|
||||
x: null,
|
||||
y: null,
|
||||
arrow: null,
|
||||
width: null
|
||||
},
|
||||
persistent: true,
|
||||
timeout: 0,
|
||||
states: {},
|
||||
initialState: 0,
|
||||
state: {
|
||||
name: null,
|
||||
title: '',
|
||||
html: '',
|
||||
buttons: {
|
||||
Ok: true
|
||||
},
|
||||
focus: 0,
|
||||
defaultButton: 0,
|
||||
position: {
|
||||
container: null,
|
||||
x: null,
|
||||
y: null,
|
||||
arrow: null,
|
||||
width: null
|
||||
},
|
||||
submit: function(e,v,m,f){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* setDefaults - Sets the default options
|
||||
* @param o Object - Options to set as defaults
|
||||
* @return void
|
||||
*/
|
||||
Imp.setDefaults = function(o) {
|
||||
Imp.defaults = $.extend({}, Imp.defaults, o);
|
||||
};
|
||||
|
||||
/**
|
||||
* setStateDefaults - Sets the default options for a state
|
||||
* @param o Object - Options to set as defaults
|
||||
* @return void
|
||||
*/
|
||||
Imp.setStateDefaults = function(o) {
|
||||
Imp.defaults.state = $.extend({}, Imp.defaults.state, o);
|
||||
};
|
||||
|
||||
/**
|
||||
* @var Int - A counter used to provide a unique ID for new prompts
|
||||
*/
|
||||
Imp.count = 0;
|
||||
|
||||
/**
|
||||
* @var Array - An array of Impromptu intances in a LIFO queue (last in first out)
|
||||
*/
|
||||
Imp.lifo = [];
|
||||
|
||||
/**
|
||||
* getLast - get the last element from the queue (doesn't pop, just returns)
|
||||
* @return Imp - the instance of this Impromptu object or false if queue is empty
|
||||
*/
|
||||
Imp.getLast = function(){
|
||||
var l = Imp.lifo.length;
|
||||
return (l > 0)? Imp.lifo[l-1] : false;
|
||||
};
|
||||
|
||||
/**
|
||||
* removeFromStack - remove an element from the lifo stack by its id
|
||||
* @param id int - id of the instance to remove
|
||||
* @return api - The api of the element removed from the stack or void
|
||||
*/
|
||||
Imp.removeFromStack = function(id){
|
||||
for(var i=Imp.lifo.length-1; i>=0; i--){
|
||||
if(Imp.lifo[i].id === id){
|
||||
return Imp.lifo.splice(i,1)[0];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// ########################################################################
|
||||
// extend our object instance properties and methods
|
||||
// ########################################################################
|
||||
Imp.prototype = {
|
||||
|
||||
/**
|
||||
* @var Int - A unique id, simply an autoincremented number
|
||||
*/
|
||||
id: null,
|
||||
|
||||
/**
|
||||
* open - Opens the prompt
|
||||
* @param message String/Object - String of html or Object of states
|
||||
* @param options Object - Options to set the prompt
|
||||
* @return Imp - the instance of this Impromptu object
|
||||
*/
|
||||
open: function(message, options) {
|
||||
var t = this;
|
||||
|
||||
t.options = $.extend({},Imp.defaults,options);
|
||||
|
||||
// Be sure any previous timeouts are destroyed
|
||||
if(t.timeout){
|
||||
clearTimeout(t.timeout);
|
||||
}
|
||||
t.timeout = false;
|
||||
|
||||
var opts = t.options,
|
||||
$body = $(document.body),
|
||||
$window = $(window);
|
||||
|
||||
//build the box and fade
|
||||
var msgbox = '<div class="'+ opts.prefix +'box '+ opts.classes.box +'">';
|
||||
if(opts.useiframe && ($('object, applet').length > 0)) {
|
||||
msgbox += '<iframe src="javascript:false;" class="'+ opts.prefix +'fade '+ opts.classes.fade +'"></iframe>';
|
||||
} else {
|
||||
msgbox += '<div class="'+ opts.prefix +'fade '+ opts.classes.fade +'"></div>';
|
||||
}
|
||||
msgbox += '<div class="'+ opts.prefix +' '+ opts.classes.prompt +'">'+
|
||||
'<form action="#" class="'+ opts.prefix +'form '+ opts.classes.form +'">'+
|
||||
'<div class="'+ opts.prefix +'close '+ opts.classes.close +'">'+ opts.closeText +'</div>'+
|
||||
'<div class="'+ opts.prefix +'states"></div>'+
|
||||
'</form>'+
|
||||
'</div>'+
|
||||
'</div>';
|
||||
|
||||
t.jqib = $(msgbox).appendTo($body);
|
||||
t.jqi = t.jqib.children('.'+ opts.prefix);
|
||||
t.jqif = t.jqib.children('.'+ opts.prefix +'fade');
|
||||
|
||||
//if a string was passed, convert to a single state
|
||||
if(message.constructor === String){
|
||||
message = {
|
||||
state0: {
|
||||
title: opts.title,
|
||||
html: message,
|
||||
buttons: opts.buttons,
|
||||
position: opts.position,
|
||||
focus: opts.focus,
|
||||
defaultButton: opts.defaultButton,
|
||||
submit: opts.submit
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//build the states
|
||||
t.options.states = {};
|
||||
var k,v;
|
||||
for(k in message){
|
||||
v = $.extend({},Imp.defaults.state,{name:k},message[k]);
|
||||
t.addState(v.name, v);
|
||||
|
||||
if(t.currentStateName === ''){
|
||||
t.currentStateName = v.name;
|
||||
}
|
||||
}
|
||||
|
||||
//Events
|
||||
t.jqi.on('click', '.'+ opts.prefix +'buttons button', function(e){
|
||||
var $t = $(this),
|
||||
$state = $t.parents('.'+ opts.prefix +'state'),
|
||||
statename = $state.data('jqi-name'),
|
||||
stateobj = t.options.states[statename],
|
||||
msg = $state.children('.'+ opts.prefix +'message'),
|
||||
clicked = stateobj.buttons[$t.text()] || stateobj.buttons[$t.html()],
|
||||
forminputs = {};
|
||||
|
||||
// disable for a moment to prevent multiple clicks
|
||||
if(t.options.buttonTimeout > 0){
|
||||
t.disableStateButtons(statename);
|
||||
setTimeout(function(){
|
||||
t.enableStateButtons(statename);
|
||||
}, t.options.buttonTimeout);
|
||||
}
|
||||
|
||||
// if for some reason we couldn't get the value
|
||||
if(clicked === undefined){
|
||||
for(var i in stateobj.buttons){
|
||||
if(stateobj.buttons[i].title === $t.text() || stateobj.buttons[i].title === $t.html()){
|
||||
clicked = stateobj.buttons[i].value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//collect all form element values from all states.
|
||||
$.each(t.jqi.children('form').serializeArray(),function(i,obj){
|
||||
if (forminputs[obj.name] === undefined) {
|
||||
forminputs[obj.name] = obj.value;
|
||||
} else if (typeof forminputs[obj.name] === Array || typeof forminputs[obj.name] === 'object') {
|
||||
forminputs[obj.name].push(obj.value);
|
||||
} else {
|
||||
forminputs[obj.name] = [forminputs[obj.name],obj.value];
|
||||
}
|
||||
});
|
||||
|
||||
// trigger an event
|
||||
var promptsubmite = new $.Event('impromptu:submit');
|
||||
promptsubmite.stateName = stateobj.name;
|
||||
promptsubmite.state = $state;
|
||||
$state.trigger(promptsubmite, [clicked, msg, forminputs]);
|
||||
|
||||
if(!promptsubmite.isDefaultPrevented()){
|
||||
t.close(true, clicked,msg,forminputs);
|
||||
}
|
||||
});
|
||||
|
||||
// if the fade is clicked blink the prompt
|
||||
var fadeClicked = function(){
|
||||
if(opts.persistent){
|
||||
var offset = (opts.top.toString().indexOf('%') >= 0? ($window.height()*(parseInt(opts.top,10)/100)) : parseInt(opts.top,10)),
|
||||
top = parseInt(t.jqi.css('top').replace('px',''),10) - offset;
|
||||
|
||||
//$window.scrollTop(top);
|
||||
$('html,body').animate({ scrollTop: top }, 'fast', function(){
|
||||
var i = 0;
|
||||
t.jqib.addClass(opts.prefix +'warning');
|
||||
var intervalid = setInterval(function(){
|
||||
t.jqib.toggleClass(opts.prefix +'warning');
|
||||
if(i++ > 1){
|
||||
clearInterval(intervalid);
|
||||
t.jqib.removeClass(opts.prefix +'warning');
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
else {
|
||||
t.close(true);
|
||||
}
|
||||
};
|
||||
|
||||
// listen for esc or tab keys
|
||||
var keyDownEventHandler = function(e){
|
||||
var key = (window.event) ? event.keyCode : e.keyCode;
|
||||
|
||||
//escape key closes
|
||||
if(key === 27) {
|
||||
fadeClicked();
|
||||
}
|
||||
|
||||
//enter key pressed trigger the default button if its not on it, ignore if it is a textarea
|
||||
if(key === 13){
|
||||
var $defBtn = t.getCurrentState().find('.'+ opts.prefix +'defaultbutton');
|
||||
var $tgt = $(e.target);
|
||||
|
||||
if($tgt.is('textarea,.'+opts.prefix+'button') === false && $defBtn.length > 0){
|
||||
e.preventDefault();
|
||||
$defBtn.click();
|
||||
}
|
||||
}
|
||||
|
||||
//constrain tabs, tabs should iterate through the state and not leave
|
||||
if (key === 9){
|
||||
var $inputels = $('input,select,textarea,button',t.getCurrentState());
|
||||
var fwd = !e.shiftKey && e.target === $inputels[$inputels.length-1];
|
||||
var back = e.shiftKey && e.target === $inputels[0];
|
||||
if (fwd || back) {
|
||||
setTimeout(function(){
|
||||
if (!$inputels){
|
||||
return;
|
||||
}
|
||||
var el = $inputels[back===true ? $inputels.length-1 : 0];
|
||||
|
||||
if (el){
|
||||
el.focus();
|
||||
}
|
||||
},10);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
t.position();
|
||||
t.style();
|
||||
|
||||
// store copy of the window resize function for interal use only
|
||||
t._windowResize = function(e){
|
||||
t.position(e);
|
||||
};
|
||||
$window.resize({ animate: false }, t._windowResize);
|
||||
|
||||
t.jqif.click(fadeClicked);
|
||||
t.jqi.find('.'+ opts.prefix +'close').click(function(){ t.close(); });
|
||||
t.jqi.find('.'+ opts.prefix +'form').submit(function(){ return false; });
|
||||
t.jqib.on("keydown",keyDownEventHandler)
|
||||
.on('impromptu:loaded', opts.loaded)
|
||||
.on('impromptu:close', opts.close)
|
||||
.on('impromptu:statechanging', opts.statechanging)
|
||||
.on('impromptu:statechanged', opts.statechanged);
|
||||
|
||||
// Show it
|
||||
t.jqif[opts.show](opts.overlayspeed);
|
||||
t.jqi[opts.show](opts.promptspeed, function(){
|
||||
|
||||
t.goToState(
|
||||
isNaN(opts.initialState) ? opts.initialState :
|
||||
t.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(opts.initialState).data('jqi-name')
|
||||
);
|
||||
|
||||
t.jqib.trigger('impromptu:loaded');
|
||||
});
|
||||
|
||||
// Timeout
|
||||
if(opts.timeout > 0){
|
||||
t.timeout = setTimeout(function(){ t.close(true); },opts.timeout);
|
||||
}
|
||||
|
||||
return t;
|
||||
},
|
||||
|
||||
/**
|
||||
* close - Closes the prompt
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @param clicked String - value of the button clicked (only used internally)
|
||||
* @param msg jQuery - The state message body (only used internally)
|
||||
* @param forvals Object - key/value pairs of all form field names and values (only used internally)
|
||||
* @return Imp - the instance of this Impromptu object
|
||||
*/
|
||||
close: function(callCallback, clicked, msg, formvals){
|
||||
var t = this;
|
||||
Imp.removeFromStack(t.id);
|
||||
|
||||
if(t.timeout){
|
||||
clearTimeout(t.timeout);
|
||||
t.timeout = false;
|
||||
}
|
||||
|
||||
if(t.jqib){
|
||||
t.jqib[t.options.hide]('fast',function(){
|
||||
|
||||
t.jqib.trigger('impromptu:close', [clicked,msg,formvals]);
|
||||
|
||||
t.jqib.remove();
|
||||
|
||||
$(window).off('resize', t._windowResize);
|
||||
|
||||
if(typeof callCallback === 'function'){
|
||||
callCallback();
|
||||
}
|
||||
});
|
||||
}
|
||||
t.currentStateName = "";
|
||||
|
||||
return t;
|
||||
},
|
||||
|
||||
/**
|
||||
* addState - Injects a state into the prompt
|
||||
* @param statename String - Name of the state
|
||||
* @param stateobj Object - options for the state
|
||||
* @param afterState String - selector of the state to insert after
|
||||
* @return jQuery - the newly created state
|
||||
*/
|
||||
addState: function(statename, stateobj, afterState) {
|
||||
var t = this,
|
||||
state = '',
|
||||
$state = null,
|
||||
arrow = '',
|
||||
title = '',
|
||||
opts = t.options,
|
||||
pos = $.isFunction(stateobj.position) ? stateobj.position() : stateobj.position,
|
||||
$jqistates = t.jqi.find('.'+ opts.prefix +'states'),
|
||||
buttons = [],
|
||||
showHtml,defbtn,k,v,l,i=0;
|
||||
|
||||
stateobj = $.extend({},Imp.defaults.state, {name:statename}, stateobj);
|
||||
|
||||
if($.isPlainObject(pos) && pos.arrow !== null){
|
||||
arrow = '<div class="'+ opts.prefix + 'arrow '+ opts.prefix + 'arrow'+ pos.arrow +'"></div>';
|
||||
}
|
||||
if(stateobj.title && stateobj.title !== ''){
|
||||
title = '<div class="lead '+ opts.prefix + 'title '+ opts.classes.title +'">'+ stateobj.title +'</div>';
|
||||
}
|
||||
|
||||
showHtml = stateobj.html;
|
||||
if (typeof stateobj.html === 'function') {
|
||||
showHtml = 'Error: html function must return text';
|
||||
}
|
||||
|
||||
state += '<div class="'+ opts.prefix + 'state" data-jqi-name="'+ statename +'">'+
|
||||
arrow + title +
|
||||
'<div class="'+ opts.prefix +'message '+ opts.classes.message +'">' + showHtml +'</div>'+
|
||||
'<div class="'+ opts.prefix +'buttons'+ ($.isEmptyObject(stateobj.buttons)? 'hide ':' ') + opts.classes.buttons +'">';
|
||||
|
||||
// state buttons may be in object or array, lets convert objects to arrays
|
||||
if($.isArray(stateobj.buttons)){
|
||||
buttons = stateobj.buttons;
|
||||
}
|
||||
else if($.isPlainObject(stateobj.buttons)){
|
||||
for(k in stateobj.buttons){
|
||||
if(stateobj.buttons.hasOwnProperty(k)){
|
||||
buttons.push({ title: k, value: stateobj.buttons[k] });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// iterate over each button and create them
|
||||
for(i=0, l=buttons.length; i<l; i++){
|
||||
v = buttons[i],
|
||||
defbtn = stateobj.focus === i || (isNaN(stateobj.focus) && stateobj.defaultButton === i) ? (opts.prefix + 'defaultbutton ' + opts.classes.defaultButton) : '';
|
||||
|
||||
state += '<button class="'+ opts.classes.button +' '+ opts.prefix + 'button '+ defbtn;
|
||||
|
||||
if(typeof v.classes !== "undefined"){
|
||||
state += ' '+ ($.isArray(v.classes)? v.classes.join(' ') : v.classes) + ' ';
|
||||
}
|
||||
|
||||
state += '" name="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" value="' + v.value + '">' + v.title + '</button>';
|
||||
}
|
||||
|
||||
state += '</div></div>';
|
||||
|
||||
$state = $(state).css({display:'none'});
|
||||
|
||||
$state.on('impromptu:submit', stateobj.submit);
|
||||
|
||||
if(afterState !== undefined){
|
||||
t.getState(afterState).after($state);
|
||||
}
|
||||
else{
|
||||
$jqistates.append($state);
|
||||
}
|
||||
|
||||
t.options.states[statename] = stateobj;
|
||||
|
||||
return $state;
|
||||
},
|
||||
|
||||
/**
|
||||
* removeState - Removes a state from the prompt
|
||||
* @param state String - Name of the state
|
||||
* @param newState String - Name of the state to transition to
|
||||
* @return Boolean - returns true on success, false on failure
|
||||
*/
|
||||
removeState: function(state, newState) {
|
||||
var t = this,
|
||||
$state = t.getState(state),
|
||||
rm = function(){ $state.remove(); };
|
||||
|
||||
if($state.length === 0){
|
||||
return false;
|
||||
}
|
||||
|
||||
// transition away from it before deleting
|
||||
if($state.css('display') !== 'none'){
|
||||
if(newState !== undefined && t.getState(newState).length > 0){
|
||||
t.goToState(newState, false, rm);
|
||||
}
|
||||
else if($state.next().length > 0){
|
||||
t.nextState(rm);
|
||||
}
|
||||
else if($state.prev().length > 0){
|
||||
t.prevState(rm);
|
||||
}
|
||||
else{
|
||||
t.close();
|
||||
}
|
||||
}
|
||||
else{
|
||||
$state.slideUp('slow', rm);
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* getApi - Get the api, so you can extract it from $.prompt stack
|
||||
* @return jQuery - the prompt
|
||||
*/
|
||||
getApi: function() {
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* getBox - Get the box containing fade and prompt
|
||||
* @return jQuery - the prompt
|
||||
*/
|
||||
getBox: function() {
|
||||
return this.jqib;
|
||||
},
|
||||
|
||||
/**
|
||||
* getPrompt - Get the prompt
|
||||
* @return jQuery - the prompt
|
||||
*/
|
||||
getPrompt: function() {
|
||||
return this.jqi;
|
||||
},
|
||||
|
||||
/**
|
||||
* getState - Get the state by its name
|
||||
* @param statename String - Name of the state
|
||||
* @return jQuery - the state
|
||||
*/
|
||||
getState: function(statename) {
|
||||
return this.jqi.find('[data-jqi-name="'+ statename +'"]');
|
||||
},
|
||||
|
||||
/**
|
||||
* getCurrentState - Get the current visible state
|
||||
* @return jQuery - the current visible state
|
||||
*/
|
||||
getCurrentState: function() {
|
||||
return this.getState(this.getCurrentStateName());
|
||||
},
|
||||
|
||||
/**
|
||||
* getCurrentStateName - Get the name of the current visible state/substate
|
||||
* @return String - the current visible state's name
|
||||
*/
|
||||
getCurrentStateName: function() {
|
||||
return this.currentStateName;
|
||||
},
|
||||
|
||||
/**
|
||||
* disableStateButtons - Disables the buttons in a state
|
||||
* @param statename String - Name of the state containing buttons
|
||||
* @param buttons Array - Array of button values to disable. By default all are disabled
|
||||
* @param enable Boolean - True to enable the buttons instead of disabling (internally use only)
|
||||
* @return Void
|
||||
*/
|
||||
disableStateButtons: function(statename, buttons, enable) {
|
||||
var t = this;
|
||||
|
||||
if($.isArray(statename)){
|
||||
buttons = statename;
|
||||
statename = null;
|
||||
}
|
||||
|
||||
t.getState(statename || t.getCurrentStateName()).find('.'+ t.options.prefix + 'button').each(function(i,btn){
|
||||
if(buttons === undefined || $.inArray(btn.value, buttons) !== -1){
|
||||
btn.disabled = !enable;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* enableStateButtons - Enables the buttons in a state
|
||||
* @param statename String - Name of the state containing buttons. Defaults to current state
|
||||
* @param buttons Array - Array of button values to enable. By default all are enabled
|
||||
* @return Void
|
||||
*/
|
||||
enableStateButtons: function(statename, buttons) {
|
||||
this.disableStateButtons(statename, buttons, true);
|
||||
},
|
||||
|
||||
/**
|
||||
* position - Repositions the prompt (Used internally)
|
||||
* @return void
|
||||
*/
|
||||
position: function(e){
|
||||
var t = this,
|
||||
restoreFx = $.fx.off,
|
||||
$state = t.getCurrentState(),
|
||||
stateObj = t.options.states[$state.data('jqi-name')],
|
||||
pos = stateObj ? $.isFunction(stateObj.position) ? stateObj.position() : stateObj.position : undefined,
|
||||
$window = $(window),
|
||||
bodyHeight = document.body.scrollHeight, //$(document.body).outerHeight(true),
|
||||
windowHeight = $(window).height(),
|
||||
documentHeight = $(document).height(),
|
||||
height = (bodyHeight > windowHeight) ? bodyHeight : windowHeight,
|
||||
scrollTop = parseInt($window.scrollTop(),10),
|
||||
top = scrollTop + (t.options.top.toString().indexOf('%') >= 0?
|
||||
(windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
|
||||
|
||||
// when resizing the window turn off animation
|
||||
if(e !== undefined && e.data.animate === false){
|
||||
$.fx.off = true;
|
||||
}
|
||||
|
||||
t.jqib.css({
|
||||
position: "absolute",
|
||||
height: height,
|
||||
width: "100%",
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0
|
||||
});
|
||||
t.jqif.css({
|
||||
position: "fixed",
|
||||
height: height,
|
||||
width: "100%",
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0
|
||||
});
|
||||
|
||||
// tour positioning
|
||||
if(pos && pos.container){
|
||||
var offset = $(pos.container).offset(),
|
||||
hasScrolled = false;
|
||||
|
||||
if($.isPlainObject(offset) && offset.top !== undefined){
|
||||
top = (offset.top + pos.y) - (t.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
|
||||
|
||||
t.jqi.css({
|
||||
position: "absolute"
|
||||
});
|
||||
t.jqi.animate({
|
||||
top: offset.top + pos.y,
|
||||
left: offset.left + pos.x,
|
||||
marginLeft: 0,
|
||||
width: (pos.width !== undefined)? pos.width : null
|
||||
}, function(){
|
||||
// if it didn't scroll before, check that the bottom is within view. Since width
|
||||
// is animated we must use the callback before we know the height
|
||||
if(!hasScrolled && (offset.top + pos.y + t.jqi.outerHeight(true)) > (scrollTop + windowHeight)){
|
||||
$('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
|
||||
hasScrolled = true;
|
||||
}
|
||||
});
|
||||
|
||||
// scroll if the top is out of the viewing area
|
||||
if(top < scrollTop || top > scrollTop + windowHeight){
|
||||
$('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
|
||||
hasScrolled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// custom state width animation
|
||||
else if(pos && pos.width){
|
||||
t.jqi.css({
|
||||
position: "absolute",
|
||||
left: '50%'
|
||||
});
|
||||
t.jqi.animate({
|
||||
top: pos.y || top,
|
||||
left: pos.x || '50%',
|
||||
marginLeft: ((pos.width/2)*-1),
|
||||
width: pos.width
|
||||
});
|
||||
}
|
||||
// standard prompt positioning
|
||||
else{
|
||||
t.jqi.css({
|
||||
position: "absolute",
|
||||
top: top,
|
||||
left: '50%',//$window.width()/2,
|
||||
marginLeft: ((t.jqi.outerWidth(false)/2)*-1)
|
||||
});
|
||||
}
|
||||
|
||||
// restore fx settings
|
||||
if(e !== undefined && e.data.animate === false){
|
||||
$.fx.off = restoreFx;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* style - Restyles the prompt (Used internally)
|
||||
* @return void
|
||||
*/
|
||||
style: function(){
|
||||
var t = this;
|
||||
|
||||
t.jqif.css({
|
||||
zIndex: t.options.zIndex,
|
||||
display: "none",
|
||||
opacity: t.options.opacity
|
||||
});
|
||||
t.jqi.css({
|
||||
zIndex: t.options.zIndex+1,
|
||||
display: "none"
|
||||
});
|
||||
t.jqib.css({
|
||||
zIndex: t.options.zIndex
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* goToState - Goto the specified state
|
||||
* @param state String - name of the state to transition to
|
||||
* @param subState Boolean - true to be a sub state within the currently open state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
goToState: function(state, subState, callback) {
|
||||
var t = this,
|
||||
$jqi = t.jqi,
|
||||
jqiopts = t.options,
|
||||
$state = t.getState(state),
|
||||
stateobj = jqiopts.states[$state.data('jqi-name')],
|
||||
promptstatechanginge = new $.Event('impromptu:statechanging'),
|
||||
opts = t.options;
|
||||
|
||||
if(stateobj !== undefined){
|
||||
|
||||
|
||||
if (typeof stateobj.html === 'function') {
|
||||
var contentLaterFunc = stateobj.html;
|
||||
$state.find('.' + opts.prefix +'message ').html(contentLaterFunc());
|
||||
}
|
||||
|
||||
// subState can be ommitted
|
||||
if(typeof subState === 'function'){
|
||||
callback = subState;
|
||||
subState = false;
|
||||
}
|
||||
|
||||
t.jqib.trigger(promptstatechanginge, [t.getCurrentStateName(), state]);
|
||||
|
||||
if(!promptstatechanginge.isDefaultPrevented() && $state.length > 0){
|
||||
t.jqi.find('.'+ opts.prefix +'parentstate').removeClass(opts.prefix +'parentstate');
|
||||
|
||||
if(subState){ // hide any open substates
|
||||
// get rid of any substates
|
||||
t.jqi.find('.'+ opts.prefix +'substate').not($state)
|
||||
.slideUp(jqiopts.promptspeed)
|
||||
.removeClass('.'+ opts.prefix +'substate')
|
||||
.find('.'+ opts.prefix +'arrow').hide();
|
||||
|
||||
// add parent state class so it can be visible, but blocked
|
||||
t.jqi.find('.'+ opts.prefix +'state:visible').addClass(opts.prefix +'parentstate');
|
||||
|
||||
// add substate class so we know it will be smaller
|
||||
$state.addClass(opts.prefix +'substate');
|
||||
}
|
||||
else{ // hide any open states
|
||||
t.jqi.find('.'+ opts.prefix +'state').not($state)
|
||||
.slideUp(jqiopts.promptspeed)
|
||||
.find('.'+ opts.prefix +'arrow').hide();
|
||||
}
|
||||
t.currentStateName = stateobj.name;
|
||||
|
||||
$state.slideDown(jqiopts.promptspeed,function(){
|
||||
var $t = $(this);
|
||||
t.enableStateButtons();
|
||||
|
||||
// if focus is a selector, find it, else its button index
|
||||
if(typeof(stateobj.focus) === 'string'){
|
||||
$t.find(stateobj.focus).eq(0).focus();
|
||||
}
|
||||
else{
|
||||
$t.find('.'+ opts.prefix +'defaultbutton').focus();
|
||||
}
|
||||
|
||||
$t.find('.'+ opts.prefix +'arrow').show(jqiopts.promptspeed);
|
||||
|
||||
if (typeof callback === 'function'){
|
||||
t.jqib.on('impromptu:statechanged', callback);
|
||||
}
|
||||
t.jqib.trigger('impromptu:statechanged', [state]);
|
||||
if (typeof callback === 'function'){
|
||||
t.jqib.off('impromptu:statechanged', callback);
|
||||
}
|
||||
});
|
||||
if(!subState){
|
||||
t.position();
|
||||
}
|
||||
} // end isDefaultPrevented()
|
||||
}// end stateobj !== undefined
|
||||
|
||||
return $state;
|
||||
},
|
||||
|
||||
/**
|
||||
* nextState - Transition to the next state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
nextState: function(callback) {
|
||||
var t = this,
|
||||
$next = t.getCurrentState().next();
|
||||
if($next.length > 0){
|
||||
t.goToState( $next.data('jqi-name'), callback );
|
||||
}
|
||||
return $next;
|
||||
},
|
||||
|
||||
/**
|
||||
* prevState - Transition to the previous state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
prevState: function(callback) {
|
||||
var t = this,
|
||||
$prev = t.getCurrentState().prev();
|
||||
if($prev.length > 0){
|
||||
t.goToState( $prev.data('jqi-name'), callback );
|
||||
}
|
||||
return $prev;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// ########################################################################
|
||||
// $.prompt will manage a queue of Impromptu instances
|
||||
// ########################################################################
|
||||
|
||||
/**
|
||||
* $.prompt create a new Impromptu instance and push it on the stack of instances
|
||||
* @param message String/Object - String of html or Object of states
|
||||
* @param options Object - Options to set the prompt
|
||||
* @return jQuery - the jQuery object of the prompt within the modal
|
||||
*/
|
||||
$.prompt = function(message, options){
|
||||
var api = new Imp(message, options);
|
||||
return api.jqi;
|
||||
};
|
||||
|
||||
/**
|
||||
* Copy over static methods
|
||||
*/
|
||||
$.each(Imp, function(k,v){
|
||||
$.prompt[k] = v;
|
||||
});
|
||||
|
||||
/**
|
||||
* Create a proxy for accessing all instance methods. The close method pops from queue.
|
||||
*/
|
||||
$.each(Imp.prototype, function(k,v){
|
||||
$.prompt[k] = function(){
|
||||
var api = Imp.getLast(); // always use the last instance on the stack
|
||||
|
||||
if(api && typeof api[k] === "function"){
|
||||
return api[k].apply(api, arguments);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
// ########################################################################
|
||||
// jQuery Plugin and public access
|
||||
// ########################################################################
|
||||
|
||||
/**
|
||||
* Enable using $('.selector').prompt({});
|
||||
* This will grab the html within the prompt as the prompt message
|
||||
*/
|
||||
$.fn.prompt = function(options){
|
||||
if(options === undefined){
|
||||
options = {};
|
||||
}
|
||||
if(options.withDataAndEvents === undefined){
|
||||
options.withDataAndEvents = false;
|
||||
}
|
||||
|
||||
$.prompt($(this).clone(options.withDataAndEvents).html(),options);
|
||||
};
|
||||
|
||||
/**
|
||||
* Export it as Impromptu and $.prompt
|
||||
* Can be used from here forth as new Impromptu(states, opts)
|
||||
*/
|
||||
window.Impromptu = Imp;
|
||||
|
||||
}));
|
||||
11008
js/jquery-1.12.4.js
vendored
Normal file
11008
js/jquery-1.12.4.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
221
js/jquery-mousewheel.js
vendored
Normal file
221
js/jquery-mousewheel.js
vendored
Normal file
@@ -0,0 +1,221 @@
|
||||
/*!
|
||||
* jQuery Mousewheel 3.1.13
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS style for Browserify
|
||||
module.exports = factory;
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
|
||||
var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
|
||||
toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
|
||||
['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
|
||||
slice = Array.prototype.slice,
|
||||
nullLowestDeltaTimeout, lowestDelta;
|
||||
|
||||
if ( $.event.fixHooks ) {
|
||||
for ( var i = toFix.length; i; ) {
|
||||
$.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
|
||||
}
|
||||
}
|
||||
|
||||
var special = $.event.special.mousewheel = {
|
||||
version: '3.1.12',
|
||||
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
for ( var i = toBind.length; i; ) {
|
||||
this.addEventListener( toBind[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = handler;
|
||||
}
|
||||
// Store the line height and page height for this particular element
|
||||
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
|
||||
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
if ( this.removeEventListener ) {
|
||||
for ( var i = toBind.length; i; ) {
|
||||
this.removeEventListener( toBind[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = null;
|
||||
}
|
||||
// Clean up the data we added to the element
|
||||
$.removeData(this, 'mousewheel-line-height');
|
||||
$.removeData(this, 'mousewheel-page-height');
|
||||
},
|
||||
|
||||
getLineHeight: function(elem) {
|
||||
var $elem = $(elem),
|
||||
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
||||
if (!$parent.length) {
|
||||
$parent = $('body');
|
||||
}
|
||||
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
|
||||
},
|
||||
|
||||
getPageHeight: function(elem) {
|
||||
return $(elem).height();
|
||||
},
|
||||
|
||||
settings: {
|
||||
adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
|
||||
normalizeOffset: true // calls getBoundingClientRect for each event
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.extend({
|
||||
mousewheel: function(fn) {
|
||||
return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
|
||||
},
|
||||
|
||||
unmousewheel: function(fn) {
|
||||
return this.unbind('mousewheel', fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function handler(event) {
|
||||
var orgEvent = event || window.event,
|
||||
args = slice.call(arguments, 1),
|
||||
delta = 0,
|
||||
deltaX = 0,
|
||||
deltaY = 0,
|
||||
absDelta = 0,
|
||||
offsetX = 0,
|
||||
offsetY = 0;
|
||||
event = $.event.fix(orgEvent);
|
||||
event.type = 'mousewheel';
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; }
|
||||
if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; }
|
||||
if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; }
|
||||
if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
|
||||
|
||||
// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
|
||||
if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaX = deltaY * -1;
|
||||
deltaY = 0;
|
||||
}
|
||||
|
||||
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
|
||||
delta = deltaY === 0 ? deltaX : deltaY;
|
||||
|
||||
// New school wheel delta (wheel event)
|
||||
if ( 'deltaY' in orgEvent ) {
|
||||
deltaY = orgEvent.deltaY * -1;
|
||||
delta = deltaY;
|
||||
}
|
||||
if ( 'deltaX' in orgEvent ) {
|
||||
deltaX = orgEvent.deltaX;
|
||||
if ( deltaY === 0 ) { delta = deltaX * -1; }
|
||||
}
|
||||
|
||||
// No change actually happened, no reason to go any further
|
||||
if ( deltaY === 0 && deltaX === 0 ) { return; }
|
||||
|
||||
// Need to convert lines and pages to pixels if we aren't already in pixels
|
||||
// There are three delta modes:
|
||||
// * deltaMode 0 is by pixels, nothing to do
|
||||
// * deltaMode 1 is by lines
|
||||
// * deltaMode 2 is by pages
|
||||
if ( orgEvent.deltaMode === 1 ) {
|
||||
var lineHeight = $.data(this, 'mousewheel-line-height');
|
||||
delta *= lineHeight;
|
||||
deltaY *= lineHeight;
|
||||
deltaX *= lineHeight;
|
||||
} else if ( orgEvent.deltaMode === 2 ) {
|
||||
var pageHeight = $.data(this, 'mousewheel-page-height');
|
||||
delta *= pageHeight;
|
||||
deltaY *= pageHeight;
|
||||
deltaX *= pageHeight;
|
||||
}
|
||||
|
||||
// Store lowest absolute delta to normalize the delta values
|
||||
absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
|
||||
|
||||
if ( !lowestDelta || absDelta < lowestDelta ) {
|
||||
lowestDelta = absDelta;
|
||||
|
||||
// Adjust older deltas if necessary
|
||||
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
||||
lowestDelta /= 40;
|
||||
}
|
||||
}
|
||||
|
||||
// Adjust older deltas if necessary
|
||||
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
||||
// Divide all the things by 40!
|
||||
delta /= 40;
|
||||
deltaX /= 40;
|
||||
deltaY /= 40;
|
||||
}
|
||||
|
||||
// Get a whole, normalized value for the deltas
|
||||
delta = Math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestDelta);
|
||||
deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
|
||||
deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
|
||||
|
||||
// Normalise offsetX and offsetY properties
|
||||
if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
|
||||
var boundingRect = this.getBoundingClientRect();
|
||||
offsetX = event.clientX - boundingRect.left;
|
||||
offsetY = event.clientY - boundingRect.top;
|
||||
}
|
||||
|
||||
// Add information to the event object
|
||||
event.deltaX = deltaX;
|
||||
event.deltaY = deltaY;
|
||||
event.deltaFactor = lowestDelta;
|
||||
event.offsetX = offsetX;
|
||||
event.offsetY = offsetY;
|
||||
// Go ahead and set deltaMode to 0 since we converted to pixels
|
||||
// Although this is a little odd since we overwrite the deltaX/Y
|
||||
// properties with normalized deltas.
|
||||
event.deltaMode = 0;
|
||||
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
// Clearout lowestDelta after sometime to better
|
||||
// handle multiple device types that give different
|
||||
// a different lowestDelta
|
||||
// Ex: trackpad = 3 and mouse wheel = 120
|
||||
if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
|
||||
nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
|
||||
|
||||
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||
}
|
||||
|
||||
function nullLowestDelta() {
|
||||
lowestDelta = null;
|
||||
}
|
||||
|
||||
function shouldAdjustOldDeltas(orgEvent, absDelta) {
|
||||
// If this is an older event and the delta is divisable by 120,
|
||||
// then we are assuming that the browser is treating this as an
|
||||
// older mouse wheel event and that we should divide the deltas
|
||||
// by 40 to try and get a more usable deltaFactor.
|
||||
// Side note, this actually impacts the reported scroll distance
|
||||
// in older browsers and can cause scrolling to be slower than native.
|
||||
// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
|
||||
return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
|
||||
}
|
||||
|
||||
}));
|
||||
5
js/jquery.min.js
vendored
Normal file
5
js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15750
js/jspdf.js
Normal file
15750
js/jspdf.js
Normal file
File diff suppressed because one or more lines are too long
247
js/main.js
Normal file
247
js/main.js
Normal file
@@ -0,0 +1,247 @@
|
||||
let VERBOSE = false;
|
||||
let DEBUG = true;
|
||||
let DEBUGmany = true;
|
||||
let messadapter = 38.242;
|
||||
|
||||
$(document).ready(function () { });
|
||||
|
||||
// Boxenerstellung - globals
|
||||
var BE = {};
|
||||
BE.flavToFill = "empty";
|
||||
BE.partCnt = 0;
|
||||
BE.boxInhalte3040 = ["foo", "bar"];
|
||||
BE.boxInhalte3030 = ["foo", "bar"];
|
||||
BE.boxInhalte2121 = ["foo", "bar"];
|
||||
BE.boxInhalte2121C = ["foo", "bar"];
|
||||
BE.running = false;
|
||||
BE.reset = function(verbose = 0) {
|
||||
BE.flavToFill = "empty";
|
||||
BE.partCnt = 0;
|
||||
BE.boxInhalte3040 = ["foo", "bar"];
|
||||
BE.boxInhalte3030 = ["foo", "bar"];
|
||||
BE.boxInhalte2121 = ["foo", "bar"];
|
||||
BE.boxInhalte2121C = ["foo", "bar"];
|
||||
$("#tbTXLCode").val("");
|
||||
$("#tbTXLCode").removeAttr("disabled");
|
||||
$("#btnCreateBox").attr("disabled", "true");
|
||||
$("#tbBoxNr").removeAttr("disabled");
|
||||
if ( verbose === 1 ) {
|
||||
console.log("BE.flavToFill: " + BE.flavToFill);
|
||||
console.log("BE.partCnt: " + BE.partCnt );
|
||||
console.log("boxInhalte3040: " + BE.boxInhalte3040 );
|
||||
console.log("boxInhalte3030: " + BE.boxInhalte3030 );
|
||||
console.log("boxInhalte2121: " + BE.boxInhalte2121 );
|
||||
console.log("boxInhalte2121C: " + BE.boxInhalte2121C);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function loadMM3040() {
|
||||
$.ajax({
|
||||
url: 'html/messmaske3040.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
// disableAllMessTBs();
|
||||
setTimeout(function() {
|
||||
$("#btn_mm3040_check").prop("disabled", true);
|
||||
$("#btn_mm3040_eintragen").prop("disabled", true);
|
||||
$("#tb_mm3040_tool").prop("disabled", false).focus();
|
||||
}, (200));
|
||||
}
|
||||
});
|
||||
//reload_js('js/messmasken.js');
|
||||
}
|
||||
function loadMM3030() {
|
||||
$.ajax({
|
||||
url: 'html/messmaske3030.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
// disableAllMessTBs();
|
||||
setTimeout(function() { $("#btn_mm3030_check").prop("disabled", true); }, (30));
|
||||
setTimeout(function() { $("#btn_mm3030_eintragen").prop("disabled", true); }, (30));
|
||||
setTimeout(function() { $("#tb_mm3030_tool").prop("disabled", false).focus(); }, (30));
|
||||
}
|
||||
});
|
||||
//reload_js('js/messmasken.js');
|
||||
}
|
||||
function loadMM2121() {
|
||||
$.ajax({
|
||||
url: 'html/messmaske2121.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
// disableAllMessTBs();
|
||||
$("#btn_mm2121_check").prop("disabled", true);
|
||||
$("#btn_mm2121_eintragen").prop("disabled", true);
|
||||
$("#tb_mm2121_tool").prop("disabled", false).focus();
|
||||
}
|
||||
});
|
||||
//reload_js('js/messmasken.js');
|
||||
}
|
||||
function loadMM2121C() {
|
||||
$.ajax({
|
||||
url: 'html/messmaske2121C.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
// disableAllMessTBs();
|
||||
$("#btn_mm2121C_check").prop("disabled", true);
|
||||
$("#btn_mm2121C_eintragen").prop("disabled", true);
|
||||
$("#tb_mm2121C_tool").prop("disabled", false).focus();
|
||||
}
|
||||
});
|
||||
//reload_js('js/messmasken.js');
|
||||
}
|
||||
|
||||
function loadKF480() {
|
||||
$.ajax({
|
||||
url: 'html/ofenKF480.html',
|
||||
dataType: 'html',
|
||||
timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
setTimeout(function() { $("#beladezeit").val(jetzt()); }, (100));
|
||||
setTimeout(function() { $("#beladedatum").val(heute()); }, (100));
|
||||
}
|
||||
function loadKF80S() {
|
||||
$.ajax({
|
||||
url: 'html/ofenKF80S.html',
|
||||
dataType: 'html',
|
||||
timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
setTimeout(function() { $("#beladezeit").val(jetzt()); }, (100));
|
||||
setTimeout(function() { $("#beladedatum").val(heute()); }, (100));
|
||||
// reload_js('js/ofensachen.js');
|
||||
}
|
||||
function loadKF80() {
|
||||
$.ajax({
|
||||
url: 'html/ofenKF80.html',
|
||||
dataType: 'html',
|
||||
timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
setTimeout(function() { $("#beladezeit").val(jetzt()); }, (100));
|
||||
setTimeout(function() { $("#beladedatum").val(heute()); }, (100));
|
||||
// reload_js('js/ofensachen.js');
|
||||
}
|
||||
|
||||
function loadBE() {
|
||||
if ( !BE.running ) {
|
||||
if ( DEBUG ) { console.log("MENU-BE BERunning: " + BE.running); }
|
||||
$.ajax({
|
||||
url: '/html/boxenerstellen.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
setTimeout(function() { $("#btnCreateBox").removeClass().addClass('mybtn_deact'); }, (30));
|
||||
BE.running = true;
|
||||
} else {
|
||||
if ( DEBUG ) { console.log("MENU-BE BERunning: " + BE.running); }
|
||||
BE.reset();
|
||||
$.ajax({
|
||||
url: '/html/boxenerstellen.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
setTimeout(function() { $("#btnCreateBox").removeClass().addClass('mybtn_deact'); }, (30));
|
||||
BE.running = true;
|
||||
|
||||
}
|
||||
|
||||
//reload_js('js/boxenerstellung.js');
|
||||
}
|
||||
|
||||
function loadRH() {
|
||||
$.ajax({
|
||||
url: 'html/rauheiten.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
//reload_js('js/rauheiten.js');
|
||||
}
|
||||
|
||||
function loadAW() {
|
||||
$("#mainContainer").html("");
|
||||
$.ajax({
|
||||
url: 'html/auswertung.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadBAW() {
|
||||
$("#mainContainer").html("");
|
||||
$.ajax({
|
||||
url: 'html/auswertenEinzelneBox.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
setTimeout(function() { $("#theadMesswerte").hide(); }, (30));
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadConverter() {
|
||||
$("#mainContainer").html("");
|
||||
$.ajax({
|
||||
url: 'html/converter.html', dataType: 'html', timeout: 1000,
|
||||
success: function (html) {
|
||||
$("#mainContainer").html(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function playSound(identifier){
|
||||
var audio = new Audio();
|
||||
|
||||
switch (identifier) {
|
||||
case "ding": audio.setAttribute("src", "media/ding.wav"); break;
|
||||
case "error": audio.setAttribute("src", "media/error.mp3"); break;
|
||||
case "tada": audio.setAttribute("src", "media/owin31.wav"); break;
|
||||
default: color = "black";
|
||||
}
|
||||
|
||||
audio.load();
|
||||
audio.play();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function heute() {
|
||||
var now = new Date();
|
||||
var day = ("0" + now.getDate()).slice(-2);
|
||||
var month = ("0" + (now.getMonth() + 1)).slice(-2);
|
||||
return now.getFullYear() + "-" + (month) + "-" + (day);
|
||||
}
|
||||
|
||||
function jetzt() {
|
||||
var datetime = "" + new Date($.now());var arr = datetime.split(" ");
|
||||
return arr[4];
|
||||
}
|
||||
|
||||
function showErrorModal(header, message, info){
|
||||
if ( DEBUGmany ) { console.log(header + " - " + message + " - " + info); }
|
||||
$('#modal-title').text(header);
|
||||
$('#modalMsg').text(message);
|
||||
$('#text-warning').text(info);
|
||||
$('#myModal').modal('show');
|
||||
}
|
||||
|
||||
function reload_js(src) {
|
||||
$('script[src="boxenerstellung.js"]').remove();
|
||||
$('script[src="messmasken.js"]').remove();
|
||||
$('script[src="ofensachen.js"]').remove();
|
||||
$('script[src="rauheiten.js"]').remove();
|
||||
$('<script>').attr('src', src).appendTo('head');
|
||||
}
|
||||
930
js/messmasken.js
Normal file
930
js/messmasken.js
Normal file
@@ -0,0 +1,930 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
ifvis = false;
|
||||
|
||||
if ( VERBOSE ) { console.warn("messmasken.js loading ..."); }
|
||||
|
||||
function getTXLCode(e) {
|
||||
var frmName = e.target.form.id;
|
||||
switch ( frmName ) {
|
||||
case "frmMM3040":
|
||||
actTXLCode = helper.trp2TXLCode( "3040", $("#tb_mm3040_tool").val(), $("#tb_mm3040_rev").val(), $("#tb_mm3040_part").val());
|
||||
return [actTXLCode, "foo"];
|
||||
case "frmMM3030":
|
||||
actTXLCode = helper.trp2TXLCode("3030", $("#tb_mm3030_tool").val(), $("#tb_mm3030_rev").val(), $("#tb_mm3030_part").val());
|
||||
return [actTXLCode, "foo"];
|
||||
case "frmMM2121":
|
||||
actTXLCode2121 = helper.trp2TXLCode( "2121", $("#tb_mm2121_tool").val(), $("#tb_mm2121_rev").val(), $("#tb_mm2121_part").val());
|
||||
actTXLCode2121C = helper.trp2TXLCode( "2121C", $("#tb_mm2121_tool").val(), $("#tb_mm2121_rev").val(), $("#tb_mm2121_part").val());
|
||||
return [actTXLCode2121, actTXLCode2121C];
|
||||
case "frmMM2121C":
|
||||
actTXLCode2121 = helper.trp2TXLCode( "2121", $("#tb_mm2121C_tool").val(), $("#tb_mm2121C_rev").val(), $("#tb_mm2121C_part").val());
|
||||
actTXLCode2121C = helper.trp2TXLCode( "2121C", $("#tb_mm2121C_tool").val(), $("#tb_mm2121C_rev").val(), $("#tb_mm2121C_part").val());
|
||||
return [actTXLCode2121, actTXLCode2121C];
|
||||
}
|
||||
}
|
||||
|
||||
function showAlertBauteilstatus(errCode) {
|
||||
var typ = frmName.substring(5);
|
||||
var message = "Undefinierter errCode übergeben\nFunktion messmasken.js->showAlertBauteilstatus()";
|
||||
switch ( errCode ) {
|
||||
case -1:
|
||||
message = "Fehler in DB.getBauteilStatus().\n(siehe Debug-Nachricht in der Konsole)";
|
||||
break;
|
||||
case 1:
|
||||
message = "Bauteil schon gemessen";
|
||||
break;
|
||||
case 2:
|
||||
message = "Bauteil wurde nicht in der Datenbank gefunden";
|
||||
break;
|
||||
}
|
||||
swal({
|
||||
title: 'Fehler',
|
||||
text: message,
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
confirmButtonColor: '#d33',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ok'
|
||||
}).then(function() { resAndFocus(typ); });
|
||||
}
|
||||
|
||||
$("body").off("keypress", "#messmaske");
|
||||
$("body").on("keypress", "#messmaske", function(e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
if (keyCode === 13 && e.target.id.substring(0,3) != "btn") { // wurde [Enter] gedrueckt und was es nicht ein Button?
|
||||
frmName = e.target.form.id;
|
||||
if (frmName.indexOf("frmMM") > -1) { // pruefen, ob in einer MessmaskenForm
|
||||
|
||||
pholder = e.target.placeholder;
|
||||
|
||||
switch (pholder) {
|
||||
case "TT": case "RR":
|
||||
if ( e.target.value === "" ) { break; }
|
||||
if ($.isNumeric(e.target.value)) {
|
||||
focusNextInpField();
|
||||
} else {
|
||||
swal("Fehler","Keine Zahl", "error");
|
||||
}
|
||||
break;
|
||||
case "PPPP":
|
||||
if ($.isNumeric(e.target.value)) {
|
||||
// bauteil checken
|
||||
if( DEBUG ) { console.log("Bauteilcheck start"); }
|
||||
|
||||
actTXLCode = getTXLCode(e);
|
||||
if ( frmName === "frmMM3040") {
|
||||
if( DEBUG ) { console.log("bauteilcheck: 3040"); }
|
||||
bStatus3040 = DB.getBauteilStatus(actTXLCode[0]);
|
||||
if ( bStatus3040 === 0 ){
|
||||
enableAllMessTBs();
|
||||
// playSound("ding");; // brauch kein Sound ausgeben, da focusNextInpField() das ja schon macht
|
||||
$('#debug').text("");
|
||||
setTimeout(function() { focusNextInpField(); }, (300));
|
||||
} else {
|
||||
playSound("error");
|
||||
showAlertBauteilstatus(bStatus3040);
|
||||
}
|
||||
} else if ( frmName === "frmMM3030") {
|
||||
if( DEBUG ) { console.log("bauteilcheck 3030"); }
|
||||
|
||||
bStatus3030 = DB.getBauteilStatus(actTXLCode[0]);
|
||||
if ( bStatus3030 === 0 ){
|
||||
enableAllMessTBs();
|
||||
// playSound("ding");; // brauch kein Sound ausgeben, da focusNextInpField() das ja schon macht
|
||||
$('#debug').text("");
|
||||
setTimeout(function() { focusNextInpField(); }, (300));
|
||||
} else {
|
||||
playSound("error");
|
||||
showAlertBauteilstatus(bStatus3030);
|
||||
}
|
||||
} else if ( frmName === "frmMM2121" || frmName === "frmMM2121C" ) {
|
||||
bStatus2121 = DB.getBauteilStatus(actTXLCode[0]);
|
||||
bStatus2121C = DB.getBauteilStatus(actTXLCode[1]);
|
||||
}
|
||||
|
||||
if (frmName === "frmMM2121") {
|
||||
if ( bStatus2121 === 2 && bStatus2121C === 2 ) { // 2121 n. vorh. / 2121C n. vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil wurde weder als 2121 noch als 2121C in der Datenbank gefunden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 2 ) { // 2121 vorh. / 2121C n. vorh.
|
||||
console.log("enableAllMessTBs");
|
||||
enableAllMessTBs();
|
||||
playSound("ding");
|
||||
$('#debug').text("");
|
||||
console.log("start timeout");
|
||||
setTimeout(function() { $("#tb_mm2121_OL1").focus(); }, (300));
|
||||
console.log("end timeout");
|
||||
} else if ( bStatus2121 === 2 && bStatus2121C === 0 ) { // 2121 n. vorh. / 2121C vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist schon als 2121C markiert. (aber noch nicht gemessen)", "error");
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 2 ) { // schon als 2121 gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist schon als 2121 gemessen.", "error");
|
||||
} else if ( bStatus2121 === 2 && bStatus2121C === 1 ) { // schon als 2121C gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist schon als 2121C gemessen.", "error");
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 1 ) { // ERR: als beide gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als beide gemessen. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 1 ) { // ERR: 2121 vorh. und als 2121C gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als 2121 vorhanden und als 2121C gemessen. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 0 ) { // ERR: 2121 gemessen und als 2121C vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als 2121 gemessen und als 2121C vorhanden. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 0 ) { // ERR: beide vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist sowohl als 2121 als auch als 2121C vorhanden. Bitte Olli melden.", "error");
|
||||
}
|
||||
}
|
||||
|
||||
if (frmName === "frmMM2121C") {
|
||||
if ( bStatus2121 === 2 && bStatus2121C === 2 ) { // 2121 n. vorh. / 2121C n. vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil wurde weder als 2121 noch als 2121C in der Datenbank gefunden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 2 ) { // 2121 vorh. / 2121C n. vorh.
|
||||
// typ umschreiben
|
||||
updatedStatus = update2121to2121C(actTXLCode[0], actTXLCode[1]);
|
||||
if ( updatedStatus.responseText === 1 ) {
|
||||
// normal weiter
|
||||
enableAllMessTBs();
|
||||
playSound("ding");
|
||||
$('#debug').text("");
|
||||
setTimeout(function() { $("#tb_mm2121C_OL1").focus(); }, (300));
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "Es trat ein Fehler beim Umschreiben des Bauteils " + actTXLCode2121 + " zu einem 2121C auf. Bitte Olli melden.\n\n" + updatedStatus.responseText, "error");
|
||||
}
|
||||
} else if ( bStatus2121 === 2 && bStatus2121C === 0 ) { // 2121 n. vorh. / 2121C vorh.
|
||||
// normal weiter
|
||||
enableAllMessTBs();
|
||||
playSound("ding");
|
||||
$('#debug').text("");
|
||||
setTimeout(function() { $("#tb_mm2121C_OL1").focus(); }, (300));
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 2 ) { // schon als 2121 gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist schon als 2121 gemessen.", "error");
|
||||
} else if ( bStatus2121 === 2 && bStatus2121C === 1 ) { // schon als 2121C gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist schon als 2121C gemessen.", "error");
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 1 ) { // ERR: als beide gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als beide gemessen. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 1 ) { // ERR: 2121 vorh. und als 2121 gemessen
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als 2121 vorhanden und als 2121C gemessen. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 1 && bStatus2121C === 0 ) { // ERR: 2121 gemessen und als 2121 vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist als 2121 gemessen und als 2121C vorhanden. Bitte Olli melden.", "error");
|
||||
} else if ( bStatus2121 === 0 && bStatus2121C === 0 ) { // ERR: beide vorh.
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteil ist sowohl als 2121 als auch als 2121C vorhanden. Bitte Olli melden.", "error");
|
||||
}
|
||||
}
|
||||
} else { // end if isNumeric()
|
||||
playSound("error");
|
||||
swal("Fehler", "Keine Zahl", "error");
|
||||
}
|
||||
break;
|
||||
// end case PPPP:
|
||||
case "OL1": case "OL2": case "OW1": case "OW2":
|
||||
case "R11": case "R21": case "R22": case "R23": case "R31":
|
||||
case "R32": case "R33": case "R41": case "R42": case "R43":
|
||||
if(convertAndCheck(e.target)){
|
||||
focusNextInpField();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "keine zahl in längenangabe", "error");
|
||||
}
|
||||
break;
|
||||
case "R12":
|
||||
if ( frmName === "frmMM3040" || frmName === "frmMM3030") {
|
||||
if(convertAndCheck(e.target)){
|
||||
focusNextInpField();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "keine zahl in längenangabe", "error");
|
||||
}
|
||||
}
|
||||
if ( frmName === "frmMM2121" || frmName === "frmMM2121C") {
|
||||
if(convertAndCheck(e.target)){
|
||||
switch(frmName){
|
||||
case "frmMM2121": $("#btn_mm2121_check").prop("disabled", false).focus(); playSound("ding"); break;
|
||||
case "frmMM2121C": $("#btn_mm2121C_check").prop("disabled", false).focus(); playSound("ding"); break;
|
||||
default: swal("Fehler", "Falscher Formularname!", "error"); playSound("error"); break;
|
||||
}
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "keine zahl in längenangabe", "error");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "R13":
|
||||
if(convertAndCheck(e.target)){
|
||||
switch (frmName) {
|
||||
case "frmMM3040": $("#btn_mm3040_check").prop("disabled", false).focus(); playSound("ding"); break;
|
||||
case "frmMM3030": $("#btn_mm3030_check").prop("disabled", false).focus(); playSound("ding"); break;
|
||||
default: swal("Fehler", "Falscher Formularname!", "error"); playSound("error"); break;
|
||||
}
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "keine zahl in längenangabe", "error");
|
||||
}
|
||||
break;
|
||||
default: swal("Fehler", "Falscher Formularname!", "error"); playSound("error"); break;
|
||||
}
|
||||
|
||||
} // end if frmName.indexOf("frmMM")
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("body").off("click", "#btn_mm3040_check");
|
||||
$("body").off("click", "#btn_mm3040_uups");
|
||||
$("body").off("click", "#btn_mm3040_eintragen");
|
||||
$("body").off("click", "#btn_mm3030_check");
|
||||
$("body").off("click", "#btn_mm3030_uups");
|
||||
$("body").off("click", "#btn_mm3030_eintragen");
|
||||
$("body").off("click", "#btn_mm2121_check");
|
||||
$("body").off("click", "#btn_mm2121_uups");
|
||||
$("body").off("click", "#btn_mm2121_eintragen");
|
||||
$("body").off("click", "#btn_mm2121C_check");
|
||||
$("body").off("click", "#btn_mm2121C_uups");
|
||||
$("body").off("click", "#btn_mm2121C_eintragen");
|
||||
|
||||
|
||||
// region MM3040
|
||||
/***
|
||||
* +-+-+-+-+-+-+
|
||||
* |M|M|3|0|4|0|
|
||||
* +-+-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btn_mm3040_uups", function () { $("#frmMM3040").trigger("reset"); });
|
||||
$("body").on("click", "#btn_mm3040_check", function () {
|
||||
|
||||
awObjs = { // AusgewerteteWerte
|
||||
"ol1": $('#div_ausw_mm3040_ol1'), "ol2": $('#div_ausw_mm3040_ol2'),
|
||||
"ow1": $('#div_ausw_mm3040_ow1'), "ow2": $('#div_ausw_mm3040_ow2'),
|
||||
"il1": $('#div_ausw_mm3040_il1'), "il2": $('#div_ausw_mm3040_il2'),
|
||||
"iw1": $('#div_ausw_mm3040_iw1'), "iw2": $('#div_ausw_mm3040_iw2'),
|
||||
"r1": $('#div_ausw_mm3040_r1'), "r2": $('#div_ausw_mm3040_r2'),
|
||||
"r3": $('#div_ausw_mm3040_r3'), "r4": $('#div_ausw_mm3040_r4')
|
||||
}
|
||||
|
||||
mwObjs = { // erfasste messwerte
|
||||
"ol1": {"inp": $("#tb_mm3040_OL1"), "tol": "OL" },
|
||||
"ol2": {"inp": $("#tb_mm3040_OL2"), "tol": "OL" },
|
||||
"ow1": {"inp": $("#tb_mm3040_OW1"), "tol": "OW" },
|
||||
"ow2": {"inp": $("#tb_mm3040_OW2"), "tol": "OW" },
|
||||
"r11": {"inp": $("#tb_mm3040_r11"), "tol": "R" },
|
||||
"r12": {"inp": $("#tb_mm3040_r12"), "tol": "R" },
|
||||
"r13": {"inp": $("#tb_mm3040_r13"), "tol": "R" },
|
||||
"r21": {"inp": $("#tb_mm3040_r21"), "tol": "R" },
|
||||
"r22": {"inp": $("#tb_mm3040_r22"), "tol": "R" },
|
||||
"r23": {"inp": $("#tb_mm3040_r23"), "tol": "R" },
|
||||
"r31": {"inp": $("#tb_mm3040_r31"), "tol": "R" },
|
||||
"r32": {"inp": $("#tb_mm3040_r32"), "tol": "R" },
|
||||
"r33": {"inp": $("#tb_mm3040_r33"), "tol": "R" },
|
||||
"r41": {"inp": $("#tb_mm3040_r41"), "tol": "R" },
|
||||
"r42": {"inp": $("#tb_mm3040_r42"), "tol": "R" },
|
||||
"r43": {"inp": $("#tb_mm3040_r43"), "tol": "R" }
|
||||
}
|
||||
|
||||
tols = {"gruen": "tolGruen", "gelb": "tolGelb", "rot": "tolRot"}
|
||||
//for ( obj in awObjs ){
|
||||
// for ( tol in tols ) {
|
||||
// obj.removeClass(tol);
|
||||
// }
|
||||
//}
|
||||
|
||||
ol1 = mwObjs["ol1"]["inp"].val(); ol2 = mwObjs["ol2"]["inp"].val();
|
||||
ow1 = mwObjs["ow1"]["inp"].val(); ow2 = mwObjs["ow2"]["inp"].val();
|
||||
r11 = mwObjs["r11"]["inp"].val() - 38.242; r12 = mwObjs["r12"]["inp"].val() - 38.242; r13 = mwObjs["r13"]["inp"].val() - 38.242;
|
||||
r21 = mwObjs["r21"]["inp"].val() - 38.242; r22 = mwObjs["r22"]["inp"].val() - 38.242; r23 = mwObjs["r23"]["inp"].val() - 38.242;
|
||||
r31 = mwObjs["r31"]["inp"].val() - 38.242; r32 = mwObjs["r32"]["inp"].val() - 38.242; r33 = mwObjs["r33"]["inp"].val() - 38.242;
|
||||
r41 = mwObjs["r41"]["inp"].val() - 38.242; r42 = mwObjs["r42"]["inp"].val() - 38.242; r43 = mwObjs["r43"]["inp"].val() - 38.242;
|
||||
|
||||
RimDiffs = {
|
||||
"1": Math.max(r11, r12, r13) - Math.min(r11, r12, r13),
|
||||
"2": Math.max(r21, r22, r23) - Math.min(r21, r22, r23),
|
||||
"3": Math.max(r31, r32, r33) - Math.min(r31, r32, r33),
|
||||
"4": Math.max(r41, r42, r43) - Math.min(r41, r42, r43)
|
||||
};
|
||||
|
||||
il1 = (ol1 - r43) - r31;
|
||||
il2 = (ol2 - r41) - r33;
|
||||
iw1 = (ow1 - r23) - r11;
|
||||
iw2 = (ow2 - r21) - r13;
|
||||
|
||||
$('#div_ausw_mm3040_ol1').text(Number(ol1).toFixed(2));
|
||||
$('#div_ausw_mm3040_ol2').text(Number(ol2).toFixed(2));
|
||||
$('#div_ausw_mm3040_ow1').text(Number(ow1).toFixed(2));
|
||||
$('#div_ausw_mm3040_ow2').text(Number(ow2).toFixed(2));
|
||||
|
||||
$('#div_ausw_mm3040_il1').text(il1.toFixed(2));
|
||||
$('#div_ausw_mm3040_il2').text(il2.toFixed(2));
|
||||
$('#div_ausw_mm3040_iw1').text(iw1.toFixed(2));
|
||||
$('#div_ausw_mm3040_iw2').text(iw2.toFixed(2));
|
||||
|
||||
$('#div_ausw_mm3040_r1').text(((r11 + r12 + r13) / 3).toFixed(2));
|
||||
$('#div_ausw_mm3040_r2').text(((r21 + r22 + r23) / 3).toFixed(2));
|
||||
$('#div_ausw_mm3040_r3').text(((r31 + r32 + r33) / 3).toFixed(2));
|
||||
$('#div_ausw_mm3040_r4').text(((r41 + r42 + r43) / 3).toFixed(2));
|
||||
|
||||
|
||||
for (i in mwObjs) {
|
||||
checkTolAndDye("3040", mwObjs[i]["inp"], mwObjs[i]["tol"]);
|
||||
}
|
||||
|
||||
/* TODO -- Auswertung der Innenwerte und randbreiten */
|
||||
|
||||
tol3040 = {
|
||||
"ol1": 0, "ol2": 0, "ow1": 0, "ow2": 0,
|
||||
"r11": 0, "r12": 0, "r13": 0,
|
||||
"r21": 0, "r22": 0, "r23": 0,
|
||||
"r31": 0, "r32": 0, "r33": 0,
|
||||
"r41": 0, "r42": 0, "r43": 0
|
||||
}
|
||||
|
||||
if ( ol1 <= 429.39 || ol1 >= 429.61 ) { tol3040["ol1"] = 3 }
|
||||
if ( ol1 == 429.40 || ol1 == 429.41 || ol1 == 429.59 || ol1 == 429.60 ) { tol3040["ol1"] = 2 }
|
||||
if ( ol1 >= 429.42 && ol1 <= 429.58 ) { tol3040["ol1"] = 1 }
|
||||
|
||||
if ( ol2 <= 429.39 || ol2 >= 429.61 ) { tol3040["ol2"] = 3 }
|
||||
if ( ol2 == 429.40 || ol2 == 429.41 || ol2 == 429.59 || ol2 == 429.60 ) { tol3040["ol2"] = 2 }
|
||||
if ( ol2 >= 429.42 && ol2 <= 429.58 ) { tol3040["ol2"] = 1 }
|
||||
|
||||
if ( ow1 <= 310.49 || ow1 >= 310.71 ) { tol3040["ow1"] = 3 }
|
||||
if ( ow1 == 310.50 || ow1 == 310.51 || ow1 == 310.69 || ow1 == 310.70 ) { tol3040["ow1"] = 2 }
|
||||
if ( ow1 >= 310.52 && ow1 <= 310.68 ) { tol3040["ow1"] = 1 }
|
||||
|
||||
if ( ow2 <= 310.49 || ow2 >= 310.71 ) { tol3040["ow2"] = 3 }
|
||||
if ( ow2 == 310.50 || ow2 == 310.51 || ow2 == 310.69 || ow2 == 310.70 ) { tol3040["ow2"] = 2 }
|
||||
if ( ow2 >= 310.52 && ow2 <= 310.68 ) { tol3040["ow2"] = 1 }
|
||||
|
||||
|
||||
if ( il1 <= 421.97 || il1 >= 422.39 ) { tol3040["il1"] = 3 }
|
||||
if ( il1 == 421.98 || il1 == 421.99 || il1 == 422.37 || il1 == 422.38 ) { tol3040["il1"] = 2 }
|
||||
if ( il1 >= 422.00 && il1 <= 422.36 ) { tol3040["il1"] = 1 }
|
||||
|
||||
if ( il2 <= 421.97 || il2 >= 422.39 ) { tol3040["il2"] = 3 }
|
||||
if ( il2 == 421.98 || il2 == 421.99 || il2 == 422.37 || il2 == 422.38 ) { tol3040["il2"] = 2 }
|
||||
if ( il2 >= 422.00 && il2 <= 422.36 ) { tol3040["il2"] = 1 }
|
||||
|
||||
if ( iw1 <= 303.07 || iw1 >= 303.49 ) { tol3040["iw1"] = 3 }
|
||||
if ( iw1 == 303.08 || iw1 == 303.09 || iw1 == 303.47 || iw1 == 303.48 ) { tol3040["iw1"] = 2 }
|
||||
if ( iw1 >= 303.10 && iw1 <= 303.46 ) { tol3040["iw1"] = 1 }
|
||||
|
||||
if ( iw2 <= 303.07 || iw2 >= 303.49 ) { tol3040["iw2"] = 3 }
|
||||
if ( iw2 == 303.08 || iw2 == 303.09 || iw2 == 303.47 || iw2 == 303.48 ) { tol3040["iw2"] = 2 }
|
||||
if ( iw2 >= 303.10 && iw2 <= 303.46 ) { tol3040["iw2"] = 1 }
|
||||
|
||||
|
||||
faerbeEin($('#div_ausw_mm3040_ol1'), tol3040["ol1"]);
|
||||
faerbeEin($('#div_ausw_mm3040_ol2'), tol3040["ol2"]);
|
||||
faerbeEin($('#div_ausw_mm3040_ow1'), tol3040["ow1"]);
|
||||
faerbeEin($('#div_ausw_mm3040_ow2'), tol3040["ow2"]);
|
||||
faerbeEin($('#div_ausw_mm3040_il1'), tol3040["il1"]);
|
||||
faerbeEin($('#div_ausw_mm3040_il2'), tol3040["il2"]);
|
||||
faerbeEin($('#div_ausw_mm3040_iw1'), tol3040["iw1"]);
|
||||
faerbeEin($('#div_ausw_mm3040_iw2'), tol3040["iw2"]);
|
||||
|
||||
/* TODO -- ENDE */
|
||||
|
||||
$("#btn_mm3040_eintragen").prop("disabled", false).focus();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_mm3040_eintragen", function () {
|
||||
var tool = $('#tb_mm3040_tool').val();
|
||||
var rev = $('#tb_mm3040_rev').val();
|
||||
var part = $('#tb_mm3040_part').val();
|
||||
if ( tool !== "" && rev !== "" && part !== "") {
|
||||
updateBauteilMesswerte3040();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteilnummer fehlerhaft", "error");
|
||||
}
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_mm3040_archiv", function() {
|
||||
switch ( ifvis ) {
|
||||
case true:
|
||||
$("#divMessArchiv").hide();
|
||||
ifvis = false;
|
||||
break;
|
||||
|
||||
case false:
|
||||
$("#divMessArchiv").show();
|
||||
ifvis = true;
|
||||
break;
|
||||
}
|
||||
|
||||
});
|
||||
// end region MM3040
|
||||
|
||||
// region MM3030
|
||||
/***
|
||||
* +-+-+-+-+-+-+
|
||||
* |M|M|3|0|3|0|
|
||||
* +-+-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btn_mm3030_uups", function () { $("#frmMM3030").trigger("reset"); });
|
||||
|
||||
$("body").on("click", "#btn_mm3030_check", function () {
|
||||
checkTolAndDye("3030", $("#tb_mm3030_OL1"), "OL"); checkTolAndDye("3030", $("#tb_mm3030_OL2"), "OL");
|
||||
checkTolAndDye("3030", $("#tb_mm3030_OW1"), "OW"); checkTolAndDye("3030", $("#tb_mm3030_OW2"), "OW");
|
||||
checkTolAndDye("3030", $("#tb_mm3030_r11"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r12"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r13"), "R");
|
||||
checkTolAndDye("3030", $("#tb_mm3030_r21"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r22"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r23"), "R");
|
||||
checkTolAndDye("3030", $("#tb_mm3030_r31"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r32"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r33"), "R");
|
||||
checkTolAndDye("3030", $("#tb_mm3030_r41"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r42"), "R"); checkTolAndDye("3030", $("#tb_mm3030_r43"), "R");
|
||||
$("#btn_mm3030_eintragen").prop("disabled", false).focus();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_mm3030_eintragen", function () {
|
||||
var tool = $('#tb_mm3030_tool').val();
|
||||
var rev = $('#tb_mm3030_rev').val();
|
||||
var part = $('#tb_mm3030_part').val();
|
||||
if ( tool !== "" && rev !== "" && part !== "") {
|
||||
updateBauteilMesswerte3030();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteilnummer fehlerhaft", "error");
|
||||
}
|
||||
});
|
||||
// end region MM3030
|
||||
|
||||
// region MM2121
|
||||
/***
|
||||
* +-+-+-+-+-+-+
|
||||
* |M|M|2|1|2|1|
|
||||
* +-+-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btn_mm2121_uups", function () { $("#frmMM2121").trigger("reset"); });
|
||||
|
||||
$("body").on("click", "#btn_mm2121_check", function () {
|
||||
checkTolAndDye("2121", $("#tb_mm2121_OL1"), "O");
|
||||
checkTolAndDye("2121", $("#tb_mm2121_OW1"), "O");
|
||||
checkTolAndDye("2121", $("#tb_mm2121_r11"), "R"); checkTolAndDye("2121", $("#tb_mm2121_r12"), "R");
|
||||
checkTolAndDye("2121", $("#tb_mm2121_r21"), "R"); checkTolAndDye("2121", $("#tb_mm2121_r22"), "R");
|
||||
checkTolAndDye("2121", $("#tb_mm2121_r31"), "R"); checkTolAndDye("2121", $("#tb_mm2121_r32"), "R");
|
||||
checkTolAndDye("2121", $("#tb_mm2121_r41"), "R"); checkTolAndDye("2121", $("#tb_mm2121_r42"), "R");
|
||||
$("#btn_mm2121_eintragen").prop("disabled", false).focus();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_mm2121_eintragen", function () {
|
||||
var tool = $('#tb_mm2121_tool').val();
|
||||
var rev = $('#tb_mm2121_rev').val();
|
||||
var part = $('#tb_mm2121_part').val();
|
||||
if ( tool !== "" && rev !== "" && part !== "") {
|
||||
updateBauteilMesswerte2121();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteilnummer fehlerhaft", "error");
|
||||
}
|
||||
});
|
||||
// end region MM2121
|
||||
|
||||
// region MM2121C
|
||||
/***
|
||||
* +-+-+-+-+-+-+-+
|
||||
* |M|M|2|1|2|1|C|
|
||||
* +-+-+-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btn_mm2121C_uups", function () { $("#frmMM2121C").trigger("reset"); });
|
||||
|
||||
$("body").on("click", "#btn_mm2121C_check", function () {
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_OL1"), "O");
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_OW1"), "O");
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_r11"), "R"); checkTolAndDye("2121C", $("#tb_mm2121C_r12"), "R");
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_r21"), "R"); checkTolAndDye("2121C", $("#tb_mm2121C_r22"), "R");
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_r31"), "R"); checkTolAndDye("2121C", $("#tb_mm2121C_r32"), "R");
|
||||
checkTolAndDye("2121C", $("#tb_mm2121C_r41"), "R"); checkTolAndDye("2121C", $("#tb_mm2121C_r42"), "R");
|
||||
$("#btn_mm2121C_eintragen").prop("disabled", false).focus();
|
||||
});
|
||||
|
||||
$("body").on("click", "#btn_mm2121C_eintragen", function () {
|
||||
var tool = $('#tb_mm2121C_tool').val();
|
||||
var rev = $('#tb_mm2121C_rev').val();
|
||||
var part = $('#tb_mm2121C_part').val();
|
||||
if ( tool !== "" && rev !== "" && part !== "") {
|
||||
updateBauteilMesswerte2121C();
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler", "Bauteilnummer fehlerhaft", "error");
|
||||
}
|
||||
});
|
||||
// end region MM2121C
|
||||
|
||||
// region MessArchiv
|
||||
$("body").on("click", ".btnMA", function(e) {
|
||||
btnName = e.name;
|
||||
//alert(btnName);
|
||||
});
|
||||
// end region MessArchiv
|
||||
|
||||
// region updateBauteilMesswerte
|
||||
function updateBauteilMesswerte3040() {
|
||||
var txlcode = helper.getTXLCode("3040", $("#tb_mm3040_tool").val(), $("#tb_mm3040_rev").val(), $("#tb_mm3040_part").val());
|
||||
var datetime = heute() + " " + jetzt();
|
||||
var messwerte = {
|
||||
"func" : "updateBauteilMesswerte",
|
||||
"TXLCode" : txlcode, "zeitstempel" : datetime, "messcomm" : $("#tb_mm3040_comm").val(),
|
||||
"OL1" : $("#tb_mm3040_OL1").val(), "OL2" : $("#tb_mm3040_OL2").val(),
|
||||
"OW1" : $("#tb_mm3040_OW1").val(), "OW2" : $("#tb_mm3040_OW2").val(),
|
||||
"R11" : $("#tb_mm3040_r11").val(), "R12" : $("#tb_mm3040_r12").val(), "R13" : $("#tb_mm3040_r13").val(),
|
||||
"R21" : $("#tb_mm3040_r21").val(), "R22" : $("#tb_mm3040_r22").val(), "R23" : $("#tb_mm3040_r23").val(),
|
||||
"R31" : $("#tb_mm3040_r31").val(), "R32" : $("#tb_mm3040_r32").val(), "R33" : $("#tb_mm3040_r33").val(),
|
||||
"R41" : $("#tb_mm3040_r41").val(), "R42" : $("#tb_mm3040_r42").val(), "R43" : $("#tb_mm3040_r43").val()
|
||||
};
|
||||
|
||||
if ( DEBUG ) { console.log(JSON.stringify(messwerte)); }
|
||||
|
||||
messwertEintragungResp = DB.updateMesswerteGeneric(messwerte);
|
||||
if (messwertEintragungResp.responseText == "1") {
|
||||
// Um den beim Messen nicht die Hand an die Maus nehmen zu müssen, hab ich den Dialog, dass
|
||||
// das Bauteil eingetragen wurde mit einem Sound ersetzt. So kann ich wieder direkt ins
|
||||
// Eingabefeld für die Tool-Nummer fokusen.
|
||||
playSound("ding");
|
||||
$('#debug').text("Bauteil " + $("#tb_mm3040_tool").val() + "-" + $("#tb_mm3040_rev").val() + "-" + $("#tb_mm3040_part").val() + " wurde in die Datenbank eingetragen.");
|
||||
//swal("Fertig","Bauteil wurde eingetragen.", "success");
|
||||
|
||||
removeColor("3040");
|
||||
$("#frmMM3040").trigger("reset");
|
||||
setTimeout(function() {
|
||||
$("#btn_mm3040_check").prop("disabled", true);
|
||||
$("#btn_mm3040_eintragen").prop("disabled", true);
|
||||
$("#tb_mm3040_tool").focus();
|
||||
}, (300));
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler beim eintragen", messwertEintragungResp.responseText, "error");
|
||||
}
|
||||
}
|
||||
|
||||
function updateBauteilMesswerte3030() {
|
||||
var txlcode = helper.getTXLCode("3030", $("#tb_mm3030_tool").val(), $("#tb_mm3030_rev").val(), $("#tb_mm3030_part").val());
|
||||
var datetime = heute() + " " + jetzt();
|
||||
var messwerte = {
|
||||
"func" : "updateBauteilMesswerte",
|
||||
"TXLCode" : txlcode, "zeitstempel" : datetime, "messcomm" : $("#tb_mm3030_comm").val(),
|
||||
"OL1" : $("#tb_mm3030_OL1").val(), "OL2" : $("#tb_mm3030_OL2").val(),
|
||||
"OW1" : $("#tb_mm3030_OW1").val(), "OW2" : $("#tb_mm3030_OW2").val(),
|
||||
"R11" : $("#tb_mm3030_r11").val(), "R12" : $("#tb_mm3030_r12").val(), "R13" : $("#tb_mm3030_r13").val(),
|
||||
"R21" : $("#tb_mm3030_r21").val(), "R22" : $("#tb_mm3030_r22").val(), "R23" : $("#tb_mm3030_r23").val(),
|
||||
"R31" : $("#tb_mm3030_r31").val(), "R32" : $("#tb_mm3030_r32").val(), "R33" : $("#tb_mm3030_r33").val(),
|
||||
"R41" : $("#tb_mm3030_r41").val(), "R42" : $("#tb_mm3030_r42").val(), "R43" : $("#tb_mm3030_r43").val()
|
||||
};
|
||||
|
||||
if ( DEBUG ) { console.log(JSON.stringify(messwerte)); }
|
||||
|
||||
messwertEintragungResp = DB.updateMesswerteGeneric(messwerte);
|
||||
if (messwertEintragungResp.responseText == "1") {
|
||||
playSound("ding");
|
||||
$('#debug').text("Bauteil " + $("#tb_mm3030_tool").val() + "-" + $("#tb_mm3030_rev").val() + "-" + $("#tb_mm3030_part").val() + " wurde in die Datenbank eingetragen.");
|
||||
//swal("Fertig", "Bauteil wurde eingetragen", "success");
|
||||
removeColor("3030");
|
||||
$("#frmMM3030").trigger("reset");
|
||||
setTimeout(function() {
|
||||
$("#btn_mm3030_check").prop("disabled", true);
|
||||
$("#btn_mm3030_eintragen").prop("disabled", true);
|
||||
$("#tb_mm3030_tool").focus();
|
||||
}, (30));
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler beim eintragen:", messwertEintragungResp.responseText, "error");
|
||||
}
|
||||
}
|
||||
|
||||
function updateBauteilMesswerte2121() {
|
||||
var txlcode = helper.getTXLCode("2121", $("#tb_mm2121_tool").val(), $("#tb_mm2121_rev").val(), $("#tb_mm2121_part").val());
|
||||
var datetime = heute() + " " + jetzt();
|
||||
var messwerte = {
|
||||
"func" : "updateBauteilMesswerte",
|
||||
"TXLCode" : txlcode, "zeitstempel" : datetime, "messcomm" : $("#tb_mm2121_comm").val(),
|
||||
"OL1" : $("#tb_mm2121_OL1").val(),
|
||||
"OW1" : $("#tb_mm2121_OW1").val(),
|
||||
"R11" : $("#tb_mm2121_r11").val(), "R12" : $("#tb_mm2121_r12").val(),
|
||||
"R21" : $("#tb_mm2121_r21").val(), "R22" : $("#tb_mm2121_r22").val(),
|
||||
"R31" : $("#tb_mm2121_r31").val(), "R32" : $("#tb_mm2121_r32").val(),
|
||||
"R41" : $("#tb_mm2121_r41").val(), "R42" : $("#tb_mm2121_r42").val(),
|
||||
};
|
||||
|
||||
if ( DEBUG ) { console.log(JSON.stringify(messwerte)); }
|
||||
|
||||
messwertEintragungResp = DB.updateMesswerteGeneric(messwerte);
|
||||
if (messwertEintragungResp.responseText == "1") {
|
||||
playSound("ding");
|
||||
$('#debug').text("Bauteil " + $("#tb_mm2121_tool").val() + "-" + $("#tb_mm2121_rev").val() + "-" + $("#tb_mm2121_part").val() + " wurde in die Datenbank eingetragen.");
|
||||
//swal("Fertig", "Bauteil wurde eingetragen.", "success");
|
||||
removeColor("2121");
|
||||
$("#frmMM2121").trigger("reset");
|
||||
setTimeout(function() {
|
||||
$("#btn_mm2121_check").prop("disabled", true);
|
||||
$("#btn_mm2121_eintragen").prop("disabled", true);
|
||||
$("#tb_mm2121_tool").focus();
|
||||
}, (30));
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler beim eintragen:", messwertEintragungResp.responseText, "error");
|
||||
}
|
||||
}
|
||||
|
||||
function updateBauteilMesswerte2121C() {
|
||||
var txlcode = helper.getTXLCode("2121C", $("#tb_mm2121C_tool").val(), $("#tb_mm2121C_rev").val(), $("#tb_mm2121C_part").val());
|
||||
var datetime = heute() + " " + jetzt();
|
||||
var messwerte = {
|
||||
"func" : "updateBauteilMesswerte",
|
||||
"TXLCode" : txlcode, "zeitstempel" : datetime, "messcomm" : $("#tb_mm2121C_comm").val(),
|
||||
"OL1" : $("#tb_mm2121C_OL1").val(),
|
||||
"OW1" : $("#tb_mm2121C_OW1").val(),
|
||||
"R11" : $("#tb_mm2121C_r11").val(), "R12" : $("#tb_mm2121C_r12").val(),
|
||||
"R21" : $("#tb_mm2121C_r21").val(), "R22" : $("#tb_mm2121C_r22").val(),
|
||||
"R31" : $("#tb_mm2121C_r31").val(), "R32" : $("#tb_mm2121C_r32").val(),
|
||||
"R41" : $("#tb_mm2121C_r41").val(), "R42" : $("#tb_mm2121C_r42").val(),
|
||||
};
|
||||
|
||||
if ( DEBUG ) { console.log(JSON.stringify(messwerte)); }
|
||||
|
||||
messwertEintragungResp = DB.updateMesswerteGeneric(messwerte);
|
||||
if (messwertEintragungResp.responseText == "1") {
|
||||
playSound("ding");
|
||||
$('#debug').text("Bauteil " + $("#tb_mm2121C_tool").val() + "-" + $("#tb_mm2121C_rev").val() + "-" + $("#tb_mm2121C_part").val() + " wurde in die Datenbank eingetragen.");
|
||||
//swal("Fertig", "Bauteil wurde eingetragen.", "success");
|
||||
removeColor("2121C");
|
||||
$("#frmMM2121C").trigger("reset");
|
||||
setTimeout(function() {
|
||||
$("#btn_mm2121C_check").prop("disabled", true);
|
||||
$("#btn_mm2121C_eintragen").prop("disabled", true);
|
||||
$("#tb_mm2121C_tool").focus();
|
||||
}, (30));
|
||||
} else {
|
||||
playSound("error");
|
||||
swal("Fehler beim eintragen:", messwertEintragungResp.responseText, "error");
|
||||
}
|
||||
}
|
||||
// end region
|
||||
|
||||
|
||||
function disableAllMessTBs() { $('.inp_messwerte').prop("disabled", true); }
|
||||
function enableAllMessTBs() { $('.inp_messwerte').prop("disabled", false); }
|
||||
|
||||
function focusNextInpField() {
|
||||
// tabindex vom aktuell fokusierten element + 1
|
||||
nextTabIdx = parseInt($(':focus').attr('tabindex'), 10) + 1;
|
||||
$next_input = $('form [tabindex=' + nextTabIdx + ']');
|
||||
$next_input.prop("disabled", false).focus();
|
||||
playSound("ding");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* erwartet objekt in form eines input-text-elements als eingabe
|
||||
*
|
||||
* konvertiert im inhalt das komma zu einem punkt und prueft,
|
||||
* ob das vorkommen eines punkt = 1 ist
|
||||
* ist dies gegeben wird der inhalt des inputfeldes aktualisiert
|
||||
*
|
||||
* gibt true/false zurueck
|
||||
*/
|
||||
function convertAndCheck(field) {
|
||||
var iReturn = false;
|
||||
var actval = field.value;
|
||||
var newval = actval.replace(",", ".");
|
||||
if ($.isNumeric(newval) && newval.match(/\./g).length == 1) {
|
||||
document.getElementById(field.id).value = newval;
|
||||
iReturn = true;
|
||||
}
|
||||
return iReturn;
|
||||
}
|
||||
|
||||
function checkTolAndDye(flavor, tbox, mark){
|
||||
if (flavor == "3040") {
|
||||
colorcode = checkTol3040(tbox[0].value, mark);
|
||||
} else if (flavor == "2121") {
|
||||
colorcode = checkTol2121(tbox[0].value, mark);
|
||||
} else if (flavor == "3030") {
|
||||
colorcode = checkTol3030(tbox[0].value, mark);
|
||||
} else if (flavor == "2121C") {
|
||||
colorcode = checkTol2121C(tbox[0].value, mark);
|
||||
}
|
||||
dyeTB(tbox, colorcode);
|
||||
}
|
||||
function checkTol2121(val, mark){
|
||||
if (mark == "O") {
|
||||
if ( val < 222.0 || val > 222.2) {
|
||||
return 3;
|
||||
} else if ( val >= 222.01 && val <= 222.19 ) {
|
||||
return 1; }
|
||||
else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "R") {
|
||||
if ((val >= 42.1) || (val <= 41.7)) {
|
||||
return 2;
|
||||
} else if ((val > 41.7) || (val < 42.1)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkTol2121C(val, mark){
|
||||
if (mark == "O") {
|
||||
console.log("O:" + val);
|
||||
if ( val < 217.60 || val > 217.80) {
|
||||
return 3;
|
||||
} else if ( (val >= 217.61) && (val <= 217.79) ) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "R") {
|
||||
if ((val >= 42.1) || (val <= 41.7)) {
|
||||
return 2;
|
||||
} else if ((val > 41.7) || (val < 42.1)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkTol3040(val, mark){
|
||||
if (mark == "OL") {
|
||||
if (((val >= -9999999) && (val <= 429.39)) || ((val >= 429.61) && (val < 999999999999.9))) {
|
||||
return 3;
|
||||
} else if ((val >= 429.42) && (val <= 429.58)) {
|
||||
return 1; }
|
||||
else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "OW") {
|
||||
if (((val >= -9999999) && (val <= 310.49)) || ((val >= 310.71) && (val < 999999999999.9))) {
|
||||
return 3;
|
||||
} else if ((val >= 310.52) && (val <= 310.68)) {
|
||||
return 1; }
|
||||
else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "R") {
|
||||
if ((val >= 42.1) || (val <= 41.7)) {
|
||||
return 2;
|
||||
} else if ((val > 41.7) || (val < 42.1)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkTol3030(val, mark){
|
||||
if (mark == "OL") {
|
||||
if (((val >= -9999999) && (val <= 323.19)) || ((val >= 323.61) && (val < 999999999999.9))) {
|
||||
return 3;
|
||||
} else if ((val >= 323.22) && (val <= 323.58)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "OW") {
|
||||
if (((val >= -9999999) && (val <= 323.19)) || ((val >= 323.61) && (val < 999999999999.9))) {
|
||||
return 3;
|
||||
} else if ((val >= 323.22) && (val <= 323.58)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (mark == "R") {
|
||||
if ((val >= 42.1) || (val <= 41.7)) {
|
||||
return 2;
|
||||
} else if ((val > 41.7) || (val < 42.1)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
function dyeTB(tbox, colorcode) {
|
||||
switch(colorcode){
|
||||
case 1: color = "limegreen"; break;
|
||||
case 2: color = "yellow"; break;
|
||||
case 3: color = "red"; break;
|
||||
case 4: color = "white"; break;
|
||||
default: color = "black";
|
||||
}
|
||||
tbox[0].style.backgroundColor = color;
|
||||
}
|
||||
|
||||
function faerbeEin($obj, $farbe) {
|
||||
switch ($farbe) {
|
||||
case 0: $obj.addClass("tolSchwarz"); break;
|
||||
case 1: $obj.addClass("tolGruen"); break;
|
||||
case 2: $obj.addClass("tolGelb"); break;
|
||||
case 3: $obj.addClass("tolRot"); break;
|
||||
}
|
||||
}
|
||||
|
||||
function removeColor(flavor){
|
||||
$("#frmMM" + flavor + " :input[type=text]").each( function(){
|
||||
var ele = $(this);
|
||||
if ( ele[0].className != "comm") {
|
||||
ele[0].style.backgroundColor = "white";
|
||||
}
|
||||
});
|
||||
|
||||
$("#divZeichnungPrim3040 div").each( function(){ var ele = $(this); ele[0].className = "inp_messwerte"; });
|
||||
$("#divZeichnungPrim3030 div").each( function(){ var ele = $(this); ele[0].className = "inp_messwerte"; });
|
||||
$("#divZeichnungPrim2121 div").each( function(){ var ele = $(this); ele[0].className = "inp_messwerte"; });
|
||||
$("#divZeichnungPrim2121C div").each( function(){ var ele = $(this); ele[0].className = "inp_messwerte"; });
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function testValues3040(){
|
||||
$("#tb_mm3040_OL1").val(randomXToY(42940, 42970) / 100);
|
||||
$("#tb_mm3040_OL2").val(randomXToY(42940, 42970) / 100);
|
||||
$("#tb_mm3040_OW1").val(randomXToY(31045, 31075) / 100);
|
||||
$("#tb_mm3040_OW2").val(randomXToY(31045, 31075) / 100);
|
||||
$("#tb_mm3040_r11").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r12").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r13").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r21").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r22").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r23").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r31").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r32").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r33").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r41").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r42").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3040_r43").val(randomXToY(4170, 4240) / 100);
|
||||
$("#btn_mm3040_check").trigger("click");
|
||||
}
|
||||
function testValues3030(){
|
||||
$("#tb_mm3030_OL1").val(randomXToY(32318, 32363) / 100);
|
||||
$("#tb_mm3030_OL2").val(randomXToY(32318, 32363) / 100);
|
||||
$("#tb_mm3030_OW1").val(randomXToY(32318, 32363) / 100);
|
||||
$("#tb_mm3030_OW2").val(randomXToY(32318, 32363) / 100);
|
||||
$("#tb_mm3030_r11").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r12").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r13").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r21").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r22").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r23").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r31").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r32").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r33").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r41").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r42").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm3030_r43").val(randomXToY(4170, 4240) / 100);
|
||||
$("#btn_mm3030_check").trigger("click");
|
||||
}
|
||||
function testValues2121(){
|
||||
$("#tb_mm2121_OL1").val(randomXToY(22200, 22220) / 100);
|
||||
$("#tb_mm2121_OW1").val(randomXToY(22200, 22220) / 100);
|
||||
$("#tb_mm2121_r11").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r12").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r21").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r22").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r31").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r32").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r41").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121_r42").val(randomXToY(4170, 4240) / 100);
|
||||
$("#btn_mm2121_check").trigger("click");
|
||||
}
|
||||
function testValues2121C(){
|
||||
$("#tb_mm2121C_OL1").val(randomXToY(21755, 21787) / 100);
|
||||
$("#tb_mm2121C_OW1").val(randomXToY(21755, 21782) / 100);
|
||||
$("#tb_mm2121C_r11").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r12").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r21").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r22").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r31").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r32").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r41").val(randomXToY(4170, 4240) / 100);
|
||||
$("#tb_mm2121C_r42").val(randomXToY(4170, 4240) / 100);
|
||||
$("#btn_mm2121C_check").trigger("click");
|
||||
}
|
||||
|
||||
function reset3040() {
|
||||
$("#frmMM3040").trigger("reset");
|
||||
}
|
||||
|
||||
function resAndFocus(typ) {
|
||||
if ( DEBUGmany ) { console.log("get typ = " + typ);}
|
||||
$('#tb_mm' + typ + '_part').val("");
|
||||
$('#tb_mm' + typ + '_rev').val("");
|
||||
$('#tb_mm' + typ + '_tool').val("").focus();
|
||||
}
|
||||
|
||||
function randomXToY(minVal,maxVal,floatVal){var randVal = minVal+(Math.random()*(maxVal-minVal));return typeof floatVal=='undefined'?Math.round(randVal):randVal.toFixed(floatVal);}
|
||||
|
||||
if ( VERBOSE ) { console.log("messmasken.js loaded ..."); }
|
||||
|
||||
|
||||
});
|
||||
13
js/npm.js
Normal file
13
js/npm.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
|
||||
require('../../js/transition.js')
|
||||
require('../../js/alert.js')
|
||||
require('../../js/button.js')
|
||||
require('../../js/carousel.js')
|
||||
require('../../js/collapse.js')
|
||||
require('../../js/dropdown.js')
|
||||
require('../../js/modal.js')
|
||||
require('../../js/tooltip.js')
|
||||
require('../../js/popover.js')
|
||||
require('../../js/scrollspy.js')
|
||||
require('../../js/tab.js')
|
||||
require('../../js/affix.js')
|
||||
363
js/ofensachen.js
Normal file
363
js/ofensachen.js
Normal file
@@ -0,0 +1,363 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
if ( VERBOSE ) { console.log("ofensachen.js loading ..."); }
|
||||
|
||||
// hier werden alle Element-IDs der fehlerhaften TXLCodes gespeichert,
|
||||
// die bei ihrer Bereinigung wieder entfernt werden.
|
||||
var fehlerhafteInputfelder = [];
|
||||
|
||||
// $("#btnTestingKF480").on("click", function () { eingetragen = insertIntoForm(DB.loadLetzteBeladungNEW("KF480"), "KF480"); console.log(eingetragen + " Bauteile aus der DB geholt");});
|
||||
// $("#btnTestingKF80S").on("click", function () { eingetragen = insertIntoForm(DB.loadLetzteBeladungNEW("KF80S"), "KF80S"); console.log(eingetragen + " Bauteile aus der DB geholt"); });
|
||||
// $("#btnTestingKF80").on("click", function () { eingetragen = insertIntoForm(DB.loadLetzteBeladungNEW("KF80"), "KF80"); console.log(eingetragen + " Bauteile aus der DB geholt"); });
|
||||
|
||||
function errorBeladung(message) {
|
||||
swal({ title: 'Fehler', text: message, type: 'error', showCancelButton: false, confirmButtonColor: '#d33', cancelButtonColor: '#d33', confirmButtonText: 'Ok' });
|
||||
}
|
||||
|
||||
function insertIntoForm(JSON, ofenname) {
|
||||
|
||||
var cnt = 0;
|
||||
var arr = $.parseJSON(JSON);
|
||||
if (arr[1] != "-") {tmparr = arr[1].split("-");$("#tbE01" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON01" + ofenname).val(tmparr[1]); $("#KommE01" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[2] != "-") {tmparr = arr[2].split("-");$("#tbE02" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON02" + ofenname).val(tmparr[1]); $("#KommE02" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[3] != "-") {tmparr = arr[3].split("-");$("#tbE03" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON03" + ofenname).val(tmparr[1]); $("#KommE03" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[4] != "-") {tmparr = arr[4].split("-");$("#tbE04" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON04" + ofenname).val(tmparr[1]); $("#KommE04" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[5] != "-") {tmparr = arr[5].split("-");$("#tbE05" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON05" + ofenname).val(tmparr[1]); $("#KommE05" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[6] != "-") {tmparr = arr[6].split("-");$("#tbE06" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON06" + ofenname).val(tmparr[1]); $("#KommE06" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[7] != "-") {tmparr = arr[7].split("-");$("#tbE07" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON07" + ofenname).val(tmparr[1]); $("#KommE07" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[8] != "-") {tmparr = arr[8].split("-");$("#tbE08" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON08" + ofenname).val(tmparr[1]); $("#KommE08" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[9] != "-") {tmparr = arr[9].split("-");$("#tbE09" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON09" + ofenname).val(tmparr[1]); $("#KommE09" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[10] != "-") {tmparr = arr[10].split("-");$("#tbE10" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON10" + ofenname).val(tmparr[1]); $("#KommE10" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if ( ofenname === "KF480" ) {
|
||||
if (arr[11] != "-") {tmparr = arr[11].split("-");$("#tbE11" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON11" + ofenname).val(tmparr[1]); $("#KommE11" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[12] != "-") {tmparr = arr[12].split("-");$("#tbE12" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON12" + ofenname).val(tmparr[1]); $("#KommE12" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[13] != "-") {tmparr = arr[13].split("-");$("#tbE13" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON13" + ofenname).val(tmparr[1]); $("#KommE13" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[14] != "-") {tmparr = arr[14].split("-");$("#tbE14" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON14" + ofenname).val(tmparr[1]); $("#KommE14" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[15] != "-") {tmparr = arr[15].split("-");$("#tbE15" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON15" + ofenname).val(tmparr[1]); $("#KommE15" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[16] != "-") {tmparr = arr[16].split("-");$("#tbE16" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON16" + ofenname).val(tmparr[1]); $("#KommE16" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[17] != "-") {tmparr = arr[17].split("-");$("#tbE17" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON17" + ofenname).val(tmparr[1]); $("#KommE17" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[18] != "-") {tmparr = arr[18].split("-");$("#tbE18" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON18" + ofenname).val(tmparr[1]); $("#KommE18" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[19] != "-") {tmparr = arr[19].split("-");$("#tbE19" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON19" + ofenname).val(tmparr[1]); $("#KommE19" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
if (arr[20] != "-") {tmparr = arr[20].split("-");$("#tbE20" + ofenname).val(helper.getNextPart(tmparr[0])); $("#SON20" + ofenname).val(tmparr[1]); $("#KommE20" + ofenname).val(tmparr[2]); cnt += 1;}
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
function insertBeladung(ofenBezeichner) {
|
||||
|
||||
var rVal = 1;
|
||||
var fehlendeSON = 0;
|
||||
var fehlerhafteCodes = 0;
|
||||
var eingetrageneTeile = 0;
|
||||
var falscherTypImOfen = false;
|
||||
myJSON = new Object();
|
||||
myJSON = $('form').serializeObject();
|
||||
if ( ofenBezeichner === "KF480") {
|
||||
|
||||
if (myJSON.tbE01KF480 !== "") {
|
||||
eingetrageneTeile += 1;
|
||||
|
||||
if (helper.looksLikeTXLCode(myJSON.tbE01KF480) === 0) {
|
||||
if ( myJSON.tbE01KF480.substring(0,3) === "GA1" ) {
|
||||
errorBeladung("2121 im Grossen?");
|
||||
fehlerhafteCodes += 1;
|
||||
falscherTypImOfen = true;
|
||||
}
|
||||
} else {
|
||||
fehlerhafteCodes += 1;
|
||||
}
|
||||
if (myJSON.SON01KF480 === "") {
|
||||
fehlendeSON += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (myJSON.tbE02KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE02KF480) === 0) { if ( myJSON.tbE02KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON02KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE03KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE03KF480) === 0) { if ( myJSON.tbE03KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON03KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE04KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE04KF480) === 0) { if ( myJSON.tbE04KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON04KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE05KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE05KF480) === 0) { if ( myJSON.tbE05KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON05KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE06KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE06KF480) === 0) { if ( myJSON.tbE06KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON06KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE07KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE07KF480) === 0) { if ( myJSON.tbE07KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON07KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE08KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE08KF480) === 0) { if ( myJSON.tbE08KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON08KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE09KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE09KF480) === 0) { if ( myJSON.tbE09KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON09KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE10KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE10KF480) === 0) { if ( myJSON.tbE10KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON10KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE11KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE11KF480) === 0) { if ( myJSON.tbE11KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON11KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE12KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE12KF480) === 0) { if ( myJSON.tbE12KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON12KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE13KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE13KF480) === 0) { if ( myJSON.tbE13KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON13KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE14KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE14KF480) === 0) { if ( myJSON.tbE14KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON14KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE15KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE15KF480) === 0) { if ( myJSON.tbE15KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON15KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE16KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE16KF480) === 0) { if ( myJSON.tbE16KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON16KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE17KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE17KF480) === 0) { if ( myJSON.tbE17KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON17KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE18KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE18KF480) === 0) { if ( myJSON.tbE18KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON18KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE19KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE19KF480) === 0) { if ( myJSON.tbE19KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON19KF480 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE20KF480 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE20KF480) === 0) { if ( myJSON.tbE20KF480.substring(0,3) === "GA1" ) { errorBeladung("2121 im Grossen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; }} else { fehlerhafteCodes += 1;} if (myJSON.SON20KF480 === "") { fehlendeSON += 1; } }
|
||||
} else if ( ofenBezeichner === "KF80") {
|
||||
if (myJSON.tbE01KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE01KF80) === 0) { if ( myJSON.tbE01KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON01KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE02KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE02KF80) === 0) { if ( myJSON.tbE02KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE02KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON02KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE03KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE03KF80) === 0) { if ( myJSON.tbE03KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE03KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON03KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE04KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE04KF80) === 0) { if ( myJSON.tbE04KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE04KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON04KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE05KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE05KF80) === 0) { if ( myJSON.tbE05KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE05KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON05KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE06KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE06KF80) === 0) { if ( myJSON.tbE06KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE06KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON06KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE07KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE07KF80) === 0) { if ( myJSON.tbE07KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE07KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON07KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE08KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE08KF80) === 0) { if ( myJSON.tbE08KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE08KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON08KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE09KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE09KF80) === 0) { if ( myJSON.tbE09KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE09KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON09KF80 === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE10KF80 !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE10KF80) === 0) { if ( myJSON.tbE10KF80.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE10KF80.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON10KF80 === "") { fehlendeSON += 1; } }
|
||||
} else if ( ofenBezeichner === "KF80S") {
|
||||
if (myJSON.tbE01KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE01KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON01KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE02KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE02KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON02KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE03KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE03KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON03KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE04KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE04KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON04KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE05KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE05KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON05KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE06KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE06KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON06KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE07KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE07KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON07KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE08KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE08KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON08KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE09KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE09KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON09KF80S === "") { fehlendeSON += 1; } }
|
||||
if (myJSON.tbE10KF80S !== "") { eingetrageneTeile += 1; if (helper.looksLikeTXLCode(myJSON.tbE10KF80S) > 0) { if ( myJSON.tbE01KF80S.substring(0,3) === "GW1" ) { errorBeladung("3040 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } if ( myJSON.tbE01KF80S.substring(0,3) === "GX1" ) { errorBeladung("3030 im Kleinen?"); fehlerhafteCodes += 1; falscherTypImOfen = true; } } if (myJSON.SON10KF80S === "") { fehlendeSON += 1; } }
|
||||
} else {
|
||||
errorBeladung("Fehler beim zusammenstellen der Daten für die Datanbank. Falscher Ofenname?")
|
||||
}
|
||||
|
||||
if (eingetrageneTeile === 0) { errorBeladung("Eine Leerfahrt?"); }
|
||||
if (fehlendeSON > 0) { errorBeladung("Fehlende Schott-Order-Nummern - bitte bereinigen"); }
|
||||
if (fehlerhafteCodes > 0 && falscherTypImOfen === false) { errorBeladung("Falscher Code - bitte bereinigen ( falscher Typ im Ofen)"); }
|
||||
if ( DEBUGmany ) { console.log("ofensachen.js->insertBeladung() Statistik:\n" +
|
||||
"teile:" + eingetrageneTeile + "\n" +
|
||||
"fehlSON:" + fehlendeSON + "\n" +
|
||||
"fehlCodes:" + fehlerhafteCodes
|
||||
);}
|
||||
if (fehlendeSON === 0 && fehlerhafteCodes === 0 && eingetrageneTeile > 0) {
|
||||
DB.insertBeladung(myJSON);
|
||||
rVal = 0;
|
||||
console.log(JSON.stringify(myJSON));
|
||||
}
|
||||
return rVal;
|
||||
}
|
||||
|
||||
|
||||
// region KF480
|
||||
/***
|
||||
* +-+-+-+-+-+
|
||||
* |K|F|4|8|0|
|
||||
* +-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btnShowMoreEbenenKF480", function () {
|
||||
$("tr#e11").show();
|
||||
$("tr#e12").show();
|
||||
$("tr#e13").show();
|
||||
$("tr#e14").show();
|
||||
$("tr#e15").show();
|
||||
$("tr#e16").show();
|
||||
$("tr#e17").show();
|
||||
$("tr#e18").show();
|
||||
$("tr#e19").show();
|
||||
$("tr#e20").show();
|
||||
$("#btnShowLessEbenenKF480").attr("style", "display: inline-block");
|
||||
$("#btnShowMoreEbenenKF480").attr("style", "display: none");
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnShowLessEbenenKF480", function () {
|
||||
$("tr#e11").hide();
|
||||
$("tr#e12").hide();
|
||||
$("tr#e13").hide();
|
||||
$("tr#e14").hide();
|
||||
$("tr#e15").hide();
|
||||
$("tr#e16").hide();
|
||||
$("tr#e17").hide();
|
||||
$("tr#e18").hide();
|
||||
$("tr#e19").hide();
|
||||
$("tr#e20").hide();
|
||||
$("#btnShowLessEbenenKF480").attr("style", "display: none");
|
||||
$("#btnShowMoreEbenenKF480").attr("style", "display: inline-block");
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnLoadLetzteBeladungKF480", function () {
|
||||
eingetragen = insertIntoForm(DB.loadLetzteBeladung("KF480"), "KF480");
|
||||
console.log(eingetragen + " Bauteil(e) aus der DB geholt - KF480");
|
||||
ColorInputs();
|
||||
if ( eingetragen >= 11 ) { $("#btnShowMoreEbenenKF480").trigger("click"); } // wenn mehr als 10 Teile beladen waren, die Ebenen auch anzeigen
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnInsertBeladungKF480", function () {
|
||||
var val = insertBeladung("KF480");
|
||||
if (val === 0) {resetBeladeform();}
|
||||
});
|
||||
// end region
|
||||
|
||||
// region KF80
|
||||
/***
|
||||
* +-+-+-+-+
|
||||
* |K|F|8|0|
|
||||
* +-+-+-+-+
|
||||
*/
|
||||
|
||||
$("body").on("click", "#btnLoadLetzteBeladungKF80", function () {
|
||||
eingetragen = insertIntoForm(DB.loadLetzteBeladung("KF80"), "KF80");
|
||||
console.log(eingetragen + " Bauteile aus der DB geholt - KF80");
|
||||
ColorInputs();
|
||||
if ( eingetragen >= 11 ) {} // mehr als 10?!
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnInsertBeladungKF80", function () {
|
||||
var val = insertBeladung("KF80");
|
||||
if (val === 0) {resetBeladeform();}
|
||||
});
|
||||
// end region
|
||||
|
||||
// region KF80S
|
||||
/***
|
||||
* +-+-+-+-+-+
|
||||
* |K|F|8|0|S|
|
||||
* +-+-+-+-+-+
|
||||
*/
|
||||
$("body").on("click", "#btnLoadLetzteBeladungKF80S", function () {
|
||||
eingetragen = insertIntoForm(DB.loadLetzteBeladung("KF80S"), "KF80S");
|
||||
console.log(eingetragen + " Bauteile aus der DB geholt - KF80S");
|
||||
ColorInputs();
|
||||
if ( eingetragen >= 11 ) {} // mehr als 10?!
|
||||
});
|
||||
|
||||
$("body").on("click", "#btnInsertBeladungKF80S", function () {
|
||||
var val = insertBeladung("KF80S");
|
||||
if (val === 0) {resetBeladeform();}
|
||||
});
|
||||
// end region
|
||||
|
||||
// region helferlein
|
||||
|
||||
function resetBeladeform() {
|
||||
$('#frmOfenbeladung').trigger("reset");
|
||||
$('#beladedatum').val(heute());
|
||||
$('#beladezeit').val(jetzt());
|
||||
resetColorInputs();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Faerbt die Inputfelder nach Ihren Bauteil-Typ ein
|
||||
*
|
||||
**/
|
||||
function ColorInputs() {
|
||||
$("form#frmOfenbeladung :input[type=text]").each(function(){
|
||||
foo = $(this); foo = foo[0];
|
||||
if (foo.value !== "" && foo.className === "tbTXLCode" ) { checkInputs(foo); }
|
||||
if (fehlerhafteInputfelder.length === 0 ) { activeateInsertBtn(); }
|
||||
});
|
||||
}
|
||||
|
||||
function resetColorInputs() {
|
||||
$("form#frmOfenbeladung :input[type=text]").each(function(){
|
||||
var actInput = $(this);
|
||||
actInput[0].style.color = "";
|
||||
actInput[0].style.backgroundColor = "";
|
||||
});
|
||||
}
|
||||
|
||||
function updateFehlerhafteInputfelder (fieldName) {
|
||||
if (fehlerhafteInputfelder.indexOf(fieldName) === -1) {
|
||||
fehlerhafteInputfelder.push(fieldName);
|
||||
console.log('fehlerhafteInputfelder beinhaltet nun: ' + fehlerhafteInputfelder);
|
||||
} else {
|
||||
console.log(fieldName + ' ist schon vorhanden');
|
||||
}
|
||||
}
|
||||
function removeFehlerhaftesInputfeld(fieldName) {
|
||||
var idx = fehlerhafteInputfelder.indexOf(fieldName);
|
||||
if ( idx > -1) {
|
||||
fehlerhafteInputfelder.splice(idx ,1);
|
||||
console.log(idx + ':' + fieldName + ' | fehlerhafteInputfelder beinhaltet nun: ' + fehlerhafteInputfelder);
|
||||
} else {
|
||||
console.log(fieldName + ' ist nicht vorhanden');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Faerbt die Inputfelder nach Ihren Bauteil-Typ ein
|
||||
*
|
||||
**/
|
||||
function colorTB(tmptype, field, state){
|
||||
if ( tmptype === "3040" && state === 1) {
|
||||
field.style.backgroundColor = "#2525FF";
|
||||
field.style.color = "#00F5F5";
|
||||
} else if ( tmptype === "3030" && state === 1) {
|
||||
field.style.backgroundColor = "#CCCCCC";
|
||||
field.style.color = "#212121";
|
||||
} else if ( tmptype === "2121" && state === 1) {
|
||||
field.style.backgroundColor = "#300E0E";
|
||||
field.style.color = "#A5A5A5";
|
||||
} else if ( tmptype === "all" && state === 0) {
|
||||
field.style.backgroundColor = "#FF2525";
|
||||
field.style.color = "#0000F5";
|
||||
} else {
|
||||
field.value = "(" + field.value + ")"
|
||||
}
|
||||
}
|
||||
|
||||
function checkInputs(actInput) {
|
||||
var fieldName = actInput.id;
|
||||
var tmptype = actInput.value.substring(0,3);
|
||||
var bauteilStatus = DB.getBauteilStatus(actInput.value);
|
||||
if ( DEBUGmany ) {console.log("check '" + actInput.id + "' mit den Inhalt: '" + actInput.value + "'"); }
|
||||
if ( bauteilStatus <= 1 ) {
|
||||
errorBeladung("Bauteil schon vorhanden.\nBauteilstatus: " + bauteilStatus);
|
||||
updateFehlerhafteInputfelder(fieldName);
|
||||
deactiveateInsertBtn();
|
||||
colorTB("all", actInput, 0);
|
||||
} else if ( tmptype === "GW1" && bauteilStatus === 2) {
|
||||
// schauen, ob das Input-Feld in dem Array fuer fehlerhafte Teile steht
|
||||
if ( fehlerhafteInputfelder.includes(fieldName) ) {
|
||||
// und wenn dem so ist, das element wieder daraus entfernen
|
||||
removeFehlerhaftesInputfeld(fieldName);
|
||||
}
|
||||
colorTB("3040", actInput, 1);
|
||||
} else if ( tmptype === "GA1" && bauteilStatus === 2) {
|
||||
if ( fehlerhafteInputfelder.includes(fieldName) ) {
|
||||
removeFehlerhaftesInputfeld(fieldName);
|
||||
}
|
||||
colorTB("2121", actInput, 1);
|
||||
} else if ( tmptype === "GX1" && bauteilStatus === 2) {
|
||||
if ( fehlerhafteInputfelder.includes(fieldName) ) {
|
||||
removeFehlerhaftesInputfeld(fieldName);
|
||||
}
|
||||
colorTB("3030", actInput, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// end region
|
||||
|
||||
|
||||
|
||||
//region Herzstück
|
||||
|
||||
/* VERALTETE DOKU! Prinzip noch das gleiche, nur weiter funktionalisiert
|
||||
*
|
||||
* Wenn ein Input-Feld im Formular "frmOfenbeladung" den Fokus verliert,
|
||||
* wird geschaut mit welchen drei Zeichen der Text in dem Feld beginnt und danach entschieden,
|
||||
* welche Farbe das Input-Feld bekommt.
|
||||
*
|
||||
* desweiteren wird, wenn es einen Fehler beim eingeben des TXLCodes gab, der Name des
|
||||
* Input-Elements in ein Array geschrieben und der Button/das Div fuers eintragen
|
||||
* der aktuellen Beladung ausgeblendet.
|
||||
* Erst wenn das Array wieder leer ist, wir der Button/das Div wieder freigegeben/angezeigt
|
||||
*
|
||||
**/
|
||||
$("body").on("focusout", "#frmOfenbeladung", function(ele) {
|
||||
if (ele.target.value !== "" && ele.target.className === "tbTXLCode" ) { checkInputs(ele.target); }
|
||||
if (fehlerhafteInputfelder.length === 0 ) { activeateInsertBtn(); }
|
||||
});
|
||||
|
||||
// end region
|
||||
|
||||
function deactiveateInsertBtn(){
|
||||
$('#btnInsertBeladungKF480').removeClass().addClass("mybtn invisible");
|
||||
$('#btnInsertBeladungKF80').removeClass().addClass("mybtn invisible");
|
||||
$('#btnInsertBeladungKF80S').removeClass().addClass("mybtn invisible");
|
||||
}
|
||||
function activeateInsertBtn(){
|
||||
$('#btnInsertBeladungKF480').removeClass().addClass("mybtn");
|
||||
$('#btnInsertBeladungKF80').removeClass().addClass("mybtn");
|
||||
$('#btnInsertBeladungKF80S').removeClass().addClass("mybtn");
|
||||
}
|
||||
|
||||
|
||||
if ( VERBOSE ) { console.log("ofensachen.js loaded ..."); }
|
||||
}); // end $(document).ready
|
||||
103
js/old_stuff.js
Normal file
103
js/old_stuff.js
Normal file
@@ -0,0 +1,103 @@
|
||||
// alte sachen aus dbsachen.js
|
||||
|
||||
DB.loadLetzteBeladung = function(ofenname) {
|
||||
myJSON = { func: "letzteBeladung", ofenname: ofenname };
|
||||
letzteBeladungJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
var cnt = 0;
|
||||
var arr = $.parseJSON(letzteBeladungJSON.responseText);
|
||||
if (arr[1] != "-") {tmparr = arr[1].split("-");$("#tbE01" + ofenname).val(getNextPart(tmparr[0]));$("#SON01" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[2] != "-") {tmparr = arr[2].split("-");$("#tbE02" + ofenname).val(getNextPart(tmparr[0]));$("#SON02" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[3] != "-") {tmparr = arr[3].split("-");$("#tbE03" + ofenname).val(getNextPart(tmparr[0]));$("#SON03" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[4] != "-") {tmparr = arr[4].split("-");$("#tbE04" + ofenname).val(getNextPart(tmparr[0]));$("#SON04" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[5] != "-") {tmparr = arr[5].split("-");$("#tbE05" + ofenname).val(getNextPart(tmparr[0]));$("#SON05" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[6] != "-") {tmparr = arr[6].split("-");$("#tbE06" + ofenname).val(getNextPart(tmparr[0]));$("#SON06" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[7] != "-") {tmparr = arr[7].split("-");$("#tbE07" + ofenname).val(getNextPart(tmparr[0]));$("#SON07" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[8] != "-") {tmparr = arr[8].split("-");$("#tbE08" + ofenname).val(getNextPart(tmparr[0]));$("#SON08" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[9] != "-") {tmparr = arr[9].split("-");$("#tbE09" + ofenname).val(getNextPart(tmparr[0]));$("#SON09" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[10] != "-") {tmparr = arr[10].split("-");$("#tbE10" + ofenname).val(getNextPart(tmparr[0]));$("#SON10" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[11] != "-") {tmparr = arr[11].split("-");$("#tbE11" + ofenname).val(getNextPart(tmparr[0]));$("#SON11" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[12] != "-") {tmparr = arr[12].split("-");$("#tbE12" + ofenname).val(getNextPart(tmparr[0]));$("#SON12" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[13] != "-") {tmparr = arr[13].split("-");$("#tbE13" + ofenname).val(getNextPart(tmparr[0]));$("#SON13" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[14] != "-") {tmparr = arr[14].split("-");$("#tbE14" + ofenname).val(getNextPart(tmparr[0]));$("#SON14" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[15] != "-") {tmparr = arr[15].split("-");$("#tbE15" + ofenname).val(getNextPart(tmparr[0]));$("#SON15" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[16] != "-") {tmparr = arr[16].split("-");$("#tbE16" + ofenname).val(getNextPart(tmparr[0]));$("#SON16" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[17] != "-") {tmparr = arr[17].split("-");$("#tbE17" + ofenname).val(getNextPart(tmparr[0]));$("#SON17" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[18] != "-") {tmparr = arr[18].split("-");$("#tbE18" + ofenname).val(getNextPart(tmparr[0]));$("#SON18" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[19] != "-") {tmparr = arr[19].split("-");$("#tbE19" + ofenname).val(getNextPart(tmparr[0]));$("#SON19" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
if (arr[20] != "-") {tmparr = arr[20].split("-");$("#tbE20" + ofenname).val(getNextPart(tmparr[0]));$("#SON20" + ofenname).val(tmparr[1]); cnt += 1;}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
|
||||
DB.loadLetzteBeladungKF480 = function() {
|
||||
myJSON = { func: "letzteBeladung", ofenname: "KF480" };
|
||||
letzteBeladungJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
var cnt = 0;
|
||||
var arr = $.parseJSON(letzteBeladungJSON.responseText);
|
||||
if (arr[1] != "-") {tmparr = arr[1].split("-");$("#tbE01KF480").val(getNextPart(tmparr[0]));$("#SON01KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[2] != "-") {tmparr = arr[2].split("-");$("#tbE02KF480").val(getNextPart(tmparr[0]));$("#SON02KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[3] != "-") {tmparr = arr[3].split("-");$("#tbE03KF480").val(getNextPart(tmparr[0]));$("#SON03KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[4] != "-") {tmparr = arr[4].split("-");$("#tbE04KF480").val(getNextPart(tmparr[0]));$("#SON04KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[5] != "-") {tmparr = arr[5].split("-");$("#tbE05KF480").val(getNextPart(tmparr[0]));$("#SON05KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[6] != "-") {tmparr = arr[6].split("-");$("#tbE06KF480").val(getNextPart(tmparr[0]));$("#SON06KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[7] != "-") {tmparr = arr[7].split("-");$("#tbE07KF480").val(getNextPart(tmparr[0]));$("#SON07KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[8] != "-") {tmparr = arr[8].split("-");$("#tbE08KF480").val(getNextPart(tmparr[0]));$("#SON08KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[9] != "-") {tmparr = arr[9].split("-");$("#tbE09KF480").val(getNextPart(tmparr[0]));$("#SON09KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[10] != "-") {tmparr = arr[10].split("-");$("#tbE10KF480").val(getNextPart(tmparr[0]));$("#SON10KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[11] != "-") {tmparr = arr[11].split("-");$("#tbE11KF480").val(getNextPart(tmparr[0]));$("#SON11KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[12] != "-") {tmparr = arr[12].split("-");$("#tbE12KF480").val(getNextPart(tmparr[0]));$("#SON12KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[13] != "-") {tmparr = arr[13].split("-");$("#tbE13KF480").val(getNextPart(tmparr[0]));$("#SON13KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[14] != "-") {tmparr = arr[14].split("-");$("#tbE14KF480").val(getNextPart(tmparr[0]));$("#SON14KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[15] != "-") {tmparr = arr[15].split("-");$("#tbE15KF480").val(getNextPart(tmparr[0]));$("#SON15KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[16] != "-") {tmparr = arr[16].split("-");$("#tbE16KF480").val(getNextPart(tmparr[0]));$("#SON16KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[17] != "-") {tmparr = arr[17].split("-");$("#tbE17KF480").val(getNextPart(tmparr[0]));$("#SON17KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[18] != "-") {tmparr = arr[18].split("-");$("#tbE18KF480").val(getNextPart(tmparr[0]));$("#SON18KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[19] != "-") {tmparr = arr[19].split("-");$("#tbE19KF480").val(getNextPart(tmparr[0]));$("#SON19KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[20] != "-") {tmparr = arr[20].split("-");$("#tbE20KF480").val(getNextPart(tmparr[0]));$("#SON20KF480").val(tmparr[1]); cnt += 1;}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
DB.loadLetzteBeladungKF80 = function() {
|
||||
myJSON = { func: "letzteBeladung", ofenname: "KF80" };
|
||||
letzteBeladungJSON = $.ajax({
|
||||
url: DBSACHEN,
|
||||
data: { json: JSON.stringify(myJSON) },
|
||||
async: false,
|
||||
method: "POST"
|
||||
});
|
||||
var cnt = 0;
|
||||
var arr = $.parseJSON(letzteBeladungJSON.responseText);
|
||||
if (arr[1] != "-") {tmparr = arr[1].split("-");$("#tbE01KF80").val(getNextPart(tmparr[0]));$("#SON01KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[2] != "-") {tmparr = arr[2].split("-");$("#tbE02KF80").val(getNextPart(tmparr[0]));$("#SON02KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[3] != "-") {tmparr = arr[3].split("-");$("#tbE03KF80").val(getNextPart(tmparr[0]));$("#SON03KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[4] != "-") {tmparr = arr[4].split("-");$("#tbE04KF80").val(getNextPart(tmparr[0]));$("#SON04KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[5] != "-") {tmparr = arr[5].split("-");$("#tbE05KF80").val(getNextPart(tmparr[0]));$("#SON05KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[6] != "-") {tmparr = arr[6].split("-");$("#tbE06KF80").val(getNextPart(tmparr[0]));$("#SON06KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[7] != "-") {tmparr = arr[7].split("-");$("#tbE07KF80").val(getNextPart(tmparr[0]));$("#SON07KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[8] != "-") {tmparr = arr[8].split("-");$("#tbE08KF80").val(getNextPart(tmparr[0]));$("#SON08KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[9] != "-") {tmparr = arr[9].split("-");$("#tbE09KF80").val(getNextPart(tmparr[0]));$("#SON09KF80").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[10] != "-") {tmparr = arr[10].split("-");$("#tbE10KF80").val(getNextPart(tmparr[0]));$("#SON10KF80").val(tmparr[1]); cnt += 1;}
|
||||
/*
|
||||
if (arr[11] != "-") {tmparr = arr[11].split("-");$("#tbE11KF480").val(getNextPart(tmparr[0]));$("#SON11KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[12] != "-") {tmparr = arr[12].split("-");$("#tbE12KF480").val(getNextPart(tmparr[0]));$("#SON12KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[13] != "-") {tmparr = arr[13].split("-");$("#tbE13KF480").val(getNextPart(tmparr[0]));$("#SON13KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[14] != "-") {tmparr = arr[14].split("-");$("#tbE14KF480").val(getNextPart(tmparr[0]));$("#SON14KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[15] != "-") {tmparr = arr[15].split("-");$("#tbE15KF480").val(getNextPart(tmparr[0]));$("#SON15KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[16] != "-") {tmparr = arr[16].split("-");$("#tbE16KF480").val(getNextPart(tmparr[0]));$("#SON16KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[17] != "-") {tmparr = arr[17].split("-");$("#tbE17KF480").val(getNextPart(tmparr[0]));$("#SON17KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[18] != "-") {tmparr = arr[18].split("-");$("#tbE18KF480").val(getNextPart(tmparr[0]));$("#SON18KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[19] != "-") {tmparr = arr[19].split("-");$("#tbE19KF480").val(getNextPart(tmparr[0]));$("#SON19KF480").val(tmparr[1]); cnt += 1;}
|
||||
if (arr[20] != "-") {tmparr = arr[20].split("-");$("#tbE20KF480").val(getNextPart(tmparr[0]));$("#SON20KF480").val(tmparr[1]); cnt += 1;}
|
||||
*/
|
||||
return cnt;
|
||||
}
|
||||
386
js/rauheiten.js
Normal file
386
js/rauheiten.js
Normal file
@@ -0,0 +1,386 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
var htmlstring = "";
|
||||
var actCnt = 1;
|
||||
var toAdd = true;
|
||||
var lastRow = 0;
|
||||
|
||||
$("body").off("click", "#btnNew");
|
||||
$("body").on("click", "#btnNew", function () {
|
||||
actCnt = 1;
|
||||
htmlstring = "";
|
||||
toAdd = false;
|
||||
$('#btnAdd').trigger("click");
|
||||
toAdd = true;
|
||||
});
|
||||
|
||||
$("body").off("click", "#btnAdd");
|
||||
$("body").on("click", "#btnAdd", function () {
|
||||
var template = '<tr id="%%TXLCODE%%">' +
|
||||
' <td class="trMesswerte">%%CNT%%: </td>' +
|
||||
' <td class="trMesswerte bauteilnr">%%BAUTEIL%% </td>' +
|
||||
' <td class="trMesswerte"><input class="tbMesswerte" type="text" id="LWteil%%CNT%%"></td>' +
|
||||
' <td class="trMesswerte"><input class="tbMesswerte" type="text" id="CWteil%%CNT%%"></td>' +
|
||||
' <td class="trMesswerte"><input class="tbMesswerte" type="hidden" id="TXLCode%%CNT%%" value="%%TXLCODE%%"></td>' +
|
||||
' <td class="trMesswerte"><input class="tbComment" type="text" id="raucomm%%CNT%%"></td>' +
|
||||
' <td id="infoFromDB%%CNT%%"></td>' +
|
||||
'</tr>';
|
||||
|
||||
|
||||
var startCode = $('#tbStartwert').val();
|
||||
var endCode = $('#tbEndwert').val();
|
||||
var startPart = startCode.substring(7);
|
||||
var endPart = endCode.substring(7);
|
||||
var TMPType = startCode.substring(0,3);
|
||||
var TMPTool = startCode.substring(3,5);
|
||||
var TMPRev = startCode.substring(5,7);
|
||||
var StartCodeOhneTyp = startCode.substring(3);
|
||||
var first = true;
|
||||
var actCode = "";
|
||||
|
||||
switch (TMPType) {
|
||||
case "GW1":
|
||||
tableHead = "<thead><tr><th></th><th></th><th>längs</th><th>quer</th><th></th><th>Kommentar</th></tr>" +
|
||||
"<tr class=\"smallhead\"><th></th><th></th><th>(17,5mm)</th><th>(5,6mm)</th></tr></thead>";
|
||||
break;
|
||||
case "GX1":
|
||||
tableHead = "<thead><tr><th></th><th></th><th>längs</th><th>quer</th><th></th><th>Kommentar</th></tr>" +
|
||||
"<tr class=\"smallhead\"><th></th><th></th><th>(5,6mm)</th><th>(1,75mm)</th></tr></thead>"
|
||||
break;
|
||||
case "GA1":
|
||||
tableHead = "<thead><tr><th></th><th></th><th>längs</th><th>quer</th><th></th><th>Kommentar</th></tr>" +
|
||||
"<tr class=\"smallhead\"><th></th><th></th><th>(5,6mm)</th><th>(1,75mm)</th></tr></thead>"
|
||||
break;
|
||||
case "GC1":
|
||||
tableHead = "<thead><tr><th></th><th></th><th>längs</th><th>quer</th><th></th><th>Kommentar</th></tr>" +
|
||||
"<tr class=\"smallhead\"><th></th><th></th><th>(5,6mm)</th><th>(1,75mm)</th></tr></thead>"
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if ( toAdd ) { actCnt = getLastRowNr() + 1; }
|
||||
|
||||
for (i = startPart; i <= endPart; i++) {
|
||||
var toolRevPart = "";
|
||||
var locTmpl = "";
|
||||
//var bauteilstatus;
|
||||
var teilOk = false;
|
||||
var teilNichtOk = 0;
|
||||
|
||||
|
||||
|
||||
if ( first ) {
|
||||
actCode = startCode;
|
||||
first = false;
|
||||
} else {
|
||||
actCode = helper.getNextPart(actCode);
|
||||
}
|
||||
|
||||
// check bauteilstatus
|
||||
//bauteilstatus = DB.getBauteilStatus(actCode);
|
||||
switch (DB.getBauteilStatus(actCode)){
|
||||
case 0:
|
||||
case 1:
|
||||
teilOk = true;
|
||||
break;
|
||||
default:
|
||||
teilNichtOk++;
|
||||
}
|
||||
|
||||
toolRevPart = helper.getToolRevPart(actCode);
|
||||
if ( !teilOk ) { toolRevPart = "<b><i style=\"color: red\">" + toolRevPart + "</i></b>"; }
|
||||
|
||||
locTmpl = template.replace(/%%CNT%%/g, helper.pad(actCnt,2));
|
||||
locTmpl = locTmpl.replace(/%%TXLCODE%%/g, actCode);
|
||||
locTmpl = locTmpl.replace(/%%BAUTEIL%%/, toolRevPart);
|
||||
|
||||
htmlstring = htmlstring + "\n" + locTmpl;
|
||||
|
||||
actCnt++;
|
||||
}
|
||||
if ( toAdd ) {
|
||||
htmlstring = htmlstring;
|
||||
} else {
|
||||
htmlstring = tableHead + htmlstring;
|
||||
}
|
||||
|
||||
$('#tblMesswerte').html(htmlstring);
|
||||
lastRow = getLastRowNr();
|
||||
$("#debug").text("Eingabefelder für " + lastRow + " Bauteile erstellt.");
|
||||
|
||||
//var table = document.getElementById("tblMesswerte");
|
||||
if ( teilNichtOk > 0 ) {
|
||||
swal({
|
||||
title: '<b>Achtung</b>',
|
||||
type: 'warning',
|
||||
html: 'Es wurden Bauteile eingetragen, die nicht in der Datenbank vorhanden sind. Die Messwerte für diese Teile werden nicht in der Datenbank erfasst.<br />Die betroffenen bauteile sind <b style="color: red;">rot</b> markiert.',
|
||||
showCloseButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ok'
|
||||
});
|
||||
}
|
||||
//debugger;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* die ganze Mausrad-Geschichte. Ziemliches Monster geworden!
|
||||
*
|
||||
* mit der Maus über dem Input-Feld hoovern und dann mittels
|
||||
* Mausrad hoch/runter tickern.
|
||||
*
|
||||
* Mit modifier-Keys Shift, Ctrl und beiden
|
||||
* Shift: nur das Tool wird geändert
|
||||
* Strg : nur die Revision wird geändert
|
||||
* beide: der Bauteiltyp wird geändert
|
||||
*
|
||||
* Bei Tool, Rev und Part gibt es noch überprüfungen, ob der
|
||||
* Wert über 99 (bzw. 9999 bei Part) oder auf 0 ticken würde.
|
||||
* Wird jeweils abgefangen. Ein Wert kann niemals 0 sein.
|
||||
* Tool und Rev darf maximal 99 erreichen, Part maximal 9999.
|
||||
*
|
||||
* Bauteiltyp, Toolnummer und Revisionsnummer werden immer in
|
||||
* beiden Input-Feldern geändert (#tbStartwert & #tbEndwert)
|
||||
*
|
||||
* Sollte Part in #tbStartwert größer als der in #tbEndwert sein,
|
||||
* wird #tbEndwert.Part an #tbStartwert angeglichen.
|
||||
* ViceVersa im negativem bei #tbEndwert.Part < #tbStartwert.Part
|
||||
*
|
||||
**/
|
||||
|
||||
$('body').off("mousewheel", "#tbStartwert");
|
||||
$("body").on("mousewheel", "#tbStartwert", function(e) {
|
||||
var curVal = e.currentTarget.value;
|
||||
var dir = e.deltaY;
|
||||
var tmpType = curVal.substring(0,3);
|
||||
var tmpTool = curVal.substring(3,5);
|
||||
var tmpRev = curVal.substring(5,7);
|
||||
var tmpPart = curVal.substring(7);
|
||||
|
||||
if ( dir > 0 ){
|
||||
if ( e.shiftKey &! e.ctrlKey ){
|
||||
var newTool = pad(Number(tmpTool) + 1, 2)
|
||||
if ( newTool >= 99 ) { newTool = "99"; }
|
||||
e.currentTarget.value = tmpType + newTool + tmpRev + tmpPart;
|
||||
$("#tbEndwert").val(tmpType + newTool + tmpRev + tmpPart);
|
||||
} else if ( e.ctrlKey &! e.shiftKey ){
|
||||
var newRev = pad(Number(tmpRev) + 1, 2)
|
||||
if ( newRev >= 99 ) { newRev = "99"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + newRev + tmpPart;
|
||||
$("#tbEndwert").val(tmpType + tmpTool + newRev + tmpPart);
|
||||
} else if ( e.ctrlKey && e.shiftKey){
|
||||
switch (tmpType){
|
||||
case "GW1": newType = "GA1"; break;
|
||||
case "GA1": newType = "GC1"; break;
|
||||
case "GC1": newType = "GX1"; break;
|
||||
case "GX1": newType = "GW1"; break;
|
||||
}
|
||||
e.currentTarget.value = newType + tmpTool + tmpRev + tmpPart;
|
||||
$("#tbEndwert").val(newType + tmpTool + tmpRev + tmpPart);
|
||||
} else {
|
||||
var newPart = pad(Number(tmpPart) + 1, 4);
|
||||
if ( newPart >= 9999 ) { newPart = "9999"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + tmpRev + newPart;
|
||||
var endWert = $("#tbEndwert");
|
||||
var endPart = Number(endWert[0].value.substring(7));
|
||||
|
||||
if ( endPart < Number(newPart) ) {
|
||||
endWert[0].value = tmpType + tmpTool + tmpRev + newPart;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( e.shiftKey &! e.ctrlKey ){
|
||||
var newTool = pad(Number(tmpTool) - 1, 2)
|
||||
if ( newTool <= 0 ) { newTool = "01"; }
|
||||
e.currentTarget.value = tmpType + newTool + tmpRev + tmpPart;
|
||||
$("#tbEndwert").val(tmpType + newTool + tmpRev + tmpPart);
|
||||
} else if ( e.ctrlKey &! e.shiftKey ){
|
||||
var newRev = pad(Number(tmpRev) - 1, 2)
|
||||
if ( newRev <= 0 ) { newRev = "01"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + newRev + tmpPart;
|
||||
$("#tbEndwert").val(tmpType + tmpTool + newRev + tmpPart);
|
||||
} else if ( e.ctrlKey && e.shiftKey){
|
||||
switch (tmpType){
|
||||
case "GW1": newType = "GA1"; break;
|
||||
case "GA1": newType = "GC1"; break;
|
||||
case "GC1": newType = "GX1"; break;
|
||||
case "GX1": newType = "GW1"; break;
|
||||
}
|
||||
e.currentTarget.value = newType + tmpTool + tmpRev + tmpPart;
|
||||
$("#tbEndwert").val(newType + tmpTool + tmpRev + tmpPart);
|
||||
} else {
|
||||
var newPart = pad(Number(tmpPart) - 1, 4);
|
||||
if ( newPart <= 0 ) { newPart = "0001"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + tmpRev + newPart;
|
||||
var endWert = $("#tbEndwert");
|
||||
var endPart = Number(endWert[0].value.substring(7));
|
||||
|
||||
if ( endPart < Number(newPart) ) {
|
||||
endWert[0].value = tmpType + tmpTool + tmpRev + newPart;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$('body').off("mousewheel", "#tbEndwert");
|
||||
$("body").on("mousewheel", "#tbEndwert", function(e) {
|
||||
var curVal = e.currentTarget.value;
|
||||
var dir = e.deltaY;
|
||||
var tmpType = curVal.substring(0,3);
|
||||
var tmpTool = curVal.substring(3,5);
|
||||
var tmpRev = curVal.substring(5,7);
|
||||
var tmpPart = curVal.substring(7);
|
||||
|
||||
if ( dir > 0 ){
|
||||
if ( e.shiftKey &! e.ctrlKey ){
|
||||
var newTool = pad(Number(tmpTool) + 1, 2)
|
||||
if ( newTool >= 99 ) { newTool = "99"; }
|
||||
e.currentTarget.value = tmpType + newTool + tmpRev + tmpPart;
|
||||
$("#tbStartwert").val(tmpType + newTool + tmpRev + tmpPart);
|
||||
} else if ( e.ctrlKey &! e.shiftKey ){
|
||||
var newRev = pad(Number(tmpRev) + 1, 2)
|
||||
if ( newRev >= 99 ) { newRev = "99"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + newRev + tmpPart;
|
||||
$("#tbStartwert").val(tmpType + tmpTool + newRev + tmpPart);
|
||||
} else if ( e.ctrlKey && e.shiftKey){
|
||||
switch (tmpType){
|
||||
case "GW1": newType = "GA1"; break;
|
||||
case "GA1": newType = "GC1"; break;
|
||||
case "GC1": newType = "GX1"; break;
|
||||
case "GX1": newType = "GW1"; break;
|
||||
}
|
||||
e.currentTarget.value = newType + tmpTool + tmpRev + tmpPart;
|
||||
$("#tbStartwert").val(newType + tmpTool + tmpRev + tmpPart);
|
||||
} else {
|
||||
var newPart = pad(Number(tmpPart) + 1, 4);
|
||||
if ( newPart >= 9999 ) { newPart = "9999"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + tmpRev + newPart;
|
||||
var startWert = $("#tbStartwert");
|
||||
var startPart = Number(startWert[0].value.substring(7));
|
||||
|
||||
if ( startPart > Number(newPart) ) {
|
||||
startWert[0].value = tmpType + tmpTool + tmpRev + newPart;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( e.shiftKey &! e.ctrlKey ){
|
||||
var newTool = pad(Number(tmpTool) - 1, 2)
|
||||
if ( newTool <= 0 ) { newTool = "01"; }
|
||||
e.currentTarget.value = tmpType + newTool + tmpRev + tmpPart;
|
||||
$("#tbStartwert").val(tmpType + newTool + tmpRev + tmpPart);
|
||||
} else if ( e.ctrlKey &! e.shiftKey ){
|
||||
var newRev = pad(Number(tmpRev) - 1, 2)
|
||||
if ( newRev <= 0 ) { newRev = "01"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + newRev + tmpPart;
|
||||
$("#tbStartwert").val(tmpType + tmpTool + newRev + tmpPart);
|
||||
} else if ( e.ctrlKey && e.shiftKey){
|
||||
switch (tmpType){
|
||||
case "GW1": newType = "GA1"; break;
|
||||
case "GA1": newType = "GC1"; break;
|
||||
case "GC1": newType = "GX1"; break;
|
||||
case "GX1": newType = "GW1"; break;
|
||||
}
|
||||
e.currentTarget.value = newType + tmpTool + tmpRev + tmpPart;
|
||||
$("#tbStartwert").val(newType + tmpTool + tmpRev + tmpPart);
|
||||
} else {
|
||||
var newPart = pad(Number(tmpPart) - 1, 4);
|
||||
if ( newPart <= 0 ) { newPart = "0001"; }
|
||||
e.currentTarget.value = tmpType + tmpTool + tmpRev + newPart;
|
||||
var startWert = $("#tbStartwert");
|
||||
var startPart = Number(startWert[0].value.substring(7));
|
||||
|
||||
if ( startPart > Number(newPart) ) {
|
||||
startWert[0].value = tmpType + tmpTool + tmpRev + newPart;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
|
||||
$("body").off("keypress", "#tblMesswerte input");
|
||||
$("body").on("keypress", "#tblMesswerte input", function(e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
if (keyCode === 13) {
|
||||
var obj = e.target
|
||||
|
||||
messwert = obj.value
|
||||
|
||||
if ( !$.isNumeric(messwert) ) {
|
||||
swal("Fehler", "Das ist keine Zahl", "error");
|
||||
return;
|
||||
}
|
||||
|
||||
dieseTB = obj.id;
|
||||
messpunkt = obj.id.substring(0,2);
|
||||
messreihe = obj.id.substring(6);
|
||||
nextrow = pad(Number(messreihe) + 1,2);
|
||||
lastRow = getLastRowNr();
|
||||
nextTB = "#" + messpunkt + "teil" + nextrow;
|
||||
|
||||
//console.log(dieseTB + ": " + messpunkt +", " + messreihe + ", " + messwert);
|
||||
//console.log("nextrow: " + nextrow);
|
||||
if ( $(nextTB).length != 0 ) {
|
||||
$(nextTB).focus();
|
||||
} else {
|
||||
if ( nextrow >= lastRow && messpunkt !== "CW"){
|
||||
$("#CWteil01").focus();
|
||||
} else {
|
||||
alert("fertif");
|
||||
}
|
||||
}
|
||||
|
||||
if ( messpunkt === "CW" ) {
|
||||
var messwerte = {};
|
||||
messwerte.func = "updateBauteilRauheiten";
|
||||
messwerte.TXLCode = $("#TXLCode" + messreihe)[0].value;
|
||||
messwerte.LW = $("#LWteil" + messreihe)[0].value;
|
||||
messwerte.CW = $("#CWteil" + messreihe)[0].value;
|
||||
messwerte.raudate = heute() + " " + jetzt();
|
||||
messwerte.raucomm = $("#raucomm" + messreihe)[0].value;
|
||||
|
||||
if ( !$.isNumeric(messwerte.LW) || !$.isNumeric(messwerte.CW)) {
|
||||
$("#infoFromDB" + messreihe).html("<b style=\"color: red; font-size: 0.85em;\">Keine Zahl!</b>");
|
||||
return;
|
||||
}
|
||||
|
||||
updateResult = DB.sendJSONGeneric(messwerte);
|
||||
//$("#infoFromDB" + messreihe).text(messwerte.TXLCode + "/" + messwerte.LW + "/" + messwerte.CW + "/" + messwerte.raudate + "/" + messwerte.raucomm);
|
||||
if (updateResult.responseText === "1") {
|
||||
$("#infoFromDB" + messreihe).html("<i>ok</i>");
|
||||
} else {
|
||||
$("#infoFromDB" + messreihe).html("<b style=\"color: red\">FEHLER</b>");
|
||||
}
|
||||
|
||||
//console.log(messwerte);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function getLastRowNr(){
|
||||
// die zwei oberen rows bedenken (header längs/quer und die messlängenangaben)
|
||||
var table = document.getElementById("tblMesswerte");
|
||||
var lastCnt = 0;
|
||||
|
||||
for (var i = 0, row; row = table.rows[i]; i++) {
|
||||
lastCnt = i - 1;
|
||||
}
|
||||
return lastCnt;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
60
js/riesenstringineinarraypacken.js
Normal file
60
js/riesenstringineinarraypacken.js
Normal file
@@ -0,0 +1,60 @@
|
||||
|
||||
e = [];
|
||||
sql = [];
|
||||
|
||||
e['TXLCode'] = "GW101010001";
|
||||
e['MessDate'] = "3333-12-31";
|
||||
e['RauDate'] = "2222-11-31";
|
||||
e['Lieferbox'] = 23;
|
||||
e['OL1'] = 232.23;
|
||||
e['OL2'] = 233.22;
|
||||
e['OW1'] = 232.23;
|
||||
e['OW2'] = 232.23;
|
||||
e['R11'] = 23.32;
|
||||
e['R12'] = 23.32;
|
||||
e['R13'] = 23.32;
|
||||
e['R21'] = 23.32;
|
||||
e['R22'] = 23.32;
|
||||
e['R23'] = 23.32;
|
||||
e['R31'] = 23.32;
|
||||
e['R32'] = 23.32;
|
||||
e['R33'] = 23.32;
|
||||
e['R41'] = 23.32;
|
||||
e['R42'] = 23.32;
|
||||
e['R43'] = 23.32;
|
||||
e['LW'] = 23.32;
|
||||
e['CW'] = 23.32;
|
||||
e['InfoMessComm'] = "IMC";
|
||||
e['InfoRauComm'] = "IRC";
|
||||
|
||||
sql.push(`INSERT INTO Bauteile (
|
||||
TXLCode, Messdatum, Rauheitsdatum, Lieferbox,
|
||||
OL1, OL2, OW1, OW2,
|
||||
R11, R12, R13,
|
||||
R21, R22, R23,
|
||||
R31, R32, R33,
|
||||
R41, R42, R43,
|
||||
CW, LW, MessComm, RauComm
|
||||
) VALUES (
|
||||
"${e['TXLCode']}", "${e['MessDate']}", "${e['RauDate']}", ${e['Lieferbox']},
|
||||
${e['OL1']}, ${e['OL2']}, ${e['OW1']}, ${e['OW2']},
|
||||
${e['R11']}, ${e['R12']}, ${e['R13']},
|
||||
${e['R21']}, ${e['R22']}, ${e['R23']},
|
||||
${e['R31']}, ${e['R32']}, ${e['R33']},
|
||||
${e['R41']}, ${e['R42']}, ${e['R43']},
|
||||
${e['LW']}, ${e['CW']}, "${e['InfoMessComm']}", "${e['InfoRauComm']}"
|
||||
) ON DUPLICATE KEY UPDATE
|
||||
TXLCode = "${e['TXLCode']}", Messdatum = "${e['MessDate']}", Rauheitsdatum = "${e['RauDate"']}",
|
||||
Lieferbox = "${e['Lieferbox']}",
|
||||
OL1 = ${e['OL1']}, OL2 = ${e['OL2']}, OW1 = ${e['OW1']}, OW2 = ${e['OW2']},
|
||||
R11 = ${e['R11']}, R12 = ${e['R12']}, R13 = ${e['R13']},
|
||||
R21 = ${e['R21']}, R22 = ${e['R22']}, R23 = ${e['R23']},
|
||||
R31 = ${e['R31']}, R32 = ${e['R32']}, R33 = ${e['R33']},
|
||||
R41 = ${e['R41']}, R42 = ${e['R42']}, R43 = ${e['R43']},
|
||||
CW = ${e['LW']}, LW = ${e['CW']}, MessComm = "${e['InfoMessComm']}", RauComm = "${e['InfoRauComm']}";`);
|
||||
|
||||
|
||||
|
||||
sql.forEach(function(e,i){
|
||||
console.log("i: ", i, " | e: ", e );
|
||||
})
|
||||
1305
js/swa2.js
Normal file
1305
js/swa2.js
Normal file
File diff suppressed because it is too large
Load Diff
1031
js/tablesorter.js
Normal file
1031
js/tablesorter.js
Normal file
File diff suppressed because it is too large
Load Diff
48
js/test.js
Normal file
48
js/test.js
Normal file
@@ -0,0 +1,48 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
var bigArr = [
|
||||
[1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9 ],
|
||||
[2, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9 ],
|
||||
[3, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9 ]
|
||||
];
|
||||
|
||||
var toFind = 3.7;
|
||||
|
||||
function logArrayElements(element, index, array) {
|
||||
console.log('a[' + index + '] = ' + element);
|
||||
}
|
||||
|
||||
function checkIfDrinne(ele, idx, arr, search){
|
||||
debugger;
|
||||
var tmpArr = ele.split(",");
|
||||
if ( tmpArr.includes(search) ) {
|
||||
alert(search + " ist schon in Box " + tmpArr[0])
|
||||
}
|
||||
}
|
||||
|
||||
bigArr.forEach(checkIfDrinne(3.3));
|
||||
|
||||
|
||||
});
|
||||
|
||||
function nochMehrTestereien() {
|
||||
|
||||
myJSON = DB.getBoxinhalte("3040");
|
||||
$('#debug').text(myJSON);
|
||||
boxInhalte = $.parseJSON(DB.getBoxinhalte("3040"));
|
||||
var toFind = "GW101020670";
|
||||
|
||||
function logArrayElements(element, index, array) {
|
||||
var tmpArr = element.toString().split(",");
|
||||
|
||||
if ( tmpArr.includes(toFind) ) {
|
||||
alert(toFind + " ist schon in Box " + tmpArr[0]);
|
||||
}
|
||||
}
|
||||
|
||||
testArr = Array.from(boxInhalte);
|
||||
for (var box in testArr) {
|
||||
console.log(box);
|
||||
//box.forEach(logArrayElements);
|
||||
}
|
||||
}
|
||||
23
js/test2.js
Normal file
23
js/test2.js
Normal file
@@ -0,0 +1,23 @@
|
||||
$(document).ready( function() {
|
||||
|
||||
console.log("loaded ...");
|
||||
|
||||
$("#btn").click( function() {
|
||||
var html = '<p id="p1">Das ist Paragraph p1</p> \
|
||||
<p id="p2">Das ist Paragraph p2</p> \
|
||||
<p id="p3">Das ist Paragraph p3</p>';
|
||||
|
||||
$('#content').html(html);
|
||||
});
|
||||
|
||||
|
||||
$('p1').click( function() {
|
||||
console.log("p1 clicked");
|
||||
});
|
||||
|
||||
$("body").delegate( "#p1", "click", function() {
|
||||
console.log("p1.delegate");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
1
js/test2.min.js
vendored
Normal file
1
js/test2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
js/toJSON.js
Normal file
1
js/toJSON.js
Normal file
@@ -0,0 +1 @@
|
||||
!function($){"use strict";var escape=/["\\\x00-\x1f\x7f-\x9f]/g,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},hasOwn=Object.prototype.hasOwnProperty;$.toJSON="object"==typeof JSON&&JSON.stringify?JSON.stringify:function(a){if(null===a)return"null";var b,c,d,e,f=$.type(a);if("undefined"===f)return void 0;if("number"===f||"boolean"===f)return String(a);if("string"===f)return $.quoteString(a);if("function"==typeof a.toJSON)return $.toJSON(a.toJSON());if("date"===f){var g=a.getUTCMonth()+1,h=a.getUTCDate(),i=a.getUTCFullYear(),j=a.getUTCHours(),k=a.getUTCMinutes(),l=a.getUTCSeconds(),m=a.getUTCMilliseconds();return 10>g&&(g="0"+g),10>h&&(h="0"+h),10>j&&(j="0"+j),10>k&&(k="0"+k),10>l&&(l="0"+l),100>m&&(m="0"+m),10>m&&(m="0"+m),'"'+i+"-"+g+"-"+h+"T"+j+":"+k+":"+l+"."+m+'Z"'}if(b=[],$.isArray(a)){for(c=0;c<a.length;c++)b.push($.toJSON(a[c])||"null");return"["+b.join(",")+"]"}if("object"==typeof a){for(c in a)if(hasOwn.call(a,c)){if(f=typeof c,"number"===f)d='"'+c+'"';else{if("string"!==f)continue;d=$.quoteString(c)}f=typeof a[c],"function"!==f&&"undefined"!==f&&(e=$.toJSON(a[c]),b.push(d+":"+e))}return"{"+b.join(",")+"}"}},$.evalJSON="object"==typeof JSON&&JSON.parse?JSON.parse:function(str){return eval("("+str+")")},$.secureEvalJSON="object"==typeof JSON&&JSON.parse?JSON.parse:function(str){var filtered=str.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered))return eval("("+str+")");throw new SyntaxError("Error parsing JSON, source is not valid.")},$.quoteString=function(a){return a.match(escape)?'"'+a.replace(escape,function(a){var b=meta[a];return"string"==typeof b?b:(b=a.charCodeAt(),"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16))})+'"':'"'+a+'"'}}(jQuery);
|
||||
BIN
media/ding.wav
Normal file
BIN
media/ding.wav
Normal file
Binary file not shown.
BIN
media/error.mp3
Normal file
BIN
media/error.mp3
Normal file
Binary file not shown.
BIN
media/hail.mp3
Normal file
BIN
media/hail.mp3
Normal file
Binary file not shown.
BIN
media/hail.ogg
Normal file
BIN
media/hail.ogg
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user