Skip to content

Commit

Permalink
v.1.2.0
Browse files Browse the repository at this point in the history
v.1.2.0
  • Loading branch information
meshesha committed Feb 3, 2019
1 parent 4802189 commit d9d0fdc
Show file tree
Hide file tree
Showing 286 changed files with 249,508 additions and 1,347 deletions.
Empty file added images/index.html
Empty file.
13 changes: 1 addition & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="layout/styles/layout.css" rel="stylesheet" type="text/css" media="all">
<script src="layout/scripts/jquery.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119239222-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-119239222-1');
</script>

</head>
<body id="top">
<div class="wrapper bgded" style="background-image:url('images/office2html2.png');background-size: 75%;">
Expand All @@ -25,7 +15,6 @@ <h2 class="heading">OfficeToHtml</h2>
<p>jQuery plugin for convertation pptx,docx,xlsx and pdf to html using pure javascript.</p>
<footer>
<ul class="nospace inline pushright">
<li><a class="btn" href="https://github.com/meshesha/officeToHtml/releases">Download</a></li>
<li><a class="btn inverse" href="https://github.com/meshesha/officeToHtml">GitHub</a></li>
</ul>
</footer>
Expand Down Expand Up @@ -100,4 +89,4 @@ <h4>issues</h4>
<a id="backtotop" href="#top"><i class="fa fa-chevron-up"></i></a>
<!-- JAVASCRIPTS -->
</body>
</html>
</html>
Empty file added layout/index.html
Empty file.
Empty file added layout/scripts/index.html
Empty file.
Empty file added layout/styles/fonts/index.html
Empty file.
Empty file added layout/styles/index.html
Empty file.
1,879 changes: 969 additions & 910 deletions officeToHtml.js

Large diffs are not rendered by default.

35 changes: 21 additions & 14 deletions pages/demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<head>
<title>OfficeJs | Demos </title>
<meta charset="utf-8">
<link href="../layout/styles/layout.css" rel="stylesheet" type="text/css">
<link href="./layout/styles/layout.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="./include/jquery_ui/themes/start/jquery-ui.min.css">
<script src="./include/jquery/jquery-1.12.4.min.js"></script>
<script src="./include/jquery_ui/jquery-ui.min.js"></script>
<!-- ################################ For files reder ###############################-->
<!--PDF-->
<link rel="stylesheet" href="./include/pdf/pdf.viewer.css">
<script src="./include/pdf/build/pdf.js"></script>
<script src="./include/pdf/pdf.js"></script>
<!--Docs-->
<script src="./include/docxjs/jszip-utils.js"></script>
<script src="./include/docxjs/mammoth.browser.min.js"></script>
<script src="./include/docx/jszip-utils.js"></script>
<script src="./include/docx/mammoth.browser.min.js"></script>
<!--PPTX-->
<link rel="stylesheet" href="./include/PPTXjs/css/pptxjs.css">
<link rel="stylesheet" href="./include/PPTXjs/css/nv.d3.min.css">
Expand All @@ -23,15 +23,15 @@
<script type="text/javascript" src="./include/PPTXjs/js/pptxjs.js"></script>
<script type="text/javascript" src="./include/PPTXjs/js/divs2slides.js"></script>
<!--All Spreadsheet -->
<link rel="stylesheet" href="./include/handsontable/dist/handsontable.full.min.css">
<script type="text/javascript" src="./include/handsontable/dist/handsontable.full.js"></script>
<script type="text/javascript" src="./include/SheetJS/assets/js/xlsx.full.min.js"></script>
<link rel="stylesheet" href="./include/SheetJS/handsontable.full.min.css">
<script type="text/javascript" src="./include/SheetJS/handsontable.full.min.js"></script>
<script type="text/javascript" src="./include/SheetJS/xlsx.full.min.js"></script>
<!--Image viewer-->
<link rel="stylesheet" href="./include/verySimpleImageViewer/css/jquery.verySimpleImageViewer.css">
<script type="text/javascript" src="./include/verySimpleImageViewer/js/jquery.verySimpleImageViewer.js"></script>
<!--All-->
<script src="officeToHtml.js"></script>
<link rel="stylesheet" href="officeToHtml.css">
<!--officeToHtml-->
<script src="./include/officeToHtml.js"></script>
<link rel="stylesheet" href="./include/officeToHtml.css">
</head>
<body id="top">
<div class="wrapper row1">
Expand Down Expand Up @@ -104,7 +104,11 @@ <h3 class="font-x2" id="head-name">Demos - Main</h3>
$("#file_p").show();

