Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tadas-s
Forked from alexkalderimis/index.html
Last active October 26, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadas-s/1b0c1ee620fe6af7cc0d to your computer and use it in GitHub Desktop.
Save tadas-s/1b0c1ee620fe6af7cc0d to your computer and use it in GitHub Desktop.
Custom mode RefME widget example
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>RefME Cite Button</title>
<script src="https://widget.refme-dev.com/scripts/refme-cite.js"></script>
</head>
<body>
<section>
<div class="col">
<div id="citation-button"></div>
<dl>
<dt>Title:</dt>
<dt>Advances in Applied Mathematics and Mechanics</dd>
...
</dl>
</div>
</section>
<script>
window.addEventListener('load', function () {
var citations = [
{
title: "Advances in Applied Mathematics and Mechanics",
type: 'article-journal', // a type must be provided
abstract: "In this paper, an optimal bicubic finite volume method is established and analyzed for elliptic equations on quadrilateral meshes. Base on the so-called elementwise stiffness matrix analysis technique, we proceed the stability analysis. It is proved that the new scheme has optimal O(H3) convergence rate in H1 norm. Additionally, we apply this analysis technique to bilinear finite volume method. Finally, numerical examples are provided to confirm the theoretical analysis of bicubic finite volume method.",
author: [
{given: "Yanli", family: "Chen"},
{given: "Yonghai", family: "Li"}
],
id: "10.4208/aamm.2013.m401",
DOI: "10.4208/aamm.2013.m401",
volume: "7",
issue: "4",
'container-title': "Advances in Applied Mathematics and Mechanics",
page: "454-471",
issued: "2015-05-29",
publisher: "Global-Science Press"
}
];
RefME.createButton({
element: '#citation-button',
data: citations
});
});
</script>
</body>
</html>
@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700);
html, body {
font-family: 'Droid Sans', sans-serif;
font-size:16px;
}
p {
margin:0 0 1rem;
}
.col {
display:inline-block;
margin-right: 30px;
padding:5px 20px;
vertical-align:top;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment