Marked as 0.2.8

This commit is contained in:
Wu Cheng-Han 2015-05-15 12:58:13 +08:00
parent 2d36d7ce84
commit 4e64583a0b
96 changed files with 3281 additions and 22102 deletions
public/js

View file

@ -28,6 +28,8 @@ function renderFilename(view) {
return filename;
}
var viewAjaxCallback = null;
//dynamic event or object binding here
function finishView(view) {
//youtube
@ -42,7 +44,7 @@ function finishView(view) {
.each(function (key, value) {
$.ajax({
type: 'GET',
url: 'http://vimeo.com/api/v2/video/' + $(value).attr('videoid') + '.json',
url: '//vimeo.com/api/v2/video/' + $(value).attr('videoid') + '.json',
jsonp: 'callback',
dataType: 'jsonp',
success: function (data) {
@ -54,7 +56,7 @@ function finishView(view) {
//gist
view.find("code[data-gist-id]").each(function(key, value) {
if($(value).children().length == 0)
$(value).gist();
$(value).gist(viewAjaxCallback);
});
//emojify
emojify.run(view[0]);