sistemato spacing titolo
This commit is contained in:
parent
ebeb7a6605
commit
792335686c
3 changed files with 79 additions and 75 deletions
|
@ -709,9 +709,10 @@ img.minilogo {
|
|||
margin-top: 0px;
|
||||
text-align: left;
|
||||
font-family: 'titilliumlight';
|
||||
font-size: 2em;
|
||||
font-size: 1.8em;
|
||||
text-transform: uppercase;
|
||||
color: #c53f33;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
p.elements{margin:0px 1.5em !important;
|
||||
padding: 0em;
|
||||
|
|
|
@ -44,79 +44,6 @@
|
|||
<script type="text/javascript" src="cordova.js"></script>
|
||||
<script type="text/javascript" src="js/push.js"></script>
|
||||
<script type="text/javascript" src="js/share.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).on("mobileinit", function () {
|
||||
|
||||
$("body").pagecontainer({
|
||||
defaults: true
|
||||
});
|
||||
|
||||
$(".ui-loader").loader({
|
||||
defaults: true
|
||||
});
|
||||
$("input").button();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).on("pagecontainerchange", function () {
|
||||
|
||||
var current = $(".ui-page-active").prop("id"); // Remove active class from nav buttons
|
||||
|
||||
console.log("current" + current);
|
||||
$("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active"); // Add active class to current nav button
|
||||
|
||||
$("[data-role='navbar'] a").each(function () {
|
||||
var href = $(this).prop("href");
|
||||
if (href.indexOf(current, href.length - current.length) !== -1) {
|
||||
$(this).addClass("ui-btn-active");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on("pagecreate", function () {
|
||||
$("body > [data-role='panel']").panel();
|
||||
$("body > [data-role='panel'] [data-role='listview']").listview();
|
||||
$("body > [data-role='header']").toolbar();
|
||||
$("body > [data-role='footer']").toolbar();
|
||||
$("body > [data-role='navbar']").navbar();
|
||||
$("#navfooter").navbar();
|
||||
postInList();
|
||||
});
|
||||
|
||||
/*per inizio navigazione*/
|
||||
var Site = function () {
|
||||
this.homepage = "#index"; // the default page that is loaded
|
||||
this.init();
|
||||
};
|
||||
|
||||
Site.prototype.init = function () {
|
||||
|
||||
var self = this;
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
// default page if no hash given
|
||||
// this changes the hash, so the event is fired
|
||||
// no need to call self.navigate
|
||||
|
||||
|
||||
window.location.hash = self.homepage;
|
||||
});
|
||||
};
|
||||
// On document ready
|
||||
$(function () {
|
||||
// intercettaUrl();
|
||||
new Site();
|
||||
|
||||
$(".minibox").click(function () {
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
|
@ -149,7 +76,7 @@
|
|||
</div>
|
||||
|
||||
<!--/navbar -->
|
||||
<div data-role="header" data-position="fixed" id="navheader" class="hide">
|
||||
<div data-role="header" data-position="fixed" id="navheader">
|
||||
<div data-role="navbar" id="nav2" data-iconpos="left" data-theme="a">
|
||||
<ul class="downnav">
|
||||
<li><a class="ui-mini" href="#outside" data-icon="bars">
|
||||
|
|
|
@ -108,6 +108,7 @@ function getParameterByName(name, url) {
|
|||
function display_results(contenitore, messaggio) {
|
||||
$(contenitore).text(messaggio);
|
||||
};
|
||||
|
||||
$(function () {
|
||||
$("form").submit(function () {
|
||||
return false;
|
||||
|
@ -139,6 +140,76 @@ function setFirstRun() {
|
|||
/*per link in browser di default */
|
||||
document.addEventListener("deviceready", onDeviceReady, false);
|
||||
//le cose all'inizio
|
||||
|
||||
|
||||
|
||||
$(document).on("mobileinit", function () {
|
||||
|
||||
$("body").pagecontainer({
|
||||
defaults: true
|
||||
});
|
||||
|
||||
$(".ui-loader").loader({
|
||||
defaults: true
|
||||
});
|
||||
$("input").button();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).on("pagecontainerchange", function () {
|
||||
|
||||
var current = $(".ui-page-active").prop("id"); // Remove active class from nav buttons
|
||||
|
||||
console.log("current" + current);
|
||||
$("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active"); // Add active class to current nav button
|
||||
|
||||
$("[data-role='navbar'] a").each(function () {
|
||||
var href = $(this).prop("href");
|
||||
if (href.indexOf(current, href.length - current.length) !== -1) {
|
||||
$(this).addClass("ui-btn-active");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on("pagecreate", function () {
|
||||
$("body > [data-role='panel']").panel();
|
||||
$("body > [data-role='panel'] [data-role='listview']").listview();
|
||||
$("body > [data-role='header']").toolbar();
|
||||
$("body > [data-role='footer']").toolbar();
|
||||
$("body > [data-role='navbar']").navbar();
|
||||
$("#navfooter").navbar();
|
||||
postInList();
|
||||
});
|
||||
|
||||
/*per inizio navigazione*/
|
||||
var Site = function () {
|
||||
this.homepage = "#index"; // the default page that is loaded
|
||||
this.init();
|
||||
};
|
||||
|
||||
Site.prototype.init = function () {
|
||||
|
||||
var self = this;
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
// default page if no hash given
|
||||
// this changes the hash, so the event is fired
|
||||
// no need to call self.navigate
|
||||
|
||||
|
||||
window.location.hash = self.homepage;
|
||||
});
|
||||
};
|
||||
// On document ready
|
||||
$(function () {
|
||||
// intercettaUrl();
|
||||
// new Site();
|
||||
// $(".minibox").click(function () {});
|
||||
});
|
||||
|
||||
function onDeviceReady() {
|
||||
// console.log('deviceready');
|
||||
createDB();
|
||||
|
@ -149,9 +220,14 @@ function onDeviceReady() {
|
|||
hrefseguente = $(this).attr("href");
|
||||
alterContent(hrefseguente);
|
||||
});
|
||||
// eliminare le due righe:
|
||||
$("body > [data-role='header']").toolbar();
|
||||
$("[data-role='navbar']").navbar();
|
||||
alterContent("#info");
|
||||
};
|
||||
|
||||
|
||||
|
||||
function overlayblock() {
|
||||
$(".overlaynero").toggleClass("hide");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue