This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
executable file
·68 lines (52 loc) · 2.25 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
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>AngularJs Typed</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="src/angular-typed.css">
</head>
<body ng-controller="MainCtrl">
<article>
<header>
<div class="showlate" ng-show="hasEndend">
<h1>angular-typed</b></h1>
<h2>the ultimate angularjs typing tool</h2>
</div>
<div class="type-box" start-timeout="2000" start-callback="myStartCallback()" end-callback="myCallback()"
type-speed="20" back-speed="20" type-strings="[
'<b>Hey!</b>^350 How are you?^500',
'Welcome to ^500<strong>angular-typed</strong>!^1000',
'This fantastic tool will help you^500',
'with the <i>typing animations in angularjs</i>!^1000',
'^1000',
'It is <u>very easy</u> to use^500',
'it supports <code>html markup</code>^750 and timings^500',
'^250Have a try in you app!^2000',
'and <strong>best of all</strong>^400.^500.^550.^550is free!'
]" html-mode typed></div>
<div class="showlate" ng-show="hasEndend">
<a ng-cloak href="https://github.com/codekraft-studio/angular-typed/archive/master.zip" class="btn">Get it</a>
<a ng-cloak href="https://github.com/codekraft-studio/angular-typed" class="btn">Docs</a>
</div>
</header>
</article>
</body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.8/angular.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.8/angular-animate.min.js"></script>
<script type="text/javascript" src="dist/angular-typed.js"></script>
<script>
angular.module('app', [
'ngAnimate',
'angular-typed'
])
.controller('MainCtrl', function($scope) {
$scope.myCallback = function() {
$scope.hasEndend = true;
}
$scope.myStartCallback = function() {
console.log("The typing is started");
}
})
</script>
</html>