var project={"_id":"5a610fcaab233e8499a917dc","id":"6eb4c8440c9364ef2d400c701d664eed7c1beade","name":"SaveTheDate IUG01 2columns","user":"5696b0463ce4208135939239","description":"","created":"2018-01-18T19:48:55.845Z","shared":false,"server":"micro","datafiles":[],"packs":["bootstrap","highcharts","jquery","highstock"],"container":"mainpart","js":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"},"depurl":"https://quipslibistars.s3.amazonaws.com/prod/6eb4c8440c9364ef2d400c701d664eed7c1beade/script.js"},"title":"Javascript","activated":true,"name":"js","linkedtofile":false,"optional":true,"content":"//"},"css":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"}},"title":"Cascading Style Sheet (CSS)","activated":true,"name":"css","linkedtofile":false,"optional":true,"content":".container{\n width:600px;\n}\n\n.body {\n width:600px;\n height:850px;\n}\n.im {\n padding:5px;\n}\n.head2 {\n color:#000000;\n font-size:12px;\n font-family:Verdana;\n}\n.firstcol {\n width:390px;\n color:#000000;\n font-size:12px;\n font-family:Verdana;\n text-align:justify;\n border-bottom-style:solid;\n border-bottom-width:3;\n border-bottom-color:#4fa4da;\n padding:10px;\n}\n.lastcol {\n width:210px;\n height:250px;\n padding:2px;\n background-color:#4fa4da;\n font-size:12px;\n font-family:Verdana;\n text-align:right-justify;\n color:white;\n}\n.cont {\n background-color:#4fa4da;\n padding:10px;\n \n}\n.meeting {\n color:#5a6870;\n}\n.iStars {\n color:#5a6870;\n}\n\n"},"jade":{"file":{"type":"","url":"","link":"","message":{"error":true,"text":"File not defined"},"depurl":"https://quipslibistars.s3.amazonaws.com/prod/6eb4c8440c9364ef2d400c701d664eed7c1beade/main.jade"},"title":"Jade","activated":true,"name":"jade","linkedtofile":false,"optional":false,"content":".container: .box(style=\"width:100%\")\n p\n a(href='https://www.icao.int/safety/iStars/Pages/savedate.aspx') Not loading properly? Click to view in your browser\n table(style=\"margin:auto\")\n tbody\n tr\n td.head(colspan=2)\n img(src=\"https://www.dropbox.com/s/kavmzz9oc4sq3i2/SAVE_the_date_Mar27.png?dl=0&raw=1\",width=\"700px\")\n tr\n td.firstcol \n p.head2 \n strong.iStars Dear colleague,\n p It is our pleasure to invite you to the first \n strong.meeting iSTARS User Group Meeting (iUG/01) \n | which will\n | be held between 10 and 12 December 2018 at the International Civil Aviation Organization\n | (ICAO) Headquarters in Montreal, Canada. Please save the meeting dates in your calendar. \n p This meeting aims at bringing together \n strong.iStars iSTARS \n | users for discussion and exchange of\n | experiences, innovations and views related to safety and air navigation data and the tools\n | and methods used for the collection, analysis, reporting and overall management of such\n | data. \n strong.iStars iUG/01 \n | is also a platform for participants to present their innovative solutions an\n | good practices and share them with other users.\n td.lastcol\n .cont\n p Within a few weeks, we will send you information about\n ul\n li Registration\n li Call for presentations\n li Topics\n li Agenda\n p We look forward to seeing you in Montreal\n br\n p: strong.iStars Marco Merens\n br\n | Chief, Integrated Aviation Analysis (IAA) Section\n br\n | Air Navigation Bureau (ANB)\n \n \n \n "},"sharedwith":["5696b0463ce4208135939239","57dfeb1654955f1127d5672b"],"capture":"https://quipslibistars.s3.amazonaws.com/prod/6eb4c8440c9364ef2d400c701d664eed7c1beade/capture.png","prod":true,"deploydate":"2018-05-17T17:44:11.816Z","morecss":[{"url":""}],"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":"57f7f99b7534189495eb5d90","description":"highcharts extension","key":"","version":"4.2.5","link":"https://cdnjs.cloudflare.com/ajax/libs/highstock/4.2.5/highstock.js","name":"highstock","haskey":false,"required":false,"website":"www.highcharts.com"}],"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]()
}
}
})
}