Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Пример страницы с виджетом</title>
	</head>
	
	<button onclick="OmniWidgetApi.call('hide_btn')">Скрыть виджет</button>
	<button onclick="OmniWidgetApi.call('show_btn')">Показать виджет</button>
	<button onclick="OmniWidgetApi.call('open')">Открыть виджет</button>
	<button onclick="OmniWidgetApi.call('close')">Закрыть виджет</button>
	<button onclick="OmniWidgetApi.call('open_widget')">Открыть форму запроса</button>
  <button onclick="OmniWidgetApi.call('identify',{
          user_full_name: 'Василий Пукин', //системное поле
					user_email: 'vas_pup@yandex.ru', //системное поле
					user_phone: '+78001000000', //системное поле
					company_name: 'Мосгорстрой', //системное поле
					company_position: 'директор по маркетингу', //системное поле
					user_note: 'Подумывает над оплатой пакета PRO', //системное поле
					subject: 'Персональнация демонстрация по Скайпу', //системное поле
					priority: 2, //системное поле (1 - низкий, 2 - средний, 3 - высокий, 4 - критический)
					cf_39: 'web', //кастомное поле (id можно получить через API)
					cf_34: true,  //кастомное поле (id можно получить через API)
					purchases: 12, //прочая информация, которая попадает в заметку
					'Partner URL': 'http://robotsrule.ru/info.php' //прочая информация, которая попадает в заметку
				});"
> Заполнить поля формы обращения по почте</button>
  <button onclick="OmniWidgetApi.call('reset')">Очистить поля формы</button>
  

    <body>
<!-- Start of Omnidesk Widget script {literal}-->
<script>
!function(e,o){!window.omni?window.omni=[]:'';window.omni.push(o);o.g_config={widget_id:"14302-hr8ar8jv"}; o.type_widget = "messengers_mail"; o.email_widget=o.email_widget||{};var w=o.email_widget;w.readyQueue=[];o.config=function(e){ this.g_config.user=e};w.ready=function(e){this.readyQueue.push(e)};var r=e.getElementsByTagName("script")[0];c=e.createElement("script");c.type="text/javascript",c.async=!0;c.src="https://omnidesk.ru/bundles/acmesite/js/cwidget0.2.min.js";r.parentNode.insertBefore(c,r)}(document,[]);
</script>
<!-- End of Omnidesk Widget script {/literal}-->
    </body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console