Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,772 changes: 1,384 additions & 1,388 deletions compiled/js/storymap.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
},
"dependencies": {
"adm-zip": "^0.5.4",
"leaflet": "^0.7.2",
"leaflet": "^1.8.0",
"mini-css-extract-plugin": "^1.3.9",
"proj4leaflet": "^1.0.2",
"prompt": "^1.1.0",
"simple-git": "^2.36.1",
"trash-cli": "^4.0.0",
Expand All @@ -26,6 +27,8 @@
"jstrace": "^0.3.0",
"less": "^3.13.0",
"less-loader": "^7.1.0",
"mocha": "^10.0.0",
"mocha-phantomjs": "^4.1.0",
"npm-run-all": "^4.1.5",
"run-all": "^1.0.1",
"run-s": "0.0.0",
Expand Down
12 changes: 6 additions & 6 deletions src/js/core/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export function extend(/*Object*/ dest) /*-> Object*/ { // merge src properties
}

/**
* Implement mixin behavior. Based on
* Implement mixin behavior. Based on
* https://blog.bitsrc.io/understanding-mixins-in-javascript-de5d3e02b466
* @param {class} cls
* @param {...class} src
* @param {class} cls
* @param {...class} src
*/
export function classMixin(cls, ...src) {
for (let _cl of src) {
Expand Down Expand Up @@ -145,7 +145,7 @@ export function htmlify(str) {
str = Emoji(str);
}
if (str.match(/<p>[\s\S]*?<\/p>/)) {

return str;
} else {
return "<p>" + str + "</p>";
Expand All @@ -158,7 +158,7 @@ export function getUrlVars(string) {
hash,
hashes;
str = string.toString();
if (str.match('&#038;')) {
if (str.match('&#038;')) {
str = str.replace("&#038;", "&");
} else if (str.match('&#38;')) {
str = str.replace("&#38;", "&");
Expand Down Expand Up @@ -189,7 +189,7 @@ export const ratio = {
}
return s;
},

r16_9: function(size) {
if (size.w !== null && size.w !== "") {
return Math.round((size.w / 16) * 9);
Expand Down
Loading