Update footer.tmpl

don't use ES6 way.
This commit is contained in:
Laoliu 2018-06-03 09:54:37 +08:00 committed by GitHub
parent 887f631bc2
commit fcfd6213b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@
<script type="text/javascript">
$(document).ready(function () {
$('.language-flow').each((i, flow)=>{
$('.language-flow').each(function(i, flow)=>{
var eleId = 'flow_' + i;
var diagram = flowchart.parse($(flow).text());
$('<div id="' + eleId +'"></div>').appendTo($(flow).parent('pre').get(0));
@ -72,7 +72,7 @@
});
var options = {theme: 'simple'};
$('.language-sequence').each((i, ele) => {
$('.language-sequence').each(function(i, ele) => {
var eleId = 'sequence_' + i;
var d = Diagram.parse($(ele).text());
$('<div id="' + eleId +'"></div>').appendTo($(ele).parent('pre').get(0));