forked from Coding-Bubble/README-Assistant.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (79 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
88
89
90
91
92
93
94
95
96
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>README-Assistant</title>
</head>
<body>
<header class="text-center text-white" style="background-color: #0a4275;">
<div class="text-left p-2" style="background-color: rgba(0, 0, 0, 0.2);">
README-assistant
</div>
</header>
<div class="container">
<br>
<label for="exampleFormControlInput1">Project name</label>
<input type="text" class="form-control" id="project_name" placeholder="Enter the project name here">
<label for="exampleFormControlInput1">Photo url</label>
<input type="text" class="form-control" id="photo_url" placeholder="Paste the photo url here">
<label for="exampleFormControlInput1">Developer's name</label>
<input type="text" class="form-control" id="developer_name" placeholder="Enter the developer's name">
<label for="exampleFormControlInput1">Developer's profile url</label>
<input type="text" class="form-control" id="developer_profile_url" placeholder="Paste the developer's profile url here">
<label for="exampleFormControlInput1">Project url</label>
<input type="text" class="form-control" id="project_url" placeholder="paste the project url here">
<!-- <small id="help" class="form-text text-muted"></small> -->
<label for="exampleFormControlInput1">Project description</label>
<input type="text" class="form-control" id="project_description" placeholder="Enter your project description here">
<br><button type="button" class="btn btn-success" onclick="function1()">Submit</button>
<br><br>
<label for="exampleFormControlInput1">Formatted markdown text</label>
<small id="text_area" class="form-text text-muted">Fill above details to get the markdown text</small>
</div>
<br><br><br>
<footer class="text-center text-white" style="background-color: #0a4275;">
<div class="text-center p-2" style="background-color: rgba(0, 0, 0, 0.2);">
© 2021 Copyright:
<a class="text-white" href="#">Coding-Bubble</a>
</div>
</footer>
<script>
function function1() {
var project_name = document.getElementById("project_name")
var project_url = document.getElementById("project_url")
var developer_name = document.getElementById("developer_name")
var developer_profile_url = document.getElementById("developer_profile_url")
var photo_url = document.getElementById("photo_url")
var project_description = document.getElementById("project_description")
const heading = `
* <a href="#${project_name.value}">${project_name.value}</a>
<br><br>
<h3 id="${project_name.value}">${project_name.value}</h3>
<br><br>
![](${photo_url.value})
<br><br>
${project_description.value}
<br><br>
Developed by: [${developer_name.value}](${developer_profile_url.value})
<br><br>
<br>Click <a href="${project_url.value}" target="_blank">here</a> to see the repository
`
document.getElementById("text_area").innerHTML = heading
}
</script>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<!-- Option 2: jQuery, Popper.js, and Bootstrap JS
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
-->
</body>
</html>