forked from patrickmarabeas/ng-FitText.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (43 loc) · 1.94 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
<!DOCTYPE html>
<html data-ng-app="demo">
<head>
<title>ng-FitText.js</title>
<script type="text/javascript" src="demo/js/angular.min.js"></script>
<script type="text/javascript" src="demo/js/demo.js"></script>
<script type="text/javascript" src="src/ng-FitText.js"></script>
<link rel="stylesheet" type="text/css" href="demo/styles/main.css"/>
</head>
<body>
<header id="top">
<a href="https://github.com/patrickmarabeas/ng-FitText.js">View it on GitHub</a>
<a href="https://github.com/patrickmarabeas/ng-FitText.js/zipball/master">Download ZIP</a>
<a href="https://github.com/patrickmarabeas/ng-FitText.js/tarball/master">Download TAR</a>
<a href="https://github.com/patrickmarabeas">@patrickmarabeas</a>
</header>
<div class="page">
<header data-ng-controller="MainController">
<input type="text" data-ng-model="dyn" autofocus />
<h1>
<span class="line1" data-fittext data-fittext-min="100" data-fittext-max="310" data-ng-model="dyn">{{dyn}}</span>
<span class="line2" data-fittext data-fittext-load-delay="500">
<span data-fittext-nl>rustled my jimmies</span>
<span data-fittext-nl class="right red">jimmies</span>
<span data-fittext-nl class="right blue">jimmies</span>
</span>
</h1>
<h2>ng-FitText.js makes font-sizes flexible. Use this directive in your fluid or responsive layout to achieve
scalable headlines that fill the width of a parent element.</h2>
</header>
<div id="content">
<p><strong>Full README can be found on <a href="https://github.com/patrickmarabeas/ng-FitText.js">GitHub</a></strong></p>
<h3>Install and Inclusion</h3>
<p>Grab it with Bower:</p>
<code>bower install ngFitText</code>
<p>Include it in your AngularJS application</p>
<code>var myApp = angular.module( 'myApp', [ 'ngFitText' ] );</code>
<p>Apply it to your text</p>
<code><h1 data-fittext>FitText</h1></code>
</div>
</div>
</body>
</html>