-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
266 lines (221 loc) · 12.5 KB
/
index.html
File metadata and controls
266 lines (221 loc) · 12.5 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Canvas Dev & Friends - Instructure Tech Blog</title>
<meta name="author" content="Instructure">
<meta name="description" content="Learn the Canvas API If you’re running Canvas yourself or considering working on the Canvas codebase, start here. Community API Docs Partners …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://instructure.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Instructure Tech Blog" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/moment.min.js"></script>
<script src="/javascripts/jquery.bxslider.min.js"></script>
<link href="/stylesheets/jquery.bxslider.css" rel="stylesheet" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9138420-21']);
_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 class="no-sidebar">
<header role="banner">
<!-- <div class="fat-people"></div>
<div class="tiny-heads"></div> -->
<hgroup>
<h1><a href="/">Canvas Dev & Friends</a></h1>
<h2>Resources for API development, App development, and open source development</h2>
</hgroup>
</header>
<nav role="navigation">
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:instructure.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
</nav>
<ul class="bxslider">
<li style="background-image: url('/images/slide-5.jpg');">
<div class="shaded">
<a href="https://api.instructure.com">
<h1>Learn the Canvas API</h1>
</a>
<p>If you’re running Canvas yourself or considering working on the Canvas codebase, <a href="https://api.instructure.com">start here</a>.</p>
</div>
</li>
</ul>
<div id="sub-navigation">
<ul class="col-1-1">
<li class="col-1-6"><a href="https://community.canvaslms.com/groups/canvas-developers">Community</a></li>
<li class="col-1-6"><a href="https://canvas.instructure.com/doc/api/index.html">API Docs</a></li>
<li class="col-1-6"><a href="http://partners.instructure.com">Partners</a></li>
<li class="col-1-6"><a href="http://www.edu-apps.org">Apps</a></li>
<li class="col-1-6"><a href="https://groups.google.com/forum/?fromgroups#!forum/canvas-lms-users">Mailing List</a></li>
<li class="col-1-6"><a href="https://web.libera.chat/#canvas-lms">IRC</a></li>
</ul>
</div>
<div class="min-wrapper">
<section id="resources">
<div class="gridd">
<div class="col-1-3">
<ul>
<li>
<div class="title"><i class="canvas-icon-search-address-book"></i> API Docs</div>
<div class="blurb"><a href="http://api.instructure.com/">Canvas has API docs</a>. If you’re new to them or to working with APIs in general you’ll probably want to start with the <a href="https://canvas.instructure.com/courses/785215/wiki/getting-started-with-the-api">getting started page</a> or <a href="https://canvas.instructure.com/courses/785215/wiki/api-use-case-examples">review the API use cases</a>.</div>
</li>
<li>
<div class="title"><i class="canvas-icon-group-new"></i> Developer Keys</div>
<div class="blurb">Before you can use the Canvas API in a production environment you’re going to need a developer key. For more information about how to obtain and use developer keys, see our <a href="https://canvas.instructure.com/doc/api/file.oauth.html#oauth2-flow-0">API guides</a>. When requesting a developer key, be aware of some of the <a href="https://community.canvaslms.com/groups/admins/blog/2017/07/19/administrative-guidelines-for-issuing-canvas-developer-keys">questions</a> Institution admins may ask.</div>
</li>
</ul>
</div>
<div class="col-1-3">
<ul>
<li>
<div class="title"><i class="canvas-icon-search-address-book"></i> LTI Docs</div>
<div class="blurb">There are official <a href="http://www.imsglobal.org/activity/learning-tools-interoperability">LTI docs</a>, but if you’re struggling to sort through them, we have <a href="https://www.eduappcenter.com/docs/basics/index">a shorter LTI introduction</a> you can check out to get started.</div>
</li>
<li>
<div class="title"><i class="canvas-icon-upload"></i> Submit an App</div>
<div class="blurb">Once you’ve built an LTI app and you’re ready to share it with the world on <a href="https://www.eduappcenter.com/">EduAppCenter.com</a>, you can create an account and submit your app to our LTI repository. Then just <a href="mailto:support@partnerships.zendesk.com">notify us</a> about your app so we can review and approve it.</div>
</li>
<li>
<div class="title"><i class="canvas-icon-android"></i> Mobile App API</div>
<div class="blurb">Our mobile apps on Android and iOS have an API that allows other apps on a device to communicate with them. If you have an app that would benefit from interacting with our Canvas Mobile apps, <a href="/mobile-app-api">check out our App API documentation</a>.</div>
</li>
</ul>
</div>
<div class="col-1-3">
<ul>
<li>
<div class="title"><i class="canvas-icon-instructure"></i> Learn Canvas</div>
<div class="blurb">If you’re running Canvas yourself or considering working on the Canvas codebase, first check out the <a href="https://github.com/instructure/canvas-lms/wiki">introduction on GitHub</a>. You should also join the <a href="https://groups.google.com/forum/?fromgroups#!forum/canvas-lms-users">mailing list</a> or our <a href="https://web.libera.chat/#canvas-lms">IRC channel</a>. Issues? <a href="https://community.canvaslms.com/community/answers/guides">Visit our help portal</a>.</div>
</li>
<li>
<div class="title"><i class="canvas-icon-github"></i> GitHub</div>
<div class="blurb"><a href="https://github.com/instructure/canvas-lms">Canvas is released open source</a> under the AGPL license. There’s a couple other related libraries you can see <a href="https://github.com/instructure">on our github site</a>.</div>
</li>
<li>
<div class="title"><i class="canvas-icon-peer-review"></i> Contribute</div>
<div class="blurb">Canvas is dual-licensed, so if you’re interested in contributing to the project you’re going to need to send us <a href="https://github.com/instructure/canvas-lms/wiki/ica.pdf">a code contributor agreement</a>. You’ll also probably want to review the <a href="https://github.com/instructure/canvas-lms/wiki/Coding-Guidelines">contribution guide</a>. After that it’s pull requests ftw!</div>
</li>
</ul>
</div>
</div>
</section>
<footer>
Learning Tools Interoperability™ (LTI™) is a trademark of the IMS Global Learning Consortium, Inc. (www.imsglobal.org)<br>Copyright © 2013 - Instructure Engineering
</footer>
</div>
<script>
function cleanup (str) {
str = (str + '').replace(/\<br \/>\n\n\n<br \/>Event Status: confirmed/g, '<br />');
str = (str + '').split(/Event Description/)[0];
return str;
// return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '' + '$2');
}
$.ajax({
url: "http://pipes.yahoo.com/pipes/pipe.run?_id=675f5a7243c80318cac974759f9859c5&_render=json&feedcount=15&feedurl=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2Finstructure.com_f9og1sg8lstpaihggpuvkdvg58%2540group.calendar.google.com%2Fpublic%2Fbasic",
jsonp: '_callback',
success: function(data) {
var events = [];
for(var idx = 0; idx < 5 && idx < data.value.items.length; idx++) {
var event = data.value.items[idx];
var match = event.description.match(/When: ([\w\d\s,:]+)/);
if(match) {
event.datestring = match[1];
event.datestamp = Date.parse(event.datestring.substring(0, 16));
if(isFinite(event.datestamp)) {
events.push(event);
}
}
}
events = events.sort(function(a, b) {
return a.datestamp - b.datestamp;
});
var now = (new Date()).getTime();
var addedEvents = 0;
var html = "";
for(var idx = 0; idx < events.length && addedEvents < 5; idx++) {
var event = events[idx];
if(event.datestamp > (now - 1000*60*60*24)) { // 1 day ago
var d = moment(event.datestamp);
addedEvents++;
html = html + "<li><p class='calendar'>" + d.format("D") + " <em>" + d.format("MMMM") + "</em></p><div class='calendar-side' style='display: block; position: relative; left: 10px;'><div class='title'><a href='" + event.link + "'>" + event.title + "</a></div><div class='text' style='border-bottom: 0px;'>" + cleanup(event.content.content) + "</div></div><div style='clear: both;'></div></li>";
}
}
$("#events").html(html);
},
dataType: 'jsonp'
});
$.ajax({
url: "http://pipes.yahoo.com/pipes/pipe.run?_id=3b43d0be27f060f7266d3060ef9c9a5c&_render=json",
jsonp: '_callback',
success: function(data) {
var html = "";
for(var idx = 0; idx < 5 && idx < data.value.items.length; idx++) {
var entry = data.value.items[idx];
var text = $("<div/>").html(entry.description).text().substring(0, 200);
html = html + "<li><a href='" + entry.link + "'><div class='title'>" + entry.title + "</div><div class='date'>" + entry.pubDate + "</div><div class='text'>" + text + "...</div></a></li>";
}
$("#messages").append(html);
},
dataType: 'jsonp'
});
var numberOfSlides = $('.bxslider li').length
$('.bxslider').bxSlider({
auto: (numberOfSlides > 1 ? true : false),
pause: 7000,
pager: (numberOfSlides > 1 ? true : false)
});
if (numberOfSlides === 1) {
$("#sub-navigation").css("marginTop", "40px")
}
</script>
<div class="min-wrapper">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</div>
</body>
</html>