c5_labsci/web/admin/demo/bs/b64/farm1_c1.js

26 lines
799 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function ciy_chart_farm1_c1(opdata) {
this.func = ['farm_c1'];
this.lastdata = {};
this.resize = function () {
}
this.setdata = function (funame, data) {
if (!data)
return;
this.lastdata[funame] = data;
$5('[data-bank]', opdata.container).text(data.farm.name);
}
this.distory = function () {
}
opdata.container.append(`
<div style="font-size: 1.5em;padding-bottom: 0.2em;background: linear-gradient(to bottom, #d2eeff, #129fe3);text-align:center; background-clip: text;-webkit-background-clip: text; color: transparent;letter-spacing: 0.2em; font-weight: bolder;" data-bank> </div>
`);
var style = document.createElement("style");
style.innerHTML = `
`;
window.document.head.appendChild(style);
}