Чтобы привязать чат к узнанному на сайте пользователю, задайте свойство clientId в объекте ChatraSetup перед кодом виджета:
<script>
ChatraSetup = {
clientId: 'sf87fasdfFF8' // любая уникальная строка
};
</script>| { | |
| "customStrings": { | |
| "welcome": "Мы рады помочь!", | |
| "chatWithUs": "Напишите нам, мы онлайн!", | |
| "leaveUsAMessage": "Напишите нам", | |
| "mobile_chatWithUs": "Чат", | |
| "mobile_leaveUsAMessage": "Сообщение", | |
| "offlineNote": "Задайте вопрос — мы ответим на почту или здесь.", | |
| "bot_thanksForMessage": "Спасибо за сообщение!", | |
| "bot_startOnline": "Вам ответят в ближайшее время.", |
| Chtr.timezones = { | |
| 'Pacific/Midway': { | |
| en: 'Midway Island, American Samoa', | |
| ru: '', | |
| data: 'Pacific/Midway|LMT NST BST SST|bm.M b0 b0 b0|0123|-2nDMB.c 2gVzB.c EyM0|37e2' | |
| }, | |
| 'Pacific/Honolulu': { | |
| en: 'Hawaii', | |
| ru: '', | |
| data: 'Pacific/Honolulu|HST HDT HST|au 9u a0|010102|-1thLu 8x0 lef0 8Pz0 46p0|37e4' |
| { | |
| "customStrings": { | |
| "welcome": { | |
| "en": "We are here to help!", | |
| "ru": "Мы рады помочь!" | |
| }, | |
| "chatWithUs": { | |
| "en": "Chat with us, we are online!", | |
| "ru": "Напишите нам, мы онлайн!" | |
| }, |
| { | |
| _id: "y3iK3rSwwHTSmQ5Sh", | |
| createdAt: 1403426169619, | |
| description: "Русско-британский институт управления, 24 июня 2014", | |
| show: "all", | |
| slides: [ | |
| { | |
| class: "cover shout", | |
| code: "<img src=\"http://www.creativeapplications.net/wp-content/uploads/2009/09/snail00.png\" alt=\"\">\r\n\r\n## <a style=\"color: #fff;;\" href=\"http://sho.io/gd\">sho.io/gd</a>\r\n\r\n<p class=\"title place t\">Презентация на вашем устройстве</p>\r\n\r\n<p class=\"comment place b r\"><a href=\"http://www.creativeapplications.net/processing/the-snail-on-the-slope-processing\">Image from 'The Snail on the Slope'</a>, by Vladimir Todorović, Processing</p>\r\n\r\n<style>\r\n\t.half {\r\n\t\twidth: 50%;\r\n\t}\r\n\tp {\r\n\t\twidth: 80%;\r\n\t\tline-height: 140%;\r\n\t}\r\n\t.white {\r\n\t\tcolor: #fff;\r\n\t}\r\n\r\n\t.smallcapitals {\r\n\t\tfont-size: .875em;\r\n\t\tletter-spacing: .15em;\r\n\t\tmargin-right: -.15em;\r\n\t }\r\n\r\n\t.overbox {\r\n\t\tpadding: 0 1em;\r\n\t\tcolor: #f0f0f0;\r\n\t\tbackground-color: |
| // после scrollyeah.js | |
| $(function () { | |
| // ↓ селектор активного блока | |
| $('.scrollyeah .one.active').each(function () { | |
| var $current = $(this); | |
| var $shaft = $current.parents('.scrollyeah__shaft'); | |
| var $scrollyeah = $current.parents('.scrollyeah'); | |
| if (!$current.length || !$shaft.length || !$scrollyeah.length) { | |
| return console.warn('Незачем крутить :-/'); |
Умелый, ответственный, проактивный.
Фронтендер мечты.
Лучший из тех, с кем я работал.
Новый крутой фронтенд http://getwear.com/ — его рук дело. Гетвеару жаль отпускать Олега, но стартапу иногда приходится делать крутые виражи.
| var data = [{img: '1.jpg', html: '<div><a></a></div>'}, {img: '2.jpg', html: '<div><a></a></div>'}] | |
| loaded; | |
| $('#fotorama') | |
| .on('fotorama:load fotorama:error', function (e, fotorama) { | |
| if (!loaded) fotorama.load(data); | |
| loaded = true; | |
| }) | |
| .fotorama({ | |
| data: [data[0]] |
| DirectoryIndex index.php | |
| ErrorDocument 404 "Looks like mod_rewrite does not work. Please set url_composition to 'real' in user/config.php then go to .../?go=@sync and then back to front page of your blog." | |
| Options -Indexes -MultiViews +FollowSymLinks | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| # Next lines fix mod_rewrite's trailing slash bug |
| <?php | |
| class NeasdenGroup_fotorama implements NeasdenGroup { | |
| private $neasden = null; | |
| function __construct ($neasden) { | |
| $this->neasden = $neasden; | |
| $neasden->require_line_class ('picture'); |