pagina info listata

This commit is contained in:
Andrea Condoluci 2017-03-18 16:15:57 +01:00
parent fa9a02e619
commit fee0615860
2 changed files with 41 additions and 41 deletions

View file

@ -25,13 +25,13 @@
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --> <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<!--meta http-equiv="Content-Security-Policy" content="default-src * 'self' gap: ; frame-src * 'self' gap: http: ; style-src * 'self' 'unsafe-inline' 'unsafe-eval'; script-src * 'self' 'unsafe-inline' 'unsafe-eval'; " /--> <!--meta http-equiv="Content-Security-Policy" content="default-src * 'self' gap: ; frame-src * 'self' gap: http: ; style-src * 'self' 'unsafe-inline' 'unsafe-eval'; script-src * 'self' 'unsafe-inline' 'unsafe-eval'; " /-->
<title>I love xm24</title> <title>I love xm24</title>
<link rel="stylesheet" type="text/css" href="css/index.css" /> <link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/toastr.css" /> <link rel="stylesheet" type="text/css" href="css/toastr.css" />
<link rel="stylesheet" href="css/themes/default/jquery.mobile-1.4.5.min.css" /> <link rel="stylesheet" href="css/themes/default/jquery.mobile-1.4.5.min.css" />
<script type="text/javascript" src="js/vendor/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="js/vendor/jquery-1.10.2.min.js"></script>
<!--script src="js/swipe-page.js"></script--> <!--script src="js/swipe-page.js"></script-->
@ -160,7 +160,7 @@
<!-- /header --> <!-- /header -->
<!-- Home page --> <!-- Home page -->
<div data-role="page" id="index" data-dom-cache="true" data-theme="a" class="ui-page"> <!-- <div data-role="page" id="index" data-dom-cache="true" data-theme="a" class="ui-page">
<center><p><img src="image/xm-logo.png" class="rwd" /></p> <center><p><img src="image/xm-logo.png" class="rwd" /></p>
<ul data-role="listview" data-inset="true"> <ul data-role="listview" data-inset="true">
<li> <li>
@ -168,7 +168,7 @@
<img src="./image/ilovexm24_puzzle-300x300.jpg" class="ui-li-thumb"> <img src="./image/ilovexm24_puzzle-300x300.jpg" class="ui-li-thumb">
<h2>I love XM24</h2> <h2>I love XM24</h2>
<p>Bla blabla</p> <p>Bla blabla</p>
<!--p class="ui-li-aside">iOS</p--> <!-p class="ui-li-aside">iOS</p-=>
</a> </a>
</li> </li>
<li> <li>
@ -176,7 +176,7 @@
<img src="./image/xm24-particolare2.jpeg" class="ui-li-thumb"> <img src="./image/xm24-particolare2.jpeg" class="ui-li-thumb">
<h2>Info e comunicati</h2> <h2>Info e comunicati</h2>
<p>Bla Bla blabla</p> <p>Bla Bla blabla</p>
<!--p class="ui-li-aside">BlackBerry</p--> <!--p class="ui-li-aside">BlackBerry</p-=>
</a> </a>
</li> </li>
<li> <li>
@ -188,11 +188,11 @@
</li> </li>
</ul> </ul>
</center> </center>
<!--a class="minibox orange nav" href="#eventi"> Eventi</a> <!=-a class="minibox orange nav" href="#eventi"> Eventi</a>
<a class="minibox green nav" href="#lab"> Laboratori</a> <a class="minibox green nav" href="#lab"> Laboratori</a>
<a class="minibox green nav" href="#ultime"> News</a> <a class="minibox green nav" href="#ultime"> News</a>
<a class="minibox green nav" href="#tag"> Tag</a> <a class="minibox green nav" href="#tag"> Tag</a>
<a class="minibox blue nav" href="#quotidiano"> Un post a caso</a--> <a class="minibox blue nav" href="#quotidiano"> Un post a caso</a ==>
<br/ style="clear:both;"> <br/ style="clear:both;">
<div id="aggiornahome">Aggiorna i contenuti dal sito XM24 di tanto in tanto. <div id="aggiornahome">Aggiorna i contenuti dal sito XM24 di tanto in tanto.
@ -223,8 +223,21 @@
<input type="button" value="OK" onclick='$("#benvenuta").popup("close");alterContent(#info);' /> <input type="button" value="OK" onclick='$("#benvenuta").popup("close");alterContent(#info);' />
</div> </div>
</div> </div> -->
<div data-role="page" id="info" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
<div role="main" class="ui-content">
<center><p><img src="image/xm-logo.png" class="rwd" /></p></center>
<div class="ui-body">
<p class="introlettera">Info e comunicati</p>
<p id="mostralistainfo" class="listatovirgole listevoci">
<img class="gifloader" src="./image/ajax_loader_red_512.gif" />
</p>
</div>
<!-- chiude body-->
</div>
<!--chiude content -->
</div>
</div> </div>
<div data-role="page" id="events" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page"> <div data-role="page" id="events" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
@ -254,20 +267,7 @@
<!--chiude content --> <!--chiude content -->
</div> </div>
<!-- chiude pagina --> <!-- chiude pagina -->
<div data-role="page" id="info" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
<div role="main" class="ui-content">
<div class="ui-body">
<p class="introlettera">Info e comunicati</p>
<p id="mostralistainfo" class="listatovirgole listevoci">
<img class="gifloader" src="./image/ajax_loader_red_512.gif" />
</p>
</div>
<!-- chiude body-->
</div>
<!--chiude content -->
</div>
<!-- chiude pagina --> <!-- chiude pagina -->
<div data-role="page" id="quotidiano" data-transition="slide" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page"> <div data-role="page" id="quotidiano" data-transition="slide" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
<div role="main" class="ui-content"> <div role="main" class="ui-content">
@ -293,7 +293,7 @@
<p> <p>
Aggiorna i contenuti dal sito XM24 di tanto in tanto. Aggiorna i contenuti dal sito XM24 di tanto in tanto.
<br/> Per iniziare da capo e riscaricare tutti i contenuti clicca su reset. </p> <br/> Per iniziare da capo e riscaricare tutti i contenuti clicca su reset. </p>
<center> <center>
<img src="./image/icona_aggiorna.png" id="aggiorna" /> <img src="./image/icona_aggiorna.png" id="aggiorna" />
@ -310,14 +310,14 @@
</fieldset> </fieldset>
</center> </center>
<p id="boxdata" style="display:none;">I tuoi diritti sono stati aggiornati l'ultima volta il <span id="datadiritti">2016/07/18</span> alle <span id="datadirittiora">00:00</span>.</p> <p id="boxdata" style="display:none;">I tuoi diritti sono stati aggiornati l'ultima volta il <span id="datadiritti">2016/07/18</span> alle <span id="datadirittiora">00:00</span>.</p>
<img src="image/icona_aggiorna.gif" style="visibility:hidden;" id="aggiornamento" /> <img src="image/icona_aggiorna.gif" style="visibility:hidden;" id="aggiornamento" />
</div> </div>
</div> </div>
</div> </div>
chiude pagina --> chiude pagina -->
<div data-role="page" id="singleQpost" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page"> <div data-role="page" id="singleQpost" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
@ -420,4 +420,4 @@
<!-- chiude pagina --> <!-- chiude pagina -->
</body> </body>
</html> </html>

