1wp.blocks.registerBlockType('videos-guatemala/urlvideo', { 2 title: 'Player de videos.guatemala.com', 3 icon: 'format-video', 4 category: 'design', 5 attributes: { 6 urlvideo: { 7 type: 'string' 8 } 9 }, 10 edit: function (props) { 11 function updateUrl(event) { 12 props.setAttributes({ 13 urlvideo: event.target.value 14 }); 15 } 16 17 return React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", { 18 for: "url" 19 }, "Url de video.guatemala.com:"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("input", { 20 type: "text", 21 id: "url", 22 name: "url", 23 value: props.attributes.urlvideo, 24 onChange: updateUrl, 25 class: "form-control", 26 style: { 27 width: '100%', 28 height: '40px', 29 marginTop: '10px' 30 } 31 }))); 32 }, 33 34 save: function (props) { 35 return React.createElement("div", null, /*#__PURE__*/React.createElement("iframe", { 36 src: props.attributes.urlvideo, 37 style: "border:0px #ffffff none;", 38 name: "iframe-videos-gt", 39 height: "500px", 40 width: "600px", 41 allowFullScreen: "" 42 })); 43 } 44}); 45 46console.log('block.js loaded');
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.