|
@@ -1,48 +1,48 @@
|
|
|
-//html tree
|
|
|
-// var body = {
|
|
|
-// tagName:'div',
|
|
|
-// subTag:[
|
|
|
-// {
|
|
|
-// tagName:'span'
|
|
|
-// text:"Enter a data please:"
|
|
|
-// },
|
|
|
-// {
|
|
|
-// tagName:'input',
|
|
|
-// attrs: {
|
|
|
-// type: "text",
|
|
|
-// },
|
|
|
-// attrs:{
|
|
|
-// id:document.getElementById('surname')
|
|
|
-// }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// tagName:'input',
|
|
|
-// attrs: {
|
|
|
-// type: "text",
|
|
|
-// },
|
|
|
-// attrs:{
|
|
|
-// id:'surname'
|
|
|
-// }
|
|
|
-// }
|
|
|
-// ]
|
|
|
-// tagName:'div',
|
|
|
-// subTag:[
|
|
|
-// {
|
|
|
-// tagName:'button',
|
|
|
-// attrs:{
|
|
|
-// id:'ok'
|
|
|
-// },
|
|
|
-// text:"OK"
|
|
|
-// },
|
|
|
-// {
|
|
|
-// tagName:'button',
|
|
|
-// attrs:{
|
|
|
-// id:'cancel'
|
|
|
-// },
|
|
|
-// text:"Cancel"
|
|
|
-// }
|
|
|
-// ]
|
|
|
-// }
|
|
|
+html tree
|
|
|
+ var body = {
|
|
|
+ tagName:'div',
|
|
|
+ subTag:[
|
|
|
+ {
|
|
|
+ tagName:'span'
|
|
|
+ text:"Enter a data please:"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tagName:'input',
|
|
|
+ attrs: {
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ attrs:{
|
|
|
+ id:document.getElementById('surname')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tagName:'input',
|
|
|
+ attrs: {
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ attrs:{
|
|
|
+ id:'surname'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ tagName:'div',
|
|
|
+ subTag:[
|
|
|
+ {
|
|
|
+ tagName:'button',
|
|
|
+ attrs:{
|
|
|
+ id:'ok'
|
|
|
+ },
|
|
|
+ text:"OK"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ tagName:'button',
|
|
|
+ attrs:{
|
|
|
+ id:'cancel'
|
|
|
+ },
|
|
|
+ text:"Cancel"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
//declarative fields
|
|
|
var info = {
|
|
|
band: prompt("название группы") ,
|