View file

@ -135,6 +135,7 @@ function setFirstRun() {
} }
} }
}; };
/*per link in browser di default */ /*per link in browser di default */
document.addEventListener("deviceready", onDeviceReady, false); document.addEventListener("deviceready", onDeviceReady, false);
//le cose all'inizio //le cose all'inizio
@ -142,14 +143,13 @@ function onDeviceReady() {
// console.log('deviceready'); // console.log('deviceready');
createDB(); createDB();
setFirstRun(); setFirstRun();
$("#navheader").addClass("hide");
$("#navfooter").addClass("hide");
$("a.nav").on("click", function (event) { $("a.nav").on("click", function (event) {
// Prevent the usual navigation behavior // Prevent the usual navigation behavior
event.preventDefault(); event.preventDefault();
hrefseguente = $(this).attr("href"); hrefseguente = $(this).attr("href");
alterContent(hrefseguente); alterContent(hrefseguente);
}); });
alterContent("#info");
}; };
function overlayblock() { function overlayblock() {
@ -159,7 +159,7 @@ function overlayblock() {
function checkConnection(code, msgConnect) { function checkConnection(code, msgConnect) {
var msgTitle = "Non sei connesso"; var msgTitle = "Non sei connesso";
msgConnect = msgConnect || "Occore essere connessi per poter ricevere i nuovi articoli"; msgConnect = msgConnect || "Occore essere connessi per poter ricevere i nuovi articoli";
var networkState = navigator.connection.type; var networkState = navigator.connection.type;
var states = {}; var states = {};
states[Connection.UNKNOWN] = 'Unknown connection'; states[Connection.UNKNOWN] = 'Unknown connection';
@ -380,10 +380,10 @@ function myJsonCategory(Qcategory, div, addTagCategory) {
/* if (addTagCategory) { /* if (addTagCategory) {
$.each(val.tags, function (index, value) { $.each(val.tags, function (index, value) {
if (value == 43) { if (value == 43) {
} }
if (value == 36) { if (value == 36) {
} }
}); });
//key mi dice l'indice' //key mi dice l'indice'
@ -391,7 +391,7 @@ function myJsonCategory(Qcategory, div, addTagCategory) {
} }
else {*/ else {*/
items.push("<li><a href='#singleQpost' data-post='" + id + "'>" + title + "</a><br/><small>" + cleanTime + "</small>|</li>"); items.push("<li><a href='#singleQpost' data-post='" + id + "'>" + title + "</a><br/><small>" + cleanTime + "</small>|</li>");
} }
$("<ul/>", { $("<ul/>", {
"class": "my-new-list" "class": "my-new-list"
@ -609,7 +609,7 @@ function getSinglePageRecur(url, category, pagenum) {
window.localStorage.setItem('db_lastnews_date', lastUpdate); window.localStorage.setItem('db_lastnews_date', lastUpdate);
toastr.info('Aggiornati ' + FONTE.updatedPostsCount + ' articoli.'); toastr.info('Aggiornati ' + FONTE.updatedPostsCount + ' articoli.');
//feedback //feedback
$("#aggiorna").attr("src", "./image/aggiorna.png"); $("#aggiorna").attr("src", "./image/aggiorna.png");
ultimoAggiornamento(); ultimoAggiornamento();
@ -795,11 +795,11 @@ function JSONErrorHandler(jqXHR, textStatus, errorThrown) {
function cerca() { function cerca() {
var ret = checkConnection('ERR_CERCA'); var ret = checkConnection('ERR_CERCA');
if (ret) { if (ret) {
cercaMe(); cercaMe();
} }
return ret; return ret;
}; };
@ -812,7 +812,7 @@ function mostraEsperto() {
if (ret) { if (ret) {
myJsonPage(2167, '#espertotitle', '#mostraesperto'); myJsonPage(2167, '#espertotitle', '#mostraesperto');
} }
return ret; return ret;
}; };
@ -821,7 +821,7 @@ function checkAndUpdate() {
if (ret) { if (ret) {
update(); update();
} }
return ret; return ret;
}; };
@ -829,7 +829,7 @@ function checkAndReset() {
var ret = checkConnection('ERR_ESPERTO'); var ret = checkConnection('ERR_ESPERTO');
if (ret) { if (ret) {
resetAndUpdate(); resetAndUpdate();
} }
return ret; return ret;
}; };