Javascript désactivé
Veuillez activer javascript afin de profiter pleinement des fonctionnalités de ce site
Je clique sur l'image !
{"cols":"2","rows":"2","onShow":"\n\t\tfunction(calendar) {\n\t\t\tvar start = calendar.datetime.clone();\n\t\t\tstart.setDate(1);\n\t\t\tvar end = start.clone().increment(\"month\", calendar.options.cols * calendar.options.rows - 1);\n\t\t\tend.setDate(end.getLastDay());\n\n\t\t\tvar url = \".\/index.php?action=widget_evenement&controller=calendrier&debut=\" + start.toStr() + \"&fin=\" + end.toStr();\n\n\t\t\tjQuery.ajax({\n\t\t\t\tdataType: \"json\",\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: url,\n\t\t\t\tdata: {v465987123_10: true, agendas: {\"1\":\"1\",\"2\":\"1\",\"3\":\"1\",\"4\":\"1\",\"5\":\"1\",\"6\":\"1\",\"8\":\"1\",\"9\":\"1\",\"10\":\"1\",\"11\":\"1\",\"12\":\"1\",\"13\":\"1\",\"14\":\"1\",\"15\":\"1\",\"16\":\"1\",\"17\":\"1\",\"18\":\"1\",\"19\":\"1\"}},\n\t\t\t\tsuccess: function(agendas){\n\t\t\t\t\tcalendar.options.agendas = [];\n\t\t\t\t\tif (agendas) {\n\t\t\t\t\t\tfor (var i = 0, agenda; agenda = agendas[i]; i++) {\n\t\t\t\t\t\t\tcalAgenda = {\n\t\t\t\t\t\t\t\tcode: agenda.code,\n\t\t\t\t\t\t\t\tname: agenda.nom,\n\t\t\t\t\t\t\t\tcolor: agenda.couleur,\n\t\t\t\t\t\t\t\tshow: agenda.afficher,\n\t\t\t\t\t\t\t\tevents: []\n\t\t\t\t\t\t\t};\n\t\t\t\n\t\t\t\t\t\t\tcalendar.options.agendas.push(calAgenda);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (var j = 0, event; event = agenda.evenements[j]; j++) {\n\t\t\t\t\t\t\t\tif (event.lien.substr(0, 4) != \"http\")\n\t\t\t\t\t\t\t\t\tevent.lien = \"https:\/\/www.paimboeuf.fr\/\" + event.lien;\n\t\t\t\t\t\t\t\tcalAgenda.events.push({\n\t\t\t\t\t\t\t\t\tcode: event.code,\n\t\t\t\t\t\t\t\t\tname: event.nom,\n\t\t\t\t\t\t\t\t\tdescription: event.description,\n\t\t\t\t\t\t\t\t\tstart: event.debut,\n\t\t\t\t\t\t\t\t\tend: event.fin,\n\t\t\t\t\t\t\t\t\tlink: {\n\t\t\t\t\t\t\t\t\t\turl: event.lien,\n\t\t\t\t\t\t\t\t\t\ttarget: (event.lien_externe ? \"_blank\" : \"_self\")\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcalendar.show(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t"}