Compare commits

...

3 commits

4 changed files with 75 additions and 54 deletions

View file

@ -28,7 +28,7 @@
/* First breakpoint is 48em (768px). 3 column layout. Tiles 250x250 pixels incl. margin at the breakpoint. */
body{
background: url("sfondo.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0) !important;
/*background: url("sfondo.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0) !important;*/
}
.ui-overlay-a, .ui-page-theme-a, .ui-page-theme-a .ui-panel-wrapper {
@ -395,62 +395,65 @@
max-width: 100%;
}
.ombra
{
.ombra {
box-shadow:10px 10px 15px #888;
}
.ui-navbar li:last-child .ui-btn {
color: black !important;
}
.ui-navbar li:last-child .ui-btn {
color: black !important;
}
.letterlink {
background-color: white;
border-bottom: solid 1px #666;
box-shadow: 2px 2px 2px 0px #666;
margin-top: -5px;
}
.ui-footer li:last-child .ui-btn {
color: white !important;
}
ul.letterlink li {
display: inline-block;
font-size: 2em;
text-transform: uppercase;
color: red;
padding: 2px 0.2em;
}
.letterlink {
background-color: white;
border-bottom: solid 1px #666;
box-shadow: 2px 2px 2px 0px #666;
margin-top: -5px;
}
ul.letterlink li a.ui-link {
color: red !important;
text-decoration: none;
}
ul.letterlink li {
display: inline-block;
font-size: 2em;
text-transform: uppercase;
color: red;
padding: 2px 0.2em;
}
.listatovirgole.listevoci ul li a {
text-transform: initial;
font-size: 1.4em !important;
color: #000 !important;
}
ul.letterlink li a.ui-link {
color: red !important;
text-decoration: none;
}
.listatovirgole ul li small,
.listatovirgole.listevoci ul li small {
font-size: 0.8em !important;
}
.listatovirgole.listevoci ul li a {
text-transform: initial;
font-size: 1.4em !important;
color: #000 !important;
}
.gifloader:nth-child(2) {
display: none;
}
.listatovirgole ul li small,
.listatovirgole.listevoci ul li small {
font-size: 0.8em !important;
}
img.gifloader:nth-child(3) {
display: none;
}
.gifloader:nth-child(2) {
display: none;
}
ul.aindex.downnav.ui-grid-b {
height: 13px;
}
img.gifloader:nth-child(3) {
display: none;
}
.letterlink {
padding: 0px 1.5em;
}
ul.aindex.downnav.ui-grid-b {
height: 13px;
}
.letterlink {
padding: 0px 1.5em;
}
/*paginazione*/

View file

@ -160,7 +160,7 @@
</div>
</div><!-- 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 class="ui-body">
<img onclick="myJsonRandomPost('#titolosingleR', '#mostracontentsingleR');" src="./image/RICARICA.png" style="float:right;width:80px;cursor:pointer;" />
@ -173,7 +173,7 @@
</p>
</div>
</div>
</div><!--chiude content -->
</div>--><!--chiude content -->
<div data-role="page" id="singleQpost" data-prev="index" data-next="" data-dom-cache="true" data-theme="a" class="ui-page">
<div role="main" class="ui-content">
@ -184,7 +184,6 @@
<i>Non è stato attalmente caricato alcun contenuto</i>
</span>
</p>
<button onclick="shareMeNow('ciao', 'testo', 'http://www.enc.org/xm24')">Text Share</button>
</div>
</div>
</div><!-- chiude pagina -->

View file

@ -239,15 +239,25 @@ function drawPost(div_title, div_content, resultSet){
for (var i = 0; i < resultSet.rows.length; i++) {
var val = JSON.parse(resultSet.rows.item(i).post);
var id = val.id;
var time = val.modified;
var time = val.date;
var title = val.title.rendered;
var url = val.guid.rendered;
var content = val.content.rendered;
var tags = val.tags;
content = findImg(content);
$(div_title).html(title);
//key mi dice l'indice'
var shareButton = $('<button>', {
class : "share-btn ui-btn ui-shadow ui-corner-all",
text: "Condividi"
}).click(function(){
shareMeNow(title, '',url);
});
$('.share-btn').remove();
$(div_content).html("<p>" + content + "</p>");
$(div_content).after(shareButton);
}
}
@ -264,8 +274,17 @@ function drawEvent(div_title, div_content, resultSet){
var geo = val.geo;
$(div_title).html(title);
//key mi dice l'indice'
$(div_content).html("<p>" + content + "</p>");
var shareButton = $('<button>', {
class : "share-btn ui-btn ui-shadow ui-corner-all",
text: "Condividi"
}).click(function(){
shareMeNow(title, evInitDate + " "+ evEndDate, url);
});
$('.share-btn').remove();
$(div_content).html("<small>" + evInitDate +"-" + evEndDate +"</small><p>" + content + "</p>");
$(div_content).after(shareButton);
}
}

View file

@ -1,10 +1,10 @@
function shareMeNow(message, subject, url) {
// this is the complete list of currently supported params you can pass to the plugin (all optional)
var options = {
message: message || 'share this', // not supported on some apps (Facebook, Instagram)
subject: subject || 'the subject', // fi. for email
message: message || '', // not supported on some apps (Facebook, Instagram)
subject: subject || 'Share this:', // fi. for email
//files: ['', ''], // an array of filenames either locally or remotely
url: url || 'https://www.website.com/foo/#bar?a=b',
url: url || 'https://www.ecn.org/xm24',
};
var onSuccess = function(result) {