-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
160 lines (147 loc) · 7.28 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Screenwriting software for writing and formatting scripts.">
<title>LibreScript</title>
<!--Bootstrap-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!--Custom CSS-->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!--Main Navigation-->
<header class="mb-4 sticky-top">
<div class="p-3 text-center bg-white border-bottom">
<div class="container-fluid">
<div class="row">
<!-- Right elements -->
<div
class="col-md-5 d-flex justify-content-center justify-content-md-start align-items-center d-none d-lg-flex">
<a class="text-reset me-3" href="#">
<i class="fas fa-th-large"></i>
</a>
<a class="text-reset me-3" href="#">
<i class="fas fa-home"></i>
</a>
<div class="dropdown">
<a class="dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
File
</a>
<ul class="dropdown-menu">
<li><a href="index.html" class="dropdown-item">New script</a></li>
<li><button class="dropdown-item" type="button" onclick="saveFile()">Save script</button></li>
<li><button class="dropdown-item" type="button" onclick="openFile()">Open script</button></li>
<li><button class="dropdown-item" onclick="exportPDF()" type="button">Export script <code>(PDF)</code></button></li>
</ul>
</div>
<!-- <div class="dropdown" style="padding-left: 10%;">
<a class="dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Edit
</a>
<ul class="dropdown-menu">
<li><button class="dropdown-item" type="button">---</button></li>
<li><button class="dropdown-item" type="button">---</button></li>
<li><button class="dropdown-item" type="button">---</button></li>
</ul>
</div> -->
<div class="dropdown" style="padding-left: 10%;">
<a class="dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Help
</a>
<ul class="dropdown-menu">
<li><a href="https://github.com/Kuvrot/LibreScript" target="_blank" class="dropdown-item"> Documentation </a></li>
<li><a href="https://github.com/Kuvrot/LibreScript" target="_blank" class="dropdown-item">
Source code
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"/>
</svg>
</a></li>
<li><a href="https://github.com/Kuvrot/LibreScript/issues/new" target="_blank" class="dropdown-item text-red">Report an issue</a></li>
</ul>
</div>
</div>
<!-- Right elements -->
<!-- Center elements -->
<div class="col-md-2 d-none d-lg-block">
<a href="https://github.com/Kuvrot" target="_blank" class="ms-md-2" style="font-family: 'Courier New', Courier, monospace;">
LibreScript
</a>
</div>
<!-- Center elements -->
<!-- Right elements -->
<div class="col-lg-5 d-flex justify-content-center justify-content-md-end align-items-center">
</div>
<!-- Right elements -->
</div>
</div>
</div>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light shadow bg-white d-none d-lg-block">
<!-- Container wrapper -->
<div class="container-fluid justify-content-center justify-content-md-between" style="padding-left: 10%;">
<!-- Left elements -->
<div class="d-flex">
<div class="dropdown" style="padding-right: 2.5%;">
<a class="btn btn-light dropdown-toggle" id="currentFormat" type="button" data-bs-toggle="dropdown">
Select font
</a>
<ul class="dropdown-menu" style="text-align: center;">
<li><button class="dropdown-item" type="button" onclick="setFormat(0)">Consolas (default)</button></li>
<li><button class="dropdown-item" type="button" onclick="setFormat(1)">Courier new</button></li>
<li><button class="dropdown-item" type="button" onclick="setFormat(2)">Hack</button></li>
<li><button class="dropdown-item" type="button" onclick="setFormat(3)">Arial</button></li>
</ul>
</div>
<!--
<button class="btn btn-light me-1" id="bold" data-mdb-ripple-color="dark" onclick="setTypography(1)" type="button">
<i class="fas fa-clipboard-list me-1"></i> <b>B</b>
</button>
<button class="btn btn-light me-1" id="italic" data-mdb-ripple-color="dark" onclick="setTypography(2)" type="button">
<i class="fas fa-clipboard-list me-1"></i><i>I</i>
</button>
<button class="btn btn-light me-1" id="underline" data-mdb-ripple-color="dark" onclick="setTypography(3)" type="button">
<i class="fas fa-clipboard-list me-1"></i><ins>U<ins>
</button>
-->
</div>
<!-- Left elements -->
<!-- Right elements -->
<!-- <div style="padding-right: 25%;">
<div class="dropdown">
<a class="btn btn-light dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
100%
</a>
<ul class="dropdown-menu">
<li><button class="dropdown-item" type="button">50%</button></li>
<li><button class="dropdown-item" type="button">75%</button></li>
<li><button class="dropdown-item" type="button">100%</button></li>
<li><button class="dropdown-item" type="button">200%</button></li>
</ul>
</div>
</div> -->
<!-- Right elements -->
</div>
<!-- Container wrapper -->
</nav>
<!-- Navbar -->
</header>
<!-- Document -->
<div id="document" class="document row" style="background-color: white; ">
<!-- All this atributes improve the textarea performance -->
<textarea name="" style="font-family: consolas;" id="input" class="col" oninput="updateDivContent()" onclick="updateDivContent()" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-model-options="{ updateOn: 'blur' }">
</textarea>
<div id="result" over style="background-color: white; padding-top:1%;" class="col shadow">
</div>
</div>
<footer class="bg-white expand sticky-bottom shadow fixed-bottom">
<div class="d-flex" style="padding-top: 1%;">
<p class="row text-left" style="padding-left: 2.5%; padding-right:2.5%;" >Consideration: </p> <p class="row" id="time">00:00:00</p>
<p class="row text-right" style="padding-left: 75%; padding-right:2.5%;" >Version 1.3.1</p>
</div>
</footer>
<script src="main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>