JAVASCRIPT 28
Androidtdom.js Guest on 27th April 2021 08:03:11 PM
  1. // Created 5/28/2013 1:19:48 PM
  2. function generateDOM() {
  3.     el.createElement("div", {
  4.         id: "bgDiv"
  5.     }, "body");
  6.     el.createElement("div", {
  7.         id: "mainFrame",
  8.         "class": "mainFrame"
  9.     }, "body");
  10.     var c = el.createElement("aside", {
  11.         id: "topToolbar",
  12.         "class": "toolbar horizontalToolbar topToolbar hidden"
  13.     });
  14.     if (publicationData.visibility.toc || publicationData.visibility.bookmarks) {
  15.         var a = el.createElement("div", {
  16.                 id: "listField",
  17.                 "class": "buttonsField horizontalField leftField listField"
  18.             }),
  19.             b = el.createElement("div", {
  20.                 id: "listButton",
  21.                 "class": "button listButton"
  22.             });
  23.         a.appendChild(b);
  24.         c.appendChild(a)
  25.     }
  26.     a = el.createElement("div", {
  27.         id: "infoField",
  28.         "class": "buttonsField horizontalField leftField infoField"
  29.     });
  30.     b = el.createElement("div", {
  31.         id: "infoButton",
  32.         "class": "button infoButton"
  33.     });
  34.     a.appendChild(b);
  35.     c.appendChild(a);
  36.     publicationData.visibility.bookmarks && (a = el.createElement("div", {
  37.         id: "addField",
  38.         "class": "buttonsField horizontalField rightField addField"
  39.     }), b = el.createElement("div", {
  40.         id: "addButton",
  41.         "class": "button addButton"
  42.     }), a.appendChild(b), c.appendChild(a));
  43.     publicationData.visibility.search &&
  44.         (a = el.createElement("div", {
  45.             id: "searchField",
  46.             "class": "buttonsField horizontalField rightField searchField"
  47.         }), b = el.createElement("div", {
  48.             id: "searchButton",
  49.             "class": "button searchButton"
  50.         }), a.appendChild(b), c.appendChild(a));
  51.     publicationData.visibility.downloads && (a = el.createElement("div", {
  52.         id: "downloadField",
  53.         "class": "buttonsField horizontalField rightField downloadField"
  54.     }), b = el.createElement("div", {
  55.         id: "downloadButton",
  56.         "class": "button downloadButton"
  57.     }), a.appendChild(b), c.appendChild(a));
  58.     publicationData.visibility.share &&
  59.         (a = el.createElement("div", {
  60.             id: "shareField",
  61.             "class": "buttonsField horizontalField rightField shareField"
  62.         }), b = el.createElement("div", {
  63.             id: "shareButton",
  64.             "class": "button shareButton"
  65.         }), a.appendChild(b), c.appendChild(a));
  66.     document.getElementById("body").appendChild(c);
  67.     c = el.createElement("aside", {
  68.         id: "pagerToolbar",
  69.         "class": "toolbar horizontalToolbar bottomToolbar pagerToolbar hidden"
  70.     });
  71.     publicationData.visibility.slideshow && (a = el.createElement("div", {
  72.             id: "slideShowField",
  73.             "class": "buttonsField horizontalField leftField slideShowField"
  74.         }),
  75.         b = el.createElement("div", {
  76.             id: "slideShowButton",
  77.             "class": "button slideShowButton"
  78.         }), a.appendChild(b), c.appendChild(a));
  79.     a = el.createElement("div", {
  80.         id: "pagerField",
  81.         "class": "horizontalField rightField pagerField"
  82.     });
  83.     b = el.createElement("div", {
  84.         id: "pagerCurrentPage",
  85.         "class": "pagerFont"
  86.     });
  87.     a.appendChild(b);
  88.     b = el.createElement("input", {
  89.         id: "inputPage",
  90.         "class": "inputPage ableSelectText ableEditText invisible",
  91.         type: "text"
  92.     });
  93.     a.appendChild(b);
  94.     b = el.createElement("div", {
  95.         id: "lastPage",
  96.         "class": "pagerFont"
  97.     });
  98.     a.appendChild(b);
  99.     c.appendChild(a);
  100.     var a = el.createElement("div", {
  101.             id: "sliderField",
  102.             "class": "horizontalField sliderField"
  103.         }),
  104.         b = el.createElement("div", {
  105.             id: "sliderBar",
  106.             "class": "sliderBar"
  107.         }),
  108.         d = el.createElement("div", {
  109.             id: "sliderThumb",
  110.             "class": "sliderThumb"
  111.         });
  112.     b.appendChild(d);
  113.     a.appendChild(b);
  114.     c.appendChild(a);
  115.     document.getElementById("body").appendChild(c);
  116.     publicationData.visibility.search && (c = el.createElement("aside", {
  117.             id: "searchToolbar",
  118.             "class": "toolbar horizontalToolbar bottomToolbar searchToolbar hidden"
  119.         }), a = el.createElement("div", {
  120.             id: "prevResultField",
  121.             "class": "buttonsField horizontalField leftField prevResultField"
  122.         }), b = el.createElement("div", {
  123.             id: "prevResultButton",
  124.             "class": "button prevResultButton"
  125.         }), a.appendChild(b), c.appendChild(a), a = el.createElement("div", {
  126.             id: "resultField",
  127.             "class": "horizontalField resultField"
  128.         }), c.appendChild(a), a = el.createElement("div", {
  129.             id: "closeResultField",
  130.             "class": "buttonsField horizontalField leftField closeResultField"
  131.         }), b = el.createElement("div", {
  132.             id: "closeResultButton",
  133.             "class": "button closeResultButton"
  134.         }),
  135.         a.appendChild(b), c.appendChild(a), a = el.createElement("div", {
  136.             id: "nextResultField",
  137.             "class": "buttonsField horizontalField leftField nextResultField"
  138.         }), b = el.createElement("div", {
  139.             id: "nextResultButton",
  140.             "class": "button nextResultButton"
  141.         }), a.appendChild(b), c.appendChild(a), document.getElementById("body").appendChild(c))
  142. };

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.