Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <section class="container">
  <h1>Подсказки по организациям без филиалов</h1>
  <input id="party" name="party" type="text" placeholder="Введите название, ИНН, ОГРН или адрес организации" />

<section class="result">
  <p id="type"></p>
  <div class="row">
    <label>Краткое наименование</label>
    <input id="name_short">
  <div class="row">
    <label>Полное наименование</label>
    <input id="name_full">
  <div class="row">
    <label>ИНН / КПП</label>
    <input id="inn_kpp">
  <div class="row">
      <input id="address">



                input {
  font-size: 16px;
  padding: 4px;

.result {
  width: 50%;
  min-width: 300px;

.row {
  margin-top: 1em;

.row label {
  display: block;
  min-width: 10em;

.row input, .row textarea {
  width: 100%;



                // Замените на свой API-ключ
var token = "7fd18aaabd7d53ffa4846e4521c1f736c13490eb";

function join(arr /*, separator */) {
  var separator = arguments.length > 1 ? arguments[1] : ", ";
  return arr.filter(function(n){return n}).join(separator);

function typeDescription(type) {
  var TYPES = {
    'INDIVIDUAL': 'Индивидуальный предприниматель',
    'LEGAL': 'Организация'
  return TYPES[type];

function showSuggestion(suggestion) {
  var data =;
  if (!data)
    typeDescription(data.type) + " (" + data.type + ")"

  if (
    $("#name_short").val(join([data.opf && data.opf.short || "", ||], " "));
  if ( &&
    $("#name_full").val(join([data.opf && data.opf.full || "",], " "));
  $("#inn_kpp").val(join([data.inn, data.kpp], " / "));
  if (data.address)

  token: token,
  type: "PARTY",
  count: 5,
  params: {
    branch_type: ["MAIN"],
  onSelect: showSuggestion