mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
added comment block to all projects
This commit is contained in:
parent
03d9551a01
commit
d29be09dc9
@ -12,6 +12,9 @@
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<!-- comment block -->
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<!-- share it -->
|
||||
<script type="text/javascript">var switchTo5x=false;</script>
|
||||
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
|
||||
<script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
|
||||
@ -154,6 +157,16 @@ Roll back window:<br>
|
||||
</ul>
|
||||
|
||||
<!-- comment block http://ivanzuzak.info/ -->
|
||||
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#post p").each( function(index) {
|
||||
if (index > 0 && $.trim($(this).text()).length > 0) {
|
||||
$(this).attr("id", "par" + index.toString());
|
||||
var html = $(this).html();
|
||||
$(this).html(html + " <a href='#par" + index.toString() + "'>#</a>");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div id="comments">
|
||||
<h2>Comments</h2>
|
||||
<div id="header">
|
||||
@ -164,7 +177,7 @@ Roll back window:<br>
|
||||
function loadComments(data) {
|
||||
for (var i=0; i<data.length; i++) {
|
||||
var cuser = data[i].user.login;
|
||||
var cuserlink = "https://github.com/" + data[i].user.login;
|
||||
var cuserlink = "https://www.github.com/" + data[i].user.login;
|
||||
var clink = "https://github.com/arcan1s/arcan1s.github.io/issues/1#issuecomment-" + data[i].url.substring(data[i].url.lastIndexOf("/")+1);
|
||||
var cbody = data[i].body_html;
|
||||
var cavatarlink = data[i].user.avatar_url;
|
||||
|
@ -12,6 +12,9 @@
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<!-- comment block -->
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<!-- share it -->
|
||||
<script type="text/javascript">var switchTo5x=false;</script>
|
||||
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
|
||||
<script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
|
||||
@ -86,7 +89,47 @@ Configuration window:<br>
|
||||
<li>Archlinux <a href="https://aur.archlinux.org/packages/kdeplasma-applets-oblikuestrategies">AUR package</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- comment block http://ivanzuzak.info/ -->
|
||||
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#post p").each( function(index) {
|
||||
if (index > 0 && $.trim($(this).text()).length > 0) {
|
||||
$(this).attr("id", "par" + index.toString());
|
||||
var html = $(this).html();
|
||||
$(this).html(html + " <a href='#par" + index.toString() + "'>#</a>");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div id="comments">
|
||||
<h2>Comments</h2>
|
||||
<div id="header">
|
||||
Want to leave a comment? Visit <a href="https://github.com/arcan1s/arcan1s.github.io/issues/2"> this post's issue page on GitHub</a> (you'll need a GitHub account).
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function loadComments(data) {
|
||||
for (var i=0; i<data.length; i++) {
|
||||
var cuser = data[i].user.login;
|
||||
var cuserlink = "https://www.github.com/" + data[i].user.login;
|
||||
var clink = "https://github.com/arcan1s/arcan1s.github.io/issues/2#issuecomment-" + data[i].url.substring(data[i].url.lastIndexOf("/")+1);
|
||||
var cbody = data[i].body_html;
|
||||
var cavatarlink = data[i].user.avatar_url;
|
||||
var cdate = Date.parse(data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
$("#comments").append("<div class='comment'><div class='commentheader'><div class='commentgravatar'>" + '<img src="' + cavatarlink + '" alt="" width="20" height="20">' + "</div><a class='commentuser' href=\""+ cuserlink + "\">" + cuser + "</a><a class='commentdate' href=\"" + clink + "\">" + cdate + "</a></div><div class='commentbody'>" + cbody + "</div></div>");
|
||||
}
|
||||
}
|
||||
$.ajax("https://api.github.com/repos/arcan1s/arcan1s.github.io/issues/2/comments?per_page=100", {
|
||||
headers: {Accept: "application/vnd.github.full+json"},
|
||||
dataType: "json",
|
||||
success: function(msg){
|
||||
loadComments(msg);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- end of comment block -->
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p class="view"><a href="javascript:history.back()">Back</a><br>
|
||||
<a href="/">Back to Homepage</a></p>
|
||||
|
@ -12,6 +12,9 @@
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<!-- comment block -->
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<!-- share it -->
|
||||
<script type="text/javascript">var switchTo5x=false;</script>
|
||||
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
|
||||
<script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
|
||||
@ -243,7 +246,47 @@ Configuration window::<br>
|
||||
<li>Archlinux <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor">AUR package</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- comment block http://ivanzuzak.info/ -->
|
||||
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#post p").each( function(index) {
|
||||
if (index > 0 && $.trim($(this).text()).length > 0) {
|
||||
$(this).attr("id", "par" + index.toString());
|
||||
var html = $(this).html();
|
||||
$(this).html(html + " <a href='#par" + index.toString() + "'>#</a>");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div id="comments">
|
||||
<h2>Comments</h2>
|
||||
<div id="header">
|
||||
Want to leave a comment? Visit <a href="https://github.com/arcan1s/arcan1s.github.io/issues/3"> this post's issue page on GitHub</a> (you'll need a GitHub account).
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function loadComments(data) {
|
||||
for (var i=0; i<data.length; i++) {
|
||||
var cuser = data[i].user.login;
|
||||
var cuserlink = "https://www.github.com/" + data[i].user.login;
|
||||
var clink = "https://github.com/arcan1s/arcan1s.github.io/issues/3#issuecomment-" + data[i].url.substring(data[i].url.lastIndexOf("/")+1);
|
||||
var cbody = data[i].body_html;
|
||||
var cavatarlink = data[i].user.avatar_url;
|
||||
var cdate = Date.parse(data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
$("#comments").append("<div class='comment'><div class='commentheader'><div class='commentgravatar'>" + '<img src="' + cavatarlink + '" alt="" width="20" height="20">' + "</div><a class='commentuser' href=\""+ cuserlink + "\">" + cuser + "</a><a class='commentdate' href=\"" + clink + "\">" + cdate + "</a></div><div class='commentbody'>" + cbody + "</div></div>");
|
||||
}
|
||||
}
|
||||
$.ajax("https://api.github.com/repos/arcan1s/arcan1s.github.io/issues/3/comments?per_page=100", {
|
||||
headers: {Accept: "application/vnd.github.full+json"},
|
||||
dataType: "json",
|
||||
success: function(msg){
|
||||
loadComments(msg);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- end of comment block -->
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p class="view"><a href="javascript:history.back()">Back</a><br>
|
||||
<a href="/">Back to Homepage</a></p>
|
||||
|
@ -12,6 +12,9 @@
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<!-- comment block -->
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<!-- share it -->
|
||||
<script type="text/javascript">var switchTo5x=false;</script>
|
||||
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
|
||||
<script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
|
||||
@ -140,7 +143,47 @@ Parameters:
|
||||
<li><a href="https://github.com/arcan1s/queued/releases">Latest release</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- comment block http://ivanzuzak.info/ -->
|
||||
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#post p").each( function(index) {
|
||||
if (index > 0 && $.trim($(this).text()).length > 0) {
|
||||
$(this).attr("id", "par" + index.toString());
|
||||
var html = $(this).html();
|
||||
$(this).html(html + " <a href='#par" + index.toString() + "'>#</a>");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<div id="comments">
|
||||
<h2>Comments</h2>
|
||||
<div id="header">
|
||||
Want to leave a comment? Visit <a href="https://github.com/arcan1s/arcan1s.github.io/issues/4"> this post's issue page on GitHub</a> (you'll need a GitHub account).
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function loadComments(data) {
|
||||
for (var i=0; i<data.length; i++) {
|
||||
var cuser = data[i].user.login;
|
||||
var cuserlink = "https://www.github.com/" + data[i].user.login;
|
||||
var clink = "https://github.com/arcan1s/arcan1s.github.io/issues/4#issuecomment-" + data[i].url.substring(data[i].url.lastIndexOf("/")+1);
|
||||
var cbody = data[i].body_html;
|
||||
var cavatarlink = data[i].user.avatar_url;
|
||||
var cdate = Date.parse(data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
$("#comments").append("<div class='comment'><div class='commentheader'><div class='commentgravatar'>" + '<img src="' + cavatarlink + '" alt="" width="20" height="20">' + "</div><a class='commentuser' href=\""+ cuserlink + "\">" + cuser + "</a><a class='commentdate' href=\"" + clink + "\">" + cdate + "</a></div><div class='commentbody'>" + cbody + "</div></div>");
|
||||
}
|
||||
}
|
||||
$.ajax("https://api.github.com/repos/arcan1s/arcan1s.github.io/issues/4/comments?per_page=100", {
|
||||
headers: {Accept: "application/vnd.github.full+json"},
|
||||
dataType: "json",
|
||||
success: function(msg){
|
||||
loadComments(msg);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- end of comment block -->
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p class="view"><a href="javascript:history.back()">Back</a><br>
|
||||
<a href="/">Back to Homepage</a></p>
|
||||
|
@ -253,3 +253,179 @@ footer {
|
||||
color:#444;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/********************************
|
||||
* COMMENTS
|
||||
********************************/
|
||||
|
||||
.comment {
|
||||
background-color: transparent;
|
||||
border-color: #CACACA;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
color: black;
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
padding: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment .commentheader {
|
||||
border-bottom-color: #CACACA;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 1px;
|
||||
color: black;
|
||||
background-image: -webkit-linear-gradient(#F8F8F8,#E1E1E1);
|
||||
background-image: -moz-linear-gradient(#F8F8F8,#E1E1E1);
|
||||
color: black;
|
||||
display: block;
|
||||
float: left;
|
||||
font-family: helvetica, arial, freesans, clean, sans-serif;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal;
|
||||
height: 33px;
|
||||
line-height: 33px;
|
||||
margin: 0px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
padding: 0px;
|
||||
text-overflow: ellipsis;
|
||||
text-shadow: rgba(255, 255, 255, 0.699219) 1px 1px 0px;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment .commentheader .commentgravatar {
|
||||
background-attachment: scroll;
|
||||
background-clip: border-box;
|
||||
background-color: white;
|
||||
background-image: none;
|
||||
background-origin: padding-box;
|
||||
border-color: #C8C8C8;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
color: black;
|
||||
display: inline-block;
|
||||
float: none;
|
||||
font-family: helvetica, arial, freesans, clean, sans-serif;
|
||||
font-size: 1px;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal;
|
||||
height: 20px;
|
||||
line-height: 1px;
|
||||
margin-left: 5px;
|
||||
margin-right: 3px;
|
||||
margin-top: -2px;
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
padding: 1px;
|
||||
text-overflow: clip;
|
||||
text-shadow: rgba(255, 255, 255, 0.699219) 1px 1px 0px;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.comment .commentheader a:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.comment .commentheader a:hover {
|
||||
border-bottom:1px solid;
|
||||
}
|
||||
|
||||
|
||||
.comment .commentheader .commentuser {
|
||||
background-color: transparent;
|
||||
color: black;
|
||||
display: inline;
|
||||
float: none;
|
||||
font-family: helvetica, arial, freesans, clean, sans-serif;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: bold;
|
||||
height: 0px;
|
||||
line-height: 16px;
|
||||
margin-left: 5px;
|
||||
margin-right: 10px;
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
padding: 0px;
|
||||
text-overflow: clip;
|
||||
text-shadow: rgba(255, 255, 255, 0.699219) 1px 1px 0px;
|
||||
white-space: nowrap;
|
||||
width: 0px;
|
||||
}
|
||||
|
||||
.comment .commentheader .commentdate {
|
||||
background-color: transparent;
|
||||
color: #777;
|
||||
display: inline;
|
||||
float: none;
|
||||
font-family: helvetica, arial, freesans, clean, sans-serif;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal;
|
||||
height: 0px;
|
||||
line-height: 33px;
|
||||
margin: 0px;
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
padding: 0px;
|
||||
text-overflow: clip;
|
||||
text-shadow: rgba(255, 255, 255, 0.699219) 1px 1px 0px;
|
||||
white-space: nowrap;
|
||||
width: 20em;
|
||||
}
|
||||
|
||||
.comment .commentbody {
|
||||
background-attachment: scroll;
|
||||
background-clip: border-box;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
background-origin: padding-box;
|
||||
color: #333;
|
||||
display: block;
|
||||
margin-bottom: 1em;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
margin-top: 40px;
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
padding: 0em;
|
||||
position: static;
|
||||
width: 96%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.comment .commentbody p {
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
margin-left: 0em;
|
||||
margin-right: 0em;
|
||||
}
|
||||
|
||||
.comment .commentbody pre {
|
||||
border: 0px solid #ddd;
|
||||
background-color: #eef;
|
||||
padding: 0 .4em;
|
||||
}
|
||||
|
||||
.comment .commentbody pre code {
|
||||
border: 0px solid #ddd;
|
||||
}
|
||||
|
||||
.comment .commentbody code {
|
||||
border: 1px solid #ddd;
|
||||
background-color: #eef;
|
||||
font-size: 85%;
|
||||
padding: 0 .2em;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user