Skip to content
Newer
Older
100644 92 lines (81 sloc) 2.37 KB
5de4a56 @addyosmani adding initial release
authored
1 <!DOCTYPE html>
2 <html>
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
3 <head>
4 <link rel="stylesheet" href="css/application.css" type="text/css" charset="utf-8">
5de4a56 @addyosmani adding initial release
authored
5
c3ca67d @addyosmani adding LABjs script loading chain
authored
6 <script src="lib/LAB.min.js" type="text/javascript" charset="utf-8"></script>
7 <script type="text/javascript">
8 $LAB
397516e @addyosmani patching Chrome 10 load issue on OSX due to LAB chain
authored
9 .setOptions({AlwaysPreserveOrder:true})
c3ca67d @addyosmani adding LABjs script loading chain
authored
10 .script("lib/json.js")
11 .script("lib/jquery.js")
12 .script("lib/jquery.tmpl.js")
13 .script("lib/jquery.bitly.js")
14 .script("lib/store.min.js")
15 .script("lib/spine.js")
16 .script("lib/spine.model.local.js")
17 .script("lib/spine.controller.manager.js")
18 .script("lib/spine.route.js")
19 .script("app/models/url.js")
20 .script("app/application.js");
21 </script>
5de4a56 @addyosmani adding initial release
authored
22
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
23 <script type="text/x-jquery-tmpl" id="urlTemplate">
24 <div class="item">
25 <div class="show">
26 <span class="short">
27 ${long_url}
28 </span>
29
30 <span class="long">
31 {{if short_url}}
32 <a href="${short_url}">${short_url}</a>
33 {{else}}
34 Generating...
35 {{/if}}
36 </span>
6534456 @addyosmani adding overflow fixes
authored
37
38 <span class="iconPanel">
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
39 <a class="toggleStats"></a>
40 <a class="destroy"></a>
6534456 @addyosmani adding overflow fixes
authored
41 </span>
42
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
43 </div>
44 </div>
45 </script>
5de4a56 @addyosmani adding initial release
authored
46
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
47 <script type="text/x-jquery-tmpl" id="statsTemplate">
48 <div class="stats">
49 <a class="back">Back</a>
5de4a56 @addyosmani adding initial release
authored
50
7bc0898 @addyosmani updating css, reapplying store.js support and applying further updates
authored
51 <h1>Click Statistics</h1>
52 <h1 class="longUrl">${long_url}</h1>
45b8493 @addyosmani adding support for google chart api pie graphs
authored
53 {{if stats}}
54 <img class="gchart" src="http://chart.apis.google.com/chart?chs=350x250&cht=p&chd=t:${stats.global_clicks},${stats.user_clicks}&chdl=Global+clicks|User+clicks&chtt=Global+vs.+User+Clicks" width="350" height="250" alt="Global vs. User Clicks" />
55 {{/if}}
7bc0898 @addyosmani updating css, reapplying store.js support and applying further updates
authored
56 <p>Short URL:
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
57 {{if short_url}}
58 <a href="${short_url}">${short_url}</a>
59 {{else}}
60 Generating...
61 {{/if}}
7bc0898 @addyosmani updating css, reapplying store.js support and applying further updates
authored
62 </p>
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
63
64 {{if stats}}
65 <p>Global clicks: ${stats.global_clicks}</p>
66 <p>User clicks: ${stats.user_clicks}</p>
67 {{else}}
68 Fetching...
69 {{/if}}
70 </div>
71 </script>
5de4a56 @addyosmani adding initial release
authored
72 </head>
73 <body>
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
74 <div id="views">
75 <div id="urls">
7bc0898 @addyosmani updating css, reapplying store.js support and applying further updates
authored
76 <h1>Bit.ly Client</h1>
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
77
78 <form>
79 <input type="text" placeholder="Enter a URL">
80 </form>
81
82 <div class="items"></div>
83 </div>
84
85 <div id="stats">
86 </div>
87 </div>
a6b5f2c @addyosmani adding authors notice
authored
88 <div class="footer">
89 A demo by <a href="http://twitter.com/addyosmani">@addyosmani</a> and <a href="http://twitter.com/maccman">@maccman</a>.
90 </div>
5de4a56 @addyosmani adding initial release
authored
91 </body>
3251bfe @addyosmani pushing the refactored version of the codebase with changes by Alex M…
authored
92 </html>
Something went wrong with that request. Please try again.