├── .gitattributes ├── .gitignore ├── DevNote.md ├── LICENSE ├── README.md ├── css ├── bootstrap-theme.css ├── bootstrap-theme.css.map ├── bootstrap-theme.min.css ├── bootstrap.css ├── bootstrap.css.map ├── bootstrap.min.css ├── font-awesome.min.css ├── highlight.min.css ├── nv.d3.min.css └── pptx2html.css ├── files ├── test.pptx └── test │ ├── [Content_Types].xml │ ├── _rels │ └── .rels │ ├── docProps │ ├── app.xml │ ├── core.xml │ └── thumbnail.jpeg │ └── ppt │ ├── _rels │ └── presentation.xml.rels │ ├── charts │ ├── _rels │ │ ├── chart1.xml.rels │ │ ├── chart2.xml.rels │ │ ├── chart3.xml.rels │ │ ├── chart4.xml.rels │ │ ├── chart5.xml.rels │ │ ├── chart6.xml.rels │ │ ├── chart7.xml.rels │ │ └── chart8.xml.rels │ ├── chart1.xml │ ├── chart2.xml │ ├── chart3.xml │ ├── chart4.xml │ ├── chart5.xml │ ├── chart6.xml │ ├── chart7.xml │ ├── chart8.xml │ ├── colors1.xml │ ├── colors2.xml │ ├── colors3.xml │ ├── colors4.xml │ ├── colors5.xml │ ├── colors6.xml │ ├── colors7.xml │ ├── colors8.xml │ ├── style1.xml │ ├── style2.xml │ ├── style3.xml │ ├── style4.xml │ ├── style5.xml │ ├── style6.xml │ ├── style7.xml │ └── style8.xml │ ├── embeddings │ ├── Microsoft_Excel____1.xlsx │ ├── Microsoft_Excel____2.xlsx │ ├── Microsoft_Excel____3.xlsx │ ├── Microsoft_Excel____4.xlsx │ ├── Microsoft_Excel____5.xlsx │ ├── Microsoft_Excel____6.xlsx │ ├── Microsoft_Excel____7.xlsx │ └── Microsoft_Excel____8.xlsx │ ├── media │ └── image1.JPG │ ├── notesMasters │ ├── _rels │ │ └── notesMaster1.xml.rels │ └── notesMaster1.xml │ ├── notesSlides │ ├── _rels │ │ └── notesSlide1.xml.rels │ └── notesSlide1.xml │ ├── presProps.xml │ ├── presentation.xml │ ├── slideLayouts │ ├── _rels │ │ ├── slideLayout1.xml.rels │ │ ├── slideLayout10.xml.rels │ │ ├── slideLayout11.xml.rels │ │ ├── slideLayout2.xml.rels │ │ ├── slideLayout3.xml.rels │ │ ├── slideLayout4.xml.rels │ │ ├── slideLayout5.xml.rels │ │ ├── slideLayout6.xml.rels │ │ ├── slideLayout7.xml.rels │ │ ├── slideLayout8.xml.rels │ │ └── slideLayout9.xml.rels │ ├── slideLayout1.xml │ ├── slideLayout10.xml │ ├── slideLayout11.xml │ ├── slideLayout2.xml │ ├── slideLayout3.xml │ ├── slideLayout4.xml │ ├── slideLayout5.xml │ ├── slideLayout6.xml │ ├── slideLayout7.xml │ ├── slideLayout8.xml │ └── slideLayout9.xml │ ├── slideMasters │ ├── _rels │ │ └── slideMaster1.xml.rels │ └── slideMaster1.xml │ ├── slides │ ├── _rels │ │ ├── slide1.xml.rels │ │ ├── slide10.xml.rels │ │ ├── slide11.xml.rels │ │ ├── slide12.xml.rels │ │ ├── slide13.xml.rels │ │ ├── slide14.xml.rels │ │ ├── slide15.xml.rels │ │ ├── slide16.xml.rels │ │ ├── slide17.xml.rels │ │ ├── slide18.xml.rels │ │ ├── slide2.xml.rels │ │ ├── slide3.xml.rels │ │ ├── slide4.xml.rels │ │ ├── slide5.xml.rels │ │ ├── slide6.xml.rels │ │ ├── slide7.xml.rels │ │ ├── slide8.xml.rels │ │ └── slide9.xml.rels │ ├── slide1.xml │ ├── slide10.xml │ ├── slide11.xml │ ├── slide12.xml │ ├── slide13.xml │ ├── slide14.xml │ ├── slide15.xml │ ├── slide16.xml │ ├── slide17.xml │ ├── slide18.xml │ ├── slide2.xml │ ├── slide3.xml │ ├── slide4.xml │ ├── slide5.xml │ ├── slide6.xml │ ├── slide7.xml │ ├── slide8.xml │ └── slide9.xml │ ├── tableStyles.xml │ ├── theme │ ├── theme1.xml │ └── theme2.xml │ └── viewProps.xml ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontawesome-webfont.woff2 ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── index.html ├── js ├── FileSaver.min.js ├── bootstrap.js ├── bootstrap.min.js ├── chart │ ├── d3.min.js │ └── nv.d3.min.js ├── colz.class.min.js ├── functions.js ├── highlight.min.js ├── jquery-1.11.3.min.js ├── jszip.min.js ├── lz-string.min.js ├── pptx2html.js ├── tXml.js ├── tXml.min.js ├── vkbeautify.js └── worker.js ├── reveal ├── css │ ├── print │ │ ├── paper.css │ │ └── pdf.css │ ├── reveal.css │ ├── reveal.scss │ └── theme │ │ ├── README.md │ │ ├── beige.css │ │ ├── black.css │ │ ├── blood.css │ │ ├── league.css │ │ ├── moon.css │ │ ├── night.css │ │ ├── pptx.css │ │ ├── serif.css │ │ ├── simple.css │ │ ├── sky.css │ │ ├── solarized.css │ │ ├── source │ │ ├── beige.scss │ │ ├── black.scss │ │ ├── blood.scss │ │ ├── league.scss │ │ ├── moon.scss │ │ ├── night.scss │ │ ├── serif.scss │ │ ├── simple.scss │ │ ├── sky.scss │ │ ├── solarized.scss │ │ └── white.scss │ │ ├── template │ │ ├── mixins.scss │ │ ├── settings.scss │ │ └── theme.scss │ │ └── white.css ├── demo.html ├── js │ ├── lz-string.min.js │ └── reveal.js ├── lib │ ├── css │ │ └── zenburn.css │ ├── font │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── source-sans-pro-italic.eot │ │ │ ├── source-sans-pro-italic.ttf │ │ │ ├── source-sans-pro-italic.woff │ │ │ ├── source-sans-pro-regular.eot │ │ │ ├── source-sans-pro-regular.ttf │ │ │ ├── source-sans-pro-regular.woff │ │ │ ├── source-sans-pro-semibold.eot │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ ├── source-sans-pro-semibold.woff │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ └── source-sans-pro.css │ └── js │ │ ├── classList.js │ │ ├── head.min.js │ │ └── html5shiv.js └── plugin │ ├── chart │ ├── d3.min.js │ ├── nv.d3.min.css │ └── nv.d3.min.js │ ├── highlight │ └── highlight.js │ ├── markdown │ ├── example.html │ ├── example.md │ ├── markdown.js │ └── marked.js │ ├── math │ └── math.js │ ├── multiplex │ ├── client.js │ ├── index.js │ └── master.js │ ├── notes-server │ ├── client.js │ ├── index.js │ └── notes.html │ ├── notes │ ├── notes.html │ └── notes.js │ ├── print-pdf │ └── print-pdf.js │ ├── search │ └── search.js │ └── zoom-js │ └── zoom.js └── test └── xmlTest.html /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | files/test/* 2 | -------------------------------------------------------------------------------- /DevNote.md: -------------------------------------------------------------------------------- 1 | PPTX2HTML - Developer Notes 2 | ========== 3 | 4 | Pixel = EMUs * Resolution / 914400; 5 | where "Resolution" is resolution of your screen. e.g. 96 dpi. 6 | 7 | common slide data element 8 | shapes element 9 | Each shape element contains a set of non-visual properties 10 | non-visual properties 11 | a placeholder 12 | The placeholder element is empty but does have several possible attributes. 13 | It is using the "idx" and "type" attributes that the shapes are linked across the three slide types. 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 g21589 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | PPTX2HTML 2 | ========== 3 | [![MIT License][license-image]][license-url] 4 | 5 | PPTX2HTML can convert MS-PPTX file to HTML by using pure javascript. 6 | Support Chrome, Firefox, IE>=10 and Edge. 7 | Here is the [Online DEMO] page. 8 | 9 | Version 10 | ---- 11 | 12 | 0.2.7 (Beta Test) 13 | 14 | Support Objects 15 | ---- 16 | * Text 17 | * Font size 18 | * Font family 19 | * Font style: blod, italic, underline 20 | * Color 21 | * Location 22 | * hyperlink 23 | * Picture 24 | * Type: jpg/jpeg, png, gif 25 | * Location 26 | * Graph 27 | * Bar chart 28 | * Line chart 29 | * Pie chart 30 | * Scatter chart 31 | * Table 32 | * Location 33 | * Size 34 | * Text block (convert to Div) 35 | * Align (Horizontal and Vertical) 36 | * Background color (single color) 37 | * Border (borderColor, borderWidth, borderType, strokeDasharray) 38 | * Drawing (convert to SVG) 39 | * Simple block (rect, ellipse, roundRect) 40 | * Background color (single color) 41 | * Align (Horizontal and Vertical) 42 | * Border (borderColor, borderWidth, borderType, strokeDasharray) 43 | * Group/Multi-level Group 44 | * Level (z-index) 45 | * Theme/Layout 46 | 47 | 48 | License 49 | ---- 50 | 51 | MIT 52 | 53 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat 54 | [license-url]: LICENSE 55 | [Online DEMO]: http://g21589.github.io/PPTX2HTML 56 | -------------------------------------------------------------------------------- /css/highlight.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:.5em;background:#f0f0f0;-webkit-text-size-adjust:none}.hljs,.hljs-subst,.hljs-tag .hljs-title,.nginx .hljs-title{color:black}.hljs-string,.hljs-title,.hljs-constant,.hljs-parent,.hljs-tag .hljs-value,.hljs-rules .hljs-value,.hljs-preprocessor,.hljs-pragma,.haml .hljs-symbol,.ruby .hljs-symbol,.ruby .hljs-symbol .hljs-string,.hljs-template_tag,.django .hljs-variable,.smalltalk .hljs-class,.hljs-addition,.hljs-flow,.hljs-stream,.bash .hljs-variable,.apache .hljs-tag,.apache .hljs-cbracket,.tex .hljs-command,.tex .hljs-special,.erlang_repl .hljs-function_or_atom,.asciidoc .hljs-header,.markdown .hljs-header,.coffeescript .hljs-attribute{color:#800}.smartquote,.hljs-comment,.hljs-annotation,.hljs-template_comment,.diff .hljs-header,.hljs-chunk,.asciidoc .hljs-blockquote,.markdown .hljs-blockquote{color:#888}.hljs-number,.hljs-date,.hljs-regexp,.hljs-literal,.hljs-hexcolor,.smalltalk .hljs-symbol,.smalltalk .hljs-char,.go .hljs-constant,.hljs-change,.lasso .hljs-variable,.makefile .hljs-variable,.asciidoc .hljs-bullet,.markdown .hljs-bullet,.asciidoc .hljs-link_url,.markdown .hljs-link_url{color:#080}.hljs-label,.hljs-javadoc,.ruby .hljs-string,.hljs-decorator,.hljs-filter .hljs-argument,.hljs-localvars,.hljs-array,.hljs-attr_selector,.hljs-important,.hljs-pseudo,.hljs-pi,.haml .hljs-bullet,.hljs-doctype,.hljs-deletion,.hljs-envvar,.hljs-shebang,.apache .hljs-sqbracket,.nginx .hljs-built_in,.tex .hljs-formula,.erlang_repl .hljs-reserved,.hljs-prompt,.asciidoc .hljs-link_label,.markdown .hljs-link_label,.vhdl .hljs-attribute,.clojure .hljs-attribute,.asciidoc .hljs-attribute,.lasso .hljs-attribute,.coffeescript .hljs-property,.hljs-phony{color:#88f}.hljs-keyword,.hljs-id,.hljs-title,.hljs-built_in,.css .hljs-tag,.hljs-javadoctag,.hljs-phpdoc,.hljs-dartdoc,.hljs-yardoctag,.smalltalk .hljs-class,.hljs-winutils,.bash .hljs-variable,.apache .hljs-tag,.hljs-type,.hljs-typename,.tex .hljs-command,.asciidoc .hljs-strong,.markdown .hljs-strong,.hljs-request,.hljs-status{font-weight:bold}.asciidoc .hljs-emphasis,.markdown .hljs-emphasis{font-style:italic}.nginx .hljs-built_in{font-weight:normal}.coffeescript .javascript,.javascript .xml,.lasso .markup,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata{opacity:.5} -------------------------------------------------------------------------------- /css/pptx2html.css: -------------------------------------------------------------------------------- 1 | .hidden { 2 | display: none; 3 | } 4 | 5 | pre { 6 | width: 100%; 7 | height: 360px; 8 | overflow: scroll; 9 | } 10 | 11 | section { 12 | width: 100%; 13 | /*max-width: 920px;*/ 14 | height: 690px; 15 | position: relative; 16 | border: 1px solid #333; 17 | background-color: #EFEFEF; 18 | text-align: center; 19 | border-radius: 10px; 20 | box-shadow: 1px 1px 3px #AAA; 21 | overflow: hidden; 22 | /*transform: scale(0.85);*/ 23 | } 24 | 25 | section div.block { 26 | position: absolute; 27 | top: 0px; 28 | left: 0px; 29 | width: 100%; 30 | } 31 | 32 | section div.content { 33 | display: flex; 34 | flex-direction: column; 35 | /* 36 | justify-content: center; 37 | align-items: flex-end; 38 | */ 39 | } 40 | 41 | section div.v-up { 42 | justify-content: flex-start; 43 | } 44 | section div.v-mid { 45 | justify-content: center; 46 | } 47 | section div.v-down { 48 | justify-content: flex-end; 49 | } 50 | 51 | section div.h-left { 52 | align-items: flex-start; 53 | text-align: left; 54 | } 55 | section div.h-mid { 56 | align-items: center; 57 | text-align: center; 58 | } 59 | section div.h-right { 60 | align-items: flex-end; 61 | text-align: right; 62 | } 63 | 64 | section div.up-left { 65 | justify-content: flex-start; 66 | align-items: flex-start; 67 | text-align: left; 68 | } 69 | section div.up-center { 70 | justify-content: flex-start; 71 | align-items: center; 72 | } 73 | section div.up-right { 74 | justify-content: flex-start; 75 | align-items: flex-end; 76 | } 77 | section div.center-left { 78 | justify-content: center; 79 | align-items: flex-start; 80 | text-align: left; 81 | } 82 | section div.center-center { 83 | justify-content: center; 84 | align-items: center; 85 | } 86 | section div.center-right { 87 | justify-content: center; 88 | align-items: flex-end; 89 | } 90 | section div.down-left { 91 | justify-content: flex-end; 92 | align-items: flex-start; 93 | text-align: left; 94 | } 95 | section div.down-center { 96 | justify-content: flex-end; 97 | align-items: center; 98 | } 99 | section div.down-right { 100 | justify-content: flex-end; 101 | align-items: flex-end; 102 | } 103 | 104 | section span.text-block { 105 | /* display: inline-block; */ 106 | } 107 | 108 | li.slide { 109 | margin: 10px 0px; 110 | font-size: 18px; 111 | } 112 | 113 | div.footer { 114 | text-align: center; 115 | } 116 | 117 | section table { 118 | position: absolute; 119 | } 120 | 121 | section table, section th, section td { 122 | border: 1px solid black; 123 | } 124 | 125 | section svg.drawing { 126 | position: absolute; 127 | overflow: visible; 128 | } 129 | 130 | .fileUpload { 131 | position: relative; 132 | overflow: hidden; 133 | } 134 | .fileUpload input.upload { 135 | position: absolute; 136 | top: 0; 137 | right: 0; 138 | margin: 0; 139 | padding: 0; 140 | font-size: 20px; 141 | cursor: pointer; 142 | opacity: 0; 143 | filter: alpha(opacity=0); 144 | } 145 | 146 | #pptx-thumb { 147 | min-width: 240px; 148 | height: 180px; 149 | } 150 | -------------------------------------------------------------------------------- /files/test.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test.pptx -------------------------------------------------------------------------------- /files/test/_rels/.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/docProps/app.xml: -------------------------------------------------------------------------------- 1 | 2 | 358228Microsoft Office PowerPoint如螢幕大小 (4:3)13418100false使用字型8佈景主題1投影片標題18微軟正黑體新細明體標楷體ArialCalibriCalibri LightTimes New RomanWingdingsOffice 佈景主題我是標題標題背景測試圖片測試圖片縮放測試PowerPoint 簡報群組測試表格測試圖形測試版面5圖表測試-折線圖圖表測試-長條圖圖表測試-堆疊長條圖圖表測試-區域圖圖表測試-百分比堆疊區域圖圖表測試-散佈圖圖表測試-圓餅圖圖表測試-3D圓餅圖falsefalsefalse15.0000 -------------------------------------------------------------------------------- /files/test/docProps/core.xml: -------------------------------------------------------------------------------- 1 | 2 | 我是標題Guan-Bin ChenGuan-Bin Chen812015-10-17T12:14:54Z2015-12-02T01:44:45Z -------------------------------------------------------------------------------- /files/test/docProps/thumbnail.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/docProps/thumbnail.jpeg -------------------------------------------------------------------------------- /files/test/ppt/_rels/presentation.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart2.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart3.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart4.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart5.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart6.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart7.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/_rels/chart8.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors1.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors2.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors3.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors4.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors5.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors6.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors7.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/charts/colors8.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____1.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____1.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____2.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____2.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____3.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____3.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____4.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____4.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____5.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____5.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____6.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____6.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____7.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____7.xlsx -------------------------------------------------------------------------------- /files/test/ppt/embeddings/Microsoft_Excel____8.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/embeddings/Microsoft_Excel____8.xlsx -------------------------------------------------------------------------------- /files/test/ppt/media/image1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/files/test/ppt/media/image1.JPG -------------------------------------------------------------------------------- /files/test/ppt/notesMasters/_rels/notesMaster1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/notesSlides/_rels/notesSlide1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/notesSlides/notesSlide1.xml: -------------------------------------------------------------------------------- 1 | 2 | 1 -------------------------------------------------------------------------------- /files/test/ppt/presProps.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/presentation.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout10.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout11.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout2.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout3.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout4.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout5.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout6.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout7.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout8.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/_rels/slideLayout9.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout1.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片副標題樣式2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout10.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層第四層第五層2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout11.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層第四層第五層2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout2.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層第四層第五層2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout3.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout4.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層第四層第五層按一下以編輯母片文字樣式第二層第三層第四層第五層2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout6.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout7.xml: -------------------------------------------------------------------------------- 1 | 2 | 2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout8.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層第四層第五層按一下以編輯母片文字樣式2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideLayouts/slideLayout9.xml: -------------------------------------------------------------------------------- 1 | 2 | 按一下以編輯母片標題樣式按一下圖示以新增圖片按一下以編輯母片文字樣式2015/12/2‹#› -------------------------------------------------------------------------------- /files/test/ppt/slideMasters/_rels/slideMaster1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide1.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide10.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide11.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide12.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide13.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide14.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide15.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide16.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide17.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide18.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide2.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide3.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide4.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide5.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide6.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide7.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide8.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/_rels/slide9.xml.rels: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/slides/slide1.xml: -------------------------------------------------------------------------------- 1 | 2 | 我是標題副標題2015/12/21 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide10.xml: -------------------------------------------------------------------------------- 1 | 2 | 版面5AAAQQQBEDQFggSfdhggfhfdhdfhBBB654656546465462015/12/210 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide11.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-折線圖2015/12/211 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide12.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-長條圖2015/12/212 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide13.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-堆疊長條圖2015/12/213 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide14.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-區域圖2015/12/214 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide15.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-百分比堆疊區域圖2015/12/215 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide16.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-散佈圖2015/12/216 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide17.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-圓餅圖2015/12/217 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide18.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖表測試-3D圓餅圖2015/12/218 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide2.xml: -------------------------------------------------------------------------------- 1 | 2 | 標題1112223332015/12/22 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide3.xml: -------------------------------------------------------------------------------- 1 | 2 | 背景測試2015/12/23 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide4.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖片測試2015/12/24 -------------------------------------------------------------------------------- /files/test/ppt/slides/slide5.xml: -------------------------------------------------------------------------------- 1 | 2 | 圖片縮放測試2015/12/25 -------------------------------------------------------------------------------- /files/test/ppt/tableStyles.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /files/test/ppt/viewProps.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g21589/PPTX2HTML/05824403f375d028280c8cd9bb2b58ac4f8d7571/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /js/FileSaver.min.js: -------------------------------------------------------------------------------- 1 | /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ 2 | var saveAs=saveAs||function(e){"use strict";if(typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),f=e.webkitRequestFileSystem,u=e.requestFileSystem||f||e.mozRequestFileSystem,s=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",d=0,l=500,w=function(t){var r=function(){if(typeof t==="string"){n().revokeObjectURL(t)}else{t.remove()}};if(e.chrome){r()}else{setTimeout(r,l)}},p=function(e,t,n){t=[].concat(t);var r=t.length;while(r--){var i=e["on"+t[r]];if(typeof i==="function"){try{i.call(e,n||e)}catch(o){s(o)}}}},v=function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob(["\ufeff",e],{type:e.type})}return e},y=function(t,s,l){if(!l){t=v(t)}var y=this,m=t.type,S=false,h,R,O=function(){p(y,"writestart progress write writeend".split(" "))},g=function(){if(R&&a&&typeof FileReader!=="undefined"){var r=new FileReader;r.onloadend=function(){var e=r.result;R.location.href="data:attachment/file"+e.slice(e.search(/[,;]/));y.readyState=y.DONE;O()};r.readAsDataURL(t);y.readyState=y.INIT;return}if(S||!h){h=n().createObjectURL(t)}if(R){R.location.href=h}else{var i=e.open(h,"_blank");if(i==undefined&&a){e.location.href=h}}y.readyState=y.DONE;O();w(h)},b=function(e){return function(){if(y.readyState!==y.DONE){return e.apply(this,arguments)}}},E={create:true,exclusive:false},N;y.readyState=y.INIT;if(!s){s="download"}if(i){h=n().createObjectURL(t);r.href=h;r.download=s;setTimeout(function(){o(r);O();w(h);y.readyState=y.DONE});return}if(e.chrome&&m&&m!==c){N=t.slice||t.webkitSlice;t=N.call(t,0,t.size,c);S=true}if(f&&s!=="download"){s+=".download"}if(m===c||f){R=e}if(!u){g();return}d+=t.size;u(e.TEMPORARY,d,b(function(e){e.root.getDirectory("saved",E,b(function(e){var n=function(){e.getFile(s,E,b(function(e){e.createWriter(b(function(n){n.onwriteend=function(t){R.location.href=e.toURL();y.readyState=y.DONE;p(y,"writeend",t);w(e)};n.onerror=function(){var e=n.error;if(e.code!==e.ABORT_ERR){g()}};"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=y["on"+e]});n.write(t);y.abort=function(){n.abort();y.readyState=y.DONE};y.readyState=y.WRITING}),g)}),g)};e.getFile(s,{create:false},b(function(e){e.remove();n()}),b(function(e){if(e.code===e.NOT_FOUND_ERR){n()}else{g()}}))}),g)}),g)},m=y.prototype,S=function(e,t,n){return new y(e,t,n)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){if(!n){e=v(e)}return navigator.msSaveOrOpenBlob(e,t||"download")}}m.abort=function(){var e=this;e.readyState=e.DONE;p(e,"abort")};m.readyState=m.INIT=0;m.WRITING=1;m.DONE=2;m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null;return S}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof module!=="undefined"&&module.exports){module.exports.saveAs=saveAs}else if(typeof define!=="undefined"&&define!==null&&define.amd!=null){define([],function(){return saveAs})} -------------------------------------------------------------------------------- /js/functions.js: -------------------------------------------------------------------------------- 1 | function base64ArrayBuffer(arrayBuffer) { 2 | var base64 = ''; 3 | var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; 4 | var bytes = new Uint8Array(arrayBuffer); 5 | var byteLength = bytes.byteLength; 6 | var byteRemainder = byteLength % 3; 7 | var mainLength = byteLength - byteRemainder; 8 | 9 | var a, b, c, d; 10 | var chunk; 11 | 12 | for (var i = 0; i < mainLength; i = i + 3) { 13 | chunk = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2]; 14 | a = (chunk & 16515072) >> 18; 15 | b = (chunk & 258048) >> 12; 16 | c = (chunk & 4032) >> 6; 17 | d = chunk & 63; 18 | base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d]; 19 | } 20 | 21 | if (byteRemainder == 1) { 22 | chunk = bytes[mainLength]; 23 | a = (chunk & 252) >> 2; 24 | b = (chunk & 3) << 4; 25 | base64 += encodings[a] + encodings[b] + '=='; 26 | } else if (byteRemainder == 2) { 27 | chunk = (bytes[mainLength] << 8) | bytes[mainLength + 1]; 28 | a = (chunk & 64512) >> 10; 29 | b = (chunk & 1008) >> 4; 30 | c = (chunk & 15) << 2; 31 | base64 += encodings[a] + encodings[b] + encodings[c] + '='; 32 | } 33 | 34 | return base64; 35 | } 36 | 37 | function extractFileExtension(filename) { 38 | return filename.substr((~-filename.lastIndexOf(".") >>> 0) + 2); 39 | } 40 | 41 | function escapeHtml(text) { 42 | var map = { 43 | '&': '&', 44 | '<': '<', 45 | '>': '>', 46 | '"': '"', 47 | "'": ''' 48 | }; 49 | return text.replace(/[&<>"']/g, function(m) { return map[m]; }); 50 | } -------------------------------------------------------------------------------- /js/lz-string.min.js: -------------------------------------------------------------------------------- 1 | var LZString=function(){function o(o,r){if(!t[o]){t[o]={};for(var n=0;ne;e++){var s=r.charCodeAt(e);n[2*e]=s>>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null===o||void 0===o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;t>e;e++)n[e]=256*o[2*e]+o[2*e+1];var s=[];return n.forEach(function(o){s.push(r(o))}),i.decompress(s.join(""))},compressToEncodedURIComponent:function(o){return null==o?"":i._compress(o,6,function(o){return e.charAt(o)})},decompressFromEncodedURIComponent:function(r){return null==r?"":""==r?null:(r=r.replace(/ /g,"+"),i._decompress(r.length,32,function(n){return o(e,r.charAt(n))}))},compress:function(o){return i._compress(o,16,function(o){return r(o)})},_compress:function(o,r,n){if(null==o)return"";var e,t,i,s={},p={},u="",c="",a="",l=2,f=3,h=2,d=[],m=0,v=0;for(i=0;ie;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++),s[c]=f++,a=String(u)}if(""!==a){if(Object.prototype.hasOwnProperty.call(p,a)){if(a.charCodeAt(0)<256){for(e=0;h>e;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;for(;;){if(m<<=1,v==r-1){d.push(n(m));break}v++}return d.join("")},decompress:function(o){return null==o?"":""==o?null:i._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,n,e){var t,i,s,p,u,c,a,l,f=[],h=4,d=4,m=3,v="",w=[],A={val:e(0),position:n,index:1};for(i=0;3>i;i+=1)f[i]=i;for(p=0,c=Math.pow(2,2),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(t=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 2:return""}for(f[3]=l,s=l,w.push(l);;){if(A.index>o)return"";for(p=0,c=Math.pow(2,m),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(l=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 2:return w.join("")}if(0==h&&(h=Math.pow(2,m),m++),f[l])v=f[l];else{if(l!==d)return null;v=s+s.charAt(0)}w.push(v),f[d++]=s+v.charAt(0),h--,s=v,0==h&&(h=Math.pow(2,m),m++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module&&(module.exports=LZString); 2 | -------------------------------------------------------------------------------- /js/tXml.min.js: -------------------------------------------------------------------------------- 1 | var _order=1; 2 | function tXml(b){function c(){for(var g=[];b[a];){if(60==b.charCodeAt(a)){if(47===b.charCodeAt(a+1)){a=b.indexOf(">",a);break}else if(33===b.charCodeAt(a+1)){if(45==b.charCodeAt(a+2)){for(;62!==b.charCodeAt(a)||45!=b.charCodeAt(a-1)||45!=b.charCodeAt(a-2)||-1==a;)a=b.indexOf(">",a+1);-1===a&&(a=b.length)}else for(a+=2;62!==b.charCodeAt(a);a++);a++;continue}else if(63===b.charCodeAt(a+1)){a=b.indexOf(">",a);a++;continue}a++;for(var d=a;-1==="\r\n\t>/= ".indexOf(b[a]);a++);for(var f=b.slice(d,a),k= 3 | !1,h={};62!==b.charCodeAt(a);a++)if(d=b.charCodeAt(a),64d||96d){for(d=a;-1==="\r\n\t>/= ".indexOf(b[a]);a++);for(var d=b.slice(d,a),e=b.charCodeAt(a);39!==e&&34!==e;)a++,e=b.charCodeAt(a);var e=b[a],l=++a;a=b.indexOf(e,l);e=b.slice(l,a);k||(h={},k=!0);h[d]=e}if(47!==b.charCodeAt(a-1)){a++;var m=c()}g.push({children:m,tagName:f,attrs:h})}else f=a,a=b.indexOf("<",a)-1,-2===a&&(a=b.length),f=b.slice(f,a+1),0