diff --git a/hardware/physical-web/physical-web.html b/hardware/physical-web/physical-web.html index 24237171..e09d84e1 100644 --- a/hardware/physical-web/physical-web.html +++ b/hardware/physical-web/physical-web.html @@ -97,7 +97,8 @@
-

This URL needs to be shorter than 18 bytes in length

+ +

This URL needs to be shorter than 18 bytes in length to meet Eddystone spec


@@ -116,7 +117,7 @@ @@ -125,7 +126,9 @@ category: 'Physical_Web', // the palette category defaults: { // defines the editable properties of the node name: {value:"Eddystone"}, // along with default values. - url: {value: ""}, + url: {value: "" + //, validate: function(v) {var m = encodeURIComponent(v).match(/%[89ABab]/g); if (v.length + (m ? m.length : 0) < 18){$('#node-input-url-shorten').prop('disabled', true);return true} else {$('#node-input-url-shorten').prop('disabled', false);return false}} + }, power: {value:"-21"}, period: {value: "10"} }, @@ -139,6 +142,12 @@ }, labelStyle: function() { // sets the class to apply to the label return this.name?"node_label_italic":""; + }, + oneditprepare: function() { + + }, + oneditsave: function() { + } }); \ No newline at end of file