This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> </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="_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> </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="_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scale: ['#ffffb2', '#bd0026'], | |
| steps: 5, | |
| mode: 'q', | |
| style: { | |
| color: '#a12f19', | |
| weight: 0.2, | |
| fillOpacity: 0.85 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Highcharts.chart('container', { | |
| chart: { | |
| type: 'line', | |
| selectionMarkerFill: 'rgb(255, 102, 102)' | |
| }, | |
| title: { | |
| text: 'Sravnenie' | |
| }, | |
| subtitle: { | |
| text: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| помогло если в 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(); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://codesandbox.io/s/r0ZR7oo64 |
OlderNewer