Skip to content

Instantly share code, notes, and snippets.

View lysenko-sergey-developer's full-sized avatar
💯

Sergey Lysenko lysenko-sergey-developer

💯
View GitHub Profile
@lysenko-sergey-developer
lysenko-sergey-developer / gist:57dd4fa32bb6e6c22f728374d303eedd
Last active May 18, 2017 13:10
font-awesome icon in highcharts drilUpButton
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<script>
Highcharts.setOptions({
lang: {
drillUpText: '\uf0a8'
}
var obj = {
dilanka:`<ul class='info_ul'><li><div class="label">Кадастровий номер:</div><span><strong>3521786700:02:000:0393</strong></span></li><li><div class="label">Тип власності:</div>Приватна власність</li><li><div class="label">Цільове призначення:</div>ведення товарного сільськогосподарського виробництва</li><li><div class="label">Площа:</div>5.8346 га</li><li><br/><div style="font-weight: normal;font-size: 11px;"><a class="open_request_excerpt" data-cadnum="3521786700:02:000:0393" href="javascript:;"><strong>Замовити Витяг про земельну ділянку</strong></a></div></li><li><br/><div style="font-weight: normal;font-size: 11px;" class="hidden"><a href="https://e.land.gov.ua/back/me/?cad_num=3521786700:02:000:0393" target="_blank" style="color: #9fbeea;"><strong>Замовити Витяг про нормативну грошову оцінку</strong></a></div>&nbsp;</li><li><div style="font-weight: normal;font-size: 11px;" class="hidden"><a href="https://e.land.gov.ua/back/cadaster/get/data/cad_num?cad_num=3521786700:02:000:0393" target="_
var obj = {
dilanka:`<ul class='info_ul'><li><div class="label">Кадастровий номер:</div><span><strong>3521786700:02:000:0393</strong></span></li><li><div class="label">Тип власності:</div>Приватна власність</li><li><div class="label">Цільове призначення:</div>ведення товарного сільськогосподарського виробництва</li><li><div class="label">Площа:</div>5.8346 га</li><li><br/><div style="font-weight: normal;font-size: 11px;"><a class="open_request_excerpt" data-cadnum="3521786700:02:000:0393" href="javascript:;"><strong>Замовити Витяг про земельну ділянку</strong></a></div></li><li><br/><div style="font-weight: normal;font-size: 11px;" class="hidden"><a href="https://e.land.gov.ua/back/me/?cad_num=3521786700:02:000:0393" target="_blank" style="color: #9fbeea;"><strong>Замовити Витяг про нормативну грошову оцінку</strong></a></div>&nbsp;</li><li><div style="font-weight: normal;font-size: 11px;" class="hidden"><a href="https://e.land.gov.ua/back/cadaster/get/data/cad_num?cad_num=3521786700:02:000:0393" target="_
scale: ['#ffffb2', '#bd0026'],
steps: 5,
mode: 'q',
style: {
color: '#a12f19',
weight: 0.2,
fillOpacity: 0.85
},
let a = [12, -12, 11, 8, 65, 4, 3, 60, 0, 0, 3]
function compareModRevert(a,b ) {
return Math.abs(b) > Math.abs(a)
}
function getMax(arr) {
let i = [0, 1, 2]
if (arr.length < 3) {
return
Highcharts.chart('container', {
chart: {
type: 'line',
selectionMarkerFill: 'rgb(255, 102, 102)'
},
title: {
text: 'Sravnenie'
},
subtitle: {
text: false
let seven = [3, 4, 67, 7, 7, 70, 123217545, "stg7", "7str", "7"];
((n, arr) => {
let nArr = []
arr.map(i => {
let s = i.toString()
if (s.match(/7/g)) {
nArr.push(i)
}
for (let i of objP.features) {
for (let j of objM.features) {
let t = false
arr.filter(n => {
if (n.distr === j.distr) {
t = true
}
})
if (!t) {
помогло если в request поставить заголовки правильние: request({
uri: website_url,
method: 'GET',
encoding: 'binary'
}, function (error, response, body) {
body = new Buffer(body, 'binary');
conv = new iconv.Iconv('windows-1251', 'utf8');
body = conv.convert(body).toString();
}
});