-
Notifications
You must be signed in to change notification settings - Fork 0
/
articleSplit.html
78 lines (65 loc) · 2.95 KB
/
articleSplit.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
<html>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<title>
Article Splitter
</title>
<body>
<div class="container" style="width: 50%; margin-top: 2rem;">
<div class="tabs is-centered is-boxed">
<ul>
<li>
<a href="index.html">
<span class="icon is-small"><i class="fa fa-euro-sign" aria-hidden="true"></i></span>
<span>Pay Checker</span>
</a>
</li>
<li class="is-active">
<a>
<span class="icon is-small"><i class="fa fa-cut" aria-hidden="true"></i></span>
<span>Article Format</span>
</a>
</li>
<li>
</ul>
</div>
</div>
<div class="container" style="display: flex; justify-content: center; padding-top: 10rem;">
<div class="card" style="height: 20rem; width: 20%; background-color: #546de5; border-radius: 1.5rem;">
<div class="card-content" style="display: flex; justify-content: center;">
<div class="container" style="height: 15rem;">
<div class="field" style="margin-bottom: 2rem; text-align: center;">
<label class="label">Article Number</label>
<div class="control">
<input class="input" id="input-field" type="text" placeholder="Text input">
</div>
</div>
<div class="field">
<label class="label" style="text-align: center;"">Result</label>
<div class="control">
<input id="result-field" class="input" type="text">
</div>
</div>
<div class="control" style="padding-top: 2rem; padding-left: 4rem;">
<button class="button is-warning" id="submit-button">Submit</button>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
let button = document.getElementById("submit-button")
button.addEventListener("click", function()
{
result()
})
function result()
{
let result_field = document.getElementById("result-field")
let input_field = (document.getElementById("input-field").value).split(".")
result_field.value = input_field.join('')
}
</script>
</html>