Repository navigation
Expand file tree
/
Copy pathwrite.html
More file actions
146 lines (123 loc) · 5.69 KB
/
Copy pathwrite.html
File metadata and controls
146 lines (123 loc) · 5.69 KB
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
<!DOCTYPE html>
<html>
<head>
<title>AmaDev | Write</title>
<!-- Icon -->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"
integrity="sha384-LtrjvnR4Twt/qOuYxE721u19sVFLVSA4hf/rRt6PrZTmiPltdZcI7q7PXQBYTKyf"
crossorigin="anonymous"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous">
<!-- AmaDev Icon -->
<link rel="stylesheet" href="assets/amadev-icon/style.css">
<!-- Page Scripts and Style-->
<script type="module" src="assets/scripts/main.js"></script>
<link rel="stylesheet" href="assets/style/style.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark sticky-top bg-info">
<div class="container">
<a class="navbar-brand flex-center transition" href id="nav-brand">
<i class="fas icon-amadev fa-lg align-middle mr-2 transition-1" id="nav-icon"></i>
<span id="ama" class="bg-transparent text-white rounded-left px-1 transition-1">AMA</span>
<span id="dev" class="bg-warning text-dark rounded-right border-1 px-1 transition-1">Dev</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText"
aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href=".">
Home
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">
Write <span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="adder.html">
Adder
</a>
</li>
</ul>
<span class="navbar-text">Write</span>
</div>
</div>
</nav>
<!-- Container -->
<div class="container container-full-height bg-light py-4" style="min-height: 90vh;">
<!-- Jumbotron -->
<div class="jumbotron bg-light">
<h1 class="display-4">Write</h1>
<p class="lead">
Displays you a line of a text file as you want.
</p>
<hr class="my-4">
<p>Try it:</p>
<div class="mx-auto input-group mb-1">
<div class="input-group-prepend">
<input type="number" id="line-number" class="col " data-prefix="Line Number" value="1" min="1" max="100">
</div>
<div class="input-group-append">
<button type="button" onclick="writeFile('node/write')" class="btn btn-warning">
Get from Node.js
</button>
<button type="button" onclick="writeFile('go/write')" class="btn btn-info">
Get from GoLang
</button>
</div>
</div>
<p class="lead text-justify" id="write-result">
The result will be shown here.
</p>
</div>
</div>
<!-- Footer -->
<footer class="page-footer navbar-dark fixed-bottom bg-info text-light">
<!-- Copyright -->
<div class="footer-copyright text-center py-3">Copyright © 2020
<a class="text-decoration-none" href="http://github.com/A-M-A-Dev">
<span class="bg-warning text-dark rounded px-1">AmaDev</span>
</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
<!-- Modal -->
<div class="modal fade" id="response-modal" tabindex="-1" role="dialog" aria-labelledby="responseModal"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="response-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" class="text-danger">×</span>
</button>
</div>
<div class="modal-body">
<p id="response-message"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>