Browse Source

Обновить 'Pavlov_hm3/js/script.js'

1 changed files with 45 additions and 45 deletions
  1. 45 45
      Pavlov_hm3/js/script.js

+ 45 - 45
Pavlov_hm3/js/script.js

@@ -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("название группы") ,