-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
72 lines (58 loc) · 2.68 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
<html>
<head>
<title>
MessageUp.js
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="static/main.css" rel="stylesheet">
<body>
<div class="head">MessageUp.js</div>
<div class="message-box"></div>
<div id="haha"></div>
<p> MessageUp.js is just a 1KB Javascript library which runs without using any third party plugin.
<br> If you want to change your text dynamically after some time then MessageUp.js will do it all for you.
<br> You can also customize speed, color and effects time of messages.
<br>
<br> Read documentation on GitHub.
<br>And if you want to contribute in this library then you are most welcome.
</p>
<div class="example">
It's very easy to apply.
<br>
<br> Step1- include message.js or message-min.js script after your ending body tag like:
<br> ❮script src="/path/messageup.js"❯❮/script❯ or ❮script src="/path/messageup-min.js"❯❮/script❯
<br>
<br> Step2- initialize your own script just above your message.up script tags as
<br> ❮script❯
<br> var msg=["Message 1", "Message 2", "Message 3", "Message 4", "Message 5" ]; <span class="light"> //define messages here </span>
<br> var color=["red", "green", "yellow", "green", "blue"]; <span class="light"> // define color here (optional)</span>
<br> var time=1500;<span class="light"> // define time here (optional)</span>
<br> var speed="slow";<span class="light"> // define speed here as slow or fast (optional) </span>
<br> var iteration="repeat"; <span class="light"> // define iteration type here as repeat or no-repeat (optional)</span>
<br> ❮/script❯
<br>
<br> Step3- include an id to your div as message-box in HTML like:
<br> ❮div id="message-box"❯❮/div❯
<br>
<br> Now you are ready to go :)
</div>
<div class="sign">By Akash Jain
<br>
<a href="http://www.jainakash.in" target="_blank">
(www.jainakash.in)<br><br></a> Made with <i class="fa fa-heart"></i> while listening <i class="fa fa-music"></i></div>
</body>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="lib/messageup.js"></script>
<script>
$(".message-box").messageup({
msg : ["Hi", "This", "is", "custom", "message"],
color : ["#E53935", "#5E35B1", "#009688" , "#EF6C00", "#37474F"],
time : 1000
});
$("#haha").messageup({
msg : ["haha", "hihi", "huhu"],
time : 2000
})
</script>
</head>
</html>