@bmlt-enabled/croutonjs 3.15.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/crouton.js +2 -1
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +2 -1
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
- package/build/croutonjs-build1104-18f1f05a78c314e17335a64f1b029f2c343c78fa.zip +0 -0
- package/dist_croutonjs/github/croutonjs.zip +0 -0
- package/dist_croutonjs/s3/croutonjs-build1104-18f1f05a78c314e17335a64f1b029f2c343c78fa.zip +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
### croutonjs
|
|
2
|
+
|
|
3
|
+
Review [this file](/croutonjs/src/js/crouton-core.js#L5) for a list of parameter descriptions. The defaults are listed.
|
|
4
|
+
|
|
5
|
+
There is a [sample](https://github.com/bmlt-enabled/crouton/blob/master/croutonjs/dist/sample.html) to show how to initialize crouton, render and get counts.
|
|
6
|
+
|
|
7
|
+
You can always download the latest stable version of croutonjs here: https://github.com/bmlt-enabled/crouton/releases/latest
|
|
8
|
+
|
|
9
|
+
### CDN (Content Delivery Network)
|
|
10
|
+
|
|
11
|
+
If you are in situation where you cannot host croutonjs on a webserver. You can utilize a free CDN.
|
|
12
|
+
|
|
13
|
+
You can reference the latest version always of croutonjs here.
|
|
14
|
+
|
|
15
|
+
https://cdn.jsdelivr.net/npm/@bmlt-enabled/croutonjs/crouton.min.js
|
|
16
|
+
|
|
17
|
+
or you can point to a specific version if you want to:
|
|
18
|
+
|
|
19
|
+
https://cdn.jsdelivr.net/npm/@bmlt-enabled/croutonjs@3.11.1/crouton.min.js.
|
|
20
|
+
|
|
21
|
+
Check out the [sample]([sample](https://github.com/bmlt-enabled/crouton/blob/master/croutonjs/dist/sample_jsdeliver.html) usage.
|
|
22
|
+
|
|
23
|
+
### npm
|
|
24
|
+
|
|
25
|
+
croutonjs is published @ npmjs `npm install -i @bmlt-enabled/croutonjs`.
|
package/crouton.js
CHANGED
|
@@ -14352,10 +14352,11 @@ function Crouton(config) {
|
|
|
14352
14352
|
.then(function(data) {
|
|
14353
14353
|
var mainMeetings = data[0];
|
|
14354
14354
|
var extraMeetings;
|
|
14355
|
+
var jsonMeetings = JSON.stringify(mainMeetings['meetings']);
|
|
14355
14356
|
if (data.length === 2) {
|
|
14356
14357
|
extraMeetings = data[1];
|
|
14357
14358
|
}
|
|
14358
|
-
if (
|
|
14359
|
+
if (jsonMeetings === "{}" || jsonMeetings === "[]") {
|
|
14359
14360
|
var fullUrl = self.config['root_server'] + url
|
|
14360
14361
|
console.log("Could not find any meetings for the criteria specified with the query <a href=\"" + fullUrl + "\" target=_blank>" + fullUrl + "</a>");
|
|
14361
14362
|
jQuery('#' + self.config['placeholder_id']).html("No meetings found.");
|