Commit a98b83dacb1d5eaed70d7e2bfea5208776c6786b

Authored by Julien Verneuil
1 parent 8bc205ab

add CXM_piwik.anubis

web/CXM_jquery.anubis
... ... @@ -44,7 +44,7 @@ define String
44 44 if c is
45 45 {
46 46 resizable then jquery_button_get_onclick_action_window_options(
47   - t, formated_options+ comma+ "resizable=yes" ),
  47 + t, formated_options+ comma + "resizable=yes"),
48 48  
49 49 scrollbars then jquery_button_get_onclick_action_window_options(
50 50 t, formated_options+ comma + "scrollbars=yes"),
... ...
web/CXM_making_a_web_site.anubis
... ... @@ -1224,7 +1224,7 @@ public type HTML_In_Form:
1224 1224 text_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1225 1225 text_input_ro (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1226 1226 password_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1227   - text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height),
  1227 + text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height),
1228 1228 file_upload (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int width),
1229 1229 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices),
1230 1230 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices, InitialValue selected),
... ...
web/piwik/CXM_piwik.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: Julien
  4 + * Date: 28/06/2016
  5 + * Time: 11:50
  6 + *
  7 + * Contain functions related to Piwik Analytics (Piwik 2.16.x)
  8 + *
  9 + * https://piwik.org/
  10 + *
  11 + * To change this template use Tools | Options | Coding | Edit Standard Headers.
  12 + */
  13 +
  14 +read tools/basis.anubis
  15 +
  16 +// this js code is to include in the <head> section of a webpage, it enable Piwik tracking for the given site/domains (Note: Only if the website was added to the Piwik tracker)
  17 +public define String
  18 + piwik_js_code
  19 + (
  20 + String piwik_tracker,
  21 + Int site_id,
  22 + List(String) piwik_domains
  23 + )=
  24 + "
  25 + <!-- Piwik -->
  26 + <script type=\"text/javascript\">
  27 + var _paq = _paq || [];
  28 + _paq.push([\"setDomains\", [" + concat(piwik_domains, ",") + "]]);
  29 + _paq.push(['trackPageView']);
  30 + _paq.push(['enableLinkTracking']);
  31 + (function() {
  32 + var u=\"//" + piwik_tracker + "/\";
  33 + _paq.push(['setTrackerUrl', u+'piwik.php']);
  34 + _paq.push(['setSiteId', " + site_id + " ]);
  35 + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  36 + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  37 + })();
  38 + </script>
  39 + <noscript><p><img src=\"//" + piwik_tracker + "/piwik.php?idsite=" + site_id + "\" style=\"border:0;\" alt=\"\" /></p></noscript>
  40 + <!-- End Piwik Code -->
  41 + ".
... ...