/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var news = $('#newsAll'); function getNews() { $.post('https://panelaseto.pl/api/news/ajax.php?token=44de4f521b8633246c3e7552d20440f0ca99bd2ca0f78b193430ebd3f460c703', { action: 'getNewsAll' }).done(function(response, textStatus, jqXHR) { data = JSON.parse(response); if(data.status) { $.each(data.data, function(key, value) { $(news).append('
' + value.content + '