-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.63 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mediyum</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.1/css/bulma.min.css">
<link rel="stylesheet" href="dist/mincss/main.min.css">
<script type="text/javascript" src="dist/minjs/mediyum.min.js"></script>
<script type="text/javascript" src="dist/minjs/draggable.min.js"></script>
<!-- <script type="text/javascript" src="./js/mediyum.js"></script> -->
</head>
<body class="g-body">
<section class="hero is-fullheight is-default is-bold">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div id="main" class="column is-half is-centered has-nice-link">
<h1 class="title is-2">Hi There !</h1>
<h2 class="title is-4">Write your ❤️ out</h2>
<form id="feedback-f" data-drop-target="true">
<p class="control">
<div contenteditable="true" class="content" id="editor" name="message" minlength="20" required autofocus data-drop-target="true"></div>
</p>
</form>
</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
var temp = document.createElement('p');
var att = document.createAttribute("draggable");
att.value = "true";
temp.innerHTML = 'hello world';
temp.setAttributeNode(att);
document.querySelector("#editor").appendChild(temp);
</script>
<script type="text/javascript">
mediYum.attachAllTheStuff(document.querySelectorAll("form"));
</script>
</body>
</html>`