text: var lista = document.getElementById('lista')
  var tabela = document.getElementsByClassName('produto')
  imprimir()
  function caling(){
  
      //Recebe os valores do input
      var pf = Number(document.getElementById('pf').value)
      var pe = Number(document.getElementById('pe').value)
      var pq = Number(document.getElementById('qpq').value)
      var ab = Number(document.getElementById('qab').value)
      var bl = Number(document.getElementById('bl').value)
      var rc = Number(document.getElementById('rc').value)
      var pi = Number(document.getElementById('pi').value)
      //----------------------------------------------------\\
      
      //Quatidades dos ingredientes para a produção de uma unidade
      var mpastel={
          Aveia:5.34,
          Farinha_de_Trigo:10.591,
          Farinha_de_Trigo_Integral:10.591,
          Oleo:1.905,
          Sal:0.169,
          Agua:11.481
      }
      var respinafre = {
          Ricota: 37.38,
          Cebola: 2.67,
          Oleo: 0.392,
          Espinafre: 5.785
      }
      var rfrango = {
          Ricota: 37.38,
          Cebola: 2.67,
          Oleo: 0.392,
          Frango:5.34,
          Cheiro_verde:0.534
      }
      var quiche = {
          Ovo: 10.933,
          Margarina: 11,
          Oleo: 5,
          Farinha_de_Trigo: 30,
          Creme_de_leite: 10,
          Queijo_parmessao: 0.2,
          Leite: 20,
          Fermento_bolo: 0.7,
          Sal: 0.3,
          Noz_moscada: 0.04
      }
      var presunto = {
          Presunto: 13,
          Mussarela: 12,
          Ricota: 18
      }
      var alhobacon = {
          Alho_poro: 7,
          Bacon: 7,
          Ricota: 18
      }
      var roscachocolate = {
          Farinha_de_Trigo: 600,
          Ovo: 114,
          Leite: 240,
          Fermento_pao: 10,
          Acucar: 60,
          Gotas_de_chocolate: 300,
          Manteiga: 50,
          Oleo: 108
      }
      var bololaranja = {
          Laranja: 458,
          Ovo: 189,
          Oleo: 150,
          Acucar: 325,
          Farinha_de_Trigo: 250,
          Fermento_bolo: 15  
      }
      var paointegral = {
          Ovo: 57,
          Azeite: 27,
          Fermento_pao: 10,
          Sal: 9,
          Farinha_de_Trigo_Integral: 286,
          Aveia: 27,
          Farinha_de_Trigo: 70,
          Acucar: 25,
          Agua: 285
      }
      //----------------------------------------------------\\
  
      //Logica para o calculo da quantidade
      localStorage.setItem('acucar', ((bololaranja.Acucar*bl+paointegral.Acucar*pi+roscachocolate.Acucar*rc).toFixed(2)))
      localStorage.setItem('agua', ((mpastel.Agua*pf+mpastel.Agua*pe+paointegral.Agua*pi).toFixed(2)))
      localStorage.setItem('alhoporo', (((alhobacon.Alho_poro*ab)*1.49).toFixed(2)))
      localStorage.setItem('aveia', ((mpastel.Aveia*pe+mpastel.Aveia*pf+paointegral.Aveia*pi).toFixed(2)))
      localStorage.setItem('azeite', ((paointegral.Azeite*pi).toFixed(2)))
      localStorage.setItem('bacon', (((alhobacon.Bacon*ab)*1.49).toFixed(2)))
      localStorage.setItem('cebola', ((rfrango.Cebola*pf+respinafre.Cebola*pe).toFixed(2)))
      localStorage.setItem('cremedeleite', ((quiche.Creme_de_leite*ab+quiche.Creme_de_leite*pq).toFixed(2)))
      localStorage.setItem('espinafre', (((respinafre.Espinafre*pe)*1.26).toFixed(2)))               
      localStorage.setItem('farinhadetrigo', ((mpastel.Farinha_de_Trigo*pe+mpastel.Farinha_de_Trigo*pf+quiche.Farinha_de_Trigo*ab+quiche.Farinha_de_Trigo*pq+bololaranja.Farinha_de_Trigo*bl+paointegral.Farinha_de_Trigo*pi+roscachocolate.Farinha_de_Trigo*rc).toFixed(2)))
      localStorage.setItem('farinhadetrigoint', ((mpastel.Farinha_de_Trigo_Integral*pe+mpastel.Farinha_de_Trigo_Integral*pf+paointegral.Farinha_de_Trigo_Integral*pi).toFixed(2)))
      localStorage.setItem('fermentobolo', ((quiche.Fermento_bolo*pq+quiche.Fermento_bolo*ab+bololaranja.Fermento_bolo*bl).toFixed(2)))
      localStorage.setItem('fermentopao', ((roscachocolate.Fermento_pao*rc+paointegral.Fermento_pao*pi).toFixed(2)))
      localStorage.setItem('frango', (((rfrango.Frango*pf)*1.28).toFixed(2)))
      localStorage.setItem('gotaschocolate', ((roscachocolate.Gotas_de_chocolate*rc).toFixed(2)))
      localStorage.setItem('laranja', ((bololaranja.Laranja*bl).toFixed(2)))
      localStorage.setItem('leite', ((quiche.Leite*pq+quiche.Leite*ab+roscachocolate.Leite*rc).toFixed(2)))
      localStorage.setItem('manteiga', ((roscachocolate.Manteiga*rc).toFixed(2)))
      localStorage.setItem('margarina', ((quiche.Margarina*pq+quiche.Margarina*ab).toFixed(2)))
      localStorage.setItem('mussarela', ((presunto.Mussarela*pq).toFixed(2)))
      localStorage.setItem('nozmoscada', ((quiche.Noz_moscada*pq+quiche.Noz_moscada*ab).toFixed(2)))
      localStorage.setItem('oleo', ((mpastel.Oleo*pe+respinafre.Oleo*pe+mpastel.Oleo*pf+rfrango.Oleo*pf+quiche.Oleo*pq+quiche.Oleo*ab+bololaranja.Oleo*bl+roscachocolate.Oleo*rc).toFixed(2)))
      localStorage.setItem('ovo', (((quiche.Ovo*pq+quiche.Ovo*ab+bololaranja.Ovo*bl+roscachocolate.Ovo*rc+paointegral.Ovo*pi)/57).toFixed(2)))
      localStorage.setItem('presunto', ((presunto.Presunto*pq).toFixed(2)))
      localStorage.setItem('parmessao', ((quiche.Queijo_parmessao*pq+quiche.Queijo_parmessao*ab).toFixed(2)))
      localStorage.setItem('ricota', ((rfrango.Ricota*pf+respinafre.Ricota*pe+presunto.Ricota*pq+alhobacon.Ricota*ab).toFixed(2)))
      localStorage.setItem('sal', ((mpastel.Sal*pe+mpastel.Sal*pf+quiche.Sal*pq+quiche.Sal*ab+paointegral.Sal*pi).toFixed(2)))
      localStorage.setItem('salsacebolinha', ((rfrango.Cheiro_verde*pf).toFixed(2)))
      //----------------------------------------------------------------------------------------------------------------------------\\
  
      lista.innerHTML = ''
      imprimir()
  }
  function imprimir(){
      
      //Imprimi somente se for diferente de 0 ou null
      if (localStorage.getItem('acucar') != null && localStorage.getItem('acucar') != 0) {
          lista.innerHTML += `Açucar &rarr; ${localStorage.getItem('acucar')}g<br>`
      }
      if (localStorage.getItem('agua') != null && localStorage.getItem('agua') != 0) {
          lista.innerHTML += `Água &rarr; ${localStorage.getItem('agua')}g<br>`
      }
      if (localStorage.getItem('alhoporo') != null && localStorage.getItem('alhoporo') != 0) {
          lista.innerHTML += `Alho Poró &rarr; ${localStorage.getItem('alhoporo')}g<br>`
      }
      if (localStorage.getItem('aveia') != null && localStorage.getItem('aveia') != 0) {
          lista.innerHTML += `Aveia &rarr;${localStorage.getItem('aveia')}g<br>`
      }
      if (localStorage.getItem('azeite') != null && localStorage.getItem('azeite') != 0) {
          lista.innerHTML += `Azeite &rarr;${localStorage.getItem('azeite')}g<br>`
      }
      if (localStorage.getItem('bacon') != null && localStorage.getItem('bacon') != 0) {
          lista.innerHTML += `Bacon &rarr; ${localStorage.getItem('bacon')}g<br>`
      }
      if (localStorage.getItem('cebola') != null && localStorage.getItem('cebola') != 0) {
          lista.innerHTML += `Cebola &rarr;${localStorage.getItem('cebola')}g<br>`
      }
      if (localStorage.getItem('cremedeleite') != null && localStorage.getItem('cremedeleite') != 0) {
          lista.innerHTML += `Creme de leite &rarr; ${localStorage.getItem('cremedeleite')}g<br>`
      }
      if (localStorage.getItem('espinafre') != null && localStorage.getItem('espinafre') != 0) {
          lista.innerHTML += `Espinafre &rarr;${localStorage.getItem('espinafre')}g<br>`
      }
      if (localStorage.getItem('farinhadetrigo') != null && localStorage.getItem('farinhadeTrigo') != 0) {
          lista.innerHTML += `Farinha de Trigo &rarr;${localStorage.getItem('farinhadetrigo')}g<br>`
      }
      if (localStorage.getItem('farinhadetrigoint') != null && localStorage.getItem('farinhadetrigoint') != 0) {
          lista.innerHTML += `Farinha de Trigo Integral &rarr;${localStorage.getItem('farinhadetrigoint')}g<br>`
      }
      if (localStorage.getItem('fermentobolo') != null && localStorage.getItem('fermentobolo') != 0) {
          lista.innerHTML += `Fermento de bolo &rarr; ${localStorage.getItem('fermentobolo')}g<br>`
      }
      if (localStorage.getItem('fermentopao') != null && localStorage.getItem('fermentopao') != 0) {
          lista.innerHTML += `Fermento de pão &rarr; ${localStorage.getItem('fermentopao')}g<br>`
      }
      if (localStorage.getItem('frango') != null && localStorage.getItem('frango') != 0) {
          lista.innerHTML += `Frango &rarr;${localStorage.getItem('frango')}g<br>`
      }
      if (localStorage.getItem('gotaschocolate') != null && localStorage.getItem('gotaschocolate') != 0) {
          lista.innerHTML += `Gotas de Chocolate &rarr; ${localStorage.getItem('gotaschocolate')}g<br>`
      }
      if (localStorage.getItem('laranja') != null && localStorage.getItem('laranja') != 0) {
          lista.innerHTML += `Laranja &rarr;${localStorage.getItem('laranja')}g<br>`
      }
      if (localStorage.getItem('leite') != null && localStorage.getItem('leite') != 0) {
          lista.innerHTML += `Leite &rarr; ${localStorage.getItem('leite')}g<br>`
      }
      if (localStorage.getItem('manteiga') != null && localStorage.getItem('manteiga') != 0) {
          lista.innerHTML += `Manteiga &rarr; ${localStorage.getItem('manteiga')}g<br>`
      }
      if (localStorage.getItem('margarina') != null && localStorage.getItem('margarina') != 0) {
          lista.innerHTML += `Margarina &rarr; ${localStorage.getItem('margarina')}g<br>`
      }
      if (localStorage.getItem('mussarela') != null && localStorage.getItem('mussarela') != 0) {
          lista.innerHTML += `Mussarela &rarr; ${localStorage.getItem('mussarela')}g<br>`
      }
      if (localStorage.getItem('nozmoscada') != null && localStorage.getItem('nozmoscada') != 0) {
          lista.innerHTML += `Noz moscada &rarr; ${localStorage.getItem('nozmoscada')}g<br>`
      }
      if (localStorage.getItem('oleo') != null && localStorage.getItem('oleo') != 0) {
          lista.innerHTML += `Óleo &rarr;${localStorage.getItem('oleo')}g<br>`
      }
      if (localStorage.getItem('ovo') != null && localStorage.getItem('ovo') != 0) {
          lista.innerHTML += `Ovo &rarr; ${localStorage.getItem('ovo')}unid<br>`
      }
      if (localStorage.getItem('presunto') != null && localStorage.getItem('presunto') != 0) {
          lista.innerHTML += `Presunto &rarr; ${localStorage.getItem('presunto')}g<br>`
      }
      if (localStorage.getItem('parmessao') != null && localStorage.getItem('parmessao') != 0) {
          lista.innerHTML += `Queijo parmessão &rarr; ${localStorage.getItem('parmessao')}g<br>`
      }
      if (localStorage.getItem('ricota') != null && localStorage.getItem('ricota') != 0) {
          lista.innerHTML += `Ricota &rarr;${localStorage.getItem('ricota')}g<br>`
      }
      if (localStorage.getItem('sal') != null && localStorage.getItem('sal') != 0) {
          lista.innerHTML += `Sal &rarr;${localStorage.getItem('sal')}g<br>`
      }
      if (localStorage.getItem('salsacebolinha') != null && localStorage.getItem('salsacebolinha') != 0) {
          lista.innerHTML += `Salsa_e_Cebolinha &rarr;${localStorage.getItem('salsacebolinha')}g<br>`
      }
      //----------------------------------------------------------------------------------------------------------------------------\\
  }   
  function limpar(){
      localStorage.clear()
      lista.innerHTML = ''
      window.location.reload()
  }