');
}
-$(document).ready(function(){
$('#todo').resizable();
$('#todo').draggable();
$('#todo').append('');
var token = "=$token?>";
var project_id = "=$id?>";
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/getUncompletedItems?project_id='+project_id+'&token='+token+'&format=json&callback=cbfunc';
document.getElementsByTagName('head')[0].appendChild(script);
- $('#showNewTask').click(function(){
$('#newTaskFieldset').toggle();
});
- $('#addTask').click(function(){
var content = $('#newtask').val();
var date_string = $('#date_string').val();
var priority = $('#priority').val();
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/addItem?project_id='+project_id+'&token='+token+'&content='+content+'&date_string='+date_string+'&priority='+priority+'&format=json&callback=cbfunc2';
document.getElementsByTagName('head')[0].appendChild(script);
});
- $('.deleteTask').live('click', function(){
var id = $(this).attr('id');
arrayId = id.split('-');
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/deleteItems?ids=["'+arrayId[1]+'"]&token='+token;
document.getElementsByTagName('head')[0].appendChild(script);
$('#'+arrayId[1]).remove();
});
$('.completeTask').live('click', function(){
var id = $(this).attr('id');
arrayId = id.split('-');
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/completeItems?ids=["'+arrayId[1]+'"]&token='+token;
document.getElementsByTagName('head')[0].appendChild(script);
$('#'+arrayId[1]).remove();
});
-
/* A helper function for converting a set of elements to draggables: */
make_draggable($('#todo'));
-});
\ No newline at end of file
+
function cbfunc(o){
$('#results').append('
');
for(var i in o)
{
$('#uncompletedList').append('
'+o[i].content+' - '+o[i].date_string+'
');
}
$('#uncompletedList li').prepend('');
}
function cbfunc2(o){
$('#uncompletedList').append('
'+o.content+' - '+o.date_string+'
');
}
$(document).ready(function(){
$('#todo').resizable();
$('#todo').draggable();
$('#todo').append('');
var token = "";
var project_id = "";
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/getUncompletedItems?project_id='+project_id+'&token='+token+'&format=json&callback=cbfunc';
document.getElementsByTagName('head')[0].appendChild(script);
$('#showNewTask').click(function(){
$('#newTaskFieldset').toggle();
});
$('#addTask').click(function(){
var content = $('#newtask').val();
var date_string = $('#date_string').val();
var priority = $('#priority').val();
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/addItem?project_id='+project_id+'&token='+token+'&content='+content+'&date_string='+date_string+'&priority='+priority+'&format=json&callback=cbfunc2';
document.getElementsByTagName('head')[0].appendChild(script);
});
$('.deleteTask').live('click', function(){
var id = $(this).attr('id');
arrayId = id.split('-');
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/deleteItems?ids=["'+arrayId[1]+'"]&token='+token;
document.getElementsByTagName('head')[0].appendChild(script);
$('#'+arrayId[1]).remove();
});
$('.completeTask').live('click', function(){
var id = $(this).attr('id');
arrayId = id.split('-');
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://todoist.com/API/completeItems?ids=["'+arrayId[1]+'"]&token='+token;
document.getElementsByTagName('head')[0].appendChild(script);
$('#'+arrayId[1]).remove();
});
/* A helper function for converting a set of elements to draggables: */
make_draggable($('#todo'));
});
\ No newline at end of file
diff --git a/modules/weather/Weather.php b/modules/weather/Weather.php
index 686547b..4c746fe 100644
--- a/modules/weather/Weather.php
+++ b/modules/weather/Weather.php
@@ -1,5 +1,7 @@
getParam('city');
+ $future_weather = [];
include $this->pathToModule.'includes/GoogleMeteo.php';
- echo '
+ if (!empty($present_weather)) {
+ echo '
';
- echo '