CINXE.COM

SoWhy's AFD analyzer (0.04伪 (2020-01-18))

<html> <head> <meta charset="UTF-8"> <title>SoWhy's AFD analyzer (0.04伪 (2020-01-18))</title> <link rel="stylesheet" type="text/css" href="socss.css"> <link rel="stylesheet" href="jquery-ui/jquery-ui.css"> <link rel="stylesheet" href="jquery-ui/style.css"> <script src="jquery-ui/jquery.js"></script> <script src="jquery-ui/jquery-ui.js"></script> <script src="jquery-ui/jquery.tablesorter.js"></script> <script src="jquery-ui/jquery.metadata.js"></script> <script> $( function() { var dateFormat = "mm/dd/yy", from = $( "#from" ) .datepicker({ changeMonth: true, changeYear: true, numberOfMonths: 1, maxDate: 0, dateFormat: "yy-mm-dd" }) .on( "change", function() { to.datepicker( "option", "minDate", getDate( this ) ); }), to = $( "#to" ).datepicker({ changeMonth: true, changeYear: true, numberOfMonths: 1, maxDate: 0, dateFormat: "yy-mm-dd" }) .on( "change", function() { from.datepicker( "option", "maxDate", getDate( this ) ); }); function getDate( element ) { var date; try { date = $.datepicker.parseDate( dateFormat, element.value ); } catch( error ) { date = null; } return date; } } ); $(document).ready(function(){ $("form").submit(function(){ $("input").each(function(index, obj){ if($(obj).val() == "") { $(obj).remove(); } }); }); }); $(document).ready(function() { $("#results").tablesorter(); } ); </script> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['AFD', 'Outcome'], ['Delete', 0], ['Speedy delete', 0], ['Soft delete', 0], ['Redirect', 0], ['Merge', 0], ['Rename/Move', 0], ['No consensus', 0], ['Draftify/Userfy', 0], ['Keep', 0], ['Speedy keep', 0], ['Other/Cannot parse', 0], ]); var options = { colors: ['#c63d3d', '#ad1818','#c97c7c', '#FF9900', '#aaaa52', '#5858B0', '#3196b7', '#939393', '#2eaa33', '#156e19', '#8A4A8A'], pieSliceText: 'value', pieSliceBorderColor: 'black', legend: {position: 'labeled', textStyle:{color: '#555', fontSize: '0.9rem', bold: 1}}, is3D: true, }; var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); } </script> </head> <body> <h3>SoWhy's script to analyze AFD closes</h3> <h5>This tool attempts to parse AFDs closed by a certain user (if they used a script) and display them in a handy chart.</h5> <b>User:</b> Example<br/>Total AFDs closed by this user: <strong>0</strong><br/><a href="afdcloses.php">&lt;&lt;&lt; Query another user</a><br/><div id="piechart" style="width: 900px; height: 500px;"></div><table id="results" class="tablesorter"> <thead> <tr> <th>Date</th> <th>AFD</th> <th>Result</th> </tr> </thead></table><br/><div id="footer">A <a href="https://en.wikipedia.org/wiki/User:SoWhy" target="new"><span style="font-variant: small-caps"><span style="color: #7A2F2F">So</span><span style="color: #474F84">Why</span></span></a> script. Feedback welcome.<br/>Uses <a href="https://developers.google.com/chart/" target="new">Google chart tools</a> and <a href="https://jquery.com/" target="new">jQuery</a>. Source code available at <a href="https://github.com/SoWhy/wp-tools" target="new">GitHub</a> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10