Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


Save Automatically?

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>
  <p>Выберите город в подсказках, чтобы увидеть его идентификаторы в службах доставки СДЭК, Boxberry и DPD:</p>
  <input id="city" name="city" type="text" placeholder="Город или н/п" />
  <p>СДЭК: <span id="cdek_id"></span></p>
  <p>Boxberry: <span id="boxberry_id"></span></p>
  <p>DPD: <span id="dpd_id"></span></p>



                .info p {
  background: #31b0d5;
  margin 0;
  padding: 5px;

.container {
  width: 50em;

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


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

var $city = $("#city");
var $boxberry = $("#boxberry_id");
var $cdek = $("#cdek_id");
var $dpd = $("#dpd_id");

function loadDelivery(suggestion) {
  var kladr_id =;
  if (kladr_id.length > 13) {
    // план. структура
    kladr_id = kladr_id.substr(0, 11) + "00";
  .done(function(response) {
    if (response.suggestions.length == 0) {
    } else {
  .fail(function() {

function fetchDelivery(kladr_id) {
  var serviceUrl = "";
  var request = {
    "query": kladr_id
  var params = {
    type: "POST",
    contentType: "application/json",
    headers: {
      "Authorization": "Token " + token
    data: JSON.stringify(request)
	return $.ajax(serviceUrl, params);

function showDelivery(suggestion) {

function clearDelivery() {

  token: token,
  type: "ADDRESS",
  hint: false,
  bounds: "region-settlement",
  onSelect: loadDelivery