From a98b83dacb1d5eaed70d7e2bfea5208776c6786b Mon Sep 17 00:00:00 2001 From: Julien Verneuil Date: Tue, 28 Jun 2016 12:27:42 +0200 Subject: [PATCH] add CXM_piwik.anubis --- web/CXM_jquery.anubis | 2 +- web/CXM_making_a_web_site.anubis | 2 +- web/piwik/CXM_piwik.anubis | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 web/piwik/CXM_piwik.anubis diff --git a/web/CXM_jquery.anubis b/web/CXM_jquery.anubis index fa1b908..e78d0ce 100644 --- a/web/CXM_jquery.anubis +++ b/web/CXM_jquery.anubis @@ -44,7 +44,7 @@ define String if c is { resizable then jquery_button_get_onclick_action_window_options( - t, formated_options+ comma+ "resizable=yes" ), + t, formated_options+ comma + "resizable=yes"), scrollbars then jquery_button_get_onclick_action_window_options( t, formated_options+ comma + "scrollbars=yes"), diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index 127d7ae..f490df9 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -1224,7 +1224,7 @@ public type HTML_In_Form: text_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), text_input_ro (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), password_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), - text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height), + text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height), file_upload (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int width), selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices), selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices, InitialValue selected), diff --git a/web/piwik/CXM_piwik.anubis b/web/piwik/CXM_piwik.anubis new file mode 100644 index 0000000..b9c852b --- /dev/null +++ b/web/piwik/CXM_piwik.anubis @@ -0,0 +1,41 @@ +/* + * Created by PyramIDE. + * User: Julien + * Date: 28/06/2016 + * Time: 11:50 + * + * Contain functions related to Piwik Analytics (Piwik 2.16.x) + * + * https://piwik.org/ + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ + +read tools/basis.anubis + +// this js code is to include in the section of a webpage, it enable Piwik tracking for the given site/domains (Note: Only if the website was added to the Piwik tracker) +public define String + piwik_js_code + ( + String piwik_tracker, + Int site_id, + List(String) piwik_domains + )= + " + + + + + ". -- libgit2 0.21.4