var project={"_id":"57421647de78eca41cc5a751","id":"75d46fcdbd26f72f7f3bad33d798fdc7a4fab8ae","name":"Safety Audit Information","user":"566ac9850286a8f9080cdd79","description":"Public USOAP Graph Site","created":"2016-05-22T18:05:33.918Z","shared":false,"server":"micro","datafiles":[{"file":{"link":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/state_ei_latest?id=istars4","type":"URL/API","url":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/state_ei_latest?id=istars4","message":{"error":false,"text":""}},"varname":"EIdata","title":"EI","activated":true,"name":"datafile","linkedtofile":true,"optional":true,"content":"","sendtojs":true},{"file":{"link":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/ssclist?id=istars4","type":"URL/API","url":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/ssclist?id=istars4","message":{"error":false,"text":""}},"varname":"ssc","title":"SSC","activated":true,"name":"datafile","linkedtofile":true,"optional":true,"content":"","sendtojs":true},{"file":{"link":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/region_ei?id=istars4®ions=World","type":"URL/API","url":"https://wqzr3klah5.execute-api.us-east-1.amazonaws.com/pro/usoap/region_ei?id=istars4®ions=World","message":{"text":"File not found","error":true}},"varname":"worldei","title":"World","activated":true,"name":"datafile","linkedtofile":true,"optional":true,"content":"","sendtojs":true}],"packs":["bootstrap","highcharts","jquery","Datatables"],"container":"mainpart","js":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"},"depurl":"https://quipslibistars.s3.amazonaws.com/prod/75d46fcdbd26f72f7f3bad33d798fdc7a4fab8ae/script.js"},"title":"Javascript","activated":true,"name":"js","linkedtofile":false,"optional":true,"content":"var chart1,thechart;\nvar areas=['leg','org','pel','ops','air','aig','ans','aga']\n$(\"#readmorelink\").click(function(e){\n e.preventDefault();\n $(\"#sscplus\").modal()\n});\nfunction genchart(){\nchart1={\n chart: {\n renderTo:\"containerx\",\n\t inverted:false\n },\n\t colors: [\n\"#0000FF\",\n\"#8A2BE2\",\n\"#DEB887\",\n\"#5F9EA0\",\n\"#7FFF00\",\n\"#D2691E\",\n\"#FF7F50\",\n\"#6495ED\",\n\"#FFF8DC\",\n\"#00FFFF\",\n\"#00008B\",\n\"#008B8B\",\n\"#B8860B\",\n\"#A9A9A9\",\n\"#006400\",\n\"#BDB76B\",\n\"#8B008B\",\n\"#556B2F\",\n\"#FF8C00\",\n\"#9932CC\"\n],\n credits: {\n\tenabled:false\n },\n title: {\n\ttext: ''\n },\n xAxis: {\n\tcategories: ['Legislation','Organization','Licensing','Operations','Airworthiness','Accident Investigation','Air Navigation Services','Aerodromes'],\n\t labels:{\n\t enabled:true\n\t }\n },\n plotOptions: {\n\tline :{\n\t lineWidth:2,\n\t marker: {\n\t radius:6\n\t }\n\t}\n },\n yAxis: {\n\ttitle: {\n\t text: 'Effective Implementation (%)'\n\t},\n\tmin:-10,\n\tmax:110,\n\tshowLastLabel:false,\n\tshowFirstLabel:false,\n\ttickInterval:10\n },\n\t tooltip:{\n useHTML:true,\n enabled:true,\n pointFormat:'{series.name}: {point.y}
{point.id}
',\n formatter:function (){\n var s=\"\"+this.series.name+\"
\"+this.x+\": \";\n s=s+\"\"+this.point.y+\"%
\";\n if (this.point.id!=null)\n \t{\n \ts=s+this.point.id+\"
\";}\n return s;}\n },\n\t \n series: [ {\n\tname: 'Global average',\n\ttype: 'line',\n\tdashStyle:'ShortDash',\n\tlineWidth:2,\n\tdata: average\n }]\n }\nvar average=[0,0,0,0,0,0,0,0],n=[0,0,0,0,0,0,0,0]\nEIdata.forEach(function(v){\n areas.forEach(function(a,i){\n if (v[a]>=0) {\n average[i]+=v[a]\n n[i]++\n }\n })\n})\naverage.forEach(function(v,i){\n average[i]=Math.round(100*average[i]/n[i])/100\n})\nvar lastworld=worldei.pop()\nconsole.log(lastworld)\nchart1.series[0].data=[lastworld.leg *100,\n lastworld.org *100,\n lastworld.pel *100,\n lastworld.ops *100,\n lastworld.air *100,\n lastworld.aig *100,\n lastworld.ans *100,\n lastworld.aga *100\n ]\nthechart=new Highcharts.Chart(chart1)\n\n}\nvar SSClang=[\"\",\"\",\"ICAO has identified a significant safety concern with respect to the ability of this State
to properly oversee licenses under its jurisdiction.\",\n\"ICAO has identified a significant safety concern with respect to the ability of this State
to properly oversee its airlines (air operators) under its jurisdiction.\",\n\"ICAO has identified a significant safety concern with respect to the ability of this State
to properly oversee aircraft under its jurisdiction.\",\n\"\",\n\"ICAO has identified a significant safety concern with respect to the ability of this State
to properly oversee air navigation services under its jurisdiction.\",\n\"ICAO has identified a significant safety concern with respect to the ability of this State
to properly oversee aerodromes under its jurisdiction.\"];\n\n\n$(\"table.display\").dataTable({bSortClasses:false,paging:false,\"order\": [[ 1, \"asc\" ]]})\ngenchart()\n\n$(\"#reset\").click(function(e){\n e.preventDefault()\n genchart()\n $(\".graph\").prop('disabled', false)\n})\n$(\".graph\").click(function(e){\n e.preventDefault()\n $(this).prop('disabled', true)\n var data=JSON.parse($(this).attr(\"ei\"))\n var x=[]\n areas.forEach(function(v,i){\n var thessc=ssc.filter(function(d){return ((d.State==data.State)&&(d.area==v.toUpperCase()))})[0]\n if (thessc) {\n var t={y:data[v],color:\"#FF0000\",id:\"In \"+thessc.year+\", \"+SSClang[i]}\n if ($(\"#graphsel\").val()!=\"column\") {\n t[\"marker\"]={\n\t\t\t\t\tradius:10,\n\t\t\t\t\tfillColor:\"#FF0000\",\n\t\t\t\t\tlineColor:null,\n\t\t\t\t\tsymbol:\"circle\"\n\t\t\t\t\t};\n }\n x.push(t)\n }\n else {\n x.push(data[v])\n }\n })\n var s={name:data.Name,type:$(\"#graphsel\").val(),\n data:x}\n \n thechart.addSeries(s)\n})\n"},"css":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"}},"title":"Cascading Style Sheet (CSS)","activated":false,"name":"css","linkedtofile":false,"optional":true},"jade":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"},"depurl":"https://quipslibistars.s3.amazonaws.com/prod/75d46fcdbd26f72f7f3bad33d798fdc7a4fab8ae/main.jade"},"title":"Jade","activated":true,"name":"jade","linkedtofile":false,"optional":false,"content":".container(style=\"width:695px\")\n a#top(name=top)\n #resbut\n #resetdiv\n #containerx(style=\"WIDTH: 655px; HEIGHT: 400px\")\n #SSCdiv(style=\"display:none\")\n strong\n font(style=\"color: #1B4177; font-family: Verdana; font-size: 17px\") List of SSC States\n hr(style=\"background: #227DBC; border: none;\")\n p: strong ICAO has identified a Significant Safety Concern (SSC) for the States listed below\n p: i An SSC occurs when the audited State allows the holder of an authorization or approval to exercise the privileges attached to it, although the minimum requirements established by the State and by the Standards set forth in the ICAO Annexes are not met, resulting in an immediate safety risk to international civil aviation.

\n #ssctable\n br\n br\n strong: font(style=\"color: #1B4177; font-family: Verdana; font-size: 17px\") List of All Audited States\n hr(style=\"background: #227DBC; border: none;\")\n #resetdiv2\n table(style=\"width: 100%;\")\n tbody\n tr\n td(style=\"text-align: left; width: 50%\") \n button.btn.btn-xs.btn-info#reset\n font(style=\"font-size: 13px;\")  Reset Graph \n td\n td(style=\"text-align: right; width: 50%\")\n font(style=\"font-size: 13px; color: #666;\") Select Graph Type to Compare:\n select#graphsel\n option(value=\"column\") Column\n option(value=\"line\") Line\n option(value=\"spline\") Spline\n option(value=\"area\") Area\n option(value=\"areaspline\") Area Spline\n #demo(style=\"margin-top:10px\")\n - EIdata.sort(function(a,b){return (a.Name0)\n img(style='width:20px;height:20px',state=state.State,name=state.Name,areas=JSON.stringify(s),src=\"http://www.icao.int/safety/PublishingImages/redflag.png\")\n td=state.Name\n td=state.ei_year\n td: button.graph.btn.btn-xs.btn-info(state=state.State,ei=JSON.stringify(state)) Compare\n#sscplus.modal.fade(tabindex=\"-1\",role=\"dialog\")\n .modal-dialog\n .modal-content\n .modal-header\n button.close(type=\"button\",data-dismiss=\"modal\",aria-label=\"Close\")\n span(aria-hidden=\"true\") ×\n h4#mtitle.modal-title More information on SSCs\n .modal-body(style=\"width:600px\")\n p Further to A37-5, the Council considered, during its 195th and 197th Sessions, a mechanism for the sharing of unresolved SSCs with the public. The Council approved in principle (C-DEC 197/4) that:\n p a) SSCs be made available on the ICAO public website commencing in January 2014;\n\n p b) for new SSCs identified after January 2014, there be a period of 90 days between the time an SSC is posted on the secure site for Member States and the time it is posted on the ICAO public website, in order to give an extra incentive to States to resolve the SSC quickly and to allow a window for assistance activities;\n\n p c) information on the existence and nature of an unresolved SSC be posted alongside the State-specific information already made available on the ICAO public website (formerly the FSIX) using a standardized wording. This would include the opportunity for the concerned State to comment and update its progress on the resolution of the SSC, subject, in due course, to validation by ICAO. It would also include links to “frequently asked questions” (FAQs) and a tutorial on the audit and SSC process.\n\n p d) the wording and format be put through a trial run on the secure website commencing in January 2013, allowing a one-year period for comments on the presentation of the information. The Secretariat would take into account the feedback received.\n .modal-footer\n button.btn.btn-secondary(type=\"button\",data-dismiss=\"modal\") Close\n"},"deploydate":"2022-09-14T17:30:37.033Z","capture":"https://quipslibistars.s3.amazonaws.com/prod/75d46fcdbd26f72f7f3bad33d798fdc7a4fab8ae/capture.png","prod":true,"morejs":[{"url":"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"}],"sharedwith":["57dfeb1654955f1127d5672b","5876456bcc0eeafd51bf1cf2"],"libs":[{"_id":"5672b285f36b083214f3e63b","description":"A sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.","key":"","version":"3.3.6","link":"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css,https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css,https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js","name":"bootstrap","__v":0,"haskey":false,"required":false,"website":"http://www.getbootstrap.com"},{"_id":"5672b2dbf36b083214f3e63c","description":"","key":"","version":"4.2.0","link":"https://code.highcharts.com/highcharts.js","name":"highcharts","__v":0,"haskey":false,"required":false,"website":"Highcharts.com"},{"_id":"5672b602f36b083214f3e63e","description":"The Write Less, Do More, JavaScript Library","key":"","version":"2.1.1","link":"https://code.jquery.com/jquery-2.1.4.js","name":"jquery","__v":0,"required":true,"haskey":false,"website":"https://jquery.com"},{"_id":"568eb9222043a726661b0ad2","required":false,"description":"A plug-in for the jQuery Javascript Library. It is a highly flexible tool, based upon the foundations of progressive enhancement, and will add advanced interaction controls to any HTML table.","haskey":false,"version":"1.10.10","link":"https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.css,https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.js","name":"Datatables","__v":0,"website":"https://www.datatables.net"}],"host":"https://quips.anbdata.com","version":"prod"} function loadjquery(url,callback) { if(typeof jQuery=='undefined') { loadScript(url,callback) } else { callback() } } function loadScript(url, callback) { var script = document.createElement("script") script.type = "text/javascript"; if (script.readyState) { //IE script.onreadystatechange = function () { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { //Others script.onload = function () { callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } (function () { loadjquery("https://code.jquery.com/jquery-2.1.4.js", function () { //jQuery loaded $("#"+project.container).html("") var libs=[] $(project.libs).each(function(i,v){ if (v.name!="jquery") { $(v.link.split(",")).each(function(j,u){ if (u.slice(-2)=="js") { libs.push(u+(v.haskey?"?key="+project[v.name+"key"]:"")) } else { $("head").append("") } }) } }) if (project.morejs) { $(project.morejs).each(function(i,v){ if ((v.url.substring(0,2)=="//")||(v.url.substring(0,8)=="https://")||(v.url.substring(0,7)=="http://")) { libs.push(v.url) } }) } if (project.morecss) { $(project.morecss).each(function(i,v){ $("head").append("") }) } loadlibs(libs.reverse()) }); })(); function loadlibs(libs){ if (libs.length>0) { var l=libs.pop() loadScript(l,function(){ //$.getScript(l,function(res){ loadlibs(libs) }) //.fail(function(e){ // loadlibs(libs) // //}) } else { start() } } function putscriptcontent(content){ var script = document.createElement("script") script.type = "text/javascript"; $(script).text(content) document.getElementsByTagName("head")[0].appendChild(script); } function start(){ //load jade $.getJSON(project.host+"/project/"+project.version+"/"+project.id+"/render?callback=?"+(project.datachange?"&data="+project.datachange:""),function(res){ $("#"+project.container).html(res.html) if (project.css.activated) { if (project.css.linkedtofile) { $("head").append("")} else { $("head").append("")} } if (project.js.activated) { if (project.js.linkedtofile) { $.getScript(project.js.file[(project.prod?"depurl":"url")])} else { putscriptcontent(project.js.content)} if (project.mainjs) { window[project.mainjs]() } } }) }