We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb9c97 commit c2c6d11Copy full SHA for c2c6d11
index.html
@@ -60,9 +60,15 @@ <h1>The best free Python resources</h1>
60
<script src="./js/mustache.js"></script>
61
62
<script type="text/javascript">
63
+
64
+ function randOrd(){
65
+ return (Math.round(Math.random())-0.5);
66
+ }
67
68
$(document).ready(function() {
69
$.getJSON('./issues.json?' + Math.random(), function(data) {
70
var template = $('#booktpl').html();
71
+ data.books.sort(randOrd);
72
var html = Mustache.to_html(template, data);
73
$('#issueswrap').html(html);
74
});
0 commit comments