-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (77 loc) · 4.73 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>IPRES - an HTML Slide Editor</title>
<link href="static/favicon.png" rel="icon"/>
<link rel='stylesheet' href='static/style.css'/>
<!-- http://www.mkyong.com/jquery/how-to-add-remove-textbox-dynamically-with-jquery/ -->
<!-- <script src="jquery.min.js"></script> -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<script type="text/javascript" src="static/ipresEdit.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-65088045-9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65088045-9');
</script>
</head>
<body>
<article>
<nav><center><a href="/"><img src="static/logo.png"/ height="40px;"></a></center></nav>
<p>IPRES is a simple HTML wrapper / presentation editor (<a href="https://github.com/zglu/ipres">https://github.com/zglu/ipres</a>).<br><small><strong>To edit:</strong> click '<strong><em>Add Slide</em></strong>' and insert your <strong>HTML code</strong> between section and /section. You can use <a href="https://www.browserling.com/tools/markdown-to-html" target="_blank">markdown to html converter</a> or <a href="https://html-online.com/editor/" target="_blank">WYSIWYG html editor</a> to quickly get your content in html.<br> <strong>To preview:</strong> click '<strong><em>Preview</em></strong>' and navigate the slides using <i class="fa fa-arrow-left"></i> and <i class="fa fa-arrow-right"></i>.<br> <strong>To export:</strong> click '<strong><em>Get Code</em></strong>' and save the code to an .html file.<br> <strong>To customise:</strong> add/change a css style file and/or fit it into a js presentation framework (e.g., revealjs, deckjs, <a href="/plus/webslides.html">webslides</a>, <a href="/plus/shower.html">shower</a>). <br>Demos with different tastes: <a href="plus/demo-default.html" target="_blank">Demo1</a> (<a href="plus/static/ipres-default.css">default</a>); <a href="plus/demo-webslides.html" target="_blank">Demo2</a> (<a href="https://webslides.tv" target="_blank">webslides</a>); <a href="plus/demo-shower.html" target="_blank">Demo3</a> (<a href="https://shwr.me" target="_blank">shower</a>); <a href="plus/demo-reveal.html" target="_blank">Demo4</a> (<a href="http://lab.hakim.se/reveal-js/#/" target="_blank">revealjs</a>)</small></p>
<section class="editsec">
<h2 style="color: blue">Edit <i class="fa fa-pencil"></i></h2>
<div> <!-- head part -->
<label>Head (edit when necessary): </label><br>
<!-- Code for default slide -->
<textarea rows="6" id="boxHead" type="text">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Slides</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://ipres.ivis.xyz/plus/static/ipres-default.css"/>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src='https://code.highcharts.com/highcharts.js'></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
</head>
<body>
<!-- start of slides -->
</textarea>
</div>
<!-- slide content -->
<div id="TextBoxesGroup"></div>
<div> <!-- foot part -->
<label>Foot (edit when necessary): </label><br>
<textarea rows="6" id="boxFoot" type="text">
<!-- end of slides -->
<script>
function plusSlides(e){showSlides(slideIndex+=e)}function currentSlide(e){showSlides(slideIndex=e)}function showSlides(e){var s,l=$(".mySlide");for(e>l.length&&(slideIndex=1),e<1&&(slideIndex=l.length),s=0;s<l.length;s++)l[s].style.display="none";l[slideIndex-1].style.display="block"}$(document).keydown(function(e){switch(e.which){case 37:plusSlides(-1);break;case 39:plusSlides(1);break;default:return}e.preventDefault()});var slideIndex=1;showSlides(slideIndex);
</script>
</body>
</html>
</textarea>
</div>
<input value="Add Slide" id="addButton" type="button">
<input value="Remove Last" id="removeButton" type="button">
<input value="Get Code" id="getCode" type="button">
<br><br>
<hr style="border-style: dashed; color: #ddd;">
<p style="font-size: 0.8em;">© 2017 ipres.xyz - <a href="#">🔝</a></p>
</section>
<section class="prevsec">
<span class="showPrev"><h2 id="previewButton" style="color: red;">Preview <i class="fa fa-eye"></i></h2></span>
<label>Use LEFT/RIGHT to navigate</label><br>
<iframe id="preview" frameBorder="0" />
</section>
</article>
</body>
</html>