ThumbnailBuilder
Changes
js/editCanvas.js 8(+8 -0)
Details
js/editCanvas.js 8(+8 -0)
diff --git a/js/editCanvas.js b/js/editCanvas.js
index dfdf1b9..898ed0e 100644
--- a/js/editCanvas.js
+++ b/js/editCanvas.js
@@ -217,3 +217,11 @@ document.addEventListener('DOMContentLoaded', function() {
draw();
});
+
+// Helper function to get URL Query Params
+function getUrlParameter(name) {
+ name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
+ var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
+ var results = regex.exec(location.search);
+ return results === null ? false : decodeURIComponent(results[1].replace(/\+/g, ' '));
+};