$("#resolte-contaniner").officeToHtml({
url: file_path
url: file_path,
pdfSetting: {
setLang: "he",
setLangFilesPath:"" /*"include/pdf/lang/locale" - relative to app path*/
}
});
}else{

Expand All @@ -113,8 +117,11 @@ <h3 class="font-x2" id="head-name">Demos - Main</h3>
$("#a_file").hide();

$("#resolte-contaniner").officeToHtml({
inputObjId: "select_file"

inputObjId: "select_file",
pdfSetting: {
setLang: "he",
setLangFilesPath: "" /*"include/pdf/lang/locale" - relative to app path*/
}
});
}
});
Expand All @@ -135,4 +142,4 @@ <h3 class="font-x2" id="head-name">Demos - Main</h3>
</div>
<a id="backtotop" href="#top"><i class="fa fa-chevron-up"></i></a>
</body>
</html>
</html>
62 changes: 33 additions & 29 deletions pages/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,34 +51,29 @@ <h3 class="font-x2" id="head-name">usage</h3>
<p class="p_heads_1">1. Include all necessary .css and .js files in &lt;HEAD&gt; area:</p>
<pre>
<code>
&lt;link rel="stylesheet" href="./include/jquery_ui/themes/start/jquery-ui.min.css"&gt;
&lt;script src="./include/jquery/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
&lt;script src="./include/jquery_ui/jquery-ui.min.js"&gt;&lt;/script&gt;
&lt;!-- ################################ For files reder ###############################--&gt;
&lt;!--PDF--&gt;
&lt;link rel="stylesheet" href="./include/pdf/pdf.viewer.css"&gt;
&lt;script src="./include/pdf/build/pdf.js"&gt;&lt;/script&gt;
&lt;!--Docs--&gt;
&lt;script src="./include/docxjs/jszip-utils.js"&gt;&lt;/script&gt;
&lt;script src="./include/docxjs/mammoth.browser.min.js"&gt;&lt;/script&gt;
&lt;!--PPTX--&gt;
&lt;link rel="stylesheet" href="./include/PPTXjs/css/pptxjs.css"&gt;
&lt;link rel="stylesheet" href="./include/PPTXjs/css/nv.d3.min.css"&gt;
&lt;script type="text/javascript" src="./include/PPTXjs/js/filereader.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./include/PPTXjs/js/d3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./include/PPTXjs/js/nv.d3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./include/PPTXjs/js/pptxjs.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./include/PPTXjs/js/divs2slides.js"&gt;&lt;/script&gt;
&lt;!--All Spreadsheet --&gt;
&lt;link rel="stylesheet" href="./include/handsontable/dist/handsontable.full.min.css"&gt;
&lt;script type="text/javascript" src="./include/handsontable/dist/handsontable.full.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./include/SheetJS/assets/js/xlsx.full.min.js"&gt;&lt;/script&gt;
&lt;!--Image viewer--&gt;
&lt;link rel="stylesheet" href="./include/verySimpleImageViewer/css/jquery.verySimpleImageViewer.css"&gt;
&lt;script type="text/javascript" src="./include/verySimpleImageViewer/js/jquery.verySimpleImageViewer.js"&gt;&lt;/script&gt;
&lt;!--All--&gt;
&lt;script src="officeToHtml.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="officeToHtml.css"&gt;
&lt;!--PDF--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/pdf/pdf.viewer.css&quot;&gt;
&lt;script src=&quot;./include/pdf/pdf.js&quot;&gt;&lt;/script&gt; &lt;!--Docs--&gt;
&lt;script src=&quot;./include/docx/jszip-utils.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;./include/docx/mammoth.browser.min.js&quot;&gt;&lt;/script&gt;
&lt;!--PPTX--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/PPTXjs/css/pptxjs.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/PPTXjs/css/nv.d3.min.css&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/PPTXjs/js/filereader.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/PPTXjs/js/d3.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/PPTXjs/js/nv.d3.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/PPTXjs/js/pptxjs.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/PPTXjs/js/divs2slides.js&quot;&gt;&lt;/script&gt;
&lt;!--All Spreadsheet --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/SheetJS/handsontable.full.min.css&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/SheetJS/handsontable.full.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/SheetJS/xlsx.full.min.js&quot;&gt;&lt;/script&gt;
&lt;!--Image viewer--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/verySimpleImageViewer/css/jquery.verySimpleImageViewer.css&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;./include/verySimpleImageViewer/js/jquery.verySimpleImageViewer.js&quot;&gt;&lt;/script&gt;
&lt;!--officeToHtml--&gt;
&lt;script src=&quot;./include/officeToHtml.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;./include/officeToHtml.css&quot;&gt;
</code>
</pre>
<p class="p_heads_1">2. Add &lt;Div&gt; with id in &lt;BODY&gt; area:</p>
Expand Down Expand Up @@ -144,6 +139,7 @@ <h3 class="font-x2" id="head-name">usage</h3>
url: file_path,
inputObjId: &quot;select_file&quot;,
pdfSetting: {
setLang: "he",
thumbnailViewBtn: true,
searchBtn: true,
nextPreviousBtn: true,
Expand Down Expand Up @@ -184,11 +180,19 @@ <h3 class="font-x2" id="head-name">usage</h3>
<th class="tg-jc4p">default value</th>
</tr>
<tr>
<td class="tg-yw4l">1</td>
<td class="tg-yw4l">setLang<br></td>
<td class="tg-yw4l">set manually the interface language(short name code) -click here to see all supported languages: <a href="lang.html">link.</a>
<br>if set to "" or not set at all then the language will be as the browser interface language or English if it is not
supported.
</td>
<td class="tg-yw4l">""</td>
</tr><tr>
<td class="tg-yw4l">1</td>
<td class="tg-yw4l">thumbnailViewBtn<br></td>
<td class="tg-yw4l">Thumbnail viewer button (true - view button, false - hide button).<br></td>
<td class="tg-yw4l">true</td>
</tr>
</tr>
<tr>
<td class="tg-yw4l">2</td>
<td class="tg-yw4l">searchBtn<br></td>
Expand Down
1 change: 0 additions & 1 deletion pages/include/PPTXjs/js/divs2slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@
case(119): // F8
if(data.isSlideMode){
pptxjslideObj.startAutoSlide();
//TODO : ADD indication that it is in auto slide mode
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/include/PPTXjs/js/pptxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
$(document).bind("keydown",function(event){
event.preventDefault();
var key = event.keyCode;
console.log(key,isDone)
//console.log(key,isDone)
if(key==116 && !isSlideMode){ //F5
isSlideMode = true;
$("#"+divId+" .slide").hide();
Expand Down
Binary file added pages/include/PPTXjs/~$Sample_11.pptx
Binary file not shown.
Binary file added pages/include/PPTXjs/~$Sample_12.pptx
Binary file not shown.
Binary file added pages/include/PPTXjs/~$Sample_video.pptx
Binary file not shown.
34 changes: 34 additions & 0 deletions pages/include/SheetJS/del/css/sheetjs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* sheetjs.css (C) 2014-present SheetJS -- http://sheetjs.com */
/* vim: set ts=2: */
#drop{
border:2px dashed #bbb;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
padding:25px;
text-align:center;
width:128px;
font:20pt bold,"Vollkorn";color:#bbb
}

#left {
width:188px;
position:absolute;
left:0;
}
#right {
position:absolute;
left:200px;
}
#logo {
padding:25px;
}
#header {
height:168px;
}

.winpt { width:98%; }
.success { color: #468847; }
.error { color: #b94a48; }
.info { color: #3a87ad; }
pre { white-space: pre-wrap; }
52 changes: 52 additions & 0 deletions pages/include/SheetJS/del/handsontable/dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Handsontable distributions

## Full distribution (recommended)

The full distribution allows you to use Handsontable by including just 2 files:
```html
<script src="dist/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="dist/handsontable.full.css">
```
You can also use minified files:
```html
<script src="dist/handsontable.full.min.js"></script>
<link rel="stylesheet" media="screen" href="dist/handsontable.full.min.css">
```

If you use a date picker or numeric cell types, you will also have to include Pikaday, moment.js and numbro.js.

**handsontable.full.js** and **handsontable.full.css** are compiled with ___all___ the needed dependencies (except language files - see below).

## Bare distribution

If you are a "Bob the Builder" kind of hacker, you will need to load Handsontable JS, CSS and their dependencies:
```html
<!-- Required dependencies (as external scripts) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pikaday/1.5.1/pikaday.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numbro/1.11.0/numbro.min.js"></script>

<!-- Handsontable bare files -->
<script src="dist/handsontable.js"></script>
<link rel="stylesheet" media="screen" href="https://cdnjs.cloudflare.com/ajax/libs/pikaday/1.5.1/css/pikaday.min.css">
<link rel="stylesheet" media="screen" href="dist/handsontable.css">
```

**handsontable.js** and **handsontable.css** are compiled ___without___ the needed dependencies.

## Internationalization
Since Handsontable [35.0.0](https://docs.handsontable.com/0.35.0/tutorial-release-notes.html) it is possible to include files which will register languages dictionaries. They allow to translate parts of Handsontable UI. You can either use only particular languages files or include all of them at once as a single file.

All the information about the API and additional options can be found at our [official documentation](https://docs.handsontable.com/0.35.0/tutorial-internationalization.html).

```html
<!-- Internationalization, Polish - Poland language-country file -->
<script src="languages/pl-PL.js"></script>

<!-- Internationalization, all available language files in one file -->
<script src="languages/all.js"></script>
```

## Custom distribution

If you want to build your own custom Handsontable package distribution check out our [guide](https://docs.handsontable.com/tutorial-custom-build.html) covering all the details.
Loading

0 comments on commit d9d0fdc

Please sign in to comment.