JavaScript API can be called via window._dixa object after the widget code, e.g. the api can be called with:
_dixa(function name{string}, parameter, ... parameter);
Set the view of the widget
// view can be "conversation" or "minimized".
| <!-- Google Analytics --> | |
| <script async src="https://www.googletagmanager.com/gtag/js?id=UA-67995954-2"></script> | |
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag(){dataLayer.push(arguments);} | |
| gtag('js', new Date()); | |
| gtag('config', 'UA-67995954-2'); | |
| </script> | |
| <!-- HubSpot --> |
| <h1>Helo Gist</h1> |
| //Javascript based task management in Command Line | |
| //Gruntfile.js for DR News Feed Reader | |
| //Author: Krisztian Tabori <ktabori@me.com> | |
| //More information about Grunt.js <http://gruntjs.com> | |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| concat: { | |
| dist: { |
| window.addEvent("domready",function() { | |
| var scrollSpeed = 70; | |
| var current = 0; | |
| var direction = 'h'; | |
| function bgscroll(){ | |
| current -= 1; | |
| $('#header').css("backgroundPosition", (direction == 'w') ? current+"px 0" : "0 " + current+"px"); |
| window.addEvent('domready', function(){ | |
| var itemContainer = document.id('topItemContainer'); | |
| if(itemContainer){ | |
| var addItems = function(items){ | |
| items.each(function(item){ |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using umbraco.presentation.umbracobase; | |
| namespace Base | |
| { | |
| [RestExtension("Get")] | |
| public class BaseClass |
| <?php | |
| function periodus( $datum, $tipus, $ismetlodes, $rendszeresseg ) | |
| { | |
| $ido = date( 'H:i', strtotime( $datum ) ); | |
| $datum = date( 'Y-m-d', strtotime( $datum ) ); | |
| $datum = explode( '-', $datum ); | |
| $datumido = mktime( 0, 0, 0, $datum[1], $datum[2], $datum[0]); | |
| //Ha a periodus típusa napi rendszerességű |
| <!----------------- | |
| ++ Példa 1: | |
| == Warning: Cannot modify header information - headers already sent by... | |
| -----------------!> | |
| <?php | |
| //Hiba megjelenítése fejlesztés alatt | |
| error_reporting(E_ALL); | |
| //Teszt header() funkció előtt |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>ktabori</title> | |
| </head> | |
| <body> | |
| <?php | |
| print 'Hello World!'; | |
| ?> | |
| </body> |