| 1 |
(function(){"use strict";const d="desktop-mode/jazz-quote",m={7:"Louis Armstrong",6.9:"Gene Harris",6.8:"Cecil Taylor",6.7:"Sonny Rollins",6.6:"Tommy Dorsey",6.5:"Regina Carter",6.4:"Shirley Horn",6.3:"Lionel Hampton",6.2:"Eric Dolphy",6.1:"Mikhail Alperin",6:"Arturo O'Farrill",5.9:"Joséphine Baker",5.8:"Art Tatum",5.7:"Esperanza Spalding",5.6:"Nina Simone",5.5:"Billy Eckstine",5.4:"Nat Adderley",5.3:"Rahsaan Roland Kirk",5.2:"Jaco Pastorius",5.1:"Betty Carter",5:"Bebo Valdés"},y={"Louis Armstrong":["If you have to ask what jazz is, you'll never know.","Musicians don't retire; they stop when there's no more music in them.","All music is folk music. I ain't never heard a horse sing a song."],"Gene Harris":["Play from your heart and the rest will follow.","The blues is the roots; everything else is the fruits.","Swing is a feeling, not a formula."],"Cecil Taylor":["Music has to do with a lot of areas which are magical rather than logical.","The piano is a vehicle by which I can express my spirit.","I try to imitate on the piano the leaping of a plant."],"Sonny Rollins":["Jazz is not just music — it's a way of life.","If you're not making a mistake, it's a mistake.","Playing is the easiest way for me to communicate with other people."],"Tommy Dorsey":["A real pro is someone who does their best work even when they don't feel like it.","Make it swing and the people will follow.","The trombone is the voice of the orchestra."],"Regina Carter":["The violin is not a barrier — it is a bridge.","I never wanted to be put in a box.","Swing is not a tempo. It is an attitude."],"Shirley Horn":["Space is where music lives.","A slow tempo is a brave tempo.","Every note needs room to breathe."],"Lionel Hampton":["I just hit the vibraphone and let God take over.","You can always tell a musician by the way they listen.","Jazz is the music of the moment that lasts forever."],"Eric Dolphy":["When you hear music, after it's over, it's gone in the air. You can never capture it again.","I play a little different on each instrument.","Music is a reflection of everything — and that includes all kinds of beauty."],"Mikhail Alperin":["Music is about finding your own voice, not someone else's.","Silence is part of music — the space between notes is where meaning lives.","Every note I play comes from somewhere inside that I cannot explain."],"Arturo O'Farrill":["Latin jazz is the only truly American music.","Music is the universal language — and jazz is its most democratic dialect.","My job is to swing hard and think deep."],"Joséphine Baker":["The most beautiful thing in the world is freedom.","I improvised, caricatured, and made people laugh.","One word frees us of all the weight and pain of life — that word is love."],"Art Tatum":["I'm always trying to do things differently.","The piano is a complete orchestra.","Speed is nothing without control."],"Nina Simone":["Jazz is not just music — it's life.","I'll tell you what freedom is to me: no fear.","You've got to learn to leave the table when love's no longer being served."],"Esperanza Spalding":["Music is a living thing.","I want to create something that is beyond genre.","A song is a conversation between the singer and the listener."],"Bebo Valdés":["Cuban music is the most complete in the world.","You play with what you have, and you make it beautiful.","Music is the bridge between where you are and where you want to be."]},u=["Do not fear mistakes — there are none. — Miles Davis","Man, if you gotta ask, you'll never know. — Louis Armstrong","There are no wrong notes in jazz: only notes in the wrong places. — Miles Davis","Music is your own experience, your thoughts, your wisdom. If you don't live it, it won't come out of your horn. — Charlie Parker","You can play a shoestring if you're sincere. — John Coltrane","Jazz is the music of the body. — Anita O'Day","I'm always thinking about creating. My future starts when I wake up every morning. — Miles Davis","It takes a long time to play like yourself. — Miles Davis","Don't play what's there — play what's not there. — Miles Davis"];function p(){const e=window.desktopModeJazzQuote?.wpVersion;if(e&&/^\d+\.\d+/.test(e))return e;const t=document.querySelector('meta[name="generator"]')?.content?.match(/WordPress ([\d.]+)/);return t?t[1]:null}function w(e){return e.split(".").slice(0,2).join(".")}function g(){return new Date().toISOString().slice(0,10)}function f(){const e=new Date,o=new Date(e.getFullYear(),0,0),t=e.getTime()-o.getTime();return Math.floor(t/864e5)}function v(e){const o=e?y[e]??u:u;return o[f()%o.length]}function c(e,o,t,l){e.innerHTML="";const n=document.createElement("div");n.className="dm-jazz";const i=document.createElement("div");i.className="dm-jazz__symbol",i.setAttribute("aria-hidden","true"),i.textContent="♫";const a=document.createElement("blockquote");a.className="dm-jazz__quote",a.textContent=l;const s=document.createElement("div");if(s.className="dm-jazz__attr",t){const r=document.createElement("span");r.className="dm-jazz__musician",r.textContent=t,s.appendChild(r)}if(o){const r=document.createElement("span");r.className="dm-jazz__version",r.textContent="WordPress "+o+(t?"":" — jazz wisdom"),s.appendChild(r)}n.appendChild(i),n.appendChild(a),n.appendChild(s),e.appendChild(n)}const z=async(e,o)=>{const t=o.storage.get("daily"),l=g();if(t&&t.date===l)return c(e,t.version,t.musician,t.quote),()=>{};const n=p(),i=n?w(n):null,a=i?m[i]??null:null,s=v(a);return o.storage.set("daily",{date:l,quote:s,musician:a,version:n}),c(e,n,a,s),()=>{}},h=window;h.desktopModeWidgets=h.desktopModeWidgets??{},h.desktopModeWidgets[d]=z})(); |