You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Method to create a valid current unix timestamp.
12876
+
* @returns {number} the current unix timestamp (based on the system time)
12877
+
*/
12878
+
Breinify.unixTimestamp=function(){
12879
+
returnMath.floor(newDate().getTime()/1000);
12880
+
};
12881
+
12835
12882
/**
12836
12883
* Sends an activity to the Breinify server.
12837
12884
*
12838
12885
* @param user {object} the user-information
12839
12886
* @param type {string|null} the type of activity
12840
12887
* @param category {string|null} the category (can be null or undefined)
12841
12888
* @param description {string|null} the description for the activity
12889
+
* @param tags {object} added the change to pass in tags
12842
12890
* @param sign {boolean|null} true if a signature should be added (needs the secret to be configured - not recommended in open systems), otherwise false (can be null or undefined)
12843
12891
* @param onReady {function|null} function to be executed after triggering the activity
* Method to create a valid current unix timestamp.
12855
-
* @returns {number} the current unix timestamp (based on the system time)
12856
-
*/
12857
-
Breinify.unixTimestamp=function(){
12858
-
returnMath.floor(newDate().getTime()/1000);
12859
-
};
12860
-
12861
12901
/**
12862
12902
* Creates a user instance and executes the specified method.
12863
12903
*
12864
12904
* @param user {object} the user-information
12865
12905
* @param type {string|null} the type of activity
12866
12906
* @param category {string|null} the category (can be null or undefined)
12867
12907
* @param description {string|null} the description for the activity
12908
+
* @param tags {object} added the change to pass in tags
12868
12909
* @param sign {boolean|null} true if a signature should be added (needs the secret to be configured - not recommended in open systems), otherwise false (can be null or undefined)
12869
12910
* @param onReady {function|null} function to be executed after successful user creation
Copy file name to clipboardExpand all lines: documentation/step-by-step.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The file is integrated within a web-site by adding the needed script-tag, pointi
53
53
It is also possible to omit the download and just point to the library file provided through a CDN (currently we do not publish the library to any CDN, but we will keep you updated) or Breinify's site.
**Note:** The library can also be loaded asynchroniously using the *async* and *onload* attribute (officially introduced in HTML5). In that case, the configuration of the library and all bindings should be performed after the library is loaded (i.e., within the *onload* function).
0 commit comments