git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_3.0.1@69 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
var myManifest = {
|
||||
Debug: (window.location.port !== ""),
|
||||
Name: "Il Lievitario",
|
||||
Version: "3.0.1.7",
|
||||
Version: "3.0.2.0",
|
||||
Author: "Denis Ironi",
|
||||
Settings: {
|
||||
DefaultURL: (window.location.port === "" ? "http://" + window.location.host + "/Service": "http://" + window.location.hostname + ":" + window.location.port + "/Service_Manut"),
|
||||
|
||||
@@ -3,30 +3,14 @@
|
||||
<h3 id='titoloRicetta'><%= unescape(ricetta.titolo)%></h3>
|
||||
<a id="backBtn" href="#" class="nav-glyphish-example ui-btn ui-icon-myHome ui-btn-icon-notext ui-btn-right" data-icon="custom"></a>
|
||||
</div>
|
||||
<%
|
||||
var widthImg = 320;
|
||||
if( myManifest.Agent.device.type != "" )
|
||||
{
|
||||
/*prendo la larghezza del viewport e sottraggo il 10perc, poi divito per le due colonne*/
|
||||
widthImg = (myManifest.Settings.Device.Width - (myManifest.Settings.Device.Width / 10)) / 2;
|
||||
if(widthImg>320)
|
||||
widthImg = 320;
|
||||
}
|
||||
%>
|
||||
<div id="contentIngredienti" data-role="content">
|
||||
<h1>Ingredienti</h1>
|
||||
<center><p id='ingredienti'>
|
||||
<% _.each(ingredienti, function(ingrediente) {
|
||||
var liStyle = "";
|
||||
var qty = ": " + ingrediente.quantita;
|
||||
var nome_ingr = ingrediente.nome_ingrediente;
|
||||
if(ingrediente.id_tipo_ingredienti == 22)
|
||||
{
|
||||
liStyle="list-style-type: none;";
|
||||
qty = "";
|
||||
nome_ingr = "";
|
||||
} %> <li style="<%= liStyle %>"><b><%= nome_ingr %></b><%= qty %> <%= ingrediente.unita %> <%= unescape(ingrediente.note) %></li><br> <% }); %>
|
||||
</p></center>
|
||||
<h1>Ingredienti</h1>
|
||||
<% _.each(ingredienti, function(ingrediente) {
|
||||
if(ingrediente.id_tipo_ingredienti == 152)/*Intestazione*/{%>
|
||||
<h2 class="intestazione"><%= unescape(ingrediente.note) %></h2>
|
||||
<%}else if(ingrediente.id_tipo_ingredienti == 22)/*Nota-Paragrafo*/{%>
|
||||
<p class="nota"><%= unescape(ingrediente.note) %></p>
|
||||
<%}else{%><li class="ingrediente"><div class="nomeIngrediente"><%= ingrediente.nome_ingrediente %></div><%= ": " + ingrediente.quantita %> <%= ingrediente.unita %><div class="notaIngrediente"> <%= unescape(ingrediente.note) %></div></li><%}}); %>
|
||||
<p style="font-size: xx-small;font-weight: lighter;">La proprietà del materiale pubblicato nel Lievitario , salvo diversa indicazione, è dei rispettivi autori. E’ vietata la ripubblicazione, anche parziale, di tutto il materiale pubblicato nel sito Lievitario senza preventiva autorizzazione scritta.</p>
|
||||
</div>
|
||||
<div id="contentProcedimento" data-role="content" style="display: none;">
|
||||
|
||||
Reference in New Issue
Block a user