arcanis.me/templates/temp_paper.html
2014-01-13 21:41:32 +04:00

95 lines
4.1 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>$PAPER_NAME</title>
<meta name="author" content="Evgeniy Alekseev" />
<meta name="description" content="arcanis' homepage" />
<link rel="license" type="text/html" href="/LICENSE" />
<link rel="stylesheet" href="/stylesheets/styles.css">
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
<link rel="shortcut icon" href="/resources/icon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[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>
<!-- sharethis -->
<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>
</head>
<body>
<div class="wrapper">
<header>
<h1>$PAPER_NAME</h1>
<p align="justify">$(date --utc)</p>
</header>
<section>
<h2><a name="title" class="anchor" href="#title"><span class="octicon octicon-link"></span></a>$PAPER_NAME</h2>
<p align="justify">$INTRO_TEXT <b>test</b></p>
<h3><a name="$SUBTITLE" class="anchor" href="#$SUBTITLE"><span class="octicon octicon-link"></span></a>$SUBTITLE</h2>
<p align="justify">$SUB_TEXT</p>
<!-- comment block -->
<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/$PAPER_NUM" target="_blank"> 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/$PAPER_NUM#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/$PAPER_NUM/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>
<p><span class='st_vkontakte'></span>
<span class='st_facebook'></span>
<span class='st_twitter'></span>
<span class='st_googleplus'></span>
<span class='st_livejournal'></span><br>
<small>Hosted on GitHub Pages. <a href="/authors">Authors</a></small></p>
</footer>
</div>
<script src="/javascripts/scale.fix.js"></script>
</body>
</html>