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
| console.log('hi!') |
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
| (function(w, n) { w[n] | |
| = w[n] || []; | |
| w[n].push(() => { | |
| w.YandexZen.renderWidget({ | |
| clid: ['9110', '9111'], // partner's identifier (for testing purposes only) | |
| container: '.widget-container', // element selector or dom-element where the widget will be inserted | |
| successCallback: function () { // called when the widget is inserted successfully | |
| console.log('widget mount succeed'); // replace function body with your handler or delete this field | |
| }, | |
| failCallback: function () { // called in case of problem while widget insertion |
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
| Index: common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java (date 1494401068000) | |
| +++ common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java (revision ) | |
| @@ -31,9 +31,9 @@ | |
| */ | |
| @Import({ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 fs = require('fs'); | |
| var page = require('webpage').create(); | |
| page.open('file:///' + fs.absolute('input.svg'), function() { | |
| page.render('result.png'); | |
| phantom.exit(); | |
| }); |
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
| 'use strict'; | |
| // https://github.com/domenic/svg2png/blob/master/lib/converter.js | |
| // https://github.com/amir20/phantomjs-node | |
| const phantom = require('phantom'), | |
| fs = require('fs'); | |
| const PREFIX = 'data:image/svg+xml;base64,'; | |
| const srcDir = '../files/test', |
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
| node_modules | |
| style.css |
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
| window.addEventListener("load", function() { | |
| var resultMessage = ""; | |
| var defaultName = "Japan"; | |
| var name = defaultName; // по умолчанию будет выбрано Japan | |
| var askPopulation = function() { | |
| var message = (resultMessage && resultMessage+"\n") + "Put country or city name"; | |
| // Я бы никогда не стал использовать prompt, но так написано в задании =) | |
| name = window.prompt(message, name); | |
| if (name && name.trim().length > 0) { | |
| name = name.trim(); |