-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
71 lines (68 loc) · 3.84 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Welcome Appleboy Home Page</title>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5766319-20']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="container well">
<div class="page-header">
<h1>Backbone.js Tutorial</h1>
</div>
<ul style="margin-top:5px;">
<li style="margin-top:5px;"><button class="btn btn-primary" data-url="http://appleboy.github.com/backbone.js/example_1/">Demo Site</button> <button class="btn btn-danger" data-url="https://github.com/appleboy/appleboy.github.com/blob/master/backbone.js/example_1/index.html">Source Code</button> <a style="font-size:1.2em;" href="http://goo.gl/4BHls" target="_blank">Backbone.js Framework 初學介紹</a></li>
<li style="margin-top:5px;"><button class="btn btn-primary" data-url="http://appleboy.github.com/backbone.js/example_2/">Demo Site</button> <button class="btn btn-danger" data-url="https://github.com/appleboy/appleboy.github.com/blob/master/backbone.js/example_2/index.html">Source Code</button> <a style="font-size:1.2em;" href="http://goo.gl/O8EY7" target="_blank">Backbone.js Event 事件介紹</a></li>
</ul>
<div class="page-header">
<h1>jQuery Tutorial</h1>
</div>
<ul style="margin-top:5px;">
<li style="margin-top:5px;"><button class="btn btn-primary" data-url="http://appleboy.github.com/jquery/example_1/">Demo Site</button> <button class="btn btn-danger" data-url="https://github.com/appleboy/appleboy.github.com/blob/master/jquery/example_1/index.html">Source Code</button> <a style="font-size:1.2em;" href="http://goo.gl/s42T1" target="_blank">jQuery 1.7 透過 on 來綁定事件</a></li>
</ul>
<ul style="margin-top:5px;">
<li style="margin-top:5px;"><button class="btn btn-primary" data-url="http://appleboy.github.com/jquery/example_2/">Demo Site</button> <button class="btn btn-danger" data-url="https://github.com/appleboy/appleboy.github.com/blob/master/jquery/example_2/index.html">Source Code</button> <a style="font-size:1.2em;" href="http://goo.gl/bJdyr" target="_blank">輕量級 jQuery Slideshow Plugin</a></li>
</ul>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8029787021384054";
/* github adsense */
google_ad_slot = "5565872874";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
<script>
(function ($) {
window.AppView = Backbone.View.extend({
el: $("body"),
events: {
"click button": "redirect"
},
redirect: function(e) {
var url = $(e.currentTarget).data('url');
location.href = url;
},
});
var appview = new AppView;
})(jQuery);
</script>
</body>
</html>