aboutsummaryrefslogtreecommitdiff
path: root/assets/javascript/github-0.0.1.min.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-12-06 21:17:21 +0300
committerValentin Popov <info@valentineus.link>2018-12-06 21:18:50 +0300
commitc99c6bcc4620eaa5f28820de71f748164f528a7d (patch)
treeb4caf213eb2c4509d5582611fc1ecad5f0890d33 /assets/javascript/github-0.0.1.min.js
parent4f25c2dd263cdf6efbff19307a33a2e40061a47d (diff)
downloadpopov.link-c99c6bcc4620eaa5f28820de71f748164f528a7d.tar.xz
popov.link-c99c6bcc4620eaa5f28820de71f748164f528a7d.zip
feat(js): Delete the inserted JS code
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'assets/javascript/github-0.0.1.min.js')
-rw-r--r--assets/javascript/github-0.0.1.min.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/assets/javascript/github-0.0.1.min.js b/assets/javascript/github-0.0.1.min.js
deleted file mode 100644
index f71ac22..0000000
--- a/assets/javascript/github-0.0.1.min.js
+++ /dev/null
@@ -1 +0,0 @@
-var Github=function(t){"use strict";return t.addComment=function r(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"document",e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},n=$("#template").html(),u=new Date(e.updated_at),a=doT.template(n);$(t).append(a({avatar:e.user.avatar_url,content:e.body_html,date:u.toDateString(),url:e.user.html_url,user:e.user.login}))},t.getComments=function a(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"",e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:0,n=arguments[2],u=$.ajax({url:"https://api.github.com/repos/"+t+"/issues/"+e+"/comments",headers:{Accept:"application/vnd.github.v3.html+json"},dataType:"json"});u.fail(function(t,e){return n(e,null)}),u.done(function(t){return n(null,t)})},t}({});