Mi megy?

The Maltese Islands offer a colourful annual calendar of traditional seasonal events such as carnival and summer festas with nightlife to rival that of many European cities. Every year, an eclectic blend of local and international events, entertainment and exhibitions take place. Choose from classical and jazz to band and folk music, from theatre and opera to dance and baroque festivals. The Islands also play host to a variety of international events, sports championships and tournaments that provide something for everyone.


Date From

Date To

Válassza ki az esemény típusát Art & Culture Business & Commerce Cinema Clubbing Dance Exhibitions Family Fun Food & Drink Lectures & Seminars Music Nature & Outdoor Pageantry Philanthropic Public Holidays Religious Sports Theatre Village Festas

All Maltese Islands Comino Gozo Malta

var dateArray;dateArray = [[2011, [[‘1’,
[]],
[‘2’,
[]],
[‘3’,
[]],
[‘4’,
[]],
[‘5’,
[]],
[‘6’,
[]],
[‘7’,
[]],
[‘8’,
[]],
[‘9′,
[]],
[’10’,
[]],
[’11’,
[[’26’, ‘../hu/search-events?pg=1&from=2011-11-26&to=2011-11-26′],
[’27’, ‘../hu/search-events?pg=1&from=2011-11-27&to=2011-11-27′],
[’28’, ‘../hu/search-events?pg=1&from=2011-11-28&to=2011-11-28′]
]],
[’12’,
[]]
]]
];

var monthsArray = [‘Január’, ‘Február’, ‘Március’, ‘Április’, ‘Május’, ‘Június’, ‘Július’, ‘Augusztus’, ‘Szeptember’, ‘Október’, ‘November’, ‘December’];

var daysArray = [‘Vasárnap’, ‘Hétfő’, ‘Kedd’, ‘Szerda’, ‘Csütörtök’, ‘Péntek’, ‘Szombat’ ];


var timeout;

if ($(‘.archive-list’).length > 0) {
$(window).on(‘scroll’, function () {

clearTimeout(timeout);
timeout = setTimeout(function () {
// do your stuff
var lastArticle = $(‘.archive-list article:last’);
if (isElementVisible(lastArticle)) {
// call loadMore function
// on Ajax loading add ‘show’ class to ‘.archive-loadmore’
$(‘.archive-loadmore’).addClass(‘show’);
$.ajax({
contentType: “application/json; charset=utf-8”,
url: document.location.origin + “/MTAWebService.asmx/GetNextSearchEvents”,
data: JSON.stringify({
“startFrom”: $(“.archive-list article”).length,
“from”: getQueryString(“from”),
“dateto”: getQueryString(“to”),
“keyword”: getQueryString(“keyword”),
“location”: getQueryString(“location”),
“island”: getQueryString(“island”),
“type”: getQueryString(“type”)

}),
type: “POST”,
success: function (Data) {
if (Data.d == null) {//show End of list message
}
else {
populateArticles(Data.d)
}
$(‘.archive-loadmore’).removeClass(‘show’);
},
error: function (request, status, errorThrown) {
alert(errorThrown);
}
});
}
}, 50);
});
}

function isElementVisible(elem) {
var $elem = $(elem);
var $window = $(window);
var docViewTop = $window.scrollTop();
var docViewBottom = docViewTop + $window.height();
var elemTop = $elem.offset().top;
var elemBottom = elemTop + $elem.height();
return elemBottom = docViewTop;
}

function getQueryString() {
var key = false, res = {}, itm = null;
// get the query string without the ?
var qs = location.search.substring(1);
// check for the key as an argument
if (arguments.length > 0 && arguments[0].length > 1)
key = arguments[0];
// make a regex pattern to grab key/value
var pattern = /([^&=]+)=([^&]*)/g;
// loop the items in the query string, either
// find a match to the argument, or build an object
// with key/value pairs
while (itm = pattern.exec(qs)) {
if (key !== false && decodeURIComponent(itm[1]) === key)
return decodeURIComponent(itm[2]);
else if (key === false)
res[decodeURIComponent(itm[1])] = decodeURIComponent(itm[2]);
}

return key === false ? res : null;
}

function populateArticles(Data) {
for (var i = 0; i < Data.length;) {
//alert(Data[i].Title);
var element = "

” +

” + “" + Data.Title + "

” +

” +

” + Data[i].Title + “

” +

” + Data[i].Summary + “

” +

” + Data[i].StartDate + “

” +

” + Data[i].Location + “

” +

” + Data[i].Content + “

” +
továbbolvasás

“;
$(“.archive-list”).append(element);
i++;
}
}

//$(document).ready(function () {

// var url = location.href;
// location.href = “#scroll-to-search”;
// history.replaceState(null, null, url);
